From 4dfb3b9112be161e0f2f1b7d48d0a11d62a92b59 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 25 Jul 2024 06:27:28 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.345.4 --- .gitignore | 4 + .npmignore | 2 + .speakeasy/gen.lock | 217 +- .speakeasy/gen.yaml | 3 +- .speakeasy/temp/output_NnUjGiIyrO.yaml | 2603 ----------------- .speakeasy/temp/output_ZtktLtxTDo.yaml | 1878 ------------ .speakeasy/temp/output_eVmPlGGctZ.yaml | 2603 ----------------- .speakeasy/temp/output_fvxKOYZyEe.yaml | 2603 ----------------- .speakeasy/temp/output_tNbmQPvnrG.yaml | 2603 ----------------- .speakeasy/workflow.lock | 17 +- .speakeasy/workflow.yaml | 1 + CONTRIBUTING.md | 26 + README.md | 144 +- RELEASES.md | 11 + RUNTIMES.md | 2 +- USAGE.md | 2 +- docs/lib/utils/retryconfig.md | 24 + .../operations/appcontrollerhelloresponse.md | 9 - ...trequest.md => createcrmcontactrequest.md} | 2 +- ...esponse.md => createcrmcontactresponse.md} | 2 +- ...reatemarketingautomationcontactrequest.md} | 2 +- ...eatemarketingautomationcontactresponse.md} | 2 +- ...> createmarketingautomationlistrequest.md} | 2 +- ... createmarketingautomationlistresponse.md} | 2 +- ...eatemarketingautomationtemplaterequest.md} | 2 +- ...atemarketingautomationtemplateresponse.md} | 2 +- ...letewebhookrequest.md => deleterequest.md} | 2 +- ...tewebhookresponse.md => deleteresponse.md} | 2 +- .../operations/getdepartmentsresponse.md | 9 - docs/models/operations/getemailsresponse.md | 9 - docs/models/operations/getlistsresponse.md | 9 - .../getmarketingautomationusersrequest.md | 11 - .../getmarketingautomationusersresponse.md | 9 - docs/models/operations/getmessagesrequest.md | 11 - docs/models/operations/getmessagesresponse.md | 9 - .../operations/getrejectreasonsrequest.md | 11 - .../operations/getrejectreasonsresponse.md | 9 - docs/models/operations/gettemplatesrequest.md | 11 - .../models/operations/gettemplatesresponse.md | 9 - docs/models/operations/getusersrequest.md | 11 - docs/models/operations/getusersresponse.md | 9 - ...yncstatusresponse.md => healthresponse.md} | 2 +- .../{gethealthresponse.md => homeresponse.md} | 5 +- ...equest.md => listatsdepartmentsrequest.md} | 2 +- .../operations/listatsdepartmentsresponse.md | 9 + ...y.md => listatsdepartmentsresponsebody.md} | 2 +- ...uest.md => listatsrejectreasonsrequest.md} | 2 +- .../listatsrejectreasonsresponse.md | 9 + ...md => listatsrejectreasonsresponsebody.md} | 2 +- ...uest.md => listfilestorageusersrequest.md} | 2 +- .../listfilestorageusersresponse.md | 9 + ...md => listfilestorageusersresponsebody.md} | 2 +- ...listmarketingautomationcontactsrequest.md} | 2 +- ...istmarketingautomationcontactsresponse.md} | 10 +- ...arketingautomationcontactsresponsebody.md} | 2 +- .../listmarketingautomationemailsrequest.md | 11 + .../listmarketingautomationemailsresponse.md | 9 + ...tmarketingautomationemailsresponsebody.md} | 2 +- .../listmarketingautomationeventsrequest.md | 11 + .../listmarketingautomationeventsresponse.md | 9 + ...tmarketingautomationeventsresponsebody.md} | 2 +- ...=> listmarketingautomationlistsrequest.md} | 2 +- ...> listmarketingautomationlistsresponse.md} | 4 +- ...stmarketingautomationlistsresponsebody.md} | 2 +- .../listmarketingautomationmessagesrequest.md | 11 + ...listmarketingautomationmessagesresponse.md | 9 + ...arketingautomationmessagesresponsebody.md} | 2 +- ...listmarketingautomationtemplatesrequest.md | 11 + ...istmarketingautomationtemplatesresponse.md | 9 + ...rketingautomationtemplatesresponsebody.md} | 2 +- .../listmarketingautomationusersrequest.md | 11 + .../listmarketingautomationusersresponse.md | 9 + ...stmarketingautomationusersresponsebody.md} | 2 +- ...est.md => retrieveatsdepartmentrequest.md} | 2 +- ...se.md => retrieveatsdepartmentresponse.md} | 2 +- ...t.md => retrieveatsrejectreasonrequest.md} | 2 +- ....md => retrieveatsrejectreasonresponse.md} | 2 +- ...equest.md => retrievecrmcontactrequest.md} | 2 +- ...ponse.md => retrievecrmcontactresponse.md} | 2 +- ...t.md => retrievefilestorageuserrequest.md} | 2 +- ....md => retrievefilestorageuserresponse.md} | 2 +- ...rievemarketingautomationcontactrequest.md} | 2 +- ...ievemarketingautomationcontactresponse.md} | 2 +- ...etrievemarketingautomationemailrequest.md} | 2 +- ...trievemarketingautomationemailresponse.md} | 2 +- ...etrievemarketingautomationeventrequest.md} | 2 +- ...trievemarketingautomationeventresponse.md} | 2 +- ...retrievemarketingautomationlistrequest.md} | 2 +- ...etrievemarketingautomationlistresponse.md} | 2 +- ...rievemarketingautomationmessagerequest.md} | 2 +- ...ievemarketingautomationmessageresponse.md} | 2 +- ...ievemarketingautomationtemplaterequest.md} | 2 +- ...evemarketingautomationtemplateresponse.md} | 2 +- ...retrievemarketingautomationuserrequest.md} | 2 +- ...etrievemarketingautomationuserresponse.md} | 2 +- ...tsyncstatusrequest.md => statusrequest.md} | 2 +- ...protectedresponse.md => statusresponse.md} | 5 +- ...tatusrequest.md => updatestatusrequest.md} | 2 +- ...tusresponse.md => updatestatusresponse.md} | 2 +- docs/sdks/account/README.md | 3 + docs/sdks/accounts/README.md | 2 + docs/sdks/action/README.md | 3 + docs/sdks/activity/README.md | 3 + docs/sdks/address/README.md | 2 + docs/sdks/application/README.md | 3 + docs/sdks/attachment/README.md | 3 + docs/sdks/attachments/README.md | 3 + docs/sdks/automation/README.md | 3 + docs/sdks/balancesheet/README.md | 2 + docs/sdks/bankinfo/README.md | 2 + docs/sdks/benefit/README.md | 2 + docs/sdks/campaign/README.md | 3 + docs/sdks/candidate/README.md | 3 + docs/sdks/cashflowstatement/README.md | 2 + docs/sdks/collections/README.md | 2 + docs/sdks/comments/README.md | 3 + docs/sdks/companies/README.md | 3 + docs/sdks/company/README.md | 1 + docs/sdks/companyinfo/README.md | 2 + docs/sdks/contact/README.md | 33 +- docs/sdks/contacts/README.md | 2 + docs/sdks/creditnote/README.md | 2 + docs/sdks/deals/README.md | 3 + docs/sdks/department/README.md | 22 +- docs/sdks/dependent/README.md | 2 + docs/sdks/drives/README.md | 2 + docs/sdks/eeocs/README.md | 2 + docs/sdks/email/README.md | 22 +- docs/sdks/employee/README.md | 3 + docs/sdks/employeepayrollrun/README.md | 2 + docs/sdks/employerbenefit/README.md | 2 + docs/sdks/employment/README.md | 2 + docs/sdks/engagements/README.md | 3 + docs/sdks/event/README.md | 22 +- docs/sdks/expense/README.md | 3 + docs/sdks/fieldmappings/README.md | 3 + docs/sdks/files/README.md | 3 + docs/sdks/folders/README.md | 3 + docs/sdks/group/README.md | 2 + docs/sdks/groups/README.md | 2 + docs/sdks/incomestatement/README.md | 2 + docs/sdks/interview/README.md | 3 + docs/sdks/invoice/README.md | 3 + docs/sdks/item/README.md | 2 + docs/sdks/job/README.md | 2 + docs/sdks/jobinterviewstage/README.md | 2 + docs/sdks/journalentry/README.md | 3 + docs/sdks/linkedusers/README.md | 5 + docs/sdks/list/README.md | 33 +- docs/sdks/location/README.md | 2 + docs/sdks/message/README.md | 22 +- docs/sdks/notes/README.md | 3 + docs/sdks/offer/README.md | 2 + docs/sdks/office/README.md | 2 + docs/sdks/panora/README.md | 57 +- docs/sdks/panoraattachment/README.md | 3 + docs/sdks/panoracontact/README.md | 3 + docs/sdks/panoracontacts/README.md | 27 +- docs/sdks/panorafilestorageusers/README.md | 22 +- docs/sdks/panorauser/README.md | 2 + docs/sdks/panorausers/README.md | 2 + docs/sdks/passthrough/README.md | 1 + docs/sdks/paygroup/README.md | 2 + docs/sdks/payment/README.md | 3 + docs/sdks/payrollrun/README.md | 1 + docs/sdks/phonenumber/README.md | 2 + docs/sdks/purchaseorder/README.md | 3 + docs/sdks/rejectreason/README.md | 22 +- docs/sdks/scorecard/README.md | 2 + docs/sdks/stages/README.md | 2 + docs/sdks/sync/README.md | 12 +- docs/sdks/tag/README.md | 2 + docs/sdks/tags/README.md | 2 + docs/sdks/tasks/README.md | 3 + docs/sdks/taxrate/README.md | 2 + docs/sdks/teams/README.md | 2 + docs/sdks/template/README.md | 33 +- docs/sdks/tickets/README.md | 3 + docs/sdks/timeoff/README.md | 3 + docs/sdks/timeoffbalance/README.md | 2 + docs/sdks/trackingcategory/README.md | 2 + docs/sdks/transaction/README.md | 2 + docs/sdks/user/README.md | 22 +- docs/sdks/users/README.md | 2 + docs/sdks/vendorcredit/README.md | 2 + docs/sdks/webhook/README.md | 25 +- jsr.json | 2 +- package-lock.json | 11 +- package.json | 9 +- src/lib/config.ts | 7 +- src/lib/encodings.ts | 30 +- src/lib/http.ts | 5 + src/lib/sdks.ts | 94 +- src/models/components/address.ts | 111 +- .../components/createbatchlinkeduserdto.ts | 77 +- src/models/components/createlinkeduserdto.ts | 77 +- src/models/components/customfieldcreatedto.ts | 113 +- src/models/components/definetargetfielddto.ts | 83 +- src/models/components/email.ts | 73 +- src/models/components/eventpayload.ts | 27 +- src/models/components/httpmetadata.ts | 75 +- .../components/mapfieldtoproviderdto.ts | 87 +- .../components/passthroughrequestdto.ts | 121 +- src/models/components/passthroughresponse.ts | 86 +- src/models/components/phone.ts | 73 +- src/models/components/security.ts | 30 +- .../components/signatureverificationdto.ts | 80 +- .../unifiedaccountingaccountinput.ts | 31 +- .../unifiedaccountingaccountoutput.ts | 31 +- .../unifiedaccountingaddressoutput.ts | 31 +- .../unifiedaccountingattachmentinput.ts | 34 +- .../unifiedaccountingattachmentoutput.ts | 37 +- .../unifiedaccountingbalancesheetoutput.ts | 37 +- ...nifiedaccountingcashflowstatementoutput.ts | 37 +- .../unifiedaccountingcompanyinfooutput.ts | 37 +- .../unifiedaccountingcontactinput.ts | 31 +- .../unifiedaccountingcontactoutput.ts | 31 +- .../unifiedaccountingcreditnoteoutput.ts | 37 +- .../unifiedaccountingexpenseinput.ts | 31 +- .../unifiedaccountingexpenseoutput.ts | 31 +- .../unifiedaccountingincomestatementoutput.ts | 37 +- .../unifiedaccountinginvoiceinput.ts | 31 +- .../unifiedaccountinginvoiceoutput.ts | 31 +- .../components/unifiedaccountingitemoutput.ts | 31 +- .../unifiedaccountingjournalentryinput.ts | 37 +- .../unifiedaccountingjournalentryoutput.ts | 37 +- .../unifiedaccountingpaymentinput.ts | 31 +- .../unifiedaccountingpaymentoutput.ts | 31 +- .../unifiedaccountingphonenumberoutput.ts | 37 +- .../unifiedaccountingpurchaseorderinput.ts | 37 +- .../unifiedaccountingpurchaseorderoutput.ts | 37 +- .../unifiedaccountingtaxrateoutput.ts | 31 +- ...unifiedaccountingtrackingcategoryoutput.ts | 37 +- .../unifiedaccountingtransactionoutput.ts | 37 +- .../unifiedaccountingvendorcreditoutput.ts | 37 +- .../components/unifiedatsactivityinput.ts | 160 +- .../components/unifiedatsactivityoutput.ts | 327 ++- .../components/unifiedatsapplicationinput.ts | 208 +- .../components/unifiedatsapplicationoutput.ts | 375 ++- .../components/unifiedatsattachmentinput.ts | 186 +- .../components/unifiedatsattachmentoutput.ts | 353 ++- .../components/unifiedatscandidateinput.ts | 278 +- .../components/unifiedatscandidateoutput.ts | 435 +-- .../components/unifiedatsdepartmentoutput.ts | 271 +- .../components/unifiedatseeocsoutput.ts | 313 +- .../components/unifiedatsinterviewinput.ts | 242 +- .../components/unifiedatsinterviewoutput.ts | 399 +-- .../unifiedatsjobinterviewstageoutput.ts | 303 +- src/models/components/unifiedatsjoboutput.ts | 344 ++- .../components/unifiedatsofferoutput.ts | 369 ++- .../components/unifiedatsofficeoutput.ts | 262 +- .../unifiedatsrejectreasonoutput.ts | 271 +- .../components/unifiedatsscorecardoutput.ts | 343 ++- src/models/components/unifiedatstagoutput.ts | 218 +- src/models/components/unifiedatsuseroutput.ts | 331 ++- .../components/unifiedcampaignoutput.ts | 32 +- .../components/unifiedcrmcompanyinput.ts | 167 +- .../components/unifiedcrmcompanyoutput.ts | 329 ++- .../components/unifiedcrmcontactinput.ts | 165 +- .../components/unifiedcrmcontactoutput.ts | 327 ++- src/models/components/unifiedcrmdealinput.ts | 143 +- src/models/components/unifiedcrmdealoutput.ts | 289 +- .../components/unifiedcrmengagementinput.ts | 196 +- .../components/unifiedcrmengagementoutput.ts | 363 ++- src/models/components/unifiedcrmnoteinput.ts | 141 +- src/models/components/unifiedcrmnoteoutput.ts | 287 +- .../components/unifiedcrmstageoutput.ts | 257 +- src/models/components/unifiedcrmtaskinput.ts | 191 +- src/models/components/unifiedcrmtaskoutput.ts | 337 ++- src/models/components/unifiedcrmuseroutput.ts | 253 +- .../unifiedfilestoragedriveoutput.ts | 296 +- .../components/unifiedfilestoragefileinput.ts | 156 +- .../unifiedfilestoragefileoutput.ts | 323 +- .../unifiedfilestoragefolderinput.ts | 167 +- .../unifiedfilestoragefolderoutput.ts | 336 ++- .../unifiedfilestoragegroupoutput.ts | 292 +- .../components/unifiedhrisbankinfooutput.ts | 31 +- .../components/unifiedhrisbenefitoutput.ts | 31 +- .../components/unifiedhriscompanyoutput.ts | 31 +- .../components/unifiedhrisdependentoutput.ts | 31 +- .../components/unifiedhrisemployeeinput.ts | 31 +- .../components/unifiedhrisemployeeoutput.ts | 31 +- .../unifiedhrisemployeepayrollrunoutput.ts | 37 +- .../unifiedhrisemployerbenefitoutput.ts | 34 +- .../components/unifiedhrisemploymentoutput.ts | 31 +- .../components/unifiedhrisgroupoutput.ts | 32 +- .../components/unifiedhrislocationoutput.ts | 31 +- .../components/unifiedhrispaygroupoutput.ts | 31 +- .../components/unifiedhrispayrollrunoutput.ts | 31 +- .../unifiedhristimeoffbalanceoutput.ts | 34 +- .../components/unifiedhristimeoffinput.ts | 31 +- .../components/unifiedhristimeoffoutput.ts | 31 +- .../unifiedmarketingautomationactioninput.ts | 37 +- .../unifiedmarketingautomationactionoutput.ts | 37 +- ...ifiedmarketingautomationautomationinput.ts | 37 +- ...fiedmarketingautomationautomationoutput.ts | 37 +- ...unifiedmarketingautomationcampaigninput.ts | 37 +- .../unifiedmarketingautomationcontactinput.ts | 37 +- ...unifiedmarketingautomationcontactoutput.ts | 37 +- .../unifiedmarketingautomationemailoutput.ts | 37 +- .../unifiedmarketingautomationeventoutput.ts | 37 +- .../unifiedmarketingautomationlistinput.ts | 37 +- .../unifiedmarketingautomationlistoutput.ts | 37 +- ...unifiedmarketingautomationmessageoutput.ts | 37 +- ...unifiedmarketingautomationtemplateinput.ts | 37 +- ...nifiedmarketingautomationtemplateoutput.ts | 37 +- .../unifiedmarketingautomationuseroutput.ts | 37 +- .../unifiedticketingaccountoutput.ts | 282 +- .../unifiedticketingattachmentinput.ts | 155 +- .../unifiedticketingattachmentoutput.ts | 328 ++- .../unifiedticketingcollectionoutput.ts | 251 +- .../unifiedticketingcommentinput.ts | 123 +- .../unifiedticketingcommentoutput.ts | 291 +- .../unifiedticketingcontactoutput.ts | 302 +- .../components/unifiedticketingtagoutput.ts | 271 +- .../components/unifiedticketingteamoutput.ts | 277 +- .../components/unifiedticketingticketinput.ts | 244 +- .../unifiedticketingticketoutput.ts | 347 ++- .../components/unifiedticketinguseroutput.ts | 297 +- src/models/components/unifieduseroutput.ts | 220 +- src/models/components/url.ts | 21 +- src/models/components/webhookdto.ts | 38 +- src/models/components/webhookresponse.ts | 133 +- src/models/operations/addcrmcontact.ts | 93 - src/models/operations/addlist.ts | 101 - .../addmarketingautomationcontact.ts | 117 - src/models/operations/addtemplate.ts | 103 - src/models/operations/appcontrollerhello.ts | 42 - src/models/operations/create.ts | 57 +- .../operations/createaccountingaccount.ts | 169 +- .../operations/createaccountingattachment.ts | 179 +- .../operations/createaccountingcontact.ts | 169 +- .../operations/createaccountingexpense.ts | 169 +- .../operations/createaccountinginvoice.ts | 169 +- .../createaccountingjournalentry.ts | 180 +- .../operations/createaccountingpayment.ts | 169 +- .../createaccountingpurchaseorder.ts | 180 +- src/models/operations/createatsactivity.ts | 153 +- src/models/operations/createatsapplication.ts | 156 +- src/models/operations/createatsattachment.ts | 154 +- src/models/operations/createatscandidate.ts | 154 +- src/models/operations/createatsinterview.ts | 154 +- src/models/operations/createcrmcompany.ts | 152 +- src/models/operations/createcrmcontact.ts | 135 + src/models/operations/createcrmdeal.ts | 152 +- src/models/operations/createcrmengagement.ts | 154 +- src/models/operations/createcrmnote.ts | 152 +- src/models/operations/createcrmtask.ts | 152 +- .../operations/createfilestoragefile.ts | 161 +- .../operations/createfilestoragefolder.ts | 169 +- src/models/operations/createhrisemployee.ts | 154 +- src/models/operations/createhristimeoff.ts | 153 +- src/models/operations/createlinkeduser.ts | 61 +- .../createmarketingautomationaction.ts | 180 +- .../createmarketingautomationautomation.ts | 182 +- .../createmarketingautomationcampaign.ts | 172 +- .../createmarketingautomationcontact.ts | 143 + .../createmarketingautomationlist.ts | 143 + .../createmarketingautomationtemplate.ts | 143 + .../operations/createticketingattachment.ts | 177 +- .../operations/createticketingcomment.ts | 165 +- .../operations/createticketingticket.ts | 161 +- src/models/operations/createwebhook.ts | 71 +- src/models/operations/define.ts | 57 +- src/models/operations/delete.ts | 98 + src/models/operations/deletewebhook.ts | 65 - src/models/operations/getcrmcontact.ts | 94 - src/models/operations/getdepartment.ts | 96 - src/models/operations/getdepartments.ts | 140 - src/models/operations/getemail.ts | 100 - src/models/operations/getemails.ts | 140 - src/models/operations/getevent.ts | 100 - src/models/operations/gethealth.ts | 42 - src/models/operations/gethelloprotected.ts | 42 - src/models/operations/getlist.ts | 100 - src/models/operations/getlists.ts | 140 - .../getmarketingautomationcontact.ts | 116 - .../getmarketingautomationcontacts.ts | 168 -- .../getmarketingautomationevents.ts | 168 -- .../operations/getmarketingautomationuser.ts | 116 - .../operations/getmarketingautomationusers.ts | 166 -- src/models/operations/getmessage.ts | 100 - src/models/operations/getmessages.ts | 140 - src/models/operations/getrejectreason.ts | 98 - src/models/operations/getrejectreasons.ts | 140 - src/models/operations/getsyncstatus.ts | 59 - src/models/operations/gettemplate.ts | 102 - src/models/operations/gettemplates.ts | 140 - src/models/operations/getuser.ts | 94 - src/models/operations/getusers.ts | 140 - src/models/operations/health.ts | 55 + src/models/operations/home.ts | 55 + src/models/operations/importbatch.ts | 61 +- src/models/operations/index.ts | 61 +- .../operations/listaccountingaccounts.ts | 247 +- .../operations/listaccountingaddress.ts | 244 +- .../operations/listaccountingattachments.ts | 258 +- .../operations/listaccountingbalancesheets.ts | 259 +- .../listaccountingcashflowstatement.ts | 261 +- .../operations/listaccountingcompanyinfos.ts | 257 +- .../operations/listaccountingcontacts.ts | 247 +- .../operations/listaccountingcreditnote.ts | 261 +- .../operations/listaccountingexpense.ts | 244 +- .../listaccountingincomestatement.ts | 261 +- .../operations/listaccountinginvoice.ts | 244 +- src/models/operations/listaccountingitem.ts | 236 +- .../operations/listaccountingjournalentry.ts | 257 +- .../operations/listaccountingpayment.ts | 244 +- .../operations/listaccountingphonenumber.ts | 258 +- .../operations/listaccountingpurchaseorder.ts | 259 +- .../operations/listaccountingtaxrate.ts | 244 +- .../listaccountingtrackingcategorys.ts | 261 +- .../operations/listaccountingtransaction.ts | 258 +- .../operations/listaccountingvendorcredit.ts | 257 +- src/models/operations/listatsactivity.ts | 233 +- src/models/operations/listatsapplication.ts | 236 +- src/models/operations/listatsattachment.ts | 236 +- src/models/operations/listatscandidate.ts | 233 +- src/models/operations/listatsdepartments.ts | 203 ++ src/models/operations/listatseeocs.ts | 233 +- src/models/operations/listatsinterview.ts | 233 +- src/models/operations/listatsjob.ts | 202 +- .../operations/listatsjobinterviewstage.ts | 261 +- src/models/operations/listatsoffer.ts | 233 +- src/models/operations/listatsoffice.ts | 233 +- src/models/operations/listatsrejectreasons.ts | 203 ++ src/models/operations/listatsscorecard.ts | 233 +- src/models/operations/listatstags.ts | 233 +- src/models/operations/listatsusers.ts | 233 +- src/models/operations/listcrmcompany.ts | 233 +- src/models/operations/listcrmcontacts.ts | 233 +- src/models/operations/listcrmdeals.ts | 233 +- src/models/operations/listcrmengagements.ts | 236 +- src/models/operations/listcrmnote.ts | 233 +- src/models/operations/listcrmstages.ts | 233 +- src/models/operations/listcrmtask.ts | 233 +- src/models/operations/listcrmusers.ts | 233 +- .../operations/listfilestoragedrives.ts | 244 +- src/models/operations/listfilestoragefile.ts | 242 +- .../operations/listfilestoragefolder.ts | 244 +- src/models/operations/listfilestoragegroup.ts | 242 +- src/models/operations/listfilestorageusers.ts | 203 ++ src/models/operations/listhrisbankinfo.ts | 233 +- src/models/operations/listhrisbenefit.ts | 233 +- src/models/operations/listhriscompanys.ts | 233 +- src/models/operations/listhrisdependents.ts | 236 +- src/models/operations/listhrisemployee.ts | 233 +- .../operations/listhrisemployeepayrollrun.ts | 257 +- .../operations/listhrisemployerbenefit.ts | 253 +- src/models/operations/listhrisemployment.ts | 236 +- src/models/operations/listhrisgroup.ts | 233 +- src/models/operations/listhrislocation.ts | 233 +- src/models/operations/listhrispaygroup.ts | 233 +- src/models/operations/listhrispayrollruns.ts | 242 +- .../operations/listhristimeoffbalance.ts | 247 +- src/models/operations/listhristimeoffs.ts | 233 +- src/models/operations/listlinkedusers.ts | 61 +- .../listmarketingautomationaction.ts | 261 +- .../listmarketingautomationautomation.ts | 265 +- .../listmarketingautomationcampaign.ts | 261 +- .../listmarketingautomationcontacts.ts | 203 ++ .../listmarketingautomationemails.ts | 203 ++ .../listmarketingautomationevents.ts | 203 ++ .../listmarketingautomationlists.ts | 203 ++ .../listmarketingautomationmessages.ts | 203 ++ .../listmarketingautomationtemplates.ts | 205 ++ .../listmarketingautomationusers.ts | 203 ++ src/models/operations/listticketingaccount.ts | 242 +- .../operations/listticketingattachments.ts | 261 +- .../operations/listticketingcollections.ts | 261 +- .../operations/listticketingcomments.ts | 244 +- .../operations/listticketingcontacts.ts | 244 +- src/models/operations/listticketingtags.ts | 236 +- src/models/operations/listticketingteams.ts | 236 +- src/models/operations/listticketingticket.ts | 242 +- src/models/operations/listticketingusers.ts | 236 +- src/models/operations/listwebhooks.ts | 71 +- src/models/operations/map.ts | 57 +- src/models/operations/remoteid.ts | 93 +- src/models/operations/request.ts | 142 +- src/models/operations/resync.ts | 57 +- .../operations/retrieveaccountingaccount.ts | 169 +- .../operations/retrieveaccountingaddress.ts | 169 +- .../retrieveaccountingattachment.ts | 172 +- .../retrieveaccountingbalancesheet.ts | 172 +- .../retrieveaccountingcashflowstatement.ts | 174 +- .../retrieveaccountingcompanyinfo.ts | 172 +- .../operations/retrieveaccountingcontact.ts | 169 +- .../retrieveaccountingcreditnote.ts | 172 +- .../operations/retrieveaccountingexpense.ts | 169 +- .../retrieveaccountingincomestatement.ts | 172 +- .../operations/retrieveaccountinginvoice.ts | 169 +- .../operations/retrieveaccountingitem.ts | 158 +- .../retrieveaccountingjournalentry.ts | 172 +- .../operations/retrieveaccountingpayment.ts | 169 +- .../retrieveaccountingphonenumber.ts | 172 +- .../retrieveaccountingpurchaseorder.ts | 172 +- .../operations/retrieveaccountingtaxrate.ts | 169 +- .../retrieveaccountingtrackingcategory.ts | 172 +- .../retrieveaccountingtransaction.ts | 172 +- .../retrieveaccountingvendorcredit.ts | 172 +- src/models/operations/retrieveatsactivity.ts | 149 +- .../operations/retrieveatsapplication.ts | 158 +- .../operations/retrieveatsattachment.ts | 153 +- src/models/operations/retrieveatscandidate.ts | 150 +- .../operations/retrieveatsdepartment.ts | 136 + src/models/operations/retrieveatseeocs.ts | 148 +- src/models/operations/retrieveatsinterview.ts | 150 +- src/models/operations/retrieveatsjob.ts | 148 +- .../retrieveatsjobinterviewstage.ts | 172 +- src/models/operations/retrieveatsoffer.ts | 148 +- src/models/operations/retrieveatsoffice.ts | 148 +- .../operations/retrieveatsrejectreason.ts | 138 + src/models/operations/retrieveatsscorecard.ts | 150 +- src/models/operations/retrieveatstag.ts | 148 +- src/models/operations/retrieveatsuser.ts | 148 +- src/models/operations/retrievecollection.ts | 156 +- src/models/operations/retrievecrmcompany.ts | 148 +- src/models/operations/retrievecrmcontact.ts | 136 + src/models/operations/retrievecrmdeal.ts | 148 +- .../operations/retrievecrmengagement.ts | 153 +- src/models/operations/retrievecrmnote.ts | 148 +- src/models/operations/retrievecrmstage.ts | 148 +- src/models/operations/retrievecrmtask.ts | 148 +- src/models/operations/retrievecrmuser.ts | 148 +- .../operations/retrievefilestoragedrive.ts | 168 +- .../operations/retrievefilestoragefile.ts | 164 +- .../operations/retrievefilestoragefolder.ts | 169 +- .../operations/retrievefilestoragegroup.ts | 168 +- .../operations/retrievefilestorageuser.ts | 136 + src/models/operations/retrievehrisbankinfo.ts | 150 +- src/models/operations/retrievehrisbenefit.ts | 149 +- .../operations/retrievehrisdependent.ts | 153 +- src/models/operations/retrievehrisemployee.ts | 150 +- .../retrievehrisemployeepayrollrun.ts | 172 +- .../operations/retrievehrisemployerbenefit.ts | 172 +- .../operations/retrievehrisemployment.ts | 158 +- src/models/operations/retrievehrisgroup.ts | 148 +- src/models/operations/retrievehrislocation.ts | 150 +- src/models/operations/retrievehrispaygroup.ts | 150 +- src/models/operations/retrievehristimeoff.ts | 149 +- .../operations/retrievehristimeoffbalance.ts | 172 +- src/models/operations/retrievelinkeduser.ts | 106 +- .../retrievemarketingautomationaction.ts | 172 +- .../retrievemarketingautomationautomation.ts | 172 +- .../retrievemarketingautomationcampaign.ts | 164 +- .../retrievemarketingautomationcontact.ts | 142 + .../retrievemarketingautomationemail.ts | 142 + .../retrievemarketingautomationevent.ts | 142 + .../retrievemarketingautomationlist.ts | 142 + .../retrievemarketingautomationmessage.ts | 142 + .../retrievemarketingautomationtemplate.ts | 142 + .../retrievemarketingautomationuser.ts | 142 + .../operations/retrieveticketingaccount.ts | 168 +- .../operations/retrieveticketingattachment.ts | 172 +- .../operations/retrieveticketingcomment.ts | 255 +- .../operations/retrieveticketingcontact.ts | 255 +- src/models/operations/retrieveticketingtag.ts | 150 +- .../operations/retrieveticketingteam.ts | 153 +- .../operations/retrieveticketingticket.ts | 164 +- .../operations/retrieveticketinguser.ts | 153 +- src/models/operations/status.ts | 92 + src/models/operations/updatestatus.ts | 105 + src/models/operations/updatewebhookstatus.ts | 65 - src/models/operations/verifyevent.ts | 71 +- src/sdk/account.ts | 97 +- src/sdk/accounts.ts | 64 +- src/sdk/action.ts | 99 +- src/sdk/activity.ts | 101 +- src/sdk/address.ts | 64 +- src/sdk/application.ts | 97 +- src/sdk/attachment.ts | 97 +- src/sdk/attachments.ts | 97 +- src/sdk/automation.ts | 99 +- src/sdk/balancesheet.ts | 66 +- src/sdk/bankinfo.ts | 64 +- src/sdk/benefit.ts | 66 +- src/sdk/campaign.ts | 99 +- src/sdk/candidate.ts | 99 +- src/sdk/cashflowstatement.ts | 66 +- src/sdk/collections.ts | 64 +- src/sdk/comments.ts | 97 +- src/sdk/companies.ts | 101 +- src/sdk/company.ts | 33 +- src/sdk/companyinfo.ts | 66 +- src/sdk/contact.ts | 138 +- src/sdk/contacts.ts | 64 +- src/sdk/creditnote.ts | 65 +- src/sdk/deals.ts | 101 +- src/sdk/department.ts | 86 +- src/sdk/dependent.ts | 64 +- src/sdk/drives.ts | 64 +- src/sdk/eeocs.ts | 66 +- src/sdk/email.ts | 88 +- src/sdk/employee.ts | 99 +- src/sdk/employeepayrollrun.ts | 66 +- src/sdk/employerbenefit.ts | 64 +- src/sdk/employment.ts | 64 +- src/sdk/engagements.ts | 97 +- src/sdk/event.ts | 87 +- src/sdk/expense.ts | 97 +- src/sdk/fieldmappings.ts | 68 +- src/sdk/files.ts | 97 +- src/sdk/folders.ts | 97 +- src/sdk/group.ts | 66 +- src/sdk/groups.ts | 64 +- src/sdk/incomestatement.ts | 66 +- src/sdk/interview.ts | 99 +- src/sdk/invoice.ts | 97 +- src/sdk/item.ts | 64 +- src/sdk/job.ts | 66 +- src/sdk/jobinterviewstage.ts | 65 +- src/sdk/journalentry.ts | 100 +- src/sdk/linkedusers.ts | 105 +- src/sdk/list.ts | 135 +- src/sdk/location.ts | 64 +- src/sdk/message.ts | 97 +- src/sdk/notes.ts | 101 +- src/sdk/offer.ts | 66 +- src/sdk/office.ts | 66 +- src/sdk/panoraattachment.ts | 100 +- src/sdk/panoracontact.ts | 97 +- src/sdk/panoracontacts.ts | 121 +- src/sdk/panorafilestorageusers.ts | 86 +- src/sdk/panorauser.ts | 66 +- src/sdk/panorausers.ts | 66 +- src/sdk/passthrough.ts | 24 +- src/sdk/paygroup.ts | 64 +- src/sdk/payment.ts | 97 +- src/sdk/payrollrun.ts | 33 +- src/sdk/phonenumber.ts | 66 +- src/sdk/purchaseorder.ts | 99 +- src/sdk/rejectreason.ts | 86 +- src/sdk/scorecard.ts | 64 +- src/sdk/sdk.ts | 105 +- src/sdk/stages.ts | 66 +- src/sdk/sync.ts | 51 +- src/sdk/tag.ts | 66 +- src/sdk/tags.ts | 64 +- src/sdk/tasks.ts | 101 +- src/sdk/taxrate.ts | 64 +- src/sdk/teams.ts | 64 +- src/sdk/template.ts | 141 +- src/sdk/tickets.ts | 97 +- src/sdk/timeoff.ts | 101 +- src/sdk/timeoffbalance.ts | 64 +- src/sdk/trackingcategory.ts | 66 +- src/sdk/transaction.ts | 66 +- src/sdk/user.ts | 87 +- src/sdk/users.ts | 64 +- src/sdk/vendorcredit.ts | 66 +- src/sdk/webhook.ts | 125 +- 652 files changed, 41330 insertions(+), 39143 deletions(-) delete mode 100644 .speakeasy/temp/output_NnUjGiIyrO.yaml delete mode 100644 .speakeasy/temp/output_ZtktLtxTDo.yaml delete mode 100644 .speakeasy/temp/output_eVmPlGGctZ.yaml delete mode 100644 .speakeasy/temp/output_fvxKOYZyEe.yaml delete mode 100644 .speakeasy/temp/output_tNbmQPvnrG.yaml create mode 100644 CONTRIBUTING.md create mode 100644 RELEASES.md create mode 100644 docs/lib/utils/retryconfig.md delete mode 100644 docs/models/operations/appcontrollerhelloresponse.md rename docs/models/operations/{addcrmcontactrequest.md => createcrmcontactrequest.md} (98%) rename docs/models/operations/{addcrmcontactresponse.md => createcrmcontactresponse.md} (98%) rename docs/models/operations/{addmarketingautomationcontactrequest.md => createmarketingautomationcontactrequest.md} (98%) rename docs/models/operations/{addmarketingautomationcontactresponse.md => createmarketingautomationcontactresponse.md} (97%) rename docs/models/operations/{addlistrequest.md => createmarketingautomationlistrequest.md} (98%) rename docs/models/operations/{getlistresponse.md => createmarketingautomationlistresponse.md} (97%) rename docs/models/operations/{addtemplaterequest.md => createmarketingautomationtemplaterequest.md} (98%) rename docs/models/operations/{addtemplateresponse.md => createmarketingautomationtemplateresponse.md} (97%) rename docs/models/operations/{deletewebhookrequest.md => deleterequest.md} (92%) rename docs/models/operations/{deletewebhookresponse.md => deleteresponse.md} (98%) delete mode 100644 docs/models/operations/getdepartmentsresponse.md delete mode 100644 docs/models/operations/getemailsresponse.md delete mode 100644 docs/models/operations/getlistsresponse.md delete mode 100644 docs/models/operations/getmarketingautomationusersrequest.md delete mode 100644 docs/models/operations/getmarketingautomationusersresponse.md delete mode 100644 docs/models/operations/getmessagesrequest.md delete mode 100644 docs/models/operations/getmessagesresponse.md delete mode 100644 docs/models/operations/getrejectreasonsrequest.md delete mode 100644 docs/models/operations/getrejectreasonsresponse.md delete mode 100644 docs/models/operations/gettemplatesrequest.md delete mode 100644 docs/models/operations/gettemplatesresponse.md delete mode 100644 docs/models/operations/getusersrequest.md delete mode 100644 docs/models/operations/getusersresponse.md rename docs/models/operations/{getsyncstatusresponse.md => healthresponse.md} (97%) rename docs/models/operations/{gethealthresponse.md => homeresponse.md} (73%) rename docs/models/operations/{getdepartmentsrequest.md => listatsdepartmentsrequest.md} (98%) create mode 100644 docs/models/operations/listatsdepartmentsresponse.md rename docs/models/operations/{getdepartmentsresponsebody.md => listatsdepartmentsresponsebody.md} (98%) rename docs/models/operations/{getlistsrequest.md => listatsrejectreasonsrequest.md} (97%) create mode 100644 docs/models/operations/listatsrejectreasonsresponse.md rename docs/models/operations/{getrejectreasonsresponsebody.md => listatsrejectreasonsresponsebody.md} (98%) rename docs/models/operations/{getemailsrequest.md => listfilestorageusersrequest.md} (97%) create mode 100644 docs/models/operations/listfilestorageusersresponse.md rename docs/models/operations/{getusersresponsebody.md => listfilestorageusersresponsebody.md} (97%) rename docs/models/operations/{getmarketingautomationcontactsrequest.md => listmarketingautomationcontactsrequest.md} (97%) rename docs/models/operations/{getmarketingautomationcontactsresponse.md => listmarketingautomationcontactsresponse.md} (56%) rename docs/models/operations/{getmarketingautomationcontactsresponsebody.md => listmarketingautomationcontactsresponsebody.md} (98%) create mode 100644 docs/models/operations/listmarketingautomationemailsrequest.md create mode 100644 docs/models/operations/listmarketingautomationemailsresponse.md rename docs/models/operations/{getemailsresponsebody.md => listmarketingautomationemailsresponsebody.md} (98%) create mode 100644 docs/models/operations/listmarketingautomationeventsrequest.md create mode 100644 docs/models/operations/listmarketingautomationeventsresponse.md rename docs/models/operations/{getmarketingautomationeventsresponsebody.md => listmarketingautomationeventsresponsebody.md} (98%) rename docs/models/operations/{getmarketingautomationeventsrequest.md => listmarketingautomationlistsrequest.md} (97%) rename docs/models/operations/{getmarketingautomationeventsresponse.md => listmarketingautomationlistsresponse.md} (91%) rename docs/models/operations/{getlistsresponsebody.md => listmarketingautomationlistsresponsebody.md} (98%) create mode 100644 docs/models/operations/listmarketingautomationmessagesrequest.md create mode 100644 docs/models/operations/listmarketingautomationmessagesresponse.md rename docs/models/operations/{getmessagesresponsebody.md => listmarketingautomationmessagesresponsebody.md} (98%) create mode 100644 docs/models/operations/listmarketingautomationtemplatesrequest.md create mode 100644 docs/models/operations/listmarketingautomationtemplatesresponse.md rename docs/models/operations/{gettemplatesresponsebody.md => listmarketingautomationtemplatesresponsebody.md} (98%) create mode 100644 docs/models/operations/listmarketingautomationusersrequest.md create mode 100644 docs/models/operations/listmarketingautomationusersresponse.md rename docs/models/operations/{getmarketingautomationusersresponsebody.md => listmarketingautomationusersresponsebody.md} (98%) rename docs/models/operations/{getdepartmentrequest.md => retrieveatsdepartmentrequest.md} (97%) rename docs/models/operations/{getdepartmentresponse.md => retrieveatsdepartmentresponse.md} (98%) rename docs/models/operations/{getrejectreasonrequest.md => retrieveatsrejectreasonrequest.md} (97%) rename docs/models/operations/{getrejectreasonresponse.md => retrieveatsrejectreasonresponse.md} (97%) rename docs/models/operations/{getcrmcontactrequest.md => retrievecrmcontactrequest.md} (97%) rename docs/models/operations/{getcrmcontactresponse.md => retrievecrmcontactresponse.md} (98%) rename docs/models/operations/{getuserrequest.md => retrievefilestorageuserrequest.md} (97%) rename docs/models/operations/{getuserresponse.md => retrievefilestorageuserresponse.md} (97%) rename docs/models/operations/{getmarketingautomationcontactrequest.md => retrievemarketingautomationcontactrequest.md} (97%) rename docs/models/operations/{getmarketingautomationcontactresponse.md => retrievemarketingautomationcontactresponse.md} (97%) rename docs/models/operations/{getemailrequest.md => retrievemarketingautomationemailrequest.md} (97%) rename docs/models/operations/{getemailresponse.md => retrievemarketingautomationemailresponse.md} (97%) rename docs/models/operations/{geteventrequest.md => retrievemarketingautomationeventrequest.md} (97%) rename docs/models/operations/{geteventresponse.md => retrievemarketingautomationeventresponse.md} (97%) rename docs/models/operations/{getlistrequest.md => retrievemarketingautomationlistrequest.md} (97%) rename docs/models/operations/{addlistresponse.md => retrievemarketingautomationlistresponse.md} (97%) rename docs/models/operations/{getmessagerequest.md => retrievemarketingautomationmessagerequest.md} (97%) rename docs/models/operations/{getmessageresponse.md => retrievemarketingautomationmessageresponse.md} (97%) rename docs/models/operations/{gettemplaterequest.md => retrievemarketingautomationtemplaterequest.md} (97%) rename docs/models/operations/{gettemplateresponse.md => retrievemarketingautomationtemplateresponse.md} (97%) rename docs/models/operations/{getmarketingautomationuserrequest.md => retrievemarketingautomationuserrequest.md} (97%) rename docs/models/operations/{getmarketingautomationuserresponse.md => retrievemarketingautomationuserresponse.md} (97%) rename docs/models/operations/{getsyncstatusrequest.md => statusrequest.md} (92%) rename docs/models/operations/{gethelloprotectedresponse.md => statusresponse.md} (73%) rename docs/models/operations/{updatewebhookstatusrequest.md => updatestatusrequest.md} (90%) rename docs/models/operations/{updatewebhookstatusresponse.md => updatestatusresponse.md} (97%) delete mode 100644 src/models/operations/addcrmcontact.ts delete mode 100644 src/models/operations/addlist.ts delete mode 100644 src/models/operations/addmarketingautomationcontact.ts delete mode 100644 src/models/operations/addtemplate.ts delete mode 100644 src/models/operations/appcontrollerhello.ts create mode 100644 src/models/operations/createcrmcontact.ts create mode 100644 src/models/operations/createmarketingautomationcontact.ts create mode 100644 src/models/operations/createmarketingautomationlist.ts create mode 100644 src/models/operations/createmarketingautomationtemplate.ts create mode 100644 src/models/operations/delete.ts delete mode 100644 src/models/operations/deletewebhook.ts delete mode 100644 src/models/operations/getcrmcontact.ts delete mode 100644 src/models/operations/getdepartment.ts delete mode 100644 src/models/operations/getdepartments.ts delete mode 100644 src/models/operations/getemail.ts delete mode 100644 src/models/operations/getemails.ts delete mode 100644 src/models/operations/getevent.ts delete mode 100644 src/models/operations/gethealth.ts delete mode 100644 src/models/operations/gethelloprotected.ts delete mode 100644 src/models/operations/getlist.ts delete mode 100644 src/models/operations/getlists.ts delete mode 100644 src/models/operations/getmarketingautomationcontact.ts delete mode 100644 src/models/operations/getmarketingautomationcontacts.ts delete mode 100644 src/models/operations/getmarketingautomationevents.ts delete mode 100644 src/models/operations/getmarketingautomationuser.ts delete mode 100644 src/models/operations/getmarketingautomationusers.ts delete mode 100644 src/models/operations/getmessage.ts delete mode 100644 src/models/operations/getmessages.ts delete mode 100644 src/models/operations/getrejectreason.ts delete mode 100644 src/models/operations/getrejectreasons.ts delete mode 100644 src/models/operations/getsyncstatus.ts delete mode 100644 src/models/operations/gettemplate.ts delete mode 100644 src/models/operations/gettemplates.ts delete mode 100644 src/models/operations/getuser.ts delete mode 100644 src/models/operations/getusers.ts create mode 100644 src/models/operations/health.ts create mode 100644 src/models/operations/home.ts create mode 100644 src/models/operations/listatsdepartments.ts create mode 100644 src/models/operations/listatsrejectreasons.ts create mode 100644 src/models/operations/listfilestorageusers.ts create mode 100644 src/models/operations/listmarketingautomationcontacts.ts create mode 100644 src/models/operations/listmarketingautomationemails.ts create mode 100644 src/models/operations/listmarketingautomationevents.ts create mode 100644 src/models/operations/listmarketingautomationlists.ts create mode 100644 src/models/operations/listmarketingautomationmessages.ts create mode 100644 src/models/operations/listmarketingautomationtemplates.ts create mode 100644 src/models/operations/listmarketingautomationusers.ts create mode 100644 src/models/operations/retrieveatsdepartment.ts create mode 100644 src/models/operations/retrieveatsrejectreason.ts create mode 100644 src/models/operations/retrievecrmcontact.ts create mode 100644 src/models/operations/retrievefilestorageuser.ts create mode 100644 src/models/operations/retrievemarketingautomationcontact.ts create mode 100644 src/models/operations/retrievemarketingautomationemail.ts create mode 100644 src/models/operations/retrievemarketingautomationevent.ts create mode 100644 src/models/operations/retrievemarketingautomationlist.ts create mode 100644 src/models/operations/retrievemarketingautomationmessage.ts create mode 100644 src/models/operations/retrievemarketingautomationtemplate.ts create mode 100644 src/models/operations/retrievemarketingautomationuser.ts create mode 100644 src/models/operations/status.ts create mode 100644 src/models/operations/updatestatus.ts delete mode 100644 src/models/operations/updatewebhookstatus.ts diff --git a/.gitignore b/.gitignore index cc2681a5..cf20f5e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +/esm +/dist +/.tshy +/.tshy-* /models /models/errors /types diff --git a/.npmignore b/.npmignore index 709e6847..3ef05d12 100644 --- a/.npmignore +++ b/.npmignore @@ -5,3 +5,5 @@ /.eslintrc.js /cjs +/.tshy +/.tshy-* diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c185079f..5385b789 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,17 +1,21 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: 84dafe848c90c6ee89f4b59ae410590c + docChecksum: d6e2038538b5382109387fa73ed3af43 docVersion: "1.0" - speakeasyVersion: 1.312.1 - generationVersion: 2.347.8 - releaseVersion: 0.0.1 - configChecksum: 204e761065abbf826f2d9acfe01c9bca + speakeasyVersion: 1.345.4 + generationVersion: 2.378.3 + releaseVersion: 0.1.0 + configChecksum: 971f392be517b43cd1543e3907b05fc4 + repoURL: https://github.com/panoratech/typescript-sdk.git + installationURL: https://github.com/panoratech/typescript-sdk + published: true features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.5 - core: 3.10.1 + core: 3.11.9 + defaultEnabledRetries: 0.1.0 globalSecurity: 2.82.9 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 @@ -19,6 +23,7 @@ features: groups: 2.81.2 nameOverrides: 2.81.2 responseFormat: 0.2.3 + retries: 2.83.0 sdkHooks: 0.1.0 generatedFiles: - src/sdk/webhook.ts @@ -141,13 +146,12 @@ generatedFiles: - src/types/operations.ts - src/types/rfcdate.ts - tsconfig.json - - src/models/operations/appcontrollerhello.ts - - src/models/operations/gethealth.ts - - src/models/operations/gethelloprotected.ts + - src/models/operations/home.ts + - src/models/operations/health.ts - src/models/operations/listwebhooks.ts - src/models/operations/createwebhook.ts - - src/models/operations/deletewebhook.ts - - src/models/operations/updatewebhookstatus.ts + - src/models/operations/delete.ts + - src/models/operations/updatestatus.ts - src/models/operations/verifyevent.ts - src/models/operations/listticketingticket.ts - src/models/operations/createticketingticket.ts @@ -170,14 +174,14 @@ generatedFiles: - src/models/operations/listticketingattachments.ts - src/models/operations/createticketingattachment.ts - src/models/operations/retrieveticketingattachment.ts - - src/models/operations/getsyncstatus.ts + - src/models/operations/status.ts - src/models/operations/resync.ts - src/models/operations/listcrmcompany.ts - src/models/operations/createcrmcompany.ts - src/models/operations/retrievecrmcompany.ts - src/models/operations/listcrmcontacts.ts - - src/models/operations/addcrmcontact.ts - - src/models/operations/getcrmcontact.ts + - src/models/operations/createcrmcontact.ts + - src/models/operations/retrievecrmcontact.ts - src/models/operations/listcrmdeals.ts - src/models/operations/createcrmdeal.ts - src/models/operations/retrievecrmdeal.ts @@ -240,23 +244,23 @@ generatedFiles: - src/models/operations/listmarketingautomationcampaign.ts - src/models/operations/createmarketingautomationcampaign.ts - src/models/operations/retrievemarketingautomationcampaign.ts - - src/models/operations/getmarketingautomationcontacts.ts - - src/models/operations/addmarketingautomationcontact.ts - - src/models/operations/getmarketingautomationcontact.ts - - src/models/operations/getemails.ts - - src/models/operations/getemail.ts - - src/models/operations/getmarketingautomationevents.ts - - src/models/operations/getevent.ts - - src/models/operations/getlists.ts - - src/models/operations/addlist.ts - - src/models/operations/getlist.ts - - src/models/operations/getmessages.ts - - src/models/operations/getmessage.ts - - src/models/operations/gettemplates.ts - - src/models/operations/addtemplate.ts - - src/models/operations/gettemplate.ts - - src/models/operations/getmarketingautomationusers.ts - - src/models/operations/getmarketingautomationuser.ts + - src/models/operations/listmarketingautomationcontacts.ts + - src/models/operations/createmarketingautomationcontact.ts + - src/models/operations/retrievemarketingautomationcontact.ts + - src/models/operations/listmarketingautomationemails.ts + - src/models/operations/retrievemarketingautomationemail.ts + - src/models/operations/listmarketingautomationevents.ts + - src/models/operations/retrievemarketingautomationevent.ts + - src/models/operations/listmarketingautomationlists.ts + - src/models/operations/createmarketingautomationlist.ts + - src/models/operations/retrievemarketingautomationlist.ts + - src/models/operations/listmarketingautomationmessages.ts + - src/models/operations/retrievemarketingautomationmessage.ts + - src/models/operations/listmarketingautomationtemplates.ts + - src/models/operations/createmarketingautomationtemplate.ts + - src/models/operations/retrievemarketingautomationtemplate.ts + - src/models/operations/listmarketingautomationusers.ts + - src/models/operations/retrievemarketingautomationuser.ts - src/models/operations/listatsactivity.ts - src/models/operations/createatsactivity.ts - src/models/operations/retrieveatsactivity.ts @@ -269,8 +273,8 @@ generatedFiles: - src/models/operations/listatscandidate.ts - src/models/operations/createatscandidate.ts - src/models/operations/retrieveatscandidate.ts - - src/models/operations/getdepartments.ts - - src/models/operations/getdepartment.ts + - src/models/operations/listatsdepartments.ts + - src/models/operations/retrieveatsdepartment.ts - src/models/operations/listatsinterview.ts - src/models/operations/createatsinterview.ts - src/models/operations/retrieveatsinterview.ts @@ -282,8 +286,8 @@ generatedFiles: - src/models/operations/retrieveatsoffer.ts - src/models/operations/listatsoffice.ts - src/models/operations/retrieveatsoffice.ts - - src/models/operations/getrejectreasons.ts - - src/models/operations/getrejectreason.ts + - src/models/operations/listatsrejectreasons.ts + - src/models/operations/retrieveatsrejectreason.ts - src/models/operations/listatsscorecard.ts - src/models/operations/retrieveatsscorecard.ts - src/models/operations/listatstags.ts @@ -350,8 +354,8 @@ generatedFiles: - src/models/operations/retrievefilestoragefolder.ts - src/models/operations/listfilestoragegroup.ts - src/models/operations/retrievefilestoragegroup.ts - - src/models/operations/getusers.ts - - src/models/operations/getuser.ts + - src/models/operations/listfilestorageusers.ts + - src/models/operations/retrievefilestorageuser.ts - src/models/components/httpmetadata.ts - src/models/components/webhookresponse.ts - src/models/components/webhookdto.ts @@ -485,15 +489,14 @@ generatedFiles: - src/models/errors/index.ts - src/models/operations/index.ts - src/models/components/index.ts - - docs/models/operations/appcontrollerhelloresponse.md - - docs/models/operations/gethealthresponse.md - - docs/models/operations/gethelloprotectedresponse.md + - docs/models/operations/homeresponse.md + - docs/models/operations/healthresponse.md - docs/models/operations/listwebhooksresponse.md - docs/models/operations/createwebhookresponse.md - - docs/models/operations/deletewebhookrequest.md - - docs/models/operations/deletewebhookresponse.md - - docs/models/operations/updatewebhookstatusrequest.md - - docs/models/operations/updatewebhookstatusresponse.md + - docs/models/operations/deleterequest.md + - docs/models/operations/deleteresponse.md + - docs/models/operations/updatestatusrequest.md + - docs/models/operations/updatestatusresponse.md - docs/models/operations/verifyeventresponse.md - docs/models/operations/listticketingticketrequest.md - docs/models/operations/listticketingticketresponsebody.md @@ -548,8 +551,8 @@ generatedFiles: - docs/models/operations/createticketingattachmentresponse.md - docs/models/operations/retrieveticketingattachmentrequest.md - docs/models/operations/retrieveticketingattachmentresponse.md - - docs/models/operations/getsyncstatusrequest.md - - docs/models/operations/getsyncstatusresponse.md + - docs/models/operations/statusrequest.md + - docs/models/operations/statusresponse.md - docs/models/operations/resyncresponse.md - docs/models/operations/listcrmcompanyrequest.md - docs/models/operations/listcrmcompanyresponsebody.md @@ -561,10 +564,10 @@ generatedFiles: - docs/models/operations/listcrmcontactsrequest.md - docs/models/operations/listcrmcontactsresponsebody.md - docs/models/operations/listcrmcontactsresponse.md - - docs/models/operations/addcrmcontactrequest.md - - docs/models/operations/addcrmcontactresponse.md - - docs/models/operations/getcrmcontactrequest.md - - docs/models/operations/getcrmcontactresponse.md + - docs/models/operations/createcrmcontactrequest.md + - docs/models/operations/createcrmcontactresponse.md + - docs/models/operations/retrievecrmcontactrequest.md + - docs/models/operations/retrievecrmcontactresponse.md - docs/models/operations/listcrmdealsrequest.md - docs/models/operations/listcrmdealsresponsebody.md - docs/models/operations/listcrmdealsresponse.md @@ -706,47 +709,47 @@ generatedFiles: - docs/models/operations/createmarketingautomationcampaignresponse.md - docs/models/operations/retrievemarketingautomationcampaignrequest.md - docs/models/operations/retrievemarketingautomationcampaignresponse.md - - docs/models/operations/getmarketingautomationcontactsrequest.md - - docs/models/operations/getmarketingautomationcontactsresponsebody.md - - docs/models/operations/getmarketingautomationcontactsresponse.md - - docs/models/operations/addmarketingautomationcontactrequest.md - - docs/models/operations/addmarketingautomationcontactresponse.md - - docs/models/operations/getmarketingautomationcontactrequest.md - - docs/models/operations/getmarketingautomationcontactresponse.md - - docs/models/operations/getemailsrequest.md - - docs/models/operations/getemailsresponsebody.md - - docs/models/operations/getemailsresponse.md - - docs/models/operations/getemailrequest.md - - docs/models/operations/getemailresponse.md - - docs/models/operations/getmarketingautomationeventsrequest.md - - docs/models/operations/getmarketingautomationeventsresponsebody.md - - docs/models/operations/getmarketingautomationeventsresponse.md - - docs/models/operations/geteventrequest.md - - docs/models/operations/geteventresponse.md - - docs/models/operations/getlistsrequest.md - - docs/models/operations/getlistsresponsebody.md - - docs/models/operations/getlistsresponse.md - - docs/models/operations/addlistrequest.md - - docs/models/operations/addlistresponse.md - - docs/models/operations/getlistrequest.md - - docs/models/operations/getlistresponse.md - - docs/models/operations/getmessagesrequest.md - - docs/models/operations/getmessagesresponsebody.md - - docs/models/operations/getmessagesresponse.md - - docs/models/operations/getmessagerequest.md - - docs/models/operations/getmessageresponse.md - - docs/models/operations/gettemplatesrequest.md - - docs/models/operations/gettemplatesresponsebody.md - - docs/models/operations/gettemplatesresponse.md - - docs/models/operations/addtemplaterequest.md - - docs/models/operations/addtemplateresponse.md - - docs/models/operations/gettemplaterequest.md - - docs/models/operations/gettemplateresponse.md - - docs/models/operations/getmarketingautomationusersrequest.md - - docs/models/operations/getmarketingautomationusersresponsebody.md - - docs/models/operations/getmarketingautomationusersresponse.md - - docs/models/operations/getmarketingautomationuserrequest.md - - docs/models/operations/getmarketingautomationuserresponse.md + - docs/models/operations/listmarketingautomationcontactsrequest.md + - docs/models/operations/listmarketingautomationcontactsresponsebody.md + - docs/models/operations/listmarketingautomationcontactsresponse.md + - docs/models/operations/createmarketingautomationcontactrequest.md + - docs/models/operations/createmarketingautomationcontactresponse.md + - docs/models/operations/retrievemarketingautomationcontactrequest.md + - docs/models/operations/retrievemarketingautomationcontactresponse.md + - docs/models/operations/listmarketingautomationemailsrequest.md + - docs/models/operations/listmarketingautomationemailsresponsebody.md + - docs/models/operations/listmarketingautomationemailsresponse.md + - docs/models/operations/retrievemarketingautomationemailrequest.md + - docs/models/operations/retrievemarketingautomationemailresponse.md + - docs/models/operations/listmarketingautomationeventsrequest.md + - docs/models/operations/listmarketingautomationeventsresponsebody.md + - docs/models/operations/listmarketingautomationeventsresponse.md + - docs/models/operations/retrievemarketingautomationeventrequest.md + - docs/models/operations/retrievemarketingautomationeventresponse.md + - docs/models/operations/listmarketingautomationlistsrequest.md + - docs/models/operations/listmarketingautomationlistsresponsebody.md + - docs/models/operations/listmarketingautomationlistsresponse.md + - docs/models/operations/createmarketingautomationlistrequest.md + - docs/models/operations/createmarketingautomationlistresponse.md + - docs/models/operations/retrievemarketingautomationlistrequest.md + - docs/models/operations/retrievemarketingautomationlistresponse.md + - docs/models/operations/listmarketingautomationmessagesrequest.md + - docs/models/operations/listmarketingautomationmessagesresponsebody.md + - docs/models/operations/listmarketingautomationmessagesresponse.md + - docs/models/operations/retrievemarketingautomationmessagerequest.md + - docs/models/operations/retrievemarketingautomationmessageresponse.md + - docs/models/operations/listmarketingautomationtemplatesrequest.md + - docs/models/operations/listmarketingautomationtemplatesresponsebody.md + - docs/models/operations/listmarketingautomationtemplatesresponse.md + - docs/models/operations/createmarketingautomationtemplaterequest.md + - docs/models/operations/createmarketingautomationtemplateresponse.md + - docs/models/operations/retrievemarketingautomationtemplaterequest.md + - docs/models/operations/retrievemarketingautomationtemplateresponse.md + - docs/models/operations/listmarketingautomationusersrequest.md + - docs/models/operations/listmarketingautomationusersresponsebody.md + - docs/models/operations/listmarketingautomationusersresponse.md + - docs/models/operations/retrievemarketingautomationuserrequest.md + - docs/models/operations/retrievemarketingautomationuserresponse.md - docs/models/operations/listatsactivityrequest.md - docs/models/operations/listatsactivityresponsebody.md - docs/models/operations/listatsactivityresponse.md @@ -775,11 +778,11 @@ generatedFiles: - docs/models/operations/createatscandidateresponse.md - docs/models/operations/retrieveatscandidaterequest.md - docs/models/operations/retrieveatscandidateresponse.md - - docs/models/operations/getdepartmentsrequest.md - - docs/models/operations/getdepartmentsresponsebody.md - - docs/models/operations/getdepartmentsresponse.md - - docs/models/operations/getdepartmentrequest.md - - docs/models/operations/getdepartmentresponse.md + - docs/models/operations/listatsdepartmentsrequest.md + - docs/models/operations/listatsdepartmentsresponsebody.md + - docs/models/operations/listatsdepartmentsresponse.md + - docs/models/operations/retrieveatsdepartmentrequest.md + - docs/models/operations/retrieveatsdepartmentresponse.md - docs/models/operations/listatsinterviewrequest.md - docs/models/operations/listatsinterviewresponsebody.md - docs/models/operations/listatsinterviewresponse.md @@ -807,11 +810,11 @@ generatedFiles: - docs/models/operations/listatsofficeresponse.md - docs/models/operations/retrieveatsofficerequest.md - docs/models/operations/retrieveatsofficeresponse.md - - docs/models/operations/getrejectreasonsrequest.md - - docs/models/operations/getrejectreasonsresponsebody.md - - docs/models/operations/getrejectreasonsresponse.md - - docs/models/operations/getrejectreasonrequest.md - - docs/models/operations/getrejectreasonresponse.md + - docs/models/operations/listatsrejectreasonsrequest.md + - docs/models/operations/listatsrejectreasonsresponsebody.md + - docs/models/operations/listatsrejectreasonsresponse.md + - docs/models/operations/retrieveatsrejectreasonrequest.md + - docs/models/operations/retrieveatsrejectreasonresponse.md - docs/models/operations/listatsscorecardrequest.md - docs/models/operations/listatsscorecardresponsebody.md - docs/models/operations/listatsscorecardresponse.md @@ -972,11 +975,11 @@ generatedFiles: - docs/models/operations/listfilestoragegroupresponse.md - docs/models/operations/retrievefilestoragegrouprequest.md - docs/models/operations/retrievefilestoragegroupresponse.md - - docs/models/operations/getusersrequest.md - - docs/models/operations/getusersresponsebody.md - - docs/models/operations/getusersresponse.md - - docs/models/operations/getuserrequest.md - - docs/models/operations/getuserresponse.md + - docs/models/operations/listfilestorageusersrequest.md + - docs/models/operations/listfilestorageusersresponsebody.md + - docs/models/operations/listfilestorageusersresponse.md + - docs/models/operations/retrievefilestorageuserrequest.md + - docs/models/operations/retrievefilestorageuserresponse.md - docs/models/components/httpmetadata.md - docs/models/components/webhookresponse.md - docs/models/components/webhookdto.md @@ -1271,6 +1274,7 @@ generatedFiles: - docs/models/components/unifieduseroutputmodifiedat.md - docs/models/components/unifieduseroutput.md - docs/models/components/security.md + - docs/lib/utils/retryconfig.md - docs/sdks/panora/README.md - docs/sdks/webhook/README.md - docs/sdks/ticketing/README.md @@ -1370,3 +1374,4 @@ generatedFiles: - src/hooks/hooks.ts - src/hooks/types.ts - src/hooks/index.ts + - CONTRIBUTING.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index cd472087..9eee578b 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.0.1 + version: 0.1.0 additionalDependencies: dependencies: {} devDependencies: {} @@ -33,6 +33,7 @@ typescript: inputModelSuffix: input maxMethodParams: 0 methodArguments: require-security-and-request + moduleFormat: commonjs outputModelSuffix: output packageName: '@panora/sdk' responseFormat: envelope-http diff --git a/.speakeasy/temp/output_NnUjGiIyrO.yaml b/.speakeasy/temp/output_NnUjGiIyrO.yaml deleted file mode 100644 index 1cddcbdf..00000000 --- a/.speakeasy/temp/output_NnUjGiIyrO.yaml +++ /dev/null @@ -1,2603 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Panora/packages/api/swagger/swagger-spec.yaml at be34cd6ba4bd71a3db58eed14d74535413edb325 · panoratech/Panora · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - Panora - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
10835 lines (10835 loc) · 312 KB

swagger-spec.yaml

File metadata and controls

10835 lines (10835 loc) · 312 KB
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - diff --git a/.speakeasy/temp/output_ZtktLtxTDo.yaml b/.speakeasy/temp/output_ZtktLtxTDo.yaml deleted file mode 100644 index c07f2f21..00000000 --- a/.speakeasy/temp/output_ZtktLtxTDo.yaml +++ /dev/null @@ -1,1878 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Panora/packages/api/swagger/swagger-spec.yaml at main · panoratech/Panora · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - Panora - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - diff --git a/.speakeasy/temp/output_eVmPlGGctZ.yaml b/.speakeasy/temp/output_eVmPlGGctZ.yaml deleted file mode 100644 index 56ac0826..00000000 --- a/.speakeasy/temp/output_eVmPlGGctZ.yaml +++ /dev/null @@ -1,2603 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Panora/packages/api/swagger/swagger-spec.yaml at main · panoratech/Panora · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - Panora - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
10835 lines (10835 loc) · 312 KB

swagger-spec.yaml

File metadata and controls

10835 lines (10835 loc) · 312 KB
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - diff --git a/.speakeasy/temp/output_fvxKOYZyEe.yaml b/.speakeasy/temp/output_fvxKOYZyEe.yaml deleted file mode 100644 index d1226c14..00000000 --- a/.speakeasy/temp/output_fvxKOYZyEe.yaml +++ /dev/null @@ -1,2603 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Panora/packages/api/swagger/swagger-spec.yaml at main · panoratech/Panora · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - Panora - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
10835 lines (10835 loc) · 312 KB

swagger-spec.yaml

File metadata and controls

10835 lines (10835 loc) · 312 KB
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - diff --git a/.speakeasy/temp/output_tNbmQPvnrG.yaml b/.speakeasy/temp/output_tNbmQPvnrG.yaml deleted file mode 100644 index db3ea9d6..00000000 --- a/.speakeasy/temp/output_tNbmQPvnrG.yaml +++ /dev/null @@ -1,2603 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Panora/packages/api/swagger/swagger-spec.yaml at main · panoratech/Panora · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - Panora - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
10835 lines (10835 loc) · 312 KB

swagger-spec.yaml

File metadata and controls

10835 lines (10835 loc) · 312 KB
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e3d015b3..14bd802a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,22 @@ -speakeasyVersion: 1.312.1 +speakeasyVersion: 1.345.4 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:b9f137773d782f0a2d6cb291328883321b832af65853ecbcfa4d91ca29b9c7c3 - sourceBlobDigest: sha256:6ed6491b448c3f05d4836b9956f9e590ac719445aee7197ac143618f4f55b94b + sourceRevisionDigest: sha256:894b7cceb58624301f7d7ca1ab6a8993d3c06fffea031804fcdca248c859a387 + sourceBlobDigest: sha256:a4bcf6678cf4d234dd01f12982b30dbbcd8fd33ace1f7f797b77e9f79fafc52b tags: - latest + - main targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:b9f137773d782f0a2d6cb291328883321b832af65853ecbcfa4d91ca29b9c7c3 - sourceBlobDigest: sha256:6ed6491b448c3f05d4836b9956f9e590ac719445aee7197ac143618f4f55b94b - outLocation: /Users/nael/Desktop/typescript-sdk/panora-typescript + sourceRevisionDigest: sha256:894b7cceb58624301f7d7ca1ab6a8993d3c06fffea031804fcdca248c859a387 + sourceBlobDigest: sha256:a4bcf6678cf4d234dd01f12982b30dbbcd8fd33ace1f7f797b77e9f79fafc52b + outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 + speakeasyVersion: latest sources: panora-open-api-swagger: inputs: @@ -25,3 +27,6 @@ workflow: my-first-target: target: typescript source: panora-open-api-swagger + publish: + npm: + token: $npm_token diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 7855700f..24a5a731 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -1,4 +1,5 @@ workflowVersion: 1.0.0 +speakeasyVersion: latest sources: panora-open-api-swagger: inputs: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d585717f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/README.md b/README.md index 2fdb27f7..3a7cacd4 100644 --- a/README.md +++ b/README.md @@ -22,25 +22,25 @@ It has been generated successfully based on your OpenAPI spec. However, it is no ### NPM ```bash -npm add +npm add @panora/sdk ``` ### PNPM ```bash -pnpm add +pnpm add @panora/sdk ``` ### Bun ```bash -bun add +bun add @panora/sdk ``` ### Yarn ```bash -yarn add zod +yarn add @panora/sdk zod # Note that Yarn does not install peer dependencies automatically. You will need # to install zod as shown above. @@ -66,7 +66,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result); @@ -82,16 +82,15 @@ run(); ### [Panora SDK](docs/sdks/panora/README.md) -* [appControllerHello](docs/sdks/panora/README.md#appcontrollerhello) -* [getHealth](docs/sdks/panora/README.md#gethealth) -* [getHelloProtected](docs/sdks/panora/README.md#gethelloprotected) +* [home](docs/sdks/panora/README.md#home) +* [health](docs/sdks/panora/README.md#health) ### [webhook](docs/sdks/webhook/README.md) * [list](docs/sdks/webhook/README.md#list) - List webhooks * [create](docs/sdks/webhook/README.md#create) - Add webhook metadata -* [deleteWebhook](docs/sdks/webhook/README.md#deletewebhook) - Delete Webhook -* [updateWebhookStatus](docs/sdks/webhook/README.md#updatewebhookstatus) - Update webhook status +* [delete](docs/sdks/webhook/README.md#delete) - Delete Webhook +* [updateStatus](docs/sdks/webhook/README.md#updatestatus) - Update webhook status * [verifyEvent](docs/sdks/webhook/README.md#verifyevent) - Verify payload sgnature of the webhook @@ -145,7 +144,7 @@ run(); ### [sync](docs/sdks/sync/README.md) -* [getSyncStatus](docs/sdks/sync/README.md#getsyncstatus) - Retrieve sync status of a certain vertical +* [status](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical * [resync](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical @@ -158,8 +157,8 @@ run(); ### [crm.contacts](docs/sdks/panoracontacts/README.md) * [list](docs/sdks/panoracontacts/README.md#list) - List CRM Contacts -* [addCrmContact](docs/sdks/panoracontacts/README.md#addcrmcontact) - Create CRM Contact -* [getCrmContact](docs/sdks/panoracontacts/README.md#getcrmcontact) - Retrieve a CRM Contact +* [create](docs/sdks/panoracontacts/README.md#create) - Create CRM Contact +* [retrieve](docs/sdks/panoracontacts/README.md#retrieve) - Retrieve a CRM Contact ### [crm.deals](docs/sdks/deals/README.md) @@ -305,41 +304,41 @@ run(); ### [marketingautomation.contact](docs/sdks/contact/README.md) -* [getMarketingAutomationContacts](docs/sdks/contact/README.md#getmarketingautomationcontacts) - List a batch of Contacts -* [addMarketingAutomationContact](docs/sdks/contact/README.md#addmarketingautomationcontact) - Create a Contact -* [getMarketingAutomationContact](docs/sdks/contact/README.md#getmarketingautomationcontact) - Retrieve a Contact +* [list](docs/sdks/contact/README.md#list) - List a batch of Contacts +* [create](docs/sdks/contact/README.md#create) - Create a Contact +* [retrieve](docs/sdks/contact/README.md#retrieve) - Retrieve a Contact ### [marketingautomation.email](docs/sdks/email/README.md) -* [getEmails](docs/sdks/email/README.md#getemails) - List a batch of Emails -* [getEmail](docs/sdks/email/README.md#getemail) - Retrieve a Email +* [list](docs/sdks/email/README.md#list) - List a batch of Emails +* [retrieve](docs/sdks/email/README.md#retrieve) - Retrieve a Email ### [marketingautomation.event](docs/sdks/event/README.md) -* [getMarketingAutomationEvents](docs/sdks/event/README.md#getmarketingautomationevents) - List a batch of Events -* [getEvent](docs/sdks/event/README.md#getevent) - Retrieve a Event +* [list](docs/sdks/event/README.md#list) - List a batch of Events +* [retrieve](docs/sdks/event/README.md#retrieve) - Retrieve a Event ### [marketingautomation.list](docs/sdks/list/README.md) -* [getLists](docs/sdks/list/README.md#getlists) - List a batch of Lists -* [addList](docs/sdks/list/README.md#addlist) - Create a List -* [getList](docs/sdks/list/README.md#getlist) - Retrieve a List +* [list](docs/sdks/list/README.md#list) - List a batch of Lists +* [create](docs/sdks/list/README.md#create) - Create a List +* [retrieve](docs/sdks/list/README.md#retrieve) - Retrieve a List ### [marketingautomation.message](docs/sdks/message/README.md) -* [getMessages](docs/sdks/message/README.md#getmessages) - List a batch of Messages -* [getMessage](docs/sdks/message/README.md#getmessage) - Retrieve a Message +* [list](docs/sdks/message/README.md#list) - List a batch of Messages +* [retrieve](docs/sdks/message/README.md#retrieve) - Retrieve a Message ### [marketingautomation.template](docs/sdks/template/README.md) -* [getTemplates](docs/sdks/template/README.md#gettemplates) - List a batch of Templates -* [addTemplate](docs/sdks/template/README.md#addtemplate) - Create a Template -* [getTemplate](docs/sdks/template/README.md#gettemplate) - Retrieve a Template +* [list](docs/sdks/template/README.md#list) - List a batch of Templates +* [create](docs/sdks/template/README.md#create) - Create a Template +* [retrieve](docs/sdks/template/README.md#retrieve) - Retrieve a Template ### [marketingautomation.user](docs/sdks/user/README.md) -* [getMarketingAutomationUsers](docs/sdks/user/README.md#getmarketingautomationusers) - List a batch of Users -* [getMarketingAutomationUser](docs/sdks/user/README.md#getmarketingautomationuser) - Retrieve a User +* [list](docs/sdks/user/README.md#list) - List a batch of Users +* [retrieve](docs/sdks/user/README.md#retrieve) - Retrieve a User ### [ats.activity](docs/sdks/activity/README.md) @@ -368,8 +367,8 @@ run(); ### [ats.department](docs/sdks/department/README.md) -* [getDepartments](docs/sdks/department/README.md#getdepartments) - List a batch of Departments -* [getDepartment](docs/sdks/department/README.md#getdepartment) - Retrieve a Department +* [list](docs/sdks/department/README.md#list) - List a batch of Departments +* [retrieve](docs/sdks/department/README.md#retrieve) - Retrieve a Department ### [ats.interview](docs/sdks/interview/README.md) @@ -399,8 +398,8 @@ run(); ### [ats.rejectreason](docs/sdks/rejectreason/README.md) -* [getRejectReasons](docs/sdks/rejectreason/README.md#getrejectreasons) - List a batch of RejectReasons -* [getRejectReason](docs/sdks/rejectreason/README.md#getrejectreason) - Retrieve a RejectReason +* [list](docs/sdks/rejectreason/README.md#list) - List a batch of RejectReasons +* [retrieve](docs/sdks/rejectreason/README.md#retrieve) - Retrieve a RejectReason ### [ats.scorecard](docs/sdks/scorecard/README.md) @@ -556,8 +555,8 @@ run(); ### [filestorage.users](docs/sdks/panorafilestorageusers/README.md) -* [getUsers](docs/sdks/panorafilestorageusers/README.md#getusers) - List a batch of Users -* [getUser](docs/sdks/panorafilestorageusers/README.md#getuser) - Retrieve a User +* [list](docs/sdks/panorafilestorageusers/README.md#list) - List a batch of Users +* [retrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve a User @@ -583,7 +582,7 @@ const panora = new Panora({ async function run() { let result; try { - result = await panora.appControllerHello(); + result = await panora.home(); } catch (err) { switch (true) { case err instanceof SDKValidationError: { @@ -629,7 +628,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result); @@ -653,7 +652,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result); @@ -733,7 +732,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result); @@ -744,6 +743,71 @@ run(); ``` + +## Retries + +Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. + +To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora({ + bearer: "", +}); + +async function run() { + const result = await panora.home({ + retries: { + strategy: "backoff", + backoff: { + initialInterval: 1, + maxInterval: 50, + exponent: 1.1, + maxElapsedTime: 100, + }, + retryConnectionErrors: false, + }, + }); + + // Handle the result + console.log(result); +} + +run(); + +``` + +If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora({ + retryConfig: { + strategy: "backoff", + backoff: { + initialInterval: 1, + maxInterval: 50, + exponent: 1.1, + maxElapsedTime: 100, + }, + retryConnectionErrors: false, + }, + bearer: "", +}); + +async function run() { + const result = await panora.home(); + + // Handle the result + console.log(result); +} + +run(); + +``` + + # Development diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 00000000..9c71df0d --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,11 @@ + + +## 2024-07-25 06:24:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.345.4 (2.378.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.1.0] . +### Releases +- [NPM v0.1.0] https://www.npmjs.com/package/@panora/sdk/v/0.1.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index 71fa3dae..d08a0c07 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -3,7 +3,7 @@ This SDK is intended to be used in JavaScript runtimes that support the following features: * [Web Fetch API][web-fetch] -* [Web Streams API](web-streams) and in particular `ReadableStream` +* [Web Streams API][web-streams] and in particular `ReadableStream` * [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API diff --git a/USAGE.md b/USAGE.md index 728e9785..9f024e28 100644 --- a/USAGE.md +++ b/USAGE.md @@ -7,7 +7,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result); diff --git a/docs/lib/utils/retryconfig.md b/docs/lib/utils/retryconfig.md new file mode 100644 index 00000000..08f95f45 --- /dev/null +++ b/docs/lib/utils/retryconfig.md @@ -0,0 +1,24 @@ +# RetryConfig + +Allows customizing the default retry configuration. It is only permitted in methods that accept retry policies. + +## Fields + +| Name | Type | Description | Example | +| ------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------ | ----------- | +| `strategy` | `"backoff" | "none"` | The retry strategy to use. | `"backoff"` | +| `backoff` | [BackoffStrategy](#backoffstrategy) | When strategy is "backoff", this configurates for the backoff parameters. | | +| `retryConnectionErrors` | `*boolean*` | When strategy is "backoff", this determines whether or not to retry on connection errors. | `true` | + +## BackoffStrategy + +The backoff strategy allows retrying a request with an exponential backoff between each retry. + +### Fields + +| Name | Type | Description | Example | +| ------------------ | ------------ | ----------------------------------------- | -------- | +| `initialInterval` | `*number*` | The initial interval in milliseconds. | `500` | +| `maxInterval` | `*number*` | The maximum interval in milliseconds. | `60000` | +| `exponent` | `*number*` | The exponent to use for the backoff. | `1.5` | +| `maxElapsedTime` | `*number*` | The maximum elapsed time in milliseconds. | `300000` | \ No newline at end of file diff --git a/docs/models/operations/appcontrollerhelloresponse.md b/docs/models/operations/appcontrollerhelloresponse.md deleted file mode 100644 index a76adf98..00000000 --- a/docs/models/operations/appcontrollerhelloresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# AppControllerHelloResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `string` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/addcrmcontactrequest.md b/docs/models/operations/createcrmcontactrequest.md similarity index 98% rename from docs/models/operations/addcrmcontactrequest.md rename to docs/models/operations/createcrmcontactrequest.md index 5058048f..6e77410d 100644 --- a/docs/models/operations/addcrmcontactrequest.md +++ b/docs/models/operations/createcrmcontactrequest.md @@ -1,4 +1,4 @@ -# AddCrmContactRequest +# CreateCrmContactRequest ## Fields diff --git a/docs/models/operations/addcrmcontactresponse.md b/docs/models/operations/createcrmcontactresponse.md similarity index 98% rename from docs/models/operations/addcrmcontactresponse.md rename to docs/models/operations/createcrmcontactresponse.md index d628f256..9546177f 100644 --- a/docs/models/operations/addcrmcontactresponse.md +++ b/docs/models/operations/createcrmcontactresponse.md @@ -1,4 +1,4 @@ -# AddCrmContactResponse +# CreateCrmContactResponse ## Fields diff --git a/docs/models/operations/addmarketingautomationcontactrequest.md b/docs/models/operations/createmarketingautomationcontactrequest.md similarity index 98% rename from docs/models/operations/addmarketingautomationcontactrequest.md rename to docs/models/operations/createmarketingautomationcontactrequest.md index 63898781..f19356e6 100644 --- a/docs/models/operations/addmarketingautomationcontactrequest.md +++ b/docs/models/operations/createmarketingautomationcontactrequest.md @@ -1,4 +1,4 @@ -# AddMarketingAutomationContactRequest +# CreateMarketingAutomationContactRequest ## Fields diff --git a/docs/models/operations/addmarketingautomationcontactresponse.md b/docs/models/operations/createmarketingautomationcontactresponse.md similarity index 97% rename from docs/models/operations/addmarketingautomationcontactresponse.md rename to docs/models/operations/createmarketingautomationcontactresponse.md index 36aead3a..10ed6dbe 100644 --- a/docs/models/operations/addmarketingautomationcontactresponse.md +++ b/docs/models/operations/createmarketingautomationcontactresponse.md @@ -1,4 +1,4 @@ -# AddMarketingAutomationContactResponse +# CreateMarketingAutomationContactResponse ## Fields diff --git a/docs/models/operations/addlistrequest.md b/docs/models/operations/createmarketingautomationlistrequest.md similarity index 98% rename from docs/models/operations/addlistrequest.md rename to docs/models/operations/createmarketingautomationlistrequest.md index 842b2b5b..2b3d0993 100644 --- a/docs/models/operations/addlistrequest.md +++ b/docs/models/operations/createmarketingautomationlistrequest.md @@ -1,4 +1,4 @@ -# AddListRequest +# CreateMarketingautomationListRequest ## Fields diff --git a/docs/models/operations/getlistresponse.md b/docs/models/operations/createmarketingautomationlistresponse.md similarity index 97% rename from docs/models/operations/getlistresponse.md rename to docs/models/operations/createmarketingautomationlistresponse.md index f904aa67..a8c07953 100644 --- a/docs/models/operations/getlistresponse.md +++ b/docs/models/operations/createmarketingautomationlistresponse.md @@ -1,4 +1,4 @@ -# GetListResponse +# CreateMarketingautomationListResponse ## Fields diff --git a/docs/models/operations/addtemplaterequest.md b/docs/models/operations/createmarketingautomationtemplaterequest.md similarity index 98% rename from docs/models/operations/addtemplaterequest.md rename to docs/models/operations/createmarketingautomationtemplaterequest.md index 14faabd0..7190d503 100644 --- a/docs/models/operations/addtemplaterequest.md +++ b/docs/models/operations/createmarketingautomationtemplaterequest.md @@ -1,4 +1,4 @@ -# AddTemplateRequest +# CreateMarketingautomationTemplateRequest ## Fields diff --git a/docs/models/operations/addtemplateresponse.md b/docs/models/operations/createmarketingautomationtemplateresponse.md similarity index 97% rename from docs/models/operations/addtemplateresponse.md rename to docs/models/operations/createmarketingautomationtemplateresponse.md index 8b0a6b86..76ed0d62 100644 --- a/docs/models/operations/addtemplateresponse.md +++ b/docs/models/operations/createmarketingautomationtemplateresponse.md @@ -1,4 +1,4 @@ -# AddTemplateResponse +# CreateMarketingautomationTemplateResponse ## Fields diff --git a/docs/models/operations/deletewebhookrequest.md b/docs/models/operations/deleterequest.md similarity index 92% rename from docs/models/operations/deletewebhookrequest.md rename to docs/models/operations/deleterequest.md index e541dd3e..4fc97699 100644 --- a/docs/models/operations/deletewebhookrequest.md +++ b/docs/models/operations/deleterequest.md @@ -1,4 +1,4 @@ -# DeleteWebhookRequest +# DeleteRequest ## Fields diff --git a/docs/models/operations/deletewebhookresponse.md b/docs/models/operations/deleteresponse.md similarity index 98% rename from docs/models/operations/deletewebhookresponse.md rename to docs/models/operations/deleteresponse.md index 8b0fa2a2..78349fb6 100644 --- a/docs/models/operations/deletewebhookresponse.md +++ b/docs/models/operations/deleteresponse.md @@ -1,4 +1,4 @@ -# DeleteWebhookResponse +# DeleteResponse ## Fields diff --git a/docs/models/operations/getdepartmentsresponse.md b/docs/models/operations/getdepartmentsresponse.md deleted file mode 100644 index 924df0af..00000000 --- a/docs/models/operations/getdepartmentsresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetDepartmentsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetDepartmentsResponseBody](../../models/operations/getdepartmentsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getemailsresponse.md b/docs/models/operations/getemailsresponse.md deleted file mode 100644 index 696d5441..00000000 --- a/docs/models/operations/getemailsresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetEmailsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetEmailsResponseBody](../../models/operations/getemailsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getlistsresponse.md b/docs/models/operations/getlistsresponse.md deleted file mode 100644 index 232d0d21..00000000 --- a/docs/models/operations/getlistsresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetListsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetListsResponseBody](../../models/operations/getlistsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmarketingautomationusersrequest.md b/docs/models/operations/getmarketingautomationusersrequest.md deleted file mode 100644 index b024509f..00000000 --- a/docs/models/operations/getmarketingautomationusersrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMarketingAutomationUsersRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/getmarketingautomationusersresponse.md b/docs/models/operations/getmarketingautomationusersresponse.md deleted file mode 100644 index 9011c65e..00000000 --- a/docs/models/operations/getmarketingautomationusersresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetMarketingAutomationUsersResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetMarketingAutomationUsersResponseBody](../../models/operations/getmarketingautomationusersresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmessagesrequest.md b/docs/models/operations/getmessagesrequest.md deleted file mode 100644 index 33f44efa..00000000 --- a/docs/models/operations/getmessagesrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMessagesRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/getmessagesresponse.md b/docs/models/operations/getmessagesresponse.md deleted file mode 100644 index 966dd01c..00000000 --- a/docs/models/operations/getmessagesresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetMessagesResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetMessagesResponseBody](../../models/operations/getmessagesresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrejectreasonsrequest.md b/docs/models/operations/getrejectreasonsrequest.md deleted file mode 100644 index 733384d1..00000000 --- a/docs/models/operations/getrejectreasonsrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetRejectReasonsRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/getrejectreasonsresponse.md b/docs/models/operations/getrejectreasonsresponse.md deleted file mode 100644 index ca8b56a5..00000000 --- a/docs/models/operations/getrejectreasonsresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetRejectReasonsResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetRejectReasonsResponseBody](../../models/operations/getrejectreasonsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/gettemplatesrequest.md b/docs/models/operations/gettemplatesrequest.md deleted file mode 100644 index b362e29b..00000000 --- a/docs/models/operations/gettemplatesrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTemplatesRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/gettemplatesresponse.md b/docs/models/operations/gettemplatesresponse.md deleted file mode 100644 index 0a98e184..00000000 --- a/docs/models/operations/gettemplatesresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetTemplatesResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetTemplatesResponseBody](../../models/operations/gettemplatesresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getusersrequest.md b/docs/models/operations/getusersrequest.md deleted file mode 100644 index a9aa1a5e..00000000 --- a/docs/models/operations/getusersrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetUsersRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/getusersresponse.md b/docs/models/operations/getusersresponse.md deleted file mode 100644 index 603ee557..00000000 --- a/docs/models/operations/getusersresponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetUsersResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetUsersResponseBody](../../models/operations/getusersresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getsyncstatusresponse.md b/docs/models/operations/healthresponse.md similarity index 97% rename from docs/models/operations/getsyncstatusresponse.md rename to docs/models/operations/healthresponse.md index a86e3e1f..334ba10f 100644 --- a/docs/models/operations/getsyncstatusresponse.md +++ b/docs/models/operations/healthresponse.md @@ -1,4 +1,4 @@ -# GetSyncStatusResponse +# HealthResponse ## Fields diff --git a/docs/models/operations/gethealthresponse.md b/docs/models/operations/homeresponse.md similarity index 73% rename from docs/models/operations/gethealthresponse.md rename to docs/models/operations/homeresponse.md index a0fffac9..40e5c488 100644 --- a/docs/models/operations/gethealthresponse.md +++ b/docs/models/operations/homeresponse.md @@ -1,9 +1,8 @@ -# GetHealthResponse +# HomeResponse ## Fields | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `number` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdepartmentsrequest.md b/docs/models/operations/listatsdepartmentsrequest.md similarity index 98% rename from docs/models/operations/getdepartmentsrequest.md rename to docs/models/operations/listatsdepartmentsrequest.md index cf9bcfe1..c0d3c425 100644 --- a/docs/models/operations/getdepartmentsrequest.md +++ b/docs/models/operations/listatsdepartmentsrequest.md @@ -1,4 +1,4 @@ -# GetDepartmentsRequest +# ListAtsDepartmentsRequest ## Fields diff --git a/docs/models/operations/listatsdepartmentsresponse.md b/docs/models/operations/listatsdepartmentsresponse.md new file mode 100644 index 00000000..41b4ddca --- /dev/null +++ b/docs/models/operations/listatsdepartmentsresponse.md @@ -0,0 +1,9 @@ +# ListAtsDepartmentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListAtsDepartmentsResponseBody](../../models/operations/listatsdepartmentsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdepartmentsresponsebody.md b/docs/models/operations/listatsdepartmentsresponsebody.md similarity index 98% rename from docs/models/operations/getdepartmentsresponsebody.md rename to docs/models/operations/listatsdepartmentsresponsebody.md index 41ca409d..72c1917e 100644 --- a/docs/models/operations/getdepartmentsresponsebody.md +++ b/docs/models/operations/listatsdepartmentsresponsebody.md @@ -1,4 +1,4 @@ -# GetDepartmentsResponseBody +# ListAtsDepartmentsResponseBody ## Fields diff --git a/docs/models/operations/getlistsrequest.md b/docs/models/operations/listatsrejectreasonsrequest.md similarity index 97% rename from docs/models/operations/getlistsrequest.md rename to docs/models/operations/listatsrejectreasonsrequest.md index 4813280c..66d8ed48 100644 --- a/docs/models/operations/getlistsrequest.md +++ b/docs/models/operations/listatsrejectreasonsrequest.md @@ -1,4 +1,4 @@ -# GetListsRequest +# ListAtsRejectReasonsRequest ## Fields diff --git a/docs/models/operations/listatsrejectreasonsresponse.md b/docs/models/operations/listatsrejectreasonsresponse.md new file mode 100644 index 00000000..760be4fc --- /dev/null +++ b/docs/models/operations/listatsrejectreasonsresponse.md @@ -0,0 +1,9 @@ +# ListAtsRejectReasonsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListAtsRejectReasonsResponseBody](../../models/operations/listatsrejectreasonsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrejectreasonsresponsebody.md b/docs/models/operations/listatsrejectreasonsresponsebody.md similarity index 98% rename from docs/models/operations/getrejectreasonsresponsebody.md rename to docs/models/operations/listatsrejectreasonsresponsebody.md index ade13882..09d9d06f 100644 --- a/docs/models/operations/getrejectreasonsresponsebody.md +++ b/docs/models/operations/listatsrejectreasonsresponsebody.md @@ -1,4 +1,4 @@ -# GetRejectReasonsResponseBody +# ListAtsRejectReasonsResponseBody ## Fields diff --git a/docs/models/operations/getemailsrequest.md b/docs/models/operations/listfilestorageusersrequest.md similarity index 97% rename from docs/models/operations/getemailsrequest.md rename to docs/models/operations/listfilestorageusersrequest.md index 68db744e..242233b7 100644 --- a/docs/models/operations/getemailsrequest.md +++ b/docs/models/operations/listfilestorageusersrequest.md @@ -1,4 +1,4 @@ -# GetEmailsRequest +# ListFilestorageUsersRequest ## Fields diff --git a/docs/models/operations/listfilestorageusersresponse.md b/docs/models/operations/listfilestorageusersresponse.md new file mode 100644 index 00000000..f08246f1 --- /dev/null +++ b/docs/models/operations/listfilestorageusersresponse.md @@ -0,0 +1,9 @@ +# ListFilestorageUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListFilestorageUsersResponseBody](../../models/operations/listfilestorageusersresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getusersresponsebody.md b/docs/models/operations/listfilestorageusersresponsebody.md similarity index 97% rename from docs/models/operations/getusersresponsebody.md rename to docs/models/operations/listfilestorageusersresponsebody.md index d4132d70..e8934952 100644 --- a/docs/models/operations/getusersresponsebody.md +++ b/docs/models/operations/listfilestorageusersresponsebody.md @@ -1,4 +1,4 @@ -# GetUsersResponseBody +# ListFilestorageUsersResponseBody ## Fields diff --git a/docs/models/operations/getmarketingautomationcontactsrequest.md b/docs/models/operations/listmarketingautomationcontactsrequest.md similarity index 97% rename from docs/models/operations/getmarketingautomationcontactsrequest.md rename to docs/models/operations/listmarketingautomationcontactsrequest.md index e53c7739..9ff7c77c 100644 --- a/docs/models/operations/getmarketingautomationcontactsrequest.md +++ b/docs/models/operations/listmarketingautomationcontactsrequest.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationContactsRequest +# ListMarketingAutomationContactsRequest ## Fields diff --git a/docs/models/operations/getmarketingautomationcontactsresponse.md b/docs/models/operations/listmarketingautomationcontactsresponse.md similarity index 56% rename from docs/models/operations/getmarketingautomationcontactsresponse.md rename to docs/models/operations/listmarketingautomationcontactsresponse.md index de63c281..e0aa49c8 100644 --- a/docs/models/operations/getmarketingautomationcontactsresponse.md +++ b/docs/models/operations/listmarketingautomationcontactsresponse.md @@ -1,9 +1,9 @@ -# GetMarketingAutomationContactsResponse +# ListMarketingAutomationContactsResponse ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetMarketingAutomationContactsResponseBody](../../models/operations/getmarketingautomationcontactsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingAutomationContactsResponseBody](../../models/operations/listmarketingautomationcontactsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmarketingautomationcontactsresponsebody.md b/docs/models/operations/listmarketingautomationcontactsresponsebody.md similarity index 98% rename from docs/models/operations/getmarketingautomationcontactsresponsebody.md rename to docs/models/operations/listmarketingautomationcontactsresponsebody.md index 7cff043b..c144d9b0 100644 --- a/docs/models/operations/getmarketingautomationcontactsresponsebody.md +++ b/docs/models/operations/listmarketingautomationcontactsresponsebody.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationContactsResponseBody +# ListMarketingAutomationContactsResponseBody ## Fields diff --git a/docs/models/operations/listmarketingautomationemailsrequest.md b/docs/models/operations/listmarketingautomationemailsrequest.md new file mode 100644 index 00000000..82a9019c --- /dev/null +++ b/docs/models/operations/listmarketingautomationemailsrequest.md @@ -0,0 +1,11 @@ +# ListMarketingautomationEmailsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | +| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | +| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | +| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationemailsresponse.md b/docs/models/operations/listmarketingautomationemailsresponse.md new file mode 100644 index 00000000..4847c443 --- /dev/null +++ b/docs/models/operations/listmarketingautomationemailsresponse.md @@ -0,0 +1,9 @@ +# ListMarketingautomationEmailsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingautomationEmailsResponseBody](../../models/operations/listmarketingautomationemailsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getemailsresponsebody.md b/docs/models/operations/listmarketingautomationemailsresponsebody.md similarity index 98% rename from docs/models/operations/getemailsresponsebody.md rename to docs/models/operations/listmarketingautomationemailsresponsebody.md index a62aac1d..f4d147b3 100644 --- a/docs/models/operations/getemailsresponsebody.md +++ b/docs/models/operations/listmarketingautomationemailsresponsebody.md @@ -1,4 +1,4 @@ -# GetEmailsResponseBody +# ListMarketingautomationEmailsResponseBody ## Fields diff --git a/docs/models/operations/listmarketingautomationeventsrequest.md b/docs/models/operations/listmarketingautomationeventsrequest.md new file mode 100644 index 00000000..ef4bd662 --- /dev/null +++ b/docs/models/operations/listmarketingautomationeventsrequest.md @@ -0,0 +1,11 @@ +# ListMarketingAutomationEventsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | +| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | +| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | +| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationeventsresponse.md b/docs/models/operations/listmarketingautomationeventsresponse.md new file mode 100644 index 00000000..3bfe66ed --- /dev/null +++ b/docs/models/operations/listmarketingautomationeventsresponse.md @@ -0,0 +1,9 @@ +# ListMarketingAutomationEventsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingAutomationEventsResponseBody](../../models/operations/listmarketingautomationeventsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmarketingautomationeventsresponsebody.md b/docs/models/operations/listmarketingautomationeventsresponsebody.md similarity index 98% rename from docs/models/operations/getmarketingautomationeventsresponsebody.md rename to docs/models/operations/listmarketingautomationeventsresponsebody.md index 9134b000..2cce89e0 100644 --- a/docs/models/operations/getmarketingautomationeventsresponsebody.md +++ b/docs/models/operations/listmarketingautomationeventsresponsebody.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationEventsResponseBody +# ListMarketingAutomationEventsResponseBody ## Fields diff --git a/docs/models/operations/getmarketingautomationeventsrequest.md b/docs/models/operations/listmarketingautomationlistsrequest.md similarity index 97% rename from docs/models/operations/getmarketingautomationeventsrequest.md rename to docs/models/operations/listmarketingautomationlistsrequest.md index ecfac76c..6c63eecf 100644 --- a/docs/models/operations/getmarketingautomationeventsrequest.md +++ b/docs/models/operations/listmarketingautomationlistsrequest.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationEventsRequest +# ListMarketingautomationListsRequest ## Fields diff --git a/docs/models/operations/getmarketingautomationeventsresponse.md b/docs/models/operations/listmarketingautomationlistsresponse.md similarity index 91% rename from docs/models/operations/getmarketingautomationeventsresponse.md rename to docs/models/operations/listmarketingautomationlistsresponse.md index 09ff3190..1ff7f4d5 100644 --- a/docs/models/operations/getmarketingautomationeventsresponse.md +++ b/docs/models/operations/listmarketingautomationlistsresponse.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationEventsResponse +# ListMarketingautomationListsResponse ## Fields @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | | `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `object` | [operations.GetMarketingAutomationEventsResponseBody](../../models/operations/getmarketingautomationeventsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `object` | [operations.ListMarketingautomationListsResponseBody](../../models/operations/listmarketingautomationlistsresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getlistsresponsebody.md b/docs/models/operations/listmarketingautomationlistsresponsebody.md similarity index 98% rename from docs/models/operations/getlistsresponsebody.md rename to docs/models/operations/listmarketingautomationlistsresponsebody.md index e7647369..28d02d64 100644 --- a/docs/models/operations/getlistsresponsebody.md +++ b/docs/models/operations/listmarketingautomationlistsresponsebody.md @@ -1,4 +1,4 @@ -# GetListsResponseBody +# ListMarketingautomationListsResponseBody ## Fields diff --git a/docs/models/operations/listmarketingautomationmessagesrequest.md b/docs/models/operations/listmarketingautomationmessagesrequest.md new file mode 100644 index 00000000..fe0aec64 --- /dev/null +++ b/docs/models/operations/listmarketingautomationmessagesrequest.md @@ -0,0 +1,11 @@ +# ListMarketingautomationMessagesRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | +| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | +| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | +| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationmessagesresponse.md b/docs/models/operations/listmarketingautomationmessagesresponse.md new file mode 100644 index 00000000..aa7a0f37 --- /dev/null +++ b/docs/models/operations/listmarketingautomationmessagesresponse.md @@ -0,0 +1,9 @@ +# ListMarketingautomationMessagesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingautomationMessagesResponseBody](../../models/operations/listmarketingautomationmessagesresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmessagesresponsebody.md b/docs/models/operations/listmarketingautomationmessagesresponsebody.md similarity index 98% rename from docs/models/operations/getmessagesresponsebody.md rename to docs/models/operations/listmarketingautomationmessagesresponsebody.md index b3a30322..8cd4d901 100644 --- a/docs/models/operations/getmessagesresponsebody.md +++ b/docs/models/operations/listmarketingautomationmessagesresponsebody.md @@ -1,4 +1,4 @@ -# GetMessagesResponseBody +# ListMarketingautomationMessagesResponseBody ## Fields diff --git a/docs/models/operations/listmarketingautomationtemplatesrequest.md b/docs/models/operations/listmarketingautomationtemplatesrequest.md new file mode 100644 index 00000000..e086fa61 --- /dev/null +++ b/docs/models/operations/listmarketingautomationtemplatesrequest.md @@ -0,0 +1,11 @@ +# ListMarketingautomationTemplatesRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | +| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | +| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | +| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationtemplatesresponse.md b/docs/models/operations/listmarketingautomationtemplatesresponse.md new file mode 100644 index 00000000..0cd483f3 --- /dev/null +++ b/docs/models/operations/listmarketingautomationtemplatesresponse.md @@ -0,0 +1,9 @@ +# ListMarketingautomationTemplatesResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingautomationTemplatesResponseBody](../../models/operations/listmarketingautomationtemplatesresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/gettemplatesresponsebody.md b/docs/models/operations/listmarketingautomationtemplatesresponsebody.md similarity index 98% rename from docs/models/operations/gettemplatesresponsebody.md rename to docs/models/operations/listmarketingautomationtemplatesresponsebody.md index 40adbe58..f09b4d8e 100644 --- a/docs/models/operations/gettemplatesresponsebody.md +++ b/docs/models/operations/listmarketingautomationtemplatesresponsebody.md @@ -1,4 +1,4 @@ -# GetTemplatesResponseBody +# ListMarketingautomationTemplatesResponseBody ## Fields diff --git a/docs/models/operations/listmarketingautomationusersrequest.md b/docs/models/operations/listmarketingautomationusersrequest.md new file mode 100644 index 00000000..29305690 --- /dev/null +++ b/docs/models/operations/listmarketingautomationusersrequest.md @@ -0,0 +1,11 @@ +# ListMarketingAutomationUsersRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | +| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | +| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | +| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationusersresponse.md b/docs/models/operations/listmarketingautomationusersresponse.md new file mode 100644 index 00000000..55bfd3c0 --- /dev/null +++ b/docs/models/operations/listmarketingautomationusersresponse.md @@ -0,0 +1,9 @@ +# ListMarketingAutomationUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ListMarketingAutomationUsersResponseBody](../../models/operations/listmarketingautomationusersresponsebody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmarketingautomationusersresponsebody.md b/docs/models/operations/listmarketingautomationusersresponsebody.md similarity index 98% rename from docs/models/operations/getmarketingautomationusersresponsebody.md rename to docs/models/operations/listmarketingautomationusersresponsebody.md index 423378cc..a8918c88 100644 --- a/docs/models/operations/getmarketingautomationusersresponsebody.md +++ b/docs/models/operations/listmarketingautomationusersresponsebody.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationUsersResponseBody +# ListMarketingAutomationUsersResponseBody ## Fields diff --git a/docs/models/operations/getdepartmentrequest.md b/docs/models/operations/retrieveatsdepartmentrequest.md similarity index 97% rename from docs/models/operations/getdepartmentrequest.md rename to docs/models/operations/retrieveatsdepartmentrequest.md index 17c16a3f..3d555be5 100644 --- a/docs/models/operations/getdepartmentrequest.md +++ b/docs/models/operations/retrieveatsdepartmentrequest.md @@ -1,4 +1,4 @@ -# GetDepartmentRequest +# RetrieveAtsDepartmentRequest ## Fields diff --git a/docs/models/operations/getdepartmentresponse.md b/docs/models/operations/retrieveatsdepartmentresponse.md similarity index 98% rename from docs/models/operations/getdepartmentresponse.md rename to docs/models/operations/retrieveatsdepartmentresponse.md index 6941fb76..c59c461b 100644 --- a/docs/models/operations/getdepartmentresponse.md +++ b/docs/models/operations/retrieveatsdepartmentresponse.md @@ -1,4 +1,4 @@ -# GetDepartmentResponse +# RetrieveAtsDepartmentResponse ## Fields diff --git a/docs/models/operations/getrejectreasonrequest.md b/docs/models/operations/retrieveatsrejectreasonrequest.md similarity index 97% rename from docs/models/operations/getrejectreasonrequest.md rename to docs/models/operations/retrieveatsrejectreasonrequest.md index 06be0d02..5c6fc86d 100644 --- a/docs/models/operations/getrejectreasonrequest.md +++ b/docs/models/operations/retrieveatsrejectreasonrequest.md @@ -1,4 +1,4 @@ -# GetRejectReasonRequest +# RetrieveAtsRejectReasonRequest ## Fields diff --git a/docs/models/operations/getrejectreasonresponse.md b/docs/models/operations/retrieveatsrejectreasonresponse.md similarity index 97% rename from docs/models/operations/getrejectreasonresponse.md rename to docs/models/operations/retrieveatsrejectreasonresponse.md index 53e415f2..d23b82da 100644 --- a/docs/models/operations/getrejectreasonresponse.md +++ b/docs/models/operations/retrieveatsrejectreasonresponse.md @@ -1,4 +1,4 @@ -# GetRejectReasonResponse +# RetrieveAtsRejectReasonResponse ## Fields diff --git a/docs/models/operations/getcrmcontactrequest.md b/docs/models/operations/retrievecrmcontactrequest.md similarity index 97% rename from docs/models/operations/getcrmcontactrequest.md rename to docs/models/operations/retrievecrmcontactrequest.md index 93cc6a44..119b11bc 100644 --- a/docs/models/operations/getcrmcontactrequest.md +++ b/docs/models/operations/retrievecrmcontactrequest.md @@ -1,4 +1,4 @@ -# GetCrmContactRequest +# RetrieveCrmContactRequest ## Fields diff --git a/docs/models/operations/getcrmcontactresponse.md b/docs/models/operations/retrievecrmcontactresponse.md similarity index 98% rename from docs/models/operations/getcrmcontactresponse.md rename to docs/models/operations/retrievecrmcontactresponse.md index 9962bf9f..1d376703 100644 --- a/docs/models/operations/getcrmcontactresponse.md +++ b/docs/models/operations/retrievecrmcontactresponse.md @@ -1,4 +1,4 @@ -# GetCrmContactResponse +# RetrieveCrmContactResponse ## Fields diff --git a/docs/models/operations/getuserrequest.md b/docs/models/operations/retrievefilestorageuserrequest.md similarity index 97% rename from docs/models/operations/getuserrequest.md rename to docs/models/operations/retrievefilestorageuserrequest.md index 19c85352..ae9ebee9 100644 --- a/docs/models/operations/getuserrequest.md +++ b/docs/models/operations/retrievefilestorageuserrequest.md @@ -1,4 +1,4 @@ -# GetUserRequest +# RetrieveFilestorageUserRequest ## Fields diff --git a/docs/models/operations/getuserresponse.md b/docs/models/operations/retrievefilestorageuserresponse.md similarity index 97% rename from docs/models/operations/getuserresponse.md rename to docs/models/operations/retrievefilestorageuserresponse.md index 10d07e02..931ea17c 100644 --- a/docs/models/operations/getuserresponse.md +++ b/docs/models/operations/retrievefilestorageuserresponse.md @@ -1,4 +1,4 @@ -# GetUserResponse +# RetrieveFilestorageUserResponse ## Fields diff --git a/docs/models/operations/getmarketingautomationcontactrequest.md b/docs/models/operations/retrievemarketingautomationcontactrequest.md similarity index 97% rename from docs/models/operations/getmarketingautomationcontactrequest.md rename to docs/models/operations/retrievemarketingautomationcontactrequest.md index 0f9558e8..a0a0e55e 100644 --- a/docs/models/operations/getmarketingautomationcontactrequest.md +++ b/docs/models/operations/retrievemarketingautomationcontactrequest.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationContactRequest +# RetrieveMarketingAutomationContactRequest ## Fields diff --git a/docs/models/operations/getmarketingautomationcontactresponse.md b/docs/models/operations/retrievemarketingautomationcontactresponse.md similarity index 97% rename from docs/models/operations/getmarketingautomationcontactresponse.md rename to docs/models/operations/retrievemarketingautomationcontactresponse.md index 175ebb1b..51c1ffed 100644 --- a/docs/models/operations/getmarketingautomationcontactresponse.md +++ b/docs/models/operations/retrievemarketingautomationcontactresponse.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationContactResponse +# RetrieveMarketingAutomationContactResponse ## Fields diff --git a/docs/models/operations/getemailrequest.md b/docs/models/operations/retrievemarketingautomationemailrequest.md similarity index 97% rename from docs/models/operations/getemailrequest.md rename to docs/models/operations/retrievemarketingautomationemailrequest.md index 42a6bc72..6b8107c7 100644 --- a/docs/models/operations/getemailrequest.md +++ b/docs/models/operations/retrievemarketingautomationemailrequest.md @@ -1,4 +1,4 @@ -# GetEmailRequest +# RetrieveMarketingautomationEmailRequest ## Fields diff --git a/docs/models/operations/getemailresponse.md b/docs/models/operations/retrievemarketingautomationemailresponse.md similarity index 97% rename from docs/models/operations/getemailresponse.md rename to docs/models/operations/retrievemarketingautomationemailresponse.md index 5fffb6b2..692dca2a 100644 --- a/docs/models/operations/getemailresponse.md +++ b/docs/models/operations/retrievemarketingautomationemailresponse.md @@ -1,4 +1,4 @@ -# GetEmailResponse +# RetrieveMarketingautomationEmailResponse ## Fields diff --git a/docs/models/operations/geteventrequest.md b/docs/models/operations/retrievemarketingautomationeventrequest.md similarity index 97% rename from docs/models/operations/geteventrequest.md rename to docs/models/operations/retrievemarketingautomationeventrequest.md index 649b4b19..990779bf 100644 --- a/docs/models/operations/geteventrequest.md +++ b/docs/models/operations/retrievemarketingautomationeventrequest.md @@ -1,4 +1,4 @@ -# GetEventRequest +# RetrieveMarketingautomationEventRequest ## Fields diff --git a/docs/models/operations/geteventresponse.md b/docs/models/operations/retrievemarketingautomationeventresponse.md similarity index 97% rename from docs/models/operations/geteventresponse.md rename to docs/models/operations/retrievemarketingautomationeventresponse.md index 9f4cc984..84f3a805 100644 --- a/docs/models/operations/geteventresponse.md +++ b/docs/models/operations/retrievemarketingautomationeventresponse.md @@ -1,4 +1,4 @@ -# GetEventResponse +# RetrieveMarketingautomationEventResponse ## Fields diff --git a/docs/models/operations/getlistrequest.md b/docs/models/operations/retrievemarketingautomationlistrequest.md similarity index 97% rename from docs/models/operations/getlistrequest.md rename to docs/models/operations/retrievemarketingautomationlistrequest.md index 6f3592b7..d131c1ef 100644 --- a/docs/models/operations/getlistrequest.md +++ b/docs/models/operations/retrievemarketingautomationlistrequest.md @@ -1,4 +1,4 @@ -# GetListRequest +# RetrieveMarketingautomationListRequest ## Fields diff --git a/docs/models/operations/addlistresponse.md b/docs/models/operations/retrievemarketingautomationlistresponse.md similarity index 97% rename from docs/models/operations/addlistresponse.md rename to docs/models/operations/retrievemarketingautomationlistresponse.md index 8d72e29d..32c9ad04 100644 --- a/docs/models/operations/addlistresponse.md +++ b/docs/models/operations/retrievemarketingautomationlistresponse.md @@ -1,4 +1,4 @@ -# AddListResponse +# RetrieveMarketingautomationListResponse ## Fields diff --git a/docs/models/operations/getmessagerequest.md b/docs/models/operations/retrievemarketingautomationmessagerequest.md similarity index 97% rename from docs/models/operations/getmessagerequest.md rename to docs/models/operations/retrievemarketingautomationmessagerequest.md index bf833a55..43ca7095 100644 --- a/docs/models/operations/getmessagerequest.md +++ b/docs/models/operations/retrievemarketingautomationmessagerequest.md @@ -1,4 +1,4 @@ -# GetMessageRequest +# RetrieveMarketingautomationMessageRequest ## Fields diff --git a/docs/models/operations/getmessageresponse.md b/docs/models/operations/retrievemarketingautomationmessageresponse.md similarity index 97% rename from docs/models/operations/getmessageresponse.md rename to docs/models/operations/retrievemarketingautomationmessageresponse.md index 400f1c46..5bc83010 100644 --- a/docs/models/operations/getmessageresponse.md +++ b/docs/models/operations/retrievemarketingautomationmessageresponse.md @@ -1,4 +1,4 @@ -# GetMessageResponse +# RetrieveMarketingautomationMessageResponse ## Fields diff --git a/docs/models/operations/gettemplaterequest.md b/docs/models/operations/retrievemarketingautomationtemplaterequest.md similarity index 97% rename from docs/models/operations/gettemplaterequest.md rename to docs/models/operations/retrievemarketingautomationtemplaterequest.md index d178de03..dc6c2740 100644 --- a/docs/models/operations/gettemplaterequest.md +++ b/docs/models/operations/retrievemarketingautomationtemplaterequest.md @@ -1,4 +1,4 @@ -# GetTemplateRequest +# RetrieveMarketingautomationTemplateRequest ## Fields diff --git a/docs/models/operations/gettemplateresponse.md b/docs/models/operations/retrievemarketingautomationtemplateresponse.md similarity index 97% rename from docs/models/operations/gettemplateresponse.md rename to docs/models/operations/retrievemarketingautomationtemplateresponse.md index 17ba7fd1..213198b2 100644 --- a/docs/models/operations/gettemplateresponse.md +++ b/docs/models/operations/retrievemarketingautomationtemplateresponse.md @@ -1,4 +1,4 @@ -# GetTemplateResponse +# RetrieveMarketingautomationTemplateResponse ## Fields diff --git a/docs/models/operations/getmarketingautomationuserrequest.md b/docs/models/operations/retrievemarketingautomationuserrequest.md similarity index 97% rename from docs/models/operations/getmarketingautomationuserrequest.md rename to docs/models/operations/retrievemarketingautomationuserrequest.md index d6176f39..00d54069 100644 --- a/docs/models/operations/getmarketingautomationuserrequest.md +++ b/docs/models/operations/retrievemarketingautomationuserrequest.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationUserRequest +# RetrieveMarketingAutomationUserRequest ## Fields diff --git a/docs/models/operations/getmarketingautomationuserresponse.md b/docs/models/operations/retrievemarketingautomationuserresponse.md similarity index 97% rename from docs/models/operations/getmarketingautomationuserresponse.md rename to docs/models/operations/retrievemarketingautomationuserresponse.md index 3b7e7d02..2e3ffc82 100644 --- a/docs/models/operations/getmarketingautomationuserresponse.md +++ b/docs/models/operations/retrievemarketingautomationuserresponse.md @@ -1,4 +1,4 @@ -# GetMarketingAutomationUserResponse +# RetrieveMarketingAutomationUserResponse ## Fields diff --git a/docs/models/operations/getsyncstatusrequest.md b/docs/models/operations/statusrequest.md similarity index 92% rename from docs/models/operations/getsyncstatusrequest.md rename to docs/models/operations/statusrequest.md index c53b0d8d..23f706af 100644 --- a/docs/models/operations/getsyncstatusrequest.md +++ b/docs/models/operations/statusrequest.md @@ -1,4 +1,4 @@ -# GetSyncStatusRequest +# StatusRequest ## Fields diff --git a/docs/models/operations/gethelloprotectedresponse.md b/docs/models/operations/statusresponse.md similarity index 73% rename from docs/models/operations/gethelloprotectedresponse.md rename to docs/models/operations/statusresponse.md index 54c1a074..87a6fe32 100644 --- a/docs/models/operations/gethelloprotectedresponse.md +++ b/docs/models/operations/statusresponse.md @@ -1,9 +1,8 @@ -# GetHelloProtectedResponse +# StatusResponse ## Fields | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `string` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatewebhookstatusrequest.md b/docs/models/operations/updatestatusrequest.md similarity index 90% rename from docs/models/operations/updatewebhookstatusrequest.md rename to docs/models/operations/updatestatusrequest.md index e7d08090..2a12b534 100644 --- a/docs/models/operations/updatewebhookstatusrequest.md +++ b/docs/models/operations/updatestatusrequest.md @@ -1,4 +1,4 @@ -# UpdateWebhookStatusRequest +# UpdateStatusRequest ## Fields diff --git a/docs/models/operations/updatewebhookstatusresponse.md b/docs/models/operations/updatestatusresponse.md similarity index 97% rename from docs/models/operations/updatewebhookstatusresponse.md rename to docs/models/operations/updatestatusresponse.md index 8f7f5e7b..3db544f2 100644 --- a/docs/models/operations/updatewebhookstatusresponse.md +++ b/docs/models/operations/updatestatusresponse.md @@ -1,4 +1,4 @@ -# UpdateWebhookStatusResponse +# UpdateStatusResponse ## Fields diff --git a/docs/sdks/account/README.md b/docs/sdks/account/README.md index 69f813ac..e9d74ae6 100644 --- a/docs/sdks/account/README.md +++ b/docs/sdks/account/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingAccountsRequest](../../models/operations/listaccountingaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingAccountRequest](../../models/operations/createaccountingaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingAccountRequest](../../models/operations/retrieveaccountingaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/accounts/README.md b/docs/sdks/accounts/README.md index b523578c..211ea356 100644 --- a/docs/sdks/accounts/README.md +++ b/docs/sdks/accounts/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingAccountRequest](../../models/operations/listticketingaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveTicketingAccountRequest](../../models/operations/retrieveticketingaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/action/README.md b/docs/sdks/action/README.md index d9cd1c12..2244d9c4 100644 --- a/docs/sdks/action/README.md +++ b/docs/sdks/action/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListMarketingautomationActionRequest](../../models/operations/listmarketingautomationactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateMarketingautomationActionRequest](../../models/operations/createmarketingautomationactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveMarketingautomationActionRequest](../../models/operations/retrievemarketingautomationactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/activity/README.md b/docs/sdks/activity/README.md index d7511a51..67c2b712 100644 --- a/docs/sdks/activity/README.md +++ b/docs/sdks/activity/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAtsActivityRequest](../../models/operations/listatsactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateAtsActivityRequest](../../models/operations/createatsactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveAtsActivityRequest](../../models/operations/retrieveatsactivityrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/address/README.md b/docs/sdks/address/README.md index bc1eb8d0..42b6a351 100644 --- a/docs/sdks/address/README.md +++ b/docs/sdks/address/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingAddressRequest](../../models/operations/listaccountingaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingAddressRequest](../../models/operations/retrieveaccountingaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/application/README.md b/docs/sdks/application/README.md index 9c689830..22581d27 100644 --- a/docs/sdks/application/README.md +++ b/docs/sdks/application/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAtsApplicationRequest](../../models/operations/listatsapplicationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateAtsApplicationRequest](../../models/operations/createatsapplicationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveAtsApplicationRequest](../../models/operations/retrieveatsapplicationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/attachment/README.md b/docs/sdks/attachment/README.md index 82ebcaeb..309e16ca 100644 --- a/docs/sdks/attachment/README.md +++ b/docs/sdks/attachment/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAtsAttachmentRequest](../../models/operations/listatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateAtsAttachmentRequest](../../models/operations/createatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveAtsAttachmentRequest](../../models/operations/retrieveatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 03a27e48..12b6d0d9 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListTicketingAttachmentsRequest](../../models/operations/listticketingattachmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -88,6 +89,7 @@ run(); | `request` | [operations.CreateTicketingAttachmentRequest](../../models/operations/createticketingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -132,6 +134,7 @@ run(); | `request` | [operations.RetrieveTicketingAttachmentRequest](../../models/operations/retrieveticketingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/automation/README.md b/docs/sdks/automation/README.md index 259b59ac..c543cdad 100644 --- a/docs/sdks/automation/README.md +++ b/docs/sdks/automation/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListMarketingautomationAutomationRequest](../../models/operations/listmarketingautomationautomationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateMarketingautomationAutomationRequest](../../models/operations/createmarketingautomationautomationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveMarketingautomationAutomationRequest](../../models/operations/retrievemarketingautomationautomationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/balancesheet/README.md b/docs/sdks/balancesheet/README.md index 26775148..d39a4901 100644 --- a/docs/sdks/balancesheet/README.md +++ b/docs/sdks/balancesheet/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingBalanceSheetsRequest](../../models/operations/listaccountingbalancesheetsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingBalanceSheetRequest](../../models/operations/retrieveaccountingbalancesheetrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/bankinfo/README.md b/docs/sdks/bankinfo/README.md index be094e15..ecf8a60a 100644 --- a/docs/sdks/bankinfo/README.md +++ b/docs/sdks/bankinfo/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisBankinfoRequest](../../models/operations/listhrisbankinforequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisBankinfoRequest](../../models/operations/retrievehrisbankinforequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/benefit/README.md b/docs/sdks/benefit/README.md index 2054720e..20660e34 100644 --- a/docs/sdks/benefit/README.md +++ b/docs/sdks/benefit/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisBenefitRequest](../../models/operations/listhrisbenefitrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisBenefitRequest](../../models/operations/retrievehrisbenefitrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/campaign/README.md b/docs/sdks/campaign/README.md index 07f140b8..21854d46 100644 --- a/docs/sdks/campaign/README.md +++ b/docs/sdks/campaign/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListMarketingautomationCampaignRequest](../../models/operations/listmarketingautomationcampaignrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateMarketingautomationCampaignRequest](../../models/operations/createmarketingautomationcampaignrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveMarketingautomationCampaignRequest](../../models/operations/retrievemarketingautomationcampaignrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/candidate/README.md b/docs/sdks/candidate/README.md index 1f10b85f..f50972f4 100644 --- a/docs/sdks/candidate/README.md +++ b/docs/sdks/candidate/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAtsCandidateRequest](../../models/operations/listatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateAtsCandidateRequest](../../models/operations/createatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveAtsCandidateRequest](../../models/operations/retrieveatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/cashflowstatement/README.md b/docs/sdks/cashflowstatement/README.md index da241ef1..63b515eb 100644 --- a/docs/sdks/cashflowstatement/README.md +++ b/docs/sdks/cashflowstatement/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingCashflowStatementRequest](../../models/operations/listaccountingcashflowstatementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingCashflowStatementRequest](../../models/operations/retrieveaccountingcashflowstatementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 3662f1fa..651305f8 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingCollectionsRequest](../../models/operations/listticketingcollectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveCollectionRequest](../../models/operations/retrievecollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/comments/README.md b/docs/sdks/comments/README.md index 74ab931f..c323c328 100644 --- a/docs/sdks/comments/README.md +++ b/docs/sdks/comments/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListTicketingCommentsRequest](../../models/operations/listticketingcommentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateTicketingCommentRequest](../../models/operations/createticketingcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveTicketingCommentRequest](../../models/operations/retrieveticketingcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 70041b64..8f30aa83 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmCompanyRequest](../../models/operations/listcrmcompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -86,6 +87,7 @@ run(); | `request` | [operations.CreateCrmCompanyRequest](../../models/operations/createcrmcompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -130,6 +132,7 @@ run(); | `request` | [operations.RetrieveCrmCompanyRequest](../../models/operations/retrievecrmcompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/company/README.md b/docs/sdks/company/README.md index e1ddd853..f049f819 100644 --- a/docs/sdks/company/README.md +++ b/docs/sdks/company/README.md @@ -37,6 +37,7 @@ run(); | `request` | [operations.ListHrisCompanysRequest](../../models/operations/listhriscompanysrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/companyinfo/README.md b/docs/sdks/companyinfo/README.md index f5fdb3b4..5373dc42 100644 --- a/docs/sdks/companyinfo/README.md +++ b/docs/sdks/companyinfo/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingCompanyInfosRequest](../../models/operations/listaccountingcompanyinfosrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingCompanyInfoRequest](../../models/operations/retrieveaccountingcompanyinforequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/contact/README.md b/docs/sdks/contact/README.md index 891f507f..8b57219e 100644 --- a/docs/sdks/contact/README.md +++ b/docs/sdks/contact/README.md @@ -3,11 +3,11 @@ ### Available Operations -* [getMarketingAutomationContacts](#getmarketingautomationcontacts) - List a batch of Contacts -* [addMarketingAutomationContact](#addmarketingautomationcontact) - Create a Contact -* [getMarketingAutomationContact](#getmarketingautomationcontact) - Retrieve a Contact +* [list](#list) - List a batch of Contacts +* [create](#create) - Create a Contact +* [retrieve](#retrieve) - Retrieve a Contact -## getMarketingAutomationContacts +## list List a batch of Contacts @@ -21,7 +21,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.contact.getMarketingAutomationContacts({ + const result = await panora.marketingautomation.contact.list({ xConnectionToken: "", }); @@ -36,21 +36,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMarketingAutomationContactsRequest](../../models/operations/getmarketingautomationcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingAutomationContactsRequest](../../models/operations/listmarketingautomationcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMarketingAutomationContactsResponse](../../models/operations/getmarketingautomationcontactsresponse.md)\>** +**Promise\<[operations.ListMarketingAutomationContactsResponse](../../models/operations/listmarketingautomationcontactsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## addMarketingAutomationContact +## create Create a contact in any supported Marketingautomation software @@ -64,7 +65,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.contact.addMarketingAutomationContact({ + const result = await panora.marketingautomation.contact.create({ xConnectionToken: "", unifiedMarketingautomationContactInput: {}, }); @@ -80,21 +81,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddMarketingAutomationContactRequest](../../models/operations/addmarketingautomationcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateMarketingAutomationContactRequest](../../models/operations/createmarketingautomationcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddMarketingAutomationContactResponse](../../models/operations/addmarketingautomationcontactresponse.md)\>** +**Promise\<[operations.CreateMarketingAutomationContactResponse](../../models/operations/createmarketingautomationcontactresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getMarketingAutomationContact +## retrieve Retrieve a contact from any connected Marketingautomation software @@ -108,7 +110,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.contact.getMarketingAutomationContact({ + const result = await panora.marketingautomation.contact.retrieve({ xConnectionToken: "", id: "", }); @@ -124,14 +126,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMarketingAutomationContactRequest](../../models/operations/getmarketingautomationcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingAutomationContactRequest](../../models/operations/retrievemarketingautomationcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMarketingAutomationContactResponse](../../models/operations/getmarketingautomationcontactresponse.md)\>** +**Promise\<[operations.RetrieveMarketingAutomationContactResponse](../../models/operations/retrievemarketingautomationcontactresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index 19ed9a3c..e9c7d246 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingContactsRequest](../../models/operations/listticketingcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveTicketingContactRequest](../../models/operations/retrieveticketingcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/creditnote/README.md b/docs/sdks/creditnote/README.md index c14f73e2..60081457 100644 --- a/docs/sdks/creditnote/README.md +++ b/docs/sdks/creditnote/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingCreditNoteRequest](../../models/operations/listaccountingcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingCreditNoteRequest](../../models/operations/retrieveaccountingcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/deals/README.md b/docs/sdks/deals/README.md index f9ef43b7..f3233891 100644 --- a/docs/sdks/deals/README.md +++ b/docs/sdks/deals/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmDealsRequest](../../models/operations/listcrmdealsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -88,6 +89,7 @@ run(); | `request` | [operations.CreateCrmDealRequest](../../models/operations/createcrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -132,6 +134,7 @@ run(); | `request` | [operations.RetrieveCrmDealRequest](../../models/operations/retrievecrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/department/README.md b/docs/sdks/department/README.md index 98eca643..50c2459b 100644 --- a/docs/sdks/department/README.md +++ b/docs/sdks/department/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getDepartments](#getdepartments) - List a batch of Departments -* [getDepartment](#getdepartment) - Retrieve a Department +* [list](#list) - List a batch of Departments +* [retrieve](#retrieve) - Retrieve a Department -## getDepartments +## list List a batch of Departments @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.department.getDepartments({ + const result = await panora.ats.department.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDepartmentsRequest](../../models/operations/getdepartmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListAtsDepartmentsRequest](../../models/operations/listatsdepartmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDepartmentsResponse](../../models/operations/getdepartmentsresponse.md)\>** +**Promise\<[operations.ListAtsDepartmentsResponse](../../models/operations/listatsdepartmentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getDepartment +## retrieve Retrieve a department from any connected Ats software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.department.getDepartment({ + const result = await panora.ats.department.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDepartmentRequest](../../models/operations/getdepartmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveAtsDepartmentRequest](../../models/operations/retrieveatsdepartmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetDepartmentResponse](../../models/operations/getdepartmentresponse.md)\>** +**Promise\<[operations.RetrieveAtsDepartmentResponse](../../models/operations/retrieveatsdepartmentresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/dependent/README.md b/docs/sdks/dependent/README.md index 9388ccf5..6493770a 100644 --- a/docs/sdks/dependent/README.md +++ b/docs/sdks/dependent/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisDependentsRequest](../../models/operations/listhrisdependentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisDependentRequest](../../models/operations/retrievehrisdependentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/drives/README.md b/docs/sdks/drives/README.md index 9df7cc05..be2f0b73 100644 --- a/docs/sdks/drives/README.md +++ b/docs/sdks/drives/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListFilestorageDrivesRequest](../../models/operations/listfilestoragedrivesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveFilestorageDriveRequest](../../models/operations/retrievefilestoragedriverequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/eeocs/README.md b/docs/sdks/eeocs/README.md index 3c3ab9df..1de478f1 100644 --- a/docs/sdks/eeocs/README.md +++ b/docs/sdks/eeocs/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsEeocsRequest](../../models/operations/listatseeocsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsEeocsRequest](../../models/operations/retrieveatseeocsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/email/README.md b/docs/sdks/email/README.md index 1ac83cd4..05632384 100644 --- a/docs/sdks/email/README.md +++ b/docs/sdks/email/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getEmails](#getemails) - List a batch of Emails -* [getEmail](#getemail) - Retrieve a Email +* [list](#list) - List a batch of Emails +* [retrieve](#retrieve) - Retrieve a Email -## getEmails +## list List a batch of Emails @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.email.getEmails({ + const result = await panora.marketingautomation.email.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetEmailsRequest](../../models/operations/getemailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingautomationEmailsRequest](../../models/operations/listmarketingautomationemailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetEmailsResponse](../../models/operations/getemailsresponse.md)\>** +**Promise\<[operations.ListMarketingautomationEmailsResponse](../../models/operations/listmarketingautomationemailsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getEmail +## retrieve Retrieve a email from any connected Marketingautomation software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.email.getEmail({ + const result = await panora.marketingautomation.email.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetEmailRequest](../../models/operations/getemailrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingautomationEmailRequest](../../models/operations/retrievemarketingautomationemailrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetEmailResponse](../../models/operations/getemailresponse.md)\>** +**Promise\<[operations.RetrieveMarketingautomationEmailResponse](../../models/operations/retrievemarketingautomationemailresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employee/README.md b/docs/sdks/employee/README.md index eddcd784..878f18d8 100644 --- a/docs/sdks/employee/README.md +++ b/docs/sdks/employee/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListHrisEmployeeRequest](../../models/operations/listhrisemployeerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateHrisEmployeeRequest](../../models/operations/createhrisemployeerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveHrisEmployeeRequest](../../models/operations/retrievehrisemployeerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/employeepayrollrun/README.md b/docs/sdks/employeepayrollrun/README.md index f4e983e4..499763d6 100644 --- a/docs/sdks/employeepayrollrun/README.md +++ b/docs/sdks/employeepayrollrun/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisEmployeePayrollRunRequest](../../models/operations/listhrisemployeepayrollrunrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisEmployeePayrollRunRequest](../../models/operations/retrievehrisemployeepayrollrunrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/employerbenefit/README.md b/docs/sdks/employerbenefit/README.md index c5b97fe7..d78c0156 100644 --- a/docs/sdks/employerbenefit/README.md +++ b/docs/sdks/employerbenefit/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisEmployerBenefitRequest](../../models/operations/listhrisemployerbenefitrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisEmployerBenefitRequest](../../models/operations/retrievehrisemployerbenefitrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/employment/README.md b/docs/sdks/employment/README.md index eeeabc5d..7acd6eeb 100644 --- a/docs/sdks/employment/README.md +++ b/docs/sdks/employment/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisEmploymentRequest](../../models/operations/listhrisemploymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisEmploymentRequest](../../models/operations/retrievehrisemploymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/engagements/README.md b/docs/sdks/engagements/README.md index f04ce40a..da0859e2 100644 --- a/docs/sdks/engagements/README.md +++ b/docs/sdks/engagements/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmEngagementsRequest](../../models/operations/listcrmengagementsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -86,6 +87,7 @@ run(); | `request` | [operations.CreateCrmEngagementRequest](../../models/operations/createcrmengagementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -130,6 +132,7 @@ run(); | `request` | [operations.RetrieveCrmEngagementRequest](../../models/operations/retrievecrmengagementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/event/README.md b/docs/sdks/event/README.md index 7f43f718..e3233631 100644 --- a/docs/sdks/event/README.md +++ b/docs/sdks/event/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getMarketingAutomationEvents](#getmarketingautomationevents) - List a batch of Events -* [getEvent](#getevent) - Retrieve a Event +* [list](#list) - List a batch of Events +* [retrieve](#retrieve) - Retrieve a Event -## getMarketingAutomationEvents +## list List a batch of Events @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.event.getMarketingAutomationEvents({ + const result = await panora.marketingautomation.event.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMarketingAutomationEventsRequest](../../models/operations/getmarketingautomationeventsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingAutomationEventsRequest](../../models/operations/listmarketingautomationeventsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMarketingAutomationEventsResponse](../../models/operations/getmarketingautomationeventsresponse.md)\>** +**Promise\<[operations.ListMarketingAutomationEventsResponse](../../models/operations/listmarketingautomationeventsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getEvent +## retrieve Retrieve a event from any connected Marketingautomation software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.event.getEvent({ + const result = await panora.marketingautomation.event.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetEventRequest](../../models/operations/geteventrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingautomationEventRequest](../../models/operations/retrievemarketingautomationeventrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetEventResponse](../../models/operations/geteventresponse.md)\>** +**Promise\<[operations.RetrieveMarketingautomationEventResponse](../../models/operations/retrievemarketingautomationeventresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/expense/README.md b/docs/sdks/expense/README.md index ef84c1ce..6285183d 100644 --- a/docs/sdks/expense/README.md +++ b/docs/sdks/expense/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingExpenseRequest](../../models/operations/listaccountingexpenserequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingExpenseRequest](../../models/operations/createaccountingexpenserequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingExpenseRequest](../../models/operations/retrieveaccountingexpenserequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/fieldmappings/README.md b/docs/sdks/fieldmappings/README.md index 451f6b7c..ea34e22c 100644 --- a/docs/sdks/fieldmappings/README.md +++ b/docs/sdks/fieldmappings/README.md @@ -42,6 +42,7 @@ run(); | `request` | [components.DefineTargetFieldDto](../../models/components/definetargetfielddto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -91,6 +92,7 @@ run(); | `request` | [components.CustomFieldCreateDto](../../models/components/customfieldcreatedto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -137,6 +139,7 @@ run(); | `request` | [components.MapFieldToProviderDto](../../models/components/mapfieldtoproviderdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index ba157be2..043c6eb5 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListFilestorageFileRequest](../../models/operations/listfilestoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -93,6 +94,7 @@ run(); | `request` | [operations.CreateFilestorageFileRequest](../../models/operations/createfilestoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -137,6 +139,7 @@ run(); | `request` | [operations.RetrieveFilestorageFileRequest](../../models/operations/retrievefilestoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index d57dbca4..91b32645 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListFilestorageFolderRequest](../../models/operations/listfilestoragefolderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -94,6 +95,7 @@ run(); | `request` | [operations.CreateFilestorageFolderRequest](../../models/operations/createfilestoragefolderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -138,6 +140,7 @@ run(); | `request` | [operations.RetrieveFilestorageFolderRequest](../../models/operations/retrievefilestoragefolderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/group/README.md b/docs/sdks/group/README.md index a776ec55..c99babe7 100644 --- a/docs/sdks/group/README.md +++ b/docs/sdks/group/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisGroupRequest](../../models/operations/listhrisgrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisGroupRequest](../../models/operations/retrievehrisgrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/groups/README.md b/docs/sdks/groups/README.md index 0f0a3f81..467d24af 100644 --- a/docs/sdks/groups/README.md +++ b/docs/sdks/groups/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListFilestorageGroupRequest](../../models/operations/listfilestoragegrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveFilestorageGroupRequest](../../models/operations/retrievefilestoragegrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/incomestatement/README.md b/docs/sdks/incomestatement/README.md index 3d6132e1..aa86c4d7 100644 --- a/docs/sdks/incomestatement/README.md +++ b/docs/sdks/incomestatement/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingIncomeStatementRequest](../../models/operations/listaccountingincomestatementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingIncomeStatementRequest](../../models/operations/retrieveaccountingincomestatementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/interview/README.md b/docs/sdks/interview/README.md index f3268837..10c4b34e 100644 --- a/docs/sdks/interview/README.md +++ b/docs/sdks/interview/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAtsInterviewRequest](../../models/operations/listatsinterviewrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [operations.CreateAtsInterviewRequest](../../models/operations/createatsinterviewrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -129,6 +131,7 @@ run(); | `request` | [operations.RetrieveAtsInterviewRequest](../../models/operations/retrieveatsinterviewrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/invoice/README.md b/docs/sdks/invoice/README.md index 1cc3d293..c5074846 100644 --- a/docs/sdks/invoice/README.md +++ b/docs/sdks/invoice/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingInvoiceRequest](../../models/operations/listaccountinginvoicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingInvoiceRequest](../../models/operations/createaccountinginvoicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingInvoiceRequest](../../models/operations/retrieveaccountinginvoicerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/item/README.md b/docs/sdks/item/README.md index 79d528dd..4387e03a 100644 --- a/docs/sdks/item/README.md +++ b/docs/sdks/item/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingItemRequest](../../models/operations/listaccountingitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingItemRequest](../../models/operations/retrieveaccountingitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/job/README.md b/docs/sdks/job/README.md index 4aed454c..a376bd66 100644 --- a/docs/sdks/job/README.md +++ b/docs/sdks/job/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsJobRequest](../../models/operations/listatsjobrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsJobRequest](../../models/operations/retrieveatsjobrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/jobinterviewstage/README.md b/docs/sdks/jobinterviewstage/README.md index 0385a99c..068444fc 100644 --- a/docs/sdks/jobinterviewstage/README.md +++ b/docs/sdks/jobinterviewstage/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsJobInterviewStageRequest](../../models/operations/listatsjobinterviewstagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsJobInterviewStageRequest](../../models/operations/retrieveatsjobinterviewstagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/journalentry/README.md b/docs/sdks/journalentry/README.md index f10fdcb1..5dc37505 100644 --- a/docs/sdks/journalentry/README.md +++ b/docs/sdks/journalentry/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingJournalEntryRequest](../../models/operations/listaccountingjournalentryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingJournalEntryRequest](../../models/operations/createaccountingjournalentryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingJournalEntryRequest](../../models/operations/retrieveaccountingjournalentryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/linkedusers/README.md b/docs/sdks/linkedusers/README.md index 19db0c93..919e3c05 100644 --- a/docs/sdks/linkedusers/README.md +++ b/docs/sdks/linkedusers/README.md @@ -43,6 +43,7 @@ run(); | `request` | [components.CreateLinkedUserDto](../../models/components/createlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -130,6 +132,7 @@ run(); | `request` | [components.CreateBatchLinkedUserDto](../../models/components/createbatchlinkeduserdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -173,6 +176,7 @@ run(); | `request` | [operations.RetrieveLinkedUserRequest](../../models/operations/retrievelinkeduserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -216,6 +220,7 @@ run(); | `request` | [operations.RemoteIdRequest](../../models/operations/remoteidrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/list/README.md b/docs/sdks/list/README.md index fd37c7fd..f84ea178 100644 --- a/docs/sdks/list/README.md +++ b/docs/sdks/list/README.md @@ -3,11 +3,11 @@ ### Available Operations -* [getLists](#getlists) - List a batch of Lists -* [addList](#addlist) - Create a List -* [getList](#getlist) - Retrieve a List +* [list](#list) - List a batch of Lists +* [create](#create) - Create a List +* [retrieve](#retrieve) - Retrieve a List -## getLists +## list List a batch of Lists @@ -21,7 +21,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.list.getLists({ + const result = await panora.marketingautomation.list.list({ xConnectionToken: "", }); @@ -36,21 +36,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetListsRequest](../../models/operations/getlistsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingautomationListsRequest](../../models/operations/listmarketingautomationlistsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetListsResponse](../../models/operations/getlistsresponse.md)\>** +**Promise\<[operations.ListMarketingautomationListsResponse](../../models/operations/listmarketingautomationlistsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## addList +## create Create a list in any supported Marketingautomation software @@ -64,7 +65,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.list.addList({ + const result = await panora.marketingautomation.list.create({ xConnectionToken: "", unifiedMarketingautomationListInput: {}, }); @@ -80,21 +81,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddListRequest](../../models/operations/addlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateMarketingautomationListRequest](../../models/operations/createmarketingautomationlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddListResponse](../../models/operations/addlistresponse.md)\>** +**Promise\<[operations.CreateMarketingautomationListResponse](../../models/operations/createmarketingautomationlistresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getList +## retrieve Retrieve a list from any connected Marketingautomation software @@ -108,7 +110,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.list.getList({ + const result = await panora.marketingautomation.list.retrieve({ xConnectionToken: "", id: "", }); @@ -124,14 +126,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetListRequest](../../models/operations/getlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingautomationListRequest](../../models/operations/retrievemarketingautomationlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetListResponse](../../models/operations/getlistresponse.md)\>** +**Promise\<[operations.RetrieveMarketingautomationListResponse](../../models/operations/retrievemarketingautomationlistresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/location/README.md b/docs/sdks/location/README.md index d91874bc..7a85a929 100644 --- a/docs/sdks/location/README.md +++ b/docs/sdks/location/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisLocationRequest](../../models/operations/listhrislocationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisLocationRequest](../../models/operations/retrievehrislocationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/message/README.md b/docs/sdks/message/README.md index bdb0651a..11271eff 100644 --- a/docs/sdks/message/README.md +++ b/docs/sdks/message/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getMessages](#getmessages) - List a batch of Messages -* [getMessage](#getmessage) - Retrieve a Message +* [list](#list) - List a batch of Messages +* [retrieve](#retrieve) - Retrieve a Message -## getMessages +## list List a batch of Messages @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.message.getMessages({ + const result = await panora.marketingautomation.message.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMessagesRequest](../../models/operations/getmessagesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingautomationMessagesRequest](../../models/operations/listmarketingautomationmessagesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMessagesResponse](../../models/operations/getmessagesresponse.md)\>** +**Promise\<[operations.ListMarketingautomationMessagesResponse](../../models/operations/listmarketingautomationmessagesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getMessage +## retrieve Retrieve a message from any connected Marketingautomation software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.message.getMessage({ + const result = await panora.marketingautomation.message.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMessageRequest](../../models/operations/getmessagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingautomationMessageRequest](../../models/operations/retrievemarketingautomationmessagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMessageResponse](../../models/operations/getmessageresponse.md)\>** +**Promise\<[operations.RetrieveMarketingautomationMessageResponse](../../models/operations/retrievemarketingautomationmessageresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index dfa22ec3..720f28d1 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmNoteRequest](../../models/operations/listcrmnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -86,6 +87,7 @@ run(); | `request` | [operations.CreateCrmNoteRequest](../../models/operations/createcrmnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -130,6 +132,7 @@ run(); | `request` | [operations.RetrieveCrmNoteRequest](../../models/operations/retrievecrmnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/offer/README.md b/docs/sdks/offer/README.md index 2a676952..e5446aa0 100644 --- a/docs/sdks/offer/README.md +++ b/docs/sdks/offer/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsOfferRequest](../../models/operations/listatsofferrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsOfferRequest](../../models/operations/retrieveatsofferrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/office/README.md b/docs/sdks/office/README.md index 162fcc44..849c40a8 100644 --- a/docs/sdks/office/README.md +++ b/docs/sdks/office/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsOfficeRequest](../../models/operations/listatsofficerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsOfficeRequest](../../models/operations/retrieveatsofficerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/panora/README.md b/docs/sdks/panora/README.md index 2ad3357b..1d2e6b82 100644 --- a/docs/sdks/panora/README.md +++ b/docs/sdks/panora/README.md @@ -7,11 +7,10 @@ Unified Panora API: The Panora API description ### Available Operations -* [appControllerHello](#appcontrollerhello) -* [getHealth](#gethealth) -* [getHelloProtected](#gethelloprotected) +* [home](#home) +* [health](#health) -## appControllerHello +## home ### Example Usage @@ -23,7 +22,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.appControllerHello(); + const result = await panora.home(); // Handle the result console.log(result) @@ -38,18 +37,19 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AppControllerHelloResponse](../../models/operations/appcontrollerhelloresponse.md)\>** +**Promise\<[operations.HomeResponse](../../models/operations/homeresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getHealth +## health ### Example Usage @@ -61,7 +61,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.getHealth(); + const result = await panora.health(); // Handle the result console.log(result) @@ -76,49 +76,12 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetHealthResponse](../../models/operations/gethealthresponse.md)\>** -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - -## getHelloProtected - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - bearer: "", -}); - -async function run() { - const result = await panora.getHelloProtected(); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | - - -### Response - -**Promise\<[operations.GetHelloProtectedResponse](../../models/operations/gethelloprotectedresponse.md)\>** +**Promise\<[operations.HealthResponse](../../models/operations/healthresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraattachment/README.md b/docs/sdks/panoraattachment/README.md index a04f4a7f..25cc4f3e 100644 --- a/docs/sdks/panoraattachment/README.md +++ b/docs/sdks/panoraattachment/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingAttachmentsRequest](../../models/operations/listaccountingattachmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingAttachmentRequest](../../models/operations/createaccountingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingAttachmentRequest](../../models/operations/retrieveaccountingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/panoracontact/README.md b/docs/sdks/panoracontact/README.md index 23d4ba97..8a12f95e 100644 --- a/docs/sdks/panoracontact/README.md +++ b/docs/sdks/panoracontact/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingContactsRequest](../../models/operations/listaccountingcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingContactRequest](../../models/operations/createaccountingcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingContactRequest](../../models/operations/retrieveaccountingcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/panoracontacts/README.md b/docs/sdks/panoracontacts/README.md index c1da5715..9c16663f 100644 --- a/docs/sdks/panoracontacts/README.md +++ b/docs/sdks/panoracontacts/README.md @@ -4,8 +4,8 @@ ### Available Operations * [list](#list) - List CRM Contacts -* [addCrmContact](#addcrmcontact) - Create CRM Contact -* [getCrmContact](#getcrmcontact) - Retrieve a CRM Contact +* [create](#create) - Create CRM Contact +* [retrieve](#retrieve) - Retrieve a CRM Contact ## list @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmContactsRequest](../../models/operations/listcrmcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -50,7 +51,7 @@ run(); | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## addCrmContact +## create Create a contact in any supported CRM @@ -64,11 +65,11 @@ const panora = new Panora({ }); async function run() { - const result = await panora.crm.contacts.addCrmContact({ + const result = await panora.crm.contacts.create({ xConnectionToken: "", unifiedCrmContactInput: { - firstName: "Jailyn", - lastName: "Witting", + firstName: "Jed", + lastName: "Kuhn", fieldMappings: {}, }, }); @@ -84,21 +85,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddCrmContactRequest](../../models/operations/addcrmcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateCrmContactRequest](../../models/operations/createcrmcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddCrmContactResponse](../../models/operations/addcrmcontactresponse.md)\>** +**Promise\<[operations.CreateCrmContactResponse](../../models/operations/createcrmcontactresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getCrmContact +## retrieve Retrieve a contact from any connected CRM @@ -112,7 +114,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.crm.contacts.getCrmContact({ + const result = await panora.crm.contacts.retrieve({ xConnectionToken: "", id: "", }); @@ -128,14 +130,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetCrmContactRequest](../../models/operations/getcrmcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveCrmContactRequest](../../models/operations/retrievecrmcontactrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetCrmContactResponse](../../models/operations/getcrmcontactresponse.md)\>** +**Promise\<[operations.RetrieveCrmContactResponse](../../models/operations/retrievecrmcontactresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorafilestorageusers/README.md b/docs/sdks/panorafilestorageusers/README.md index 4e53b1de..8f8e829a 100644 --- a/docs/sdks/panorafilestorageusers/README.md +++ b/docs/sdks/panorafilestorageusers/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getUsers](#getusers) - List a batch of Users -* [getUser](#getuser) - Retrieve a User +* [list](#list) - List a batch of Users +* [retrieve](#retrieve) - Retrieve a User -## getUsers +## list List a batch of Users @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.filestorage.users.getUsers({ + const result = await panora.filestorage.users.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetUsersRequest](../../models/operations/getusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListFilestorageUsersRequest](../../models/operations/listfilestorageusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetUsersResponse](../../models/operations/getusersresponse.md)\>** +**Promise\<[operations.ListFilestorageUsersResponse](../../models/operations/listfilestorageusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getUser +## retrieve Retrieve a permission from any connected Filestorage software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.filestorage.users.getUser({ + const result = await panora.filestorage.users.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetUserRequest](../../models/operations/getuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveFilestorageUserRequest](../../models/operations/retrievefilestorageuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetUserResponse](../../models/operations/getuserresponse.md)\>** +**Promise\<[operations.RetrieveFilestorageUserResponse](../../models/operations/retrievefilestorageuserresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorauser/README.md b/docs/sdks/panorauser/README.md index 25982140..940b4c44 100644 --- a/docs/sdks/panorauser/README.md +++ b/docs/sdks/panorauser/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsUsersRequest](../../models/operations/listatsusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsUserRequest](../../models/operations/retrieveatsuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/panorausers/README.md b/docs/sdks/panorausers/README.md index e05b7ae9..874e2cc8 100644 --- a/docs/sdks/panorausers/README.md +++ b/docs/sdks/panorausers/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListCrmUsersRequest](../../models/operations/listcrmusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveCrmUserRequest](../../models/operations/retrievecrmuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/passthrough/README.md b/docs/sdks/passthrough/README.md index bb67c532..3ccadc26 100644 --- a/docs/sdks/passthrough/README.md +++ b/docs/sdks/passthrough/README.md @@ -44,6 +44,7 @@ run(); | `request` | [operations.RequestRequest](../../models/operations/requestrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/paygroup/README.md b/docs/sdks/paygroup/README.md index dfabc6db..20f95b4d 100644 --- a/docs/sdks/paygroup/README.md +++ b/docs/sdks/paygroup/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisPaygroupRequest](../../models/operations/listhrispaygrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisPaygroupRequest](../../models/operations/retrievehrispaygrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/payment/README.md b/docs/sdks/payment/README.md index 03209ca3..3ee6e282 100644 --- a/docs/sdks/payment/README.md +++ b/docs/sdks/payment/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingPaymentRequest](../../models/operations/listaccountingpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingPaymentRequest](../../models/operations/createaccountingpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingPaymentRequest](../../models/operations/retrieveaccountingpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/payrollrun/README.md b/docs/sdks/payrollrun/README.md index 282287f9..33420f83 100644 --- a/docs/sdks/payrollrun/README.md +++ b/docs/sdks/payrollrun/README.md @@ -37,6 +37,7 @@ run(); | `request` | [operations.ListHrisPayrollRunsRequest](../../models/operations/listhrispayrollrunsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/phonenumber/README.md b/docs/sdks/phonenumber/README.md index bbfe4a49..a27bafd2 100644 --- a/docs/sdks/phonenumber/README.md +++ b/docs/sdks/phonenumber/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingPhonenumberRequest](../../models/operations/listaccountingphonenumberrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingPhonenumberRequest](../../models/operations/retrieveaccountingphonenumberrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/purchaseorder/README.md b/docs/sdks/purchaseorder/README.md index c48a67df..63f98488 100644 --- a/docs/sdks/purchaseorder/README.md +++ b/docs/sdks/purchaseorder/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListAccountingPurchaseOrderRequest](../../models/operations/listaccountingpurchaseorderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateAccountingPurchaseOrderRequest](../../models/operations/createaccountingpurchaseorderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveAccountingPurchaseOrderRequest](../../models/operations/retrieveaccountingpurchaseorderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/rejectreason/README.md b/docs/sdks/rejectreason/README.md index dce76587..f9cdcfa7 100644 --- a/docs/sdks/rejectreason/README.md +++ b/docs/sdks/rejectreason/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getRejectReasons](#getrejectreasons) - List a batch of RejectReasons -* [getRejectReason](#getrejectreason) - Retrieve a RejectReason +* [list](#list) - List a batch of RejectReasons +* [retrieve](#retrieve) - Retrieve a RejectReason -## getRejectReasons +## list List a batch of RejectReasons @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.rejectreason.getRejectReasons({ + const result = await panora.ats.rejectreason.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRejectReasonsRequest](../../models/operations/getrejectreasonsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListAtsRejectReasonsRequest](../../models/operations/listatsrejectreasonsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetRejectReasonsResponse](../../models/operations/getrejectreasonsresponse.md)\>** +**Promise\<[operations.ListAtsRejectReasonsResponse](../../models/operations/listatsrejectreasonsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getRejectReason +## retrieve Retrieve a rejectreason from any connected Ats software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.rejectreason.getRejectReason({ + const result = await panora.ats.rejectreason.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRejectReasonRequest](../../models/operations/getrejectreasonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveAtsRejectReasonRequest](../../models/operations/retrieveatsrejectreasonrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetRejectReasonResponse](../../models/operations/getrejectreasonresponse.md)\>** +**Promise\<[operations.RetrieveAtsRejectReasonResponse](../../models/operations/retrieveatsrejectreasonresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/scorecard/README.md b/docs/sdks/scorecard/README.md index db29a84d..fc1bfe54 100644 --- a/docs/sdks/scorecard/README.md +++ b/docs/sdks/scorecard/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsScorecardRequest](../../models/operations/listatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsScorecardRequest](../../models/operations/retrieveatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/stages/README.md b/docs/sdks/stages/README.md index dc2059e1..3c25ec37 100644 --- a/docs/sdks/stages/README.md +++ b/docs/sdks/stages/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListCrmStagesRequest](../../models/operations/listcrmstagesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveCrmStageRequest](../../models/operations/retrievecrmstagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/sync/README.md b/docs/sdks/sync/README.md index bbadb058..27210c7a 100644 --- a/docs/sdks/sync/README.md +++ b/docs/sdks/sync/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getSyncStatus](#getsyncstatus) - Retrieve sync status of a certain vertical +* [status](#status) - Retrieve sync status of a certain vertical * [resync](#resync) - Resync common objects across a vertical -## getSyncStatus +## status Retrieve sync status of a certain vertical @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.sync.getSyncStatus({ + const result = await panora.sync.status({ vertical: "", }); @@ -35,14 +35,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSyncStatusRequest](../../models/operations/getsyncstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StatusRequest](../../models/operations/statusrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetSyncStatusResponse](../../models/operations/getsyncstatusresponse.md)\>** +**Promise\<[operations.StatusResponse](../../models/operations/statusresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | @@ -78,6 +79,7 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/tag/README.md b/docs/sdks/tag/README.md index 2573e357..0f7bfcd7 100644 --- a/docs/sdks/tag/README.md +++ b/docs/sdks/tag/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAtsTagsRequest](../../models/operations/listatstagsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAtsTagRequest](../../models/operations/retrieveatstagrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 4f11386c..7355e67b 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingTagsRequest](../../models/operations/listticketingtagsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveTicketingTagRequest](../../models/operations/retrieveticketingtagrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/tasks/README.md b/docs/sdks/tasks/README.md index ecf0ce6e..d871b390 100644 --- a/docs/sdks/tasks/README.md +++ b/docs/sdks/tasks/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListCrmTaskRequest](../../models/operations/listcrmtaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -88,6 +89,7 @@ run(); | `request` | [operations.CreateCrmTaskRequest](../../models/operations/createcrmtaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -132,6 +134,7 @@ run(); | `request` | [operations.RetrieveCrmTaskRequest](../../models/operations/retrievecrmtaskrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/taxrate/README.md b/docs/sdks/taxrate/README.md index 1f8a1814..c79b88b8 100644 --- a/docs/sdks/taxrate/README.md +++ b/docs/sdks/taxrate/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingTaxRateRequest](../../models/operations/listaccountingtaxraterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingTaxRateRequest](../../models/operations/retrieveaccountingtaxraterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index f512fdd4..2706934c 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingTeamsRequest](../../models/operations/listticketingteamsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveTicketingTeamRequest](../../models/operations/retrieveticketingteamrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/template/README.md b/docs/sdks/template/README.md index 11a77307..02020a07 100644 --- a/docs/sdks/template/README.md +++ b/docs/sdks/template/README.md @@ -3,11 +3,11 @@ ### Available Operations -* [getTemplates](#gettemplates) - List a batch of Templates -* [addTemplate](#addtemplate) - Create a Template -* [getTemplate](#gettemplate) - Retrieve a Template +* [list](#list) - List a batch of Templates +* [create](#create) - Create a Template +* [retrieve](#retrieve) - Retrieve a Template -## getTemplates +## list List a batch of Templates @@ -21,7 +21,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.template.getTemplates({ + const result = await panora.marketingautomation.template.list({ xConnectionToken: "", }); @@ -36,21 +36,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTemplatesRequest](../../models/operations/gettemplatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingautomationTemplatesRequest](../../models/operations/listmarketingautomationtemplatesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetTemplatesResponse](../../models/operations/gettemplatesresponse.md)\>** +**Promise\<[operations.ListMarketingautomationTemplatesResponse](../../models/operations/listmarketingautomationtemplatesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## addTemplate +## create Create a template in any supported Marketingautomation software @@ -64,7 +65,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.template.addTemplate({ + const result = await panora.marketingautomation.template.create({ xConnectionToken: "", unifiedMarketingautomationTemplateInput: {}, }); @@ -80,21 +81,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddTemplateRequest](../../models/operations/addtemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreateMarketingautomationTemplateRequest](../../models/operations/createmarketingautomationtemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.AddTemplateResponse](../../models/operations/addtemplateresponse.md)\>** +**Promise\<[operations.CreateMarketingautomationTemplateResponse](../../models/operations/createmarketingautomationtemplateresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getTemplate +## retrieve Retrieve a template from any connected Marketingautomation software @@ -108,7 +110,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.template.getTemplate({ + const result = await panora.marketingautomation.template.retrieve({ xConnectionToken: "", id: "", }); @@ -124,14 +126,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTemplateRequest](../../models/operations/gettemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingautomationTemplateRequest](../../models/operations/retrievemarketingautomationtemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetTemplateResponse](../../models/operations/gettemplateresponse.md)\>** +**Promise\<[operations.RetrieveMarketingautomationTemplateResponse](../../models/operations/retrievemarketingautomationtemplateresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tickets/README.md b/docs/sdks/tickets/README.md index 32120beb..3bc8dcea 100644 --- a/docs/sdks/tickets/README.md +++ b/docs/sdks/tickets/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListTicketingTicketRequest](../../models/operations/listticketingticketrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -87,6 +88,7 @@ run(); | `request` | [operations.CreateTicketingTicketRequest](../../models/operations/createticketingticketrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -131,6 +133,7 @@ run(); | `request` | [operations.RetrieveTicketingTicketRequest](../../models/operations/retrieveticketingticketrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/timeoff/README.md b/docs/sdks/timeoff/README.md index 82e7dd30..84fa716b 100644 --- a/docs/sdks/timeoff/README.md +++ b/docs/sdks/timeoff/README.md @@ -39,6 +39,7 @@ run(); | `request` | [operations.ListHrisTimeoffsRequest](../../models/operations/listhristimeoffsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -83,6 +84,7 @@ run(); | `request` | [operations.CreateHrisTimeoffRequest](../../models/operations/createhristimeoffrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -127,6 +129,7 @@ run(); | `request` | [operations.RetrieveHrisTimeoffRequest](../../models/operations/retrievehristimeoffrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/timeoffbalance/README.md b/docs/sdks/timeoffbalance/README.md index 243e2ce6..92a7b4f0 100644 --- a/docs/sdks/timeoffbalance/README.md +++ b/docs/sdks/timeoffbalance/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListHrisTimeoffbalanceRequest](../../models/operations/listhristimeoffbalancerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveHrisTimeoffbalanceRequest](../../models/operations/retrievehristimeoffbalancerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/trackingcategory/README.md b/docs/sdks/trackingcategory/README.md index c4e3c319..01dcdead 100644 --- a/docs/sdks/trackingcategory/README.md +++ b/docs/sdks/trackingcategory/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingTrackingCategorysRequest](../../models/operations/listaccountingtrackingcategorysrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingTrackingCategoryRequest](../../models/operations/retrieveaccountingtrackingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/transaction/README.md b/docs/sdks/transaction/README.md index a17ca473..3cd85239 100644 --- a/docs/sdks/transaction/README.md +++ b/docs/sdks/transaction/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingTransactionRequest](../../models/operations/listaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingTransactionRequest](../../models/operations/retrieveaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/user/README.md b/docs/sdks/user/README.md index 12f38315..d0f68ded 100644 --- a/docs/sdks/user/README.md +++ b/docs/sdks/user/README.md @@ -3,10 +3,10 @@ ### Available Operations -* [getMarketingAutomationUsers](#getmarketingautomationusers) - List a batch of Users -* [getMarketingAutomationUser](#getmarketingautomationuser) - Retrieve a User +* [list](#list) - List a batch of Users +* [retrieve](#retrieve) - Retrieve a User -## getMarketingAutomationUsers +## list List a batch of Users @@ -20,7 +20,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.user.getMarketingAutomationUsers({ + const result = await panora.marketingautomation.user.list({ xConnectionToken: "", }); @@ -35,21 +35,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMarketingAutomationUsersRequest](../../models/operations/getmarketingautomationusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.ListMarketingAutomationUsersRequest](../../models/operations/listmarketingautomationusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMarketingAutomationUsersResponse](../../models/operations/getmarketingautomationusersresponse.md)\>** +**Promise\<[operations.ListMarketingAutomationUsersResponse](../../models/operations/listmarketingautomationusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## getMarketingAutomationUser +## retrieve Retrieve a user from any connected Marketingautomation software @@ -63,7 +64,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.marketingautomation.user.getMarketingAutomationUser({ + const result = await panora.marketingautomation.user.retrieve({ xConnectionToken: "", id: "", }); @@ -79,14 +80,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMarketingAutomationUserRequest](../../models/operations/getmarketingautomationuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.RetrieveMarketingAutomationUserRequest](../../models/operations/retrievemarketingautomationuserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.GetMarketingAutomationUserResponse](../../models/operations/getmarketingautomationuserresponse.md)\>** +**Promise\<[operations.RetrieveMarketingAutomationUserResponse](../../models/operations/retrievemarketingautomationuserresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 59e7734c..df452367 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListTicketingUsersRequest](../../models/operations/listticketingusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveTicketingUserRequest](../../models/operations/retrieveticketinguserrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/vendorcredit/README.md b/docs/sdks/vendorcredit/README.md index 55c19755..8e9b8d84 100644 --- a/docs/sdks/vendorcredit/README.md +++ b/docs/sdks/vendorcredit/README.md @@ -38,6 +38,7 @@ run(); | `request` | [operations.ListAccountingVendorCreditRequest](../../models/operations/listaccountingvendorcreditrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -82,6 +83,7 @@ run(); | `request` | [operations.RetrieveAccountingVendorCreditRequest](../../models/operations/retrieveaccountingvendorcreditrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/webhook/README.md b/docs/sdks/webhook/README.md index 107869c4..a8ac81e0 100644 --- a/docs/sdks/webhook/README.md +++ b/docs/sdks/webhook/README.md @@ -5,8 +5,8 @@ * [list](#list) - List webhooks * [create](#create) - Add webhook metadata -* [deleteWebhook](#deletewebhook) - Delete Webhook -* [updateWebhookStatus](#updatewebhookstatus) - Update webhook status +* [delete](#delete) - Delete Webhook +* [updateStatus](#updatestatus) - Update webhook status * [verifyEvent](#verifyevent) - Verify payload sgnature of the webhook ## list @@ -38,6 +38,7 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -85,6 +86,7 @@ run(); | `request` | [components.WebhookDto](../../models/components/webhookdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -96,7 +98,7 @@ run(); | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## deleteWebhook +## delete Delete Webhook @@ -110,7 +112,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.webhook.deleteWebhook({ + const result = await panora.webhook.delete({ id: "", }); @@ -125,21 +127,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteWebhookRequest](../../models/operations/deletewebhookrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.DeleteRequest](../../models/operations/deleterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.DeleteWebhookResponse](../../models/operations/deletewebhookresponse.md)\>** +**Promise\<[operations.DeleteResponse](../../models/operations/deleteresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | -## updateWebhookStatus +## updateStatus Update webhook status @@ -153,7 +156,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.webhook.updateWebhookStatus({ + const result = await panora.webhook.updateStatus({ id: "", }); @@ -168,14 +171,15 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateWebhookStatusRequest](../../models/operations/updatewebhookstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.UpdateStatusRequest](../../models/operations/updatestatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.UpdateWebhookStatusResponse](../../models/operations/updatewebhookstatusresponse.md)\>** +**Promise\<[operations.UpdateStatusResponse](../../models/operations/updatestatusresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | @@ -216,6 +220,7 @@ run(); | `request` | [components.SignatureVerificationDto](../../models/components/signatureverificationdto.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/jsr.json b/jsr.json index f385dbfb..3dfb7a12 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.0.1", + "version": "0.1.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index eda96252..6cd33be8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,13 @@ { "name": "@panora/sdk", - "version": "0.0.1", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.0.1", + "version": "0.1.0", "devDependencies": { - "@types/jsonpath": "^0.2.4", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "eslint": "^8.57.0", @@ -197,12 +196,6 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "node_modules/@types/jsonpath": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@types/jsonpath/-/jsonpath-0.2.4.tgz", - "integrity": "sha512-K3hxB8Blw0qgW6ExKgMbXQv2UPZBoE2GqLpVY+yr7nMD2Pq86lsuIzyAaiQ7eMqFL5B6di6pxSkogLJEyEHoGA==", - "dev": true - }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "7.17.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.17.0.tgz", diff --git a/package.json b/package.json index 98b2febd..42ade641 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,13 @@ { "name": "@panora/sdk", - "version": "0.0.1", - "author": "Speakeasy", + "version": "0.1.0", + "author": "Speakeasy", "main": "./index.js", "sideEffects": false, + "repository": { + "type": "git", + "url": "https://github.com/panoratech/typescript-sdk.git" + }, "scripts": { "lint": "eslint --max-warnings=0 src", "build": "tsc", @@ -13,7 +17,6 @@ "zod": ">= 3" }, "devDependencies": { - "@types/jsonpath": "^0.2.4", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "eslint": "^8.57.0", diff --git a/src/lib/config.ts b/src/lib/config.ts index 2f210cb3..7f49ab47 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -36,6 +36,7 @@ export type SDKOptions = { * Allows overriding the default retry config used by the SDK */ retryConfig?: RetryConfig; + timeoutMs?: number; }; export function serverURLFromOptions(options: SDKOptions): URL | null { @@ -58,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.0.1", - genVersion: "2.347.8", - userAgent: "speakeasy-sdk/typescript 0.0.1 2.347.8 1.0 @panora/sdk", + sdkVersion: "0.1.0", + genVersion: "2.378.3", + userAgent: "speakeasy-sdk/typescript 0.1.0 2.378.3 1.0 @panora/sdk", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 49f536b6..9ddea674 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -212,6 +212,24 @@ export function encodeDeepObject( return ""; } + if (!isPlainObject(value)) { + throw new EncodingError( + `Value of parameter '${key}' which uses deepObject encoding must be an object`, + ); + } + + return encodeDeepObjectObject(key, value, options); +} + +export function encodeDeepObjectObject( + key: string, + value: unknown, + options?: { charEncoding?: "percent" | "none" }, +): string { + if (value == null) { + return ""; + } + let out = ""; const encodeString = (v: string) => { @@ -219,9 +237,7 @@ export function encodeDeepObject( }; if (!isPlainObject(value)) { - throw new EncodingError( - `Value of parameter '${key}' which uses deepObject encoding must be an object`, - ); + throw new EncodingError(`Expected parameter '${key}' to be an object.`); } Object.entries(value).forEach(([ck, cv]) => { @@ -232,9 +248,11 @@ export function encodeDeepObject( const pk = `${key}[${ck}]`; if (isPlainObject(cv)) { - throw new EncodingError( - `Value of parameter field '${pk}' cannot be an array or object.`, - ); + const objOut = encodeDeepObjectObject(pk, cv, options); + + out += `&${objOut}`; + + return; } const pairs: unknown[] = Array.isArray(cv) ? cv : [cv]; diff --git a/src/lib/http.ts b/src/lib/http.ts index b84292aa..4ff7b771 100644 --- a/src/lib/http.ts +++ b/src/lib/http.ts @@ -284,6 +284,7 @@ type ResponsePredicateMatch = { key: string | undefined; err: boolean; fail: boolean; + sseSentinel?: string | undefined; }; type ResponsePredicateOptions = { @@ -291,6 +292,8 @@ type ResponsePredicateOptions = { ctype?: string; /** Pass HTTP headers to deserializer. */ hdrs?: boolean; + /** A value for an SSE event's data field that indicates a stream should be terminated. */ + sseSentinel?: string; } & ( | { /** The result key to store the deserialized value into. */ @@ -326,6 +329,7 @@ export class ResponseMatcher { const key = opts?.key; const err = !!opts?.err; const fail = !!opts?.fail; + const sseSentinel = opts?.sseSentinel; this.predicates.push({ method, codes, @@ -335,6 +339,7 @@ export class ResponseMatcher { key, err, fail, + sseSentinel, }); return this; } diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index b6f45cfc..6e43e8eb 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -4,13 +4,33 @@ import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http.js"; import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security.js"; +import { retry, RetryConfig } from "./retries.js"; import { pathToFunc } from "./url.js"; import { encodeForm } from "./encodings.js"; import { stringToBase64 } from "./base64.js"; +import { SDK_METADATA } from "./config.js"; import { SDKHooks } from "../hooks/hooks.js"; import { HookContext } from "../hooks/types.js"; export type RequestOptions = { + /** + * Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If + * `fetchOptions.signal` is set then it will take precedence over this option. + */ + timeoutMs?: number; + /** + * Set or override a retry policy on HTTP calls. + */ + retries?: RetryConfig; + /** + * Specifies the status codes which should be retried using the given retry policy. + */ + retryCodes?: string[]; + /** + * Sets various request options on the `fetch` call made by an SDK method. + * + * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request} + */ fetchOptions?: Omit; }; @@ -22,8 +42,21 @@ type RequestConfig = { body?: RequestInit["body"]; headers?: HeadersInit; security?: SecurityState | null; + uaHeader?: string; + timeoutMs?: number; }; +const gt: unknown = typeof globalThis === "undefined" ? null : globalThis; +const webWorkerLike = + typeof gt === "object" && + gt != null && + "importScripts" in gt && + typeof gt["importScripts"] === "function"; +const isBrowserLike = + webWorkerLike || + (typeof navigator !== "undefined" && "serviceWorker" in navigator) || + (typeof window === "object" && typeof window.document !== "undefined"); + export class ClientSDK { private readonly client: HTTPClient; protected readonly baseURL: URL | null; @@ -100,10 +133,26 @@ export class ClientSDK { headers.set(k, v); } + // Only set user agent header in non-browser-like environments since CORS + // policy disallows setting it in browsers e.g. Chrome throws an error. + if (!isBrowserLike) { + headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent); + } + + let fetchOptions = options?.fetchOptions; + if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) { + const timeoutSignal = AbortSignal.timeout(conf.timeoutMs); + if (!fetchOptions) { + fetchOptions = { signal: timeoutSignal }; + } else { + fetchOptions.signal = timeoutSignal; + } + } + const input = this.hooks$.beforeCreateRequest(context, { url: reqURL, options: { - ...options?.fetchOptions, + ...fetchOptions, body: conf.body ?? null, headers, method, @@ -114,27 +163,40 @@ export class ClientSDK { } protected async do$( - req: Request, + request: Request, options: { context: HookContext; errorCodes: number | string | (number | string)[]; + retryConfig?: RetryConfig | undefined; + retryCodes?: string[] | undefined; } ): Promise { const { context, errorCodes } = options; - - let response = await this.client.request(await this.hooks$.beforeRequest(context, req)); - - if (matchStatusCode(response, errorCodes)) { - const result = await this.hooks$.afterError(context, response, null); - if (result.error) { - throw result.error; - } - response = result.response || response; - } else { - response = await this.hooks$.afterSuccess(context, response); - } - - return response; + const retryConfig = options.retryConfig || { strategy: "none" }; + const retryCodes = options.retryCodes || []; + + return retry( + async () => { + const req = request.clone(); + + let response = await this.client.request( + await this.hooks$.beforeRequest(context, req) + ); + + if (matchStatusCode(response, errorCodes)) { + const result = await this.hooks$.afterError(context, response, null); + if (result.error) { + throw result.error; + } + response = result.response || response; + } else { + response = await this.hooks$.afterSuccess(context, response); + } + + return response; + }, + { config: retryConfig, statusCodes: retryCodes } + ); } protected matcher(): ResponseMatcher { diff --git a/src/models/components/address.ts b/src/models/components/address.ts index 404d835f..ce6972b4 100644 --- a/src/models/components/address.ts +++ b/src/models/components/address.ts @@ -41,57 +41,70 @@ export type Address = { }; /** @internal */ -export namespace Address$ { - export const inboundSchema: z.ZodType = z - .object({ - street_1: z.string(), - street_2: z.string(), - city: z.string(), - state: z.string(), - postal_code: z.string(), - country: z.string(), - address_type: z.string(), - owner_type: z.string(), - }) - .transform((v) => { - return remap$(v, { - street_1: "street1", - street_2: "street2", - postal_code: "postalCode", - address_type: "addressType", - owner_type: "ownerType", - }); +export const Address$inboundSchema: z.ZodType = z + .object({ + street_1: z.string(), + street_2: z.string(), + city: z.string(), + state: z.string(), + postal_code: z.string(), + country: z.string(), + address_type: z.string(), + owner_type: z.string(), + }) + .transform((v) => { + return remap$(v, { + street_1: "street1", + street_2: "street2", + postal_code: "postalCode", + address_type: "addressType", + owner_type: "ownerType", }); + }); - export type Outbound = { - street_1: string; - street_2: string; - city: string; - state: string; - postal_code: string; - country: string; - address_type: string; - owner_type: string; - }; +/** @internal */ +export type Address$Outbound = { + street_1: string; + street_2: string; + city: string; + state: string; + postal_code: string; + country: string; + address_type: string; + owner_type: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - street1: z.string(), - street2: z.string(), - city: z.string(), - state: z.string(), - postalCode: z.string(), - country: z.string(), - addressType: z.string(), - ownerType: z.string(), - }) - .transform((v) => { - return remap$(v, { - street1: "street_1", - street2: "street_2", - postalCode: "postal_code", - addressType: "address_type", - ownerType: "owner_type", - }); +/** @internal */ +export const Address$outboundSchema: z.ZodType = z + .object({ + street1: z.string(), + street2: z.string(), + city: z.string(), + state: z.string(), + postalCode: z.string(), + country: z.string(), + addressType: z.string(), + ownerType: z.string(), + }) + .transform((v) => { + return remap$(v, { + street1: "street_1", + street2: "street_2", + postalCode: "postal_code", + addressType: "address_type", + ownerType: "owner_type", }); + }); + +/** + * @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; } diff --git a/src/models/components/createbatchlinkeduserdto.ts b/src/models/components/createbatchlinkeduserdto.ts index 5674be6e..bc18c5c4 100644 --- a/src/models/components/createbatchlinkeduserdto.ts +++ b/src/models/components/createbatchlinkeduserdto.ts @@ -12,36 +12,57 @@ export type CreateBatchLinkedUserDto = { }; /** @internal */ -export namespace CreateBatchLinkedUserDto$ { - export const inboundSchema: z.ZodType = z - .object({ - linked_user_origin_ids: z.array(z.string()), - alias: z.string(), - id_project: z.string(), - }) - .transform((v) => { - return remap$(v, { - linked_user_origin_ids: "linkedUserOriginIds", - id_project: "idProject", - }); +export const CreateBatchLinkedUserDto$inboundSchema: z.ZodType< + CreateBatchLinkedUserDto, + z.ZodTypeDef, + unknown +> = z + .object({ + linked_user_origin_ids: z.array(z.string()), + alias: z.string(), + id_project: z.string(), + }) + .transform((v) => { + return remap$(v, { + linked_user_origin_ids: "linkedUserOriginIds", + id_project: "idProject", }); + }); - export type Outbound = { - linked_user_origin_ids: Array; - alias: string; - id_project: string; - }; +/** @internal */ +export type CreateBatchLinkedUserDto$Outbound = { + linked_user_origin_ids: Array; + alias: string; + id_project: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - linkedUserOriginIds: z.array(z.string()), - alias: z.string(), - idProject: z.string(), - }) - .transform((v) => { - return remap$(v, { - linkedUserOriginIds: "linked_user_origin_ids", - idProject: "id_project", - }); +/** @internal */ +export const CreateBatchLinkedUserDto$outboundSchema: z.ZodType< + CreateBatchLinkedUserDto$Outbound, + z.ZodTypeDef, + CreateBatchLinkedUserDto +> = z + .object({ + linkedUserOriginIds: z.array(z.string()), + alias: z.string(), + idProject: z.string(), + }) + .transform((v) => { + return remap$(v, { + linkedUserOriginIds: "linked_user_origin_ids", + idProject: "id_project", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateBatchLinkedUserDto$ { + /** @deprecated use `CreateBatchLinkedUserDto$inboundSchema` instead. */ + export const inboundSchema = CreateBatchLinkedUserDto$inboundSchema; + /** @deprecated use `CreateBatchLinkedUserDto$outboundSchema` instead. */ + export const outboundSchema = CreateBatchLinkedUserDto$outboundSchema; + /** @deprecated use `CreateBatchLinkedUserDto$Outbound` instead. */ + export type Outbound = CreateBatchLinkedUserDto$Outbound; } diff --git a/src/models/components/createlinkeduserdto.ts b/src/models/components/createlinkeduserdto.ts index dafa3bc4..7c8e7f4c 100644 --- a/src/models/components/createlinkeduserdto.ts +++ b/src/models/components/createlinkeduserdto.ts @@ -12,36 +12,57 @@ export type CreateLinkedUserDto = { }; /** @internal */ -export namespace CreateLinkedUserDto$ { - export const inboundSchema: z.ZodType = z - .object({ - linked_user_origin_id: z.string(), - alias: z.string(), - id_project: z.string(), - }) - .transform((v) => { - return remap$(v, { - linked_user_origin_id: "linkedUserOriginId", - id_project: "idProject", - }); +export const CreateLinkedUserDto$inboundSchema: z.ZodType< + CreateLinkedUserDto, + z.ZodTypeDef, + unknown +> = z + .object({ + linked_user_origin_id: z.string(), + alias: z.string(), + id_project: z.string(), + }) + .transform((v) => { + return remap$(v, { + linked_user_origin_id: "linkedUserOriginId", + id_project: "idProject", }); + }); - export type Outbound = { - linked_user_origin_id: string; - alias: string; - id_project: string; - }; +/** @internal */ +export type CreateLinkedUserDto$Outbound = { + linked_user_origin_id: string; + alias: string; + id_project: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - linkedUserOriginId: z.string(), - alias: z.string(), - idProject: z.string(), - }) - .transform((v) => { - return remap$(v, { - linkedUserOriginId: "linked_user_origin_id", - idProject: "id_project", - }); +/** @internal */ +export const CreateLinkedUserDto$outboundSchema: z.ZodType< + CreateLinkedUserDto$Outbound, + z.ZodTypeDef, + CreateLinkedUserDto +> = z + .object({ + linkedUserOriginId: z.string(), + alias: z.string(), + idProject: z.string(), + }) + .transform((v) => { + return remap$(v, { + linkedUserOriginId: "linked_user_origin_id", + idProject: "id_project", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateLinkedUserDto$ { + /** @deprecated use `CreateLinkedUserDto$inboundSchema` instead. */ + export const inboundSchema = CreateLinkedUserDto$inboundSchema; + /** @deprecated use `CreateLinkedUserDto$outboundSchema` instead. */ + export const outboundSchema = CreateLinkedUserDto$outboundSchema; + /** @deprecated use `CreateLinkedUserDto$Outbound` instead. */ + export type Outbound = CreateLinkedUserDto$Outbound; } diff --git a/src/models/components/customfieldcreatedto.ts b/src/models/components/customfieldcreatedto.ts index 83bab85b..f9b0b1ff 100644 --- a/src/models/components/customfieldcreatedto.ts +++ b/src/models/components/customfieldcreatedto.ts @@ -16,54 +16,75 @@ export type CustomFieldCreateDto = { }; /** @internal */ -export namespace CustomFieldCreateDto$ { - export const inboundSchema: z.ZodType = z - .object({ - object_type_owner: z.string(), - name: z.string(), - description: z.string(), - data_type: z.string(), - source_custom_field_id: z.string(), - source_provider: z.string(), - linked_user_id: z.string(), - }) - .transform((v) => { - return remap$(v, { - object_type_owner: "objectTypeOwner", - data_type: "dataType", - source_custom_field_id: "sourceCustomFieldId", - source_provider: "sourceProvider", - linked_user_id: "linkedUserId", - }); +export const CustomFieldCreateDto$inboundSchema: z.ZodType< + CustomFieldCreateDto, + z.ZodTypeDef, + unknown +> = z + .object({ + object_type_owner: z.string(), + name: z.string(), + description: z.string(), + data_type: z.string(), + source_custom_field_id: z.string(), + source_provider: z.string(), + linked_user_id: z.string(), + }) + .transform((v) => { + return remap$(v, { + object_type_owner: "objectTypeOwner", + data_type: "dataType", + source_custom_field_id: "sourceCustomFieldId", + source_provider: "sourceProvider", + linked_user_id: "linkedUserId", }); + }); - export type Outbound = { - object_type_owner: string; - name: string; - description: string; - data_type: string; - source_custom_field_id: string; - source_provider: string; - linked_user_id: string; - }; +/** @internal */ +export type CustomFieldCreateDto$Outbound = { + object_type_owner: string; + name: string; + description: string; + data_type: string; + source_custom_field_id: string; + source_provider: string; + linked_user_id: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - objectTypeOwner: z.string(), - name: z.string(), - description: z.string(), - dataType: z.string(), - sourceCustomFieldId: z.string(), - sourceProvider: z.string(), - linkedUserId: z.string(), - }) - .transform((v) => { - return remap$(v, { - objectTypeOwner: "object_type_owner", - dataType: "data_type", - sourceCustomFieldId: "source_custom_field_id", - sourceProvider: "source_provider", - linkedUserId: "linked_user_id", - }); +/** @internal */ +export const CustomFieldCreateDto$outboundSchema: z.ZodType< + CustomFieldCreateDto$Outbound, + z.ZodTypeDef, + CustomFieldCreateDto +> = z + .object({ + objectTypeOwner: z.string(), + name: z.string(), + description: z.string(), + dataType: z.string(), + sourceCustomFieldId: z.string(), + sourceProvider: z.string(), + linkedUserId: z.string(), + }) + .transform((v) => { + return remap$(v, { + objectTypeOwner: "object_type_owner", + dataType: "data_type", + sourceCustomFieldId: "source_custom_field_id", + sourceProvider: "source_provider", + linkedUserId: "linked_user_id", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CustomFieldCreateDto$ { + /** @deprecated use `CustomFieldCreateDto$inboundSchema` instead. */ + export const inboundSchema = CustomFieldCreateDto$inboundSchema; + /** @deprecated use `CustomFieldCreateDto$outboundSchema` instead. */ + export const outboundSchema = CustomFieldCreateDto$outboundSchema; + /** @deprecated use `CustomFieldCreateDto$Outbound` instead. */ + export type Outbound = CustomFieldCreateDto$Outbound; } diff --git a/src/models/components/definetargetfielddto.ts b/src/models/components/definetargetfielddto.ts index 6792c0af..181fcf5c 100644 --- a/src/models/components/definetargetfielddto.ts +++ b/src/models/components/definetargetfielddto.ts @@ -13,39 +13,60 @@ export type DefineTargetFieldDto = { }; /** @internal */ -export namespace DefineTargetFieldDto$ { - export const inboundSchema: z.ZodType = z - .object({ - object_type_owner: z.string(), - name: z.string(), - description: z.string(), - data_type: z.string(), - }) - .transform((v) => { - return remap$(v, { - object_type_owner: "objectTypeOwner", - data_type: "dataType", - }); +export const DefineTargetFieldDto$inboundSchema: z.ZodType< + DefineTargetFieldDto, + z.ZodTypeDef, + unknown +> = z + .object({ + object_type_owner: z.string(), + name: z.string(), + description: z.string(), + data_type: z.string(), + }) + .transform((v) => { + return remap$(v, { + object_type_owner: "objectTypeOwner", + data_type: "dataType", }); + }); - export type Outbound = { - object_type_owner: string; - name: string; - description: string; - data_type: string; - }; +/** @internal */ +export type DefineTargetFieldDto$Outbound = { + object_type_owner: string; + name: string; + description: string; + data_type: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - objectTypeOwner: z.string(), - name: z.string(), - description: z.string(), - dataType: z.string(), - }) - .transform((v) => { - return remap$(v, { - objectTypeOwner: "object_type_owner", - dataType: "data_type", - }); +/** @internal */ +export const DefineTargetFieldDto$outboundSchema: z.ZodType< + DefineTargetFieldDto$Outbound, + z.ZodTypeDef, + DefineTargetFieldDto +> = z + .object({ + objectTypeOwner: z.string(), + name: z.string(), + description: z.string(), + dataType: z.string(), + }) + .transform((v) => { + return remap$(v, { + objectTypeOwner: "object_type_owner", + dataType: "data_type", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DefineTargetFieldDto$ { + /** @deprecated use `DefineTargetFieldDto$inboundSchema` instead. */ + export const inboundSchema = DefineTargetFieldDto$inboundSchema; + /** @deprecated use `DefineTargetFieldDto$outboundSchema` instead. */ + export const outboundSchema = DefineTargetFieldDto$outboundSchema; + /** @deprecated use `DefineTargetFieldDto$Outbound` instead. */ + export type Outbound = DefineTargetFieldDto$Outbound; } diff --git a/src/models/components/email.ts b/src/models/components/email.ts index 32b8f69f..44862143 100644 --- a/src/models/components/email.ts +++ b/src/models/components/email.ts @@ -21,38 +21,51 @@ export type Email = { }; /** @internal */ -export namespace Email$ { - export const inboundSchema: z.ZodType = z - .object({ - email_address: z.string(), - email_address_type: z.string(), - owner_type: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - email_address: "emailAddress", - email_address_type: "emailAddressType", - owner_type: "ownerType", - }); +export const Email$inboundSchema: z.ZodType = z + .object({ + email_address: z.string(), + email_address_type: z.string(), + owner_type: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + email_address: "emailAddress", + email_address_type: "emailAddressType", + owner_type: "ownerType", }); + }); - export type Outbound = { - email_address: string; - email_address_type: string; - owner_type?: string | undefined; - }; +/** @internal */ +export type Email$Outbound = { + email_address: string; + email_address_type: string; + owner_type?: string | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - emailAddress: z.string(), - emailAddressType: z.string(), - ownerType: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - emailAddress: "email_address", - emailAddressType: "email_address_type", - ownerType: "owner_type", - }); +/** @internal */ +export const Email$outboundSchema: z.ZodType = z + .object({ + emailAddress: z.string(), + emailAddressType: z.string(), + ownerType: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + emailAddress: "email_address", + emailAddressType: "email_address_type", + ownerType: "owner_type", }); + }); + +/** + * @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; } diff --git a/src/models/components/eventpayload.ts b/src/models/components/eventpayload.ts index 52b9cd4b..e7b9f6f7 100644 --- a/src/models/components/eventpayload.ts +++ b/src/models/components/eventpayload.ts @@ -7,10 +7,29 @@ import * as z from "zod"; export type EventPayload = {}; /** @internal */ -export namespace EventPayload$ { - export const inboundSchema: z.ZodType = z.object({}); +export const EventPayload$inboundSchema: z.ZodType = z.object( + {} +); + +/** @internal */ +export type EventPayload$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const EventPayload$outboundSchema: z.ZodType< + EventPayload$Outbound, + z.ZodTypeDef, + EventPayload +> = z.object({}); - export const outboundSchema: z.ZodType = 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 EventPayload$ { + /** @deprecated use `EventPayload$inboundSchema` instead. */ + export const inboundSchema = EventPayload$inboundSchema; + /** @deprecated use `EventPayload$outboundSchema` instead. */ + export const outboundSchema = EventPayload$outboundSchema; + /** @deprecated use `EventPayload$Outbound` instead. */ + export type Outbound = EventPayload$Outbound; } diff --git a/src/models/components/httpmetadata.ts b/src/models/components/httpmetadata.ts index 0517420a..c2234e52 100644 --- a/src/models/components/httpmetadata.ts +++ b/src/models/components/httpmetadata.ts @@ -17,37 +17,54 @@ export type HTTPMetadata = { }; /** @internal */ -export namespace HTTPMetadata$ { - export const inboundSchema: z.ZodType = z - .object({ - Response: z.instanceof(Response), - Request: z.instanceof(Request), - }) - .transform((v) => { - return remap$(v, { - Response: "response", - Request: "request", - }); +export const HTTPMetadata$inboundSchema: z.ZodType = z + .object({ + Response: z.instanceof(Response), + Request: z.instanceof(Request), + }) + .transform((v) => { + return remap$(v, { + Response: "response", + Request: "request", }); + }); - export type Outbound = { - Response: never; - Request: never; - }; +/** @internal */ +export type HTTPMetadata$Outbound = { + Response: never; + Request: never; +}; - export const outboundSchema: z.ZodType = 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 */ +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; } diff --git a/src/models/components/mapfieldtoproviderdto.ts b/src/models/components/mapfieldtoproviderdto.ts index 9a77bb62..a37b25a0 100644 --- a/src/models/components/mapfieldtoproviderdto.ts +++ b/src/models/components/mapfieldtoproviderdto.ts @@ -13,41 +13,62 @@ export type MapFieldToProviderDto = { }; /** @internal */ -export namespace MapFieldToProviderDto$ { - export const inboundSchema: z.ZodType = z - .object({ - attributeId: z.string(), - source_custom_field_id: z.string(), - source_provider: z.string(), - linked_user_id: z.string(), - }) - .transform((v) => { - return remap$(v, { - source_custom_field_id: "sourceCustomFieldId", - source_provider: "sourceProvider", - linked_user_id: "linkedUserId", - }); +export const MapFieldToProviderDto$inboundSchema: z.ZodType< + MapFieldToProviderDto, + z.ZodTypeDef, + unknown +> = z + .object({ + attributeId: z.string(), + source_custom_field_id: z.string(), + source_provider: z.string(), + linked_user_id: z.string(), + }) + .transform((v) => { + return remap$(v, { + source_custom_field_id: "sourceCustomFieldId", + source_provider: "sourceProvider", + linked_user_id: "linkedUserId", }); + }); - export type Outbound = { - attributeId: string; - source_custom_field_id: string; - source_provider: string; - linked_user_id: string; - }; +/** @internal */ +export type MapFieldToProviderDto$Outbound = { + attributeId: string; + source_custom_field_id: string; + source_provider: string; + linked_user_id: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - attributeId: z.string(), - sourceCustomFieldId: z.string(), - sourceProvider: z.string(), - linkedUserId: z.string(), - }) - .transform((v) => { - return remap$(v, { - sourceCustomFieldId: "source_custom_field_id", - sourceProvider: "source_provider", - linkedUserId: "linked_user_id", - }); +/** @internal */ +export const MapFieldToProviderDto$outboundSchema: z.ZodType< + MapFieldToProviderDto$Outbound, + z.ZodTypeDef, + MapFieldToProviderDto +> = z + .object({ + attributeId: z.string(), + sourceCustomFieldId: z.string(), + sourceProvider: z.string(), + linkedUserId: z.string(), + }) + .transform((v) => { + return remap$(v, { + sourceCustomFieldId: "source_custom_field_id", + sourceProvider: "source_provider", + linkedUserId: "linked_user_id", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MapFieldToProviderDto$ { + /** @deprecated use `MapFieldToProviderDto$inboundSchema` instead. */ + export const inboundSchema = MapFieldToProviderDto$inboundSchema; + /** @deprecated use `MapFieldToProviderDto$outboundSchema` instead. */ + export const outboundSchema = MapFieldToProviderDto$outboundSchema; + /** @deprecated use `MapFieldToProviderDto$Outbound` instead. */ + export type Outbound = MapFieldToProviderDto$Outbound; } diff --git a/src/models/components/passthroughrequestdto.ts b/src/models/components/passthroughrequestdto.ts index 9d611f5a..e1d967d1 100644 --- a/src/models/components/passthroughrequestdto.ts +++ b/src/models/components/passthroughrequestdto.ts @@ -24,50 +24,109 @@ export type PassThroughRequestDto = { }; /** @internal */ +export const Method$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Method); + +/** @internal */ +export const Method$outboundSchema: z.ZodNativeEnum = Method$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ export namespace Method$ { - export const inboundSchema: z.ZodNativeEnum = z.nativeEnum(Method); - export const outboundSchema: z.ZodNativeEnum = inboundSchema; + /** @deprecated use `Method$inboundSchema` instead. */ + export const inboundSchema = Method$inboundSchema; + /** @deprecated use `Method$outboundSchema` instead. */ + export const outboundSchema = Method$outboundSchema; } /** @internal */ -export namespace Data$ { - export const inboundSchema: z.ZodType = z.object({}); +export const Data$inboundSchema: z.ZodType = z.object({}); + +/** @internal */ +export type Data$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const Data$outboundSchema: z.ZodType = z.object({}); - export const outboundSchema: z.ZodType = 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 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; } /** @internal */ -export namespace Headers$ { - export const inboundSchema: z.ZodType = z.object({}); +export const Headers$inboundSchema: z.ZodType = z.object({}); + +/** @internal */ +export type Headers$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const Headers$outboundSchema: z.ZodType = z.object( + {} +); - export const outboundSchema: z.ZodType = 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 Headers$ { + /** @deprecated use `Headers$inboundSchema` instead. */ + export const inboundSchema = Headers$inboundSchema; + /** @deprecated use `Headers$outboundSchema` instead. */ + export const outboundSchema = Headers$outboundSchema; + /** @deprecated use `Headers$Outbound` instead. */ + export type Outbound = Headers$Outbound; } /** @internal */ +export const PassThroughRequestDto$inboundSchema: z.ZodType< + PassThroughRequestDto, + z.ZodTypeDef, + unknown +> = z.object({ + method: Method$inboundSchema, + path: z.string(), + data: z.lazy(() => Data$inboundSchema).optional(), + headers: z.lazy(() => Headers$inboundSchema).optional(), +}); + +/** @internal */ +export type PassThroughRequestDto$Outbound = { + method: string; + path: string; + data?: Data$Outbound | undefined; + headers?: Headers$Outbound | undefined; +}; + +/** @internal */ +export const PassThroughRequestDto$outboundSchema: z.ZodType< + PassThroughRequestDto$Outbound, + z.ZodTypeDef, + PassThroughRequestDto +> = z.object({ + method: Method$outboundSchema, + path: z.string(), + data: z.lazy(() => Data$outboundSchema).optional(), + headers: z.lazy(() => Headers$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 PassThroughRequestDto$ { - export const inboundSchema: z.ZodType = z.object({ - method: Method$.inboundSchema, - path: z.string(), - data: z.lazy(() => Data$.inboundSchema).optional(), - headers: z.lazy(() => Headers$.inboundSchema).optional(), - }); - - export type Outbound = { - method: string; - path: string; - data?: Data$.Outbound | undefined; - headers?: Headers$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z.object({ - method: Method$.outboundSchema, - path: z.string(), - data: z.lazy(() => Data$.outboundSchema).optional(), - headers: z.lazy(() => Headers$.outboundSchema).optional(), - }); + /** @deprecated use `PassThroughRequestDto$inboundSchema` instead. */ + export const inboundSchema = PassThroughRequestDto$inboundSchema; + /** @deprecated use `PassThroughRequestDto$outboundSchema` instead. */ + export const outboundSchema = PassThroughRequestDto$outboundSchema; + /** @deprecated use `PassThroughRequestDto$Outbound` instead. */ + export type Outbound = PassThroughRequestDto$Outbound; } diff --git a/src/models/components/passthroughresponse.ts b/src/models/components/passthroughresponse.ts index fd881916..771f9f84 100644 --- a/src/models/components/passthroughresponse.ts +++ b/src/models/components/passthroughresponse.ts @@ -13,33 +13,73 @@ export type PassThroughResponse = { }; /** @internal */ -export namespace PassThroughResponseData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const PassThroughResponseData$inboundSchema: z.ZodType< + PassThroughResponseData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type PassThroughResponseData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const PassThroughResponseData$outboundSchema: z.ZodType< + PassThroughResponseData$Outbound, + z.ZodTypeDef, + PassThroughResponseData +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 PassThroughResponseData$ { + /** @deprecated use `PassThroughResponseData$inboundSchema` instead. */ + export const inboundSchema = PassThroughResponseData$inboundSchema; + /** @deprecated use `PassThroughResponseData$outboundSchema` instead. */ + export const outboundSchema = PassThroughResponseData$outboundSchema; + /** @deprecated use `PassThroughResponseData$Outbound` instead. */ + export type Outbound = PassThroughResponseData$Outbound; } /** @internal */ +export const PassThroughResponse$inboundSchema: z.ZodType< + PassThroughResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), + status: z.number(), + data: z.lazy(() => PassThroughResponseData$inboundSchema), +}); + +/** @internal */ +export type PassThroughResponse$Outbound = { + url: string; + status: number; + data: PassThroughResponseData$Outbound; +}; + +/** @internal */ +export const PassThroughResponse$outboundSchema: z.ZodType< + PassThroughResponse$Outbound, + z.ZodTypeDef, + PassThroughResponse +> = z.object({ + url: z.string(), + status: z.number(), + data: z.lazy(() => PassThroughResponseData$outboundSchema), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ export namespace PassThroughResponse$ { - export const inboundSchema: z.ZodType = z.object({ - url: z.string(), - status: z.number(), - data: z.lazy(() => PassThroughResponseData$.inboundSchema), - }); - - export type Outbound = { - url: string; - status: number; - data: PassThroughResponseData$.Outbound; - }; - - export const outboundSchema: z.ZodType = z.object({ - url: z.string(), - status: z.number(), - data: z.lazy(() => PassThroughResponseData$.outboundSchema), - }); + /** @deprecated use `PassThroughResponse$inboundSchema` instead. */ + export const inboundSchema = PassThroughResponse$inboundSchema; + /** @deprecated use `PassThroughResponse$outboundSchema` instead. */ + export const outboundSchema = PassThroughResponse$outboundSchema; + /** @deprecated use `PassThroughResponse$Outbound` instead. */ + export type Outbound = PassThroughResponse$Outbound; } diff --git a/src/models/components/phone.ts b/src/models/components/phone.ts index 2a99ed6c..00310d2d 100644 --- a/src/models/components/phone.ts +++ b/src/models/components/phone.ts @@ -21,38 +21,51 @@ export type Phone = { }; /** @internal */ -export namespace Phone$ { - export const inboundSchema: z.ZodType = z - .object({ - phone_number: z.string(), - phone_type: z.string(), - owner_type: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - phone_number: "phoneNumber", - phone_type: "phoneType", - owner_type: "ownerType", - }); +export const Phone$inboundSchema: z.ZodType = z + .object({ + phone_number: z.string(), + phone_type: z.string(), + owner_type: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + phone_number: "phoneNumber", + phone_type: "phoneType", + owner_type: "ownerType", }); + }); - export type Outbound = { - phone_number: string; - phone_type: string; - owner_type?: string | undefined; - }; +/** @internal */ +export type Phone$Outbound = { + phone_number: string; + phone_type: string; + owner_type?: string | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - phoneNumber: z.string(), - phoneType: z.string(), - ownerType: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - phoneNumber: "phone_number", - phoneType: "phone_type", - ownerType: "owner_type", - }); +/** @internal */ +export const Phone$outboundSchema: z.ZodType = z + .object({ + phoneNumber: z.string(), + phoneType: z.string(), + ownerType: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + phoneNumber: "phone_number", + phoneType: "phone_type", + ownerType: "owner_type", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Phone$ { + /** @deprecated use `Phone$inboundSchema` instead. */ + export const inboundSchema = Phone$inboundSchema; + /** @deprecated use `Phone$outboundSchema` instead. */ + export const outboundSchema = Phone$outboundSchema; + /** @deprecated use `Phone$Outbound` instead. */ + export type Outbound = Phone$Outbound; } diff --git a/src/models/components/security.ts b/src/models/components/security.ts index 98a6549c..5919d5ea 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -9,16 +9,30 @@ export type Security = { }; /** @internal */ -export namespace Security$ { - export const inboundSchema: z.ZodType = z.object({ - bearer: z.string().optional(), - }); +export const Security$inboundSchema: z.ZodType = z.object({ + bearer: z.string().optional(), +}); - export type Outbound = { - bearer?: string | undefined; - }; +/** @internal */ +export type Security$Outbound = { + bearer?: string | undefined; +}; - export const outboundSchema: z.ZodType = z.object({ +/** @internal */ +export const Security$outboundSchema: z.ZodType = + z.object({ bearer: z.string().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; } diff --git a/src/models/components/signatureverificationdto.ts b/src/models/components/signatureverificationdto.ts index 8838a9a4..792c0ad1 100644 --- a/src/models/components/signatureverificationdto.ts +++ b/src/models/components/signatureverificationdto.ts @@ -25,33 +25,67 @@ export type SignatureVerificationDto = { }; /** @internal */ -export namespace Payload$ { - export const inboundSchema: z.ZodType = z.object({}); +export const Payload$inboundSchema: z.ZodType = z.object({}); - export type Outbound = {}; +/** @internal */ +export type Payload$Outbound = {}; - export const outboundSchema: z.ZodType = z.object({}); +/** @internal */ +export const Payload$outboundSchema: z.ZodType = 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 Payload$ { + /** @deprecated use `Payload$inboundSchema` instead. */ + export const inboundSchema = Payload$inboundSchema; + /** @deprecated use `Payload$outboundSchema` instead. */ + export const outboundSchema = Payload$outboundSchema; + /** @deprecated use `Payload$Outbound` instead. */ + export type Outbound = Payload$Outbound; } /** @internal */ +export const SignatureVerificationDto$inboundSchema: z.ZodType< + SignatureVerificationDto, + z.ZodTypeDef, + unknown +> = z.object({ + payload: z.lazy(() => Payload$inboundSchema), + signature: z.string(), + secret: z.string(), +}); + +/** @internal */ +export type SignatureVerificationDto$Outbound = { + payload: Payload$Outbound; + signature: string; + secret: string; +}; + +/** @internal */ +export const SignatureVerificationDto$outboundSchema: z.ZodType< + SignatureVerificationDto$Outbound, + z.ZodTypeDef, + SignatureVerificationDto +> = z.object({ + payload: z.lazy(() => Payload$outboundSchema), + signature: z.string(), + secret: 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 SignatureVerificationDto$ { - export const inboundSchema: z.ZodType = - z.object({ - payload: z.lazy(() => Payload$.inboundSchema), - signature: z.string(), - secret: z.string(), - }); - - export type Outbound = { - payload: Payload$.Outbound; - signature: string; - secret: string; - }; - - export const outboundSchema: z.ZodType = - z.object({ - payload: z.lazy(() => Payload$.outboundSchema), - signature: z.string(), - secret: z.string(), - }); + /** @deprecated use `SignatureVerificationDto$inboundSchema` instead. */ + export const inboundSchema = SignatureVerificationDto$inboundSchema; + /** @deprecated use `SignatureVerificationDto$outboundSchema` instead. */ + export const outboundSchema = SignatureVerificationDto$outboundSchema; + /** @deprecated use `SignatureVerificationDto$Outbound` instead. */ + export type Outbound = SignatureVerificationDto$Outbound; } diff --git a/src/models/components/unifiedaccountingaccountinput.ts b/src/models/components/unifiedaccountingaccountinput.ts index 744635ee..e6f489f0 100644 --- a/src/models/components/unifiedaccountingaccountinput.ts +++ b/src/models/components/unifiedaccountingaccountinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingAccountInput = {}; /** @internal */ -export namespace UnifiedAccountingAccountInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingAccountInput$inboundSchema: z.ZodType< + UnifiedAccountingAccountInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingAccountInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingAccountInput$outboundSchema: z.ZodType< + UnifiedAccountingAccountInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingAccountInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingAccountInput$ { + /** @deprecated use `UnifiedAccountingAccountInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingAccountInput$inboundSchema; + /** @deprecated use `UnifiedAccountingAccountInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingAccountInput$outboundSchema; + /** @deprecated use `UnifiedAccountingAccountInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingAccountInput$Outbound; } diff --git a/src/models/components/unifiedaccountingaccountoutput.ts b/src/models/components/unifiedaccountingaccountoutput.ts index ef93cce7..267f13b2 100644 --- a/src/models/components/unifiedaccountingaccountoutput.ts +++ b/src/models/components/unifiedaccountingaccountoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingAccountOutput = {}; /** @internal */ -export namespace UnifiedAccountingAccountOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingAccountOutput$inboundSchema: z.ZodType< + UnifiedAccountingAccountOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingAccountOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingAccountOutput$outboundSchema: z.ZodType< + UnifiedAccountingAccountOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingAccountOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingAccountOutput$ { + /** @deprecated use `UnifiedAccountingAccountOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingAccountOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingAccountOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingAccountOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingAccountOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingAccountOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingaddressoutput.ts b/src/models/components/unifiedaccountingaddressoutput.ts index f72b4027..4af62359 100644 --- a/src/models/components/unifiedaccountingaddressoutput.ts +++ b/src/models/components/unifiedaccountingaddressoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingAddressOutput = {}; /** @internal */ -export namespace UnifiedAccountingAddressOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingAddressOutput$inboundSchema: z.ZodType< + UnifiedAccountingAddressOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingAddressOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingAddressOutput$outboundSchema: z.ZodType< + UnifiedAccountingAddressOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingAddressOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingAddressOutput$ { + /** @deprecated use `UnifiedAccountingAddressOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingAddressOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingAddressOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingAddressOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingAddressOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingAddressOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingattachmentinput.ts b/src/models/components/unifiedaccountingattachmentinput.ts index c20554fe..1099cdf4 100644 --- a/src/models/components/unifiedaccountingattachmentinput.ts +++ b/src/models/components/unifiedaccountingattachmentinput.ts @@ -7,15 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingAttachmentInput = {}; /** @internal */ -export namespace UnifiedAccountingAttachmentInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingAttachmentInput$inboundSchema: z.ZodType< + UnifiedAccountingAttachmentInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingAttachmentInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingAttachmentInput$outboundSchema: z.ZodType< + UnifiedAccountingAttachmentInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingAttachmentInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingAttachmentInput - > = 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 UnifiedAccountingAttachmentInput$ { + /** @deprecated use `UnifiedAccountingAttachmentInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingAttachmentInput$inboundSchema; + /** @deprecated use `UnifiedAccountingAttachmentInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingAttachmentInput$outboundSchema; + /** @deprecated use `UnifiedAccountingAttachmentInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingAttachmentInput$Outbound; } diff --git a/src/models/components/unifiedaccountingattachmentoutput.ts b/src/models/components/unifiedaccountingattachmentoutput.ts index a1ced358..ce0a6669 100644 --- a/src/models/components/unifiedaccountingattachmentoutput.ts +++ b/src/models/components/unifiedaccountingattachmentoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingAttachmentOutput = {}; /** @internal */ -export namespace UnifiedAccountingAttachmentOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingAttachmentOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingAttachmentOutput$inboundSchema: z.ZodType< + UnifiedAccountingAttachmentOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingAttachmentOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingAttachmentOutput$outboundSchema: z.ZodType< + UnifiedAccountingAttachmentOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingAttachmentOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingAttachmentOutput - > = 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 UnifiedAccountingAttachmentOutput$ { + /** @deprecated use `UnifiedAccountingAttachmentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingAttachmentOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingAttachmentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingAttachmentOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingAttachmentOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingAttachmentOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingbalancesheetoutput.ts b/src/models/components/unifiedaccountingbalancesheetoutput.ts index 555e994b..caae82e7 100644 --- a/src/models/components/unifiedaccountingbalancesheetoutput.ts +++ b/src/models/components/unifiedaccountingbalancesheetoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingBalancesheetOutput = {}; /** @internal */ -export namespace UnifiedAccountingBalancesheetOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingBalancesheetOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingBalancesheetOutput$inboundSchema: z.ZodType< + UnifiedAccountingBalancesheetOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingBalancesheetOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingBalancesheetOutput$outboundSchema: z.ZodType< + UnifiedAccountingBalancesheetOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingBalancesheetOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingBalancesheetOutput - > = 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 UnifiedAccountingBalancesheetOutput$ { + /** @deprecated use `UnifiedAccountingBalancesheetOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingBalancesheetOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingBalancesheetOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingBalancesheetOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingBalancesheetOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingBalancesheetOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingcashflowstatementoutput.ts b/src/models/components/unifiedaccountingcashflowstatementoutput.ts index 127edce1..df4dabd6 100644 --- a/src/models/components/unifiedaccountingcashflowstatementoutput.ts +++ b/src/models/components/unifiedaccountingcashflowstatementoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingCashflowstatementOutput = {}; /** @internal */ -export namespace UnifiedAccountingCashflowstatementOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingCashflowstatementOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingCashflowstatementOutput$inboundSchema: z.ZodType< + UnifiedAccountingCashflowstatementOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingCashflowstatementOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingCashflowstatementOutput$outboundSchema: z.ZodType< + UnifiedAccountingCashflowstatementOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingCashflowstatementOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingCashflowstatementOutput - > = 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 UnifiedAccountingCashflowstatementOutput$ { + /** @deprecated use `UnifiedAccountingCashflowstatementOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingCashflowstatementOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingCashflowstatementOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingCashflowstatementOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingCashflowstatementOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingCashflowstatementOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingcompanyinfooutput.ts b/src/models/components/unifiedaccountingcompanyinfooutput.ts index d9be2981..bf031676 100644 --- a/src/models/components/unifiedaccountingcompanyinfooutput.ts +++ b/src/models/components/unifiedaccountingcompanyinfooutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingCompanyinfoOutput = {}; /** @internal */ -export namespace UnifiedAccountingCompanyinfoOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingCompanyinfoOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingCompanyinfoOutput$inboundSchema: z.ZodType< + UnifiedAccountingCompanyinfoOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingCompanyinfoOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingCompanyinfoOutput$outboundSchema: z.ZodType< + UnifiedAccountingCompanyinfoOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingCompanyinfoOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingCompanyinfoOutput - > = 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 UnifiedAccountingCompanyinfoOutput$ { + /** @deprecated use `UnifiedAccountingCompanyinfoOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingCompanyinfoOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingCompanyinfoOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingCompanyinfoOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingCompanyinfoOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingCompanyinfoOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingcontactinput.ts b/src/models/components/unifiedaccountingcontactinput.ts index 9a89f229..412cb630 100644 --- a/src/models/components/unifiedaccountingcontactinput.ts +++ b/src/models/components/unifiedaccountingcontactinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingContactInput = {}; /** @internal */ -export namespace UnifiedAccountingContactInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingContactInput$inboundSchema: z.ZodType< + UnifiedAccountingContactInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingContactInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingContactInput$outboundSchema: z.ZodType< + UnifiedAccountingContactInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingContactInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingContactInput$ { + /** @deprecated use `UnifiedAccountingContactInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingContactInput$inboundSchema; + /** @deprecated use `UnifiedAccountingContactInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingContactInput$outboundSchema; + /** @deprecated use `UnifiedAccountingContactInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingContactInput$Outbound; } diff --git a/src/models/components/unifiedaccountingcontactoutput.ts b/src/models/components/unifiedaccountingcontactoutput.ts index 24f51793..29236c67 100644 --- a/src/models/components/unifiedaccountingcontactoutput.ts +++ b/src/models/components/unifiedaccountingcontactoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingContactOutput = {}; /** @internal */ -export namespace UnifiedAccountingContactOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingContactOutput$inboundSchema: z.ZodType< + UnifiedAccountingContactOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingContactOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingContactOutput$outboundSchema: z.ZodType< + UnifiedAccountingContactOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingContactOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingContactOutput$ { + /** @deprecated use `UnifiedAccountingContactOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingContactOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingContactOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingContactOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingContactOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingContactOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingcreditnoteoutput.ts b/src/models/components/unifiedaccountingcreditnoteoutput.ts index 09976e29..5f4f3ea9 100644 --- a/src/models/components/unifiedaccountingcreditnoteoutput.ts +++ b/src/models/components/unifiedaccountingcreditnoteoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingCreditnoteOutput = {}; /** @internal */ -export namespace UnifiedAccountingCreditnoteOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingCreditnoteOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingCreditnoteOutput$inboundSchema: z.ZodType< + UnifiedAccountingCreditnoteOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingCreditnoteOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingCreditnoteOutput$outboundSchema: z.ZodType< + UnifiedAccountingCreditnoteOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingCreditnoteOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingCreditnoteOutput - > = 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 UnifiedAccountingCreditnoteOutput$ { + /** @deprecated use `UnifiedAccountingCreditnoteOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingCreditnoteOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingCreditnoteOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingCreditnoteOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingCreditnoteOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingCreditnoteOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingexpenseinput.ts b/src/models/components/unifiedaccountingexpenseinput.ts index 7a439fc2..f9c4812a 100644 --- a/src/models/components/unifiedaccountingexpenseinput.ts +++ b/src/models/components/unifiedaccountingexpenseinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingExpenseInput = {}; /** @internal */ -export namespace UnifiedAccountingExpenseInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingExpenseInput$inboundSchema: z.ZodType< + UnifiedAccountingExpenseInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingExpenseInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingExpenseInput$outboundSchema: z.ZodType< + UnifiedAccountingExpenseInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingExpenseInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingExpenseInput$ { + /** @deprecated use `UnifiedAccountingExpenseInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingExpenseInput$inboundSchema; + /** @deprecated use `UnifiedAccountingExpenseInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingExpenseInput$outboundSchema; + /** @deprecated use `UnifiedAccountingExpenseInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingExpenseInput$Outbound; } diff --git a/src/models/components/unifiedaccountingexpenseoutput.ts b/src/models/components/unifiedaccountingexpenseoutput.ts index fbcb77ff..7f73ba18 100644 --- a/src/models/components/unifiedaccountingexpenseoutput.ts +++ b/src/models/components/unifiedaccountingexpenseoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingExpenseOutput = {}; /** @internal */ -export namespace UnifiedAccountingExpenseOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingExpenseOutput$inboundSchema: z.ZodType< + UnifiedAccountingExpenseOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingExpenseOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingExpenseOutput$outboundSchema: z.ZodType< + UnifiedAccountingExpenseOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingExpenseOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingExpenseOutput$ { + /** @deprecated use `UnifiedAccountingExpenseOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingExpenseOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingExpenseOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingExpenseOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingExpenseOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingExpenseOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingincomestatementoutput.ts b/src/models/components/unifiedaccountingincomestatementoutput.ts index bc724284..97b251cb 100644 --- a/src/models/components/unifiedaccountingincomestatementoutput.ts +++ b/src/models/components/unifiedaccountingincomestatementoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingIncomestatementOutput = {}; /** @internal */ -export namespace UnifiedAccountingIncomestatementOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingIncomestatementOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingIncomestatementOutput$inboundSchema: z.ZodType< + UnifiedAccountingIncomestatementOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingIncomestatementOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingIncomestatementOutput$outboundSchema: z.ZodType< + UnifiedAccountingIncomestatementOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingIncomestatementOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingIncomestatementOutput - > = 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 UnifiedAccountingIncomestatementOutput$ { + /** @deprecated use `UnifiedAccountingIncomestatementOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingIncomestatementOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingIncomestatementOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingIncomestatementOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingIncomestatementOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingIncomestatementOutput$Outbound; } diff --git a/src/models/components/unifiedaccountinginvoiceinput.ts b/src/models/components/unifiedaccountinginvoiceinput.ts index 9a4fd125..a5bc2b42 100644 --- a/src/models/components/unifiedaccountinginvoiceinput.ts +++ b/src/models/components/unifiedaccountinginvoiceinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingInvoiceInput = {}; /** @internal */ -export namespace UnifiedAccountingInvoiceInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingInvoiceInput$inboundSchema: z.ZodType< + UnifiedAccountingInvoiceInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingInvoiceInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingInvoiceInput$outboundSchema: z.ZodType< + UnifiedAccountingInvoiceInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingInvoiceInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingInvoiceInput$ { + /** @deprecated use `UnifiedAccountingInvoiceInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingInvoiceInput$inboundSchema; + /** @deprecated use `UnifiedAccountingInvoiceInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingInvoiceInput$outboundSchema; + /** @deprecated use `UnifiedAccountingInvoiceInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingInvoiceInput$Outbound; } diff --git a/src/models/components/unifiedaccountinginvoiceoutput.ts b/src/models/components/unifiedaccountinginvoiceoutput.ts index cfd02612..45c0e814 100644 --- a/src/models/components/unifiedaccountinginvoiceoutput.ts +++ b/src/models/components/unifiedaccountinginvoiceoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingInvoiceOutput = {}; /** @internal */ -export namespace UnifiedAccountingInvoiceOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingInvoiceOutput$inboundSchema: z.ZodType< + UnifiedAccountingInvoiceOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingInvoiceOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingInvoiceOutput$outboundSchema: z.ZodType< + UnifiedAccountingInvoiceOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingInvoiceOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingInvoiceOutput$ { + /** @deprecated use `UnifiedAccountingInvoiceOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingInvoiceOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingInvoiceOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingInvoiceOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingInvoiceOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingInvoiceOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingitemoutput.ts b/src/models/components/unifiedaccountingitemoutput.ts index a870cb16..f00761f2 100644 --- a/src/models/components/unifiedaccountingitemoutput.ts +++ b/src/models/components/unifiedaccountingitemoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingItemOutput = {}; /** @internal */ -export namespace UnifiedAccountingItemOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingItemOutput$inboundSchema: z.ZodType< + UnifiedAccountingItemOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingItemOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingItemOutput$outboundSchema: z.ZodType< + UnifiedAccountingItemOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingItemOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingItemOutput$ { + /** @deprecated use `UnifiedAccountingItemOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingItemOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingItemOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingItemOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingItemOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingItemOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingjournalentryinput.ts b/src/models/components/unifiedaccountingjournalentryinput.ts index 3993126f..9a142c6c 100644 --- a/src/models/components/unifiedaccountingjournalentryinput.ts +++ b/src/models/components/unifiedaccountingjournalentryinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingJournalentryInput = {}; /** @internal */ -export namespace UnifiedAccountingJournalentryInput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingJournalentryInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingJournalentryInput$inboundSchema: z.ZodType< + UnifiedAccountingJournalentryInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingJournalentryInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingJournalentryInput$outboundSchema: z.ZodType< + UnifiedAccountingJournalentryInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingJournalentryInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingJournalentryInput - > = 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 UnifiedAccountingJournalentryInput$ { + /** @deprecated use `UnifiedAccountingJournalentryInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingJournalentryInput$inboundSchema; + /** @deprecated use `UnifiedAccountingJournalentryInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingJournalentryInput$outboundSchema; + /** @deprecated use `UnifiedAccountingJournalentryInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingJournalentryInput$Outbound; } diff --git a/src/models/components/unifiedaccountingjournalentryoutput.ts b/src/models/components/unifiedaccountingjournalentryoutput.ts index e011871c..ef0f2199 100644 --- a/src/models/components/unifiedaccountingjournalentryoutput.ts +++ b/src/models/components/unifiedaccountingjournalentryoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingJournalentryOutput = {}; /** @internal */ -export namespace UnifiedAccountingJournalentryOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingJournalentryOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingJournalentryOutput$inboundSchema: z.ZodType< + UnifiedAccountingJournalentryOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingJournalentryOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingJournalentryOutput$outboundSchema: z.ZodType< + UnifiedAccountingJournalentryOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingJournalentryOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingJournalentryOutput - > = 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 UnifiedAccountingJournalentryOutput$ { + /** @deprecated use `UnifiedAccountingJournalentryOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingJournalentryOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingJournalentryOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingJournalentryOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingJournalentryOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingJournalentryOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingpaymentinput.ts b/src/models/components/unifiedaccountingpaymentinput.ts index 35c7862c..7efd0109 100644 --- a/src/models/components/unifiedaccountingpaymentinput.ts +++ b/src/models/components/unifiedaccountingpaymentinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingPaymentInput = {}; /** @internal */ -export namespace UnifiedAccountingPaymentInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingPaymentInput$inboundSchema: z.ZodType< + UnifiedAccountingPaymentInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingPaymentInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingPaymentInput$outboundSchema: z.ZodType< + UnifiedAccountingPaymentInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingPaymentInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingPaymentInput$ { + /** @deprecated use `UnifiedAccountingPaymentInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingPaymentInput$inboundSchema; + /** @deprecated use `UnifiedAccountingPaymentInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingPaymentInput$outboundSchema; + /** @deprecated use `UnifiedAccountingPaymentInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingPaymentInput$Outbound; } diff --git a/src/models/components/unifiedaccountingpaymentoutput.ts b/src/models/components/unifiedaccountingpaymentoutput.ts index 613d75f7..440330d4 100644 --- a/src/models/components/unifiedaccountingpaymentoutput.ts +++ b/src/models/components/unifiedaccountingpaymentoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingPaymentOutput = {}; /** @internal */ -export namespace UnifiedAccountingPaymentOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingPaymentOutput$inboundSchema: z.ZodType< + UnifiedAccountingPaymentOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingPaymentOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingPaymentOutput$outboundSchema: z.ZodType< + UnifiedAccountingPaymentOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingPaymentOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingPaymentOutput$ { + /** @deprecated use `UnifiedAccountingPaymentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingPaymentOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingPaymentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingPaymentOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingPaymentOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingPaymentOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingphonenumberoutput.ts b/src/models/components/unifiedaccountingphonenumberoutput.ts index fd10fb1e..6e576d11 100644 --- a/src/models/components/unifiedaccountingphonenumberoutput.ts +++ b/src/models/components/unifiedaccountingphonenumberoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingPhonenumberOutput = {}; /** @internal */ -export namespace UnifiedAccountingPhonenumberOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingPhonenumberOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingPhonenumberOutput$inboundSchema: z.ZodType< + UnifiedAccountingPhonenumberOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingPhonenumberOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingPhonenumberOutput$outboundSchema: z.ZodType< + UnifiedAccountingPhonenumberOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingPhonenumberOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingPhonenumberOutput - > = 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 UnifiedAccountingPhonenumberOutput$ { + /** @deprecated use `UnifiedAccountingPhonenumberOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingPhonenumberOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingPhonenumberOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingPhonenumberOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingPhonenumberOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingPhonenumberOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingpurchaseorderinput.ts b/src/models/components/unifiedaccountingpurchaseorderinput.ts index bd379a46..ee7504eb 100644 --- a/src/models/components/unifiedaccountingpurchaseorderinput.ts +++ b/src/models/components/unifiedaccountingpurchaseorderinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingPurchaseorderInput = {}; /** @internal */ -export namespace UnifiedAccountingPurchaseorderInput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingPurchaseorderInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingPurchaseorderInput$inboundSchema: z.ZodType< + UnifiedAccountingPurchaseorderInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingPurchaseorderInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingPurchaseorderInput$outboundSchema: z.ZodType< + UnifiedAccountingPurchaseorderInput$Outbound, + z.ZodTypeDef, + UnifiedAccountingPurchaseorderInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingPurchaseorderInput - > = 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 UnifiedAccountingPurchaseorderInput$ { + /** @deprecated use `UnifiedAccountingPurchaseorderInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingPurchaseorderInput$inboundSchema; + /** @deprecated use `UnifiedAccountingPurchaseorderInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingPurchaseorderInput$outboundSchema; + /** @deprecated use `UnifiedAccountingPurchaseorderInput$Outbound` instead. */ + export type Outbound = UnifiedAccountingPurchaseorderInput$Outbound; } diff --git a/src/models/components/unifiedaccountingpurchaseorderoutput.ts b/src/models/components/unifiedaccountingpurchaseorderoutput.ts index b2c1b26c..61741742 100644 --- a/src/models/components/unifiedaccountingpurchaseorderoutput.ts +++ b/src/models/components/unifiedaccountingpurchaseorderoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingPurchaseorderOutput = {}; /** @internal */ -export namespace UnifiedAccountingPurchaseorderOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingPurchaseorderOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingPurchaseorderOutput$inboundSchema: z.ZodType< + UnifiedAccountingPurchaseorderOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingPurchaseorderOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingPurchaseorderOutput$outboundSchema: z.ZodType< + UnifiedAccountingPurchaseorderOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingPurchaseorderOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingPurchaseorderOutput - > = 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 UnifiedAccountingPurchaseorderOutput$ { + /** @deprecated use `UnifiedAccountingPurchaseorderOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingPurchaseorderOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingPurchaseorderOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingPurchaseorderOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingPurchaseorderOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingPurchaseorderOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingtaxrateoutput.ts b/src/models/components/unifiedaccountingtaxrateoutput.ts index fff2eb41..bbf38c76 100644 --- a/src/models/components/unifiedaccountingtaxrateoutput.ts +++ b/src/models/components/unifiedaccountingtaxrateoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingTaxrateOutput = {}; /** @internal */ -export namespace UnifiedAccountingTaxrateOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAccountingTaxrateOutput$inboundSchema: z.ZodType< + UnifiedAccountingTaxrateOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingTaxrateOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingTaxrateOutput$outboundSchema: z.ZodType< + UnifiedAccountingTaxrateOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingTaxrateOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAccountingTaxrateOutput$ { + /** @deprecated use `UnifiedAccountingTaxrateOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingTaxrateOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingTaxrateOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingTaxrateOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingTaxrateOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingTaxrateOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingtrackingcategoryoutput.ts b/src/models/components/unifiedaccountingtrackingcategoryoutput.ts index 6434430d..2a2a1525 100644 --- a/src/models/components/unifiedaccountingtrackingcategoryoutput.ts +++ b/src/models/components/unifiedaccountingtrackingcategoryoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingTrackingcategoryOutput = {}; /** @internal */ -export namespace UnifiedAccountingTrackingcategoryOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingTrackingcategoryOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingTrackingcategoryOutput$inboundSchema: z.ZodType< + UnifiedAccountingTrackingcategoryOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingTrackingcategoryOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingTrackingcategoryOutput$outboundSchema: z.ZodType< + UnifiedAccountingTrackingcategoryOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingTrackingcategoryOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingTrackingcategoryOutput - > = 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 UnifiedAccountingTrackingcategoryOutput$ { + /** @deprecated use `UnifiedAccountingTrackingcategoryOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingTrackingcategoryOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingTrackingcategoryOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingTrackingcategoryOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingTrackingcategoryOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingTrackingcategoryOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingtransactionoutput.ts b/src/models/components/unifiedaccountingtransactionoutput.ts index db6686b6..b428f77f 100644 --- a/src/models/components/unifiedaccountingtransactionoutput.ts +++ b/src/models/components/unifiedaccountingtransactionoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingTransactionOutput = {}; /** @internal */ -export namespace UnifiedAccountingTransactionOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingTransactionOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingTransactionOutput$inboundSchema: z.ZodType< + UnifiedAccountingTransactionOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingTransactionOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingTransactionOutput$outboundSchema: z.ZodType< + UnifiedAccountingTransactionOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingTransactionOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingTransactionOutput - > = 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 UnifiedAccountingTransactionOutput$ { + /** @deprecated use `UnifiedAccountingTransactionOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingTransactionOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingTransactionOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingTransactionOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingTransactionOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingTransactionOutput$Outbound; } diff --git a/src/models/components/unifiedaccountingvendorcreditoutput.ts b/src/models/components/unifiedaccountingvendorcreditoutput.ts index 0afb472c..fdb19fbb 100644 --- a/src/models/components/unifiedaccountingvendorcreditoutput.ts +++ b/src/models/components/unifiedaccountingvendorcreditoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedAccountingVendorcreditOutput = {}; /** @internal */ -export namespace UnifiedAccountingVendorcreditOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAccountingVendorcreditOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAccountingVendorcreditOutput$inboundSchema: z.ZodType< + UnifiedAccountingVendorcreditOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAccountingVendorcreditOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAccountingVendorcreditOutput$outboundSchema: z.ZodType< + UnifiedAccountingVendorcreditOutput$Outbound, + z.ZodTypeDef, + UnifiedAccountingVendorcreditOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAccountingVendorcreditOutput - > = 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 UnifiedAccountingVendorcreditOutput$ { + /** @deprecated use `UnifiedAccountingVendorcreditOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAccountingVendorcreditOutput$inboundSchema; + /** @deprecated use `UnifiedAccountingVendorcreditOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAccountingVendorcreditOutput$outboundSchema; + /** @deprecated use `UnifiedAccountingVendorcreditOutput$Outbound` instead. */ + export type Outbound = UnifiedAccountingVendorcreditOutput$Outbound; } diff --git a/src/models/components/unifiedatsactivityinput.ts b/src/models/components/unifiedatsactivityinput.ts index 64aa92e8..2250e4a5 100644 --- a/src/models/components/unifiedatsactivityinput.ts +++ b/src/models/components/unifiedatsactivityinput.ts @@ -36,76 +36,110 @@ export type UnifiedAtsActivityInput = { }; /** @internal */ -export namespace UnifiedAtsActivityInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsActivityInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsActivityInputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsActivityInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsActivityInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsActivityInputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsActivityInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsActivityInputFieldMappings - > = 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 UnifiedAtsActivityInputFieldMappings$ { + /** @deprecated use `UnifiedAtsActivityInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsActivityInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsActivityInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsActivityInput$ { - export const inboundSchema: z.ZodType = z - .object({ - activity_type: z.string().optional(), - subject: z.string().optional(), - body: z.string().optional(), - visibility: z.string().optional(), - candidate_id: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsActivityInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - activity_type: "activityType", - candidate_id: "candidateId", - remote_created_at: "remoteCreatedAt", - field_mappings: "fieldMappings", - }); +export const UnifiedAtsActivityInput$inboundSchema: z.ZodType< + UnifiedAtsActivityInput, + z.ZodTypeDef, + unknown +> = z + .object({ + activity_type: z.string().optional(), + subject: z.string().optional(), + body: z.string().optional(), + visibility: z.string().optional(), + candidate_id: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsActivityInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + activity_type: "activityType", + candidate_id: "candidateId", + remote_created_at: "remoteCreatedAt", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - activity_type?: string | undefined; - subject?: string | undefined; - body?: string | undefined; - visibility?: string | undefined; - candidate_id?: string | undefined; - remote_created_at?: string | undefined; - field_mappings: UnifiedAtsActivityInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedAtsActivityInput$Outbound = { + activity_type?: string | undefined; + subject?: string | undefined; + body?: string | undefined; + visibility?: string | undefined; + candidate_id?: string | undefined; + remote_created_at?: string | undefined; + field_mappings: UnifiedAtsActivityInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - activityType: z.string().optional(), - subject: z.string().optional(), - body: z.string().optional(), - visibility: z.string().optional(), - candidateId: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsActivityInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - activityType: "activity_type", - candidateId: "candidate_id", - remoteCreatedAt: "remote_created_at", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedAtsActivityInput$outboundSchema: z.ZodType< + UnifiedAtsActivityInput$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityInput +> = z + .object({ + activityType: z.string().optional(), + subject: z.string().optional(), + body: z.string().optional(), + visibility: z.string().optional(), + candidateId: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsActivityInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + activityType: "activity_type", + candidateId: "candidate_id", + remoteCreatedAt: "remote_created_at", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsActivityInput$ { + /** @deprecated use `UnifiedAtsActivityInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityInput$inboundSchema; + /** @deprecated use `UnifiedAtsActivityInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityInput$outboundSchema; + /** @deprecated use `UnifiedAtsActivityInput$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityInput$Outbound; } diff --git a/src/models/components/unifiedatsactivityoutput.ts b/src/models/components/unifiedatsactivityoutput.ts index ba55a0c0..0c6062d2 100644 --- a/src/models/components/unifiedatsactivityoutput.ts +++ b/src/models/components/unifiedatsactivityoutput.ts @@ -53,150 +53,223 @@ export type UnifiedAtsActivityOutput = { }; /** @internal */ +export const UnifiedAtsActivityOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsActivityOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsActivityOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsActivityOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsActivityOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityOutputFieldMappings +> = 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 UnifiedAtsActivityOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsActivityOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsActivityOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsActivityOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsActivityOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsActivityOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsActivityOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsActivityOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsActivityOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityOutputRemoteData +> = 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 UnifiedAtsActivityOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsActivityOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsActivityOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsActivityOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsActivityOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsActivityOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsActivityOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsActivityOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsActivityOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityOutputCreatedAt +> = 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 UnifiedAtsActivityOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsActivityOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsActivityOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsActivityOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsActivityOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsActivityOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsActivityOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsActivityOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsActivityOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityOutputModifiedAt +> = 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 UnifiedAtsActivityOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsActivityOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsActivityOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsActivityOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsActivityOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsActivityOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - activity_type: z.string().optional(), - subject: z.string().optional(), - body: z.string().optional(), - visibility: z.string().optional(), - candidate_id: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsActivityOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsActivityOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsActivityOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsActivityOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - activity_type: "activityType", - candidate_id: "candidateId", - remote_created_at: "remoteCreatedAt", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsActivityOutput$inboundSchema: z.ZodType< + UnifiedAtsActivityOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + activity_type: z.string().optional(), + subject: z.string().optional(), + body: z.string().optional(), + visibility: z.string().optional(), + candidate_id: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsActivityOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsActivityOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsActivityOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsActivityOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + activity_type: "activityType", + candidate_id: "candidateId", + remote_created_at: "remoteCreatedAt", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedAtsActivityOutput$Outbound = { + activity_type?: string | undefined; + subject?: string | undefined; + body?: string | undefined; + visibility?: string | undefined; + candidate_id?: string | undefined; + remote_created_at?: string | undefined; + field_mappings: UnifiedAtsActivityOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsActivityOutputRemoteData$Outbound; + created_at: UnifiedAtsActivityOutputCreatedAt$Outbound; + modified_at: UnifiedAtsActivityOutputModifiedAt$Outbound; +}; - export type Outbound = { - activity_type?: string | undefined; - subject?: string | undefined; - body?: string | undefined; - visibility?: string | undefined; - candidate_id?: string | undefined; - remote_created_at?: string | undefined; - field_mappings: UnifiedAtsActivityOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsActivityOutputRemoteData$.Outbound; - created_at: UnifiedAtsActivityOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsActivityOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - activityType: z.string().optional(), - subject: z.string().optional(), - body: z.string().optional(), - visibility: z.string().optional(), - candidateId: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsActivityOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsActivityOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsActivityOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsActivityOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - activityType: "activity_type", - candidateId: "candidate_id", - remoteCreatedAt: "remote_created_at", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedAtsActivityOutput$outboundSchema: z.ZodType< + UnifiedAtsActivityOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsActivityOutput +> = z + .object({ + activityType: z.string().optional(), + subject: z.string().optional(), + body: z.string().optional(), + visibility: z.string().optional(), + candidateId: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsActivityOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsActivityOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsActivityOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsActivityOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + activityType: "activity_type", + candidateId: "candidate_id", + remoteCreatedAt: "remote_created_at", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsActivityOutput$ { + /** @deprecated use `UnifiedAtsActivityOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsActivityOutput$inboundSchema; + /** @deprecated use `UnifiedAtsActivityOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsActivityOutput$outboundSchema; + /** @deprecated use `UnifiedAtsActivityOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsActivityOutput$Outbound; } diff --git a/src/models/components/unifiedatsapplicationinput.ts b/src/models/components/unifiedatsapplicationinput.ts index 6806afa6..a7e299f2 100644 --- a/src/models/components/unifiedatsapplicationinput.ts +++ b/src/models/components/unifiedatsapplicationinput.ts @@ -48,100 +48,134 @@ export type UnifiedAtsApplicationInput = { }; /** @internal */ -export namespace UnifiedAtsApplicationInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsApplicationInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsApplicationInputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsApplicationInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsApplicationInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsApplicationInputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsApplicationInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationInputFieldMappings - > = 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 UnifiedAtsApplicationInputFieldMappings$ { + /** @deprecated use `UnifiedAtsApplicationInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsApplicationInput$ { - export const inboundSchema: z.ZodType = z - .object({ - applied_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - rejected_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - offers: z.array(z.string()).optional(), - source: z.string().optional(), - credited_to: z.string().optional(), - current_stage: z.string().optional(), - reject_reason: z.string().optional(), - candidate_id: z.string().optional(), - job_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsApplicationInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - applied_at: "appliedAt", - rejected_at: "rejectedAt", - credited_to: "creditedTo", - current_stage: "currentStage", - reject_reason: "rejectReason", - candidate_id: "candidateId", - job_id: "jobId", - field_mappings: "fieldMappings", - }); +export const UnifiedAtsApplicationInput$inboundSchema: z.ZodType< + UnifiedAtsApplicationInput, + z.ZodTypeDef, + unknown +> = z + .object({ + applied_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + rejected_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + offers: z.array(z.string()).optional(), + source: z.string().optional(), + credited_to: z.string().optional(), + current_stage: z.string().optional(), + reject_reason: z.string().optional(), + candidate_id: z.string().optional(), + job_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsApplicationInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + applied_at: "appliedAt", + rejected_at: "rejectedAt", + credited_to: "creditedTo", + current_stage: "currentStage", + reject_reason: "rejectReason", + candidate_id: "candidateId", + job_id: "jobId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - applied_at?: string | undefined; - rejected_at?: string | undefined; - offers?: Array | undefined; - source?: string | undefined; - credited_to?: string | undefined; - current_stage?: string | undefined; - reject_reason?: string | undefined; - candidate_id?: string | undefined; - job_id?: string | undefined; - field_mappings: UnifiedAtsApplicationInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedAtsApplicationInput$Outbound = { + applied_at?: string | undefined; + rejected_at?: string | undefined; + offers?: Array | undefined; + source?: string | undefined; + credited_to?: string | undefined; + current_stage?: string | undefined; + reject_reason?: string | undefined; + candidate_id?: string | undefined; + job_id?: string | undefined; + field_mappings: UnifiedAtsApplicationInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - appliedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - rejectedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - offers: z.array(z.string()).optional(), - source: z.string().optional(), - creditedTo: z.string().optional(), - currentStage: z.string().optional(), - rejectReason: z.string().optional(), - candidateId: z.string().optional(), - jobId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsApplicationInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - appliedAt: "applied_at", - rejectedAt: "rejected_at", - creditedTo: "credited_to", - currentStage: "current_stage", - rejectReason: "reject_reason", - candidateId: "candidate_id", - jobId: "job_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedAtsApplicationInput$outboundSchema: z.ZodType< + UnifiedAtsApplicationInput$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationInput +> = z + .object({ + appliedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + rejectedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + offers: z.array(z.string()).optional(), + source: z.string().optional(), + creditedTo: z.string().optional(), + currentStage: z.string().optional(), + rejectReason: z.string().optional(), + candidateId: z.string().optional(), + jobId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsApplicationInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + appliedAt: "applied_at", + rejectedAt: "rejected_at", + creditedTo: "credited_to", + currentStage: "current_stage", + rejectReason: "reject_reason", + candidateId: "candidate_id", + jobId: "job_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsApplicationInput$ { + /** @deprecated use `UnifiedAtsApplicationInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationInput$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationInput$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationInput$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationInput$Outbound; } diff --git a/src/models/components/unifiedatsapplicationoutput.ts b/src/models/components/unifiedatsapplicationoutput.ts index d6eae1f2..391cd598 100644 --- a/src/models/components/unifiedatsapplicationoutput.ts +++ b/src/models/components/unifiedatsapplicationoutput.ts @@ -65,174 +65,247 @@ export type UnifiedAtsApplicationOutput = { }; /** @internal */ +export const UnifiedAtsApplicationOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsApplicationOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsApplicationOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsApplicationOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsApplicationOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationOutputFieldMappings +> = 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 UnifiedAtsApplicationOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsApplicationOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsApplicationOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsApplicationOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsApplicationOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsApplicationOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsApplicationOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsApplicationOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationOutputRemoteData +> = 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 UnifiedAtsApplicationOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsApplicationOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsApplicationOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsApplicationOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsApplicationOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsApplicationOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsApplicationOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsApplicationOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationOutputCreatedAt +> = 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 UnifiedAtsApplicationOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsApplicationOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsApplicationOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsApplicationOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsApplicationOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsApplicationOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsApplicationOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsApplicationOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationOutputModifiedAt +> = 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 UnifiedAtsApplicationOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsApplicationOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsApplicationOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsApplicationOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - applied_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - rejected_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - offers: z.array(z.string()).optional(), - source: z.string().optional(), - credited_to: z.string().optional(), - current_stage: z.string().optional(), - reject_reason: z.string().optional(), - candidate_id: z.string().optional(), - job_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsApplicationOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsApplicationOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsApplicationOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsApplicationOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - applied_at: "appliedAt", - rejected_at: "rejectedAt", - credited_to: "creditedTo", - current_stage: "currentStage", - reject_reason: "rejectReason", - candidate_id: "candidateId", - job_id: "jobId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsApplicationOutput$inboundSchema: z.ZodType< + UnifiedAtsApplicationOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + applied_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + rejected_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + offers: z.array(z.string()).optional(), + source: z.string().optional(), + credited_to: z.string().optional(), + current_stage: z.string().optional(), + reject_reason: z.string().optional(), + candidate_id: z.string().optional(), + job_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsApplicationOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsApplicationOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsApplicationOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsApplicationOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + applied_at: "appliedAt", + rejected_at: "rejectedAt", + credited_to: "creditedTo", + current_stage: "currentStage", + reject_reason: "rejectReason", + candidate_id: "candidateId", + job_id: "jobId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - applied_at?: string | undefined; - rejected_at?: string | undefined; - offers?: Array | undefined; - source?: string | undefined; - credited_to?: string | undefined; - current_stage?: string | undefined; - reject_reason?: string | undefined; - candidate_id?: string | undefined; - job_id?: string | undefined; - field_mappings: UnifiedAtsApplicationOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsApplicationOutputRemoteData$.Outbound; - created_at: UnifiedAtsApplicationOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsApplicationOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - appliedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - rejectedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - offers: z.array(z.string()).optional(), - source: z.string().optional(), - creditedTo: z.string().optional(), - currentStage: z.string().optional(), - rejectReason: z.string().optional(), - candidateId: z.string().optional(), - jobId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsApplicationOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsApplicationOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsApplicationOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsApplicationOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - appliedAt: "applied_at", - rejectedAt: "rejected_at", - creditedTo: "credited_to", - currentStage: "current_stage", - rejectReason: "reject_reason", - candidateId: "candidate_id", - jobId: "job_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsApplicationOutput$Outbound = { + applied_at?: string | undefined; + rejected_at?: string | undefined; + offers?: Array | undefined; + source?: string | undefined; + credited_to?: string | undefined; + current_stage?: string | undefined; + reject_reason?: string | undefined; + candidate_id?: string | undefined; + job_id?: string | undefined; + field_mappings: UnifiedAtsApplicationOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsApplicationOutputRemoteData$Outbound; + created_at: UnifiedAtsApplicationOutputCreatedAt$Outbound; + modified_at: UnifiedAtsApplicationOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsApplicationOutput$outboundSchema: z.ZodType< + UnifiedAtsApplicationOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsApplicationOutput +> = z + .object({ + appliedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + rejectedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + offers: z.array(z.string()).optional(), + source: z.string().optional(), + creditedTo: z.string().optional(), + currentStage: z.string().optional(), + rejectReason: z.string().optional(), + candidateId: z.string().optional(), + jobId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsApplicationOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsApplicationOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsApplicationOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsApplicationOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + appliedAt: "applied_at", + rejectedAt: "rejected_at", + creditedTo: "credited_to", + currentStage: "current_stage", + rejectReason: "reject_reason", + candidateId: "candidate_id", + jobId: "job_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsApplicationOutput$ { + /** @deprecated use `UnifiedAtsApplicationOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsApplicationOutput$inboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsApplicationOutput$outboundSchema; + /** @deprecated use `UnifiedAtsApplicationOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsApplicationOutput$Outbound; } diff --git a/src/models/components/unifiedatsattachmentinput.ts b/src/models/components/unifiedatsattachmentinput.ts index d39e6f60..dfa25a5a 100644 --- a/src/models/components/unifiedatsattachmentinput.ts +++ b/src/models/components/unifiedatsattachmentinput.ts @@ -36,89 +36,123 @@ export type UnifiedAtsAttachmentInput = { }; /** @internal */ -export namespace UnifiedAtsAttachmentInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsAttachmentInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsAttachmentInputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsAttachmentInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsAttachmentInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsAttachmentInputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsAttachmentInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentInputFieldMappings - > = 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 UnifiedAtsAttachmentInputFieldMappings$ { + /** @deprecated use `UnifiedAtsAttachmentInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsAttachmentInput$ { - export const inboundSchema: z.ZodType = z - .object({ - file_url: z.string().optional(), - file_name: z.string().optional(), - attachment_type: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - candidate_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsAttachmentInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - file_url: "fileUrl", - file_name: "fileName", - attachment_type: "attachmentType", - remote_created_at: "remoteCreatedAt", - remote_modified_at: "remoteModifiedAt", - candidate_id: "candidateId", - field_mappings: "fieldMappings", - }); +export const UnifiedAtsAttachmentInput$inboundSchema: z.ZodType< + UnifiedAtsAttachmentInput, + z.ZodTypeDef, + unknown +> = z + .object({ + file_url: z.string().optional(), + file_name: z.string().optional(), + attachment_type: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + candidate_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsAttachmentInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_url: "fileUrl", + file_name: "fileName", + attachment_type: "attachmentType", + remote_created_at: "remoteCreatedAt", + remote_modified_at: "remoteModifiedAt", + candidate_id: "candidateId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - file_url?: string | undefined; - file_name?: string | undefined; - attachment_type?: string | undefined; - remote_created_at?: string | undefined; - remote_modified_at?: string | undefined; - candidate_id?: string | undefined; - field_mappings: UnifiedAtsAttachmentInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedAtsAttachmentInput$Outbound = { + file_url?: string | undefined; + file_name?: string | undefined; + attachment_type?: string | undefined; + remote_created_at?: string | undefined; + remote_modified_at?: string | undefined; + candidate_id?: string | undefined; + field_mappings: UnifiedAtsAttachmentInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - fileUrl: z.string().optional(), - fileName: z.string().optional(), - attachmentType: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteModifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - candidateId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsAttachmentInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fileUrl: "file_url", - fileName: "file_name", - attachmentType: "attachment_type", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_modified_at", - candidateId: "candidate_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedAtsAttachmentInput$outboundSchema: z.ZodType< + UnifiedAtsAttachmentInput$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentInput +> = z + .object({ + fileUrl: z.string().optional(), + fileName: z.string().optional(), + attachmentType: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteModifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + candidateId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsAttachmentInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileUrl: "file_url", + fileName: "file_name", + attachmentType: "attachment_type", + remoteCreatedAt: "remote_created_at", + remoteModifiedAt: "remote_modified_at", + candidateId: "candidate_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsAttachmentInput$ { + /** @deprecated use `UnifiedAtsAttachmentInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentInput$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentInput$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentInput$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentInput$Outbound; } diff --git a/src/models/components/unifiedatsattachmentoutput.ts b/src/models/components/unifiedatsattachmentoutput.ts index 0f7f89a3..25214c63 100644 --- a/src/models/components/unifiedatsattachmentoutput.ts +++ b/src/models/components/unifiedatsattachmentoutput.ts @@ -53,163 +53,236 @@ export type UnifiedAtsAttachmentOutput = { }; /** @internal */ +export const UnifiedAtsAttachmentOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsAttachmentOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsAttachmentOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentOutputFieldMappings +> = 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 UnifiedAtsAttachmentOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsAttachmentOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsAttachmentOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsAttachmentOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsAttachmentOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsAttachmentOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentOutputRemoteData +> = 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 UnifiedAtsAttachmentOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsAttachmentOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsAttachmentOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsAttachmentOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsAttachmentOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsAttachmentOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentOutputCreatedAt +> = 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 UnifiedAtsAttachmentOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsAttachmentOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsAttachmentOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsAttachmentOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsAttachmentOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsAttachmentOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsAttachmentOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentOutputModifiedAt +> = 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 UnifiedAtsAttachmentOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsAttachmentOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsAttachmentOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsAttachmentOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - file_url: z.string().optional(), - file_name: z.string().optional(), - attachment_type: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - candidate_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsAttachmentOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsAttachmentOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsAttachmentOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsAttachmentOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - file_url: "fileUrl", - file_name: "fileName", - attachment_type: "attachmentType", - remote_created_at: "remoteCreatedAt", - remote_modified_at: "remoteModifiedAt", - candidate_id: "candidateId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsAttachmentOutput$inboundSchema: z.ZodType< + UnifiedAtsAttachmentOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + file_url: z.string().optional(), + file_name: z.string().optional(), + attachment_type: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + candidate_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsAttachmentOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsAttachmentOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsAttachmentOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsAttachmentOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_url: "fileUrl", + file_name: "fileName", + attachment_type: "attachmentType", + remote_created_at: "remoteCreatedAt", + remote_modified_at: "remoteModifiedAt", + candidate_id: "candidateId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - file_url?: string | undefined; - file_name?: string | undefined; - attachment_type?: string | undefined; - remote_created_at?: string | undefined; - remote_modified_at?: string | undefined; - candidate_id?: string | undefined; - field_mappings: UnifiedAtsAttachmentOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsAttachmentOutputRemoteData$.Outbound; - created_at: UnifiedAtsAttachmentOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsAttachmentOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - fileUrl: z.string().optional(), - fileName: z.string().optional(), - attachmentType: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteModifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - candidateId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsAttachmentOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsAttachmentOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsAttachmentOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsAttachmentOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fileUrl: "file_url", - fileName: "file_name", - attachmentType: "attachment_type", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_modified_at", - candidateId: "candidate_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsAttachmentOutput$Outbound = { + file_url?: string | undefined; + file_name?: string | undefined; + attachment_type?: string | undefined; + remote_created_at?: string | undefined; + remote_modified_at?: string | undefined; + candidate_id?: string | undefined; + field_mappings: UnifiedAtsAttachmentOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsAttachmentOutputRemoteData$Outbound; + created_at: UnifiedAtsAttachmentOutputCreatedAt$Outbound; + modified_at: UnifiedAtsAttachmentOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsAttachmentOutput$outboundSchema: z.ZodType< + UnifiedAtsAttachmentOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsAttachmentOutput +> = z + .object({ + fileUrl: z.string().optional(), + fileName: z.string().optional(), + attachmentType: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteModifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + candidateId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsAttachmentOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsAttachmentOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsAttachmentOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsAttachmentOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileUrl: "file_url", + fileName: "file_name", + attachmentType: "attachment_type", + remoteCreatedAt: "remote_created_at", + remoteModifiedAt: "remote_modified_at", + candidateId: "candidate_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsAttachmentOutput$ { + /** @deprecated use `UnifiedAtsAttachmentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsAttachmentOutput$inboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsAttachmentOutput$outboundSchema; + /** @deprecated use `UnifiedAtsAttachmentOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsAttachmentOutput$Outbound; } diff --git a/src/models/components/unifiedatscandidateinput.ts b/src/models/components/unifiedatscandidateinput.ts index 5dcf7ff6..e9d30217 100644 --- a/src/models/components/unifiedatscandidateinput.ts +++ b/src/models/components/unifiedatscandidateinput.ts @@ -3,9 +3,9 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; -import { Url, Url$ } from "./url.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; +import { Url, Url$inboundSchema, Url$Outbound, Url$outboundSchema } from "./url.js"; import * as z from "zod"; export type UnifiedAtsCandidateInputFieldMappings = {}; @@ -79,132 +79,166 @@ export type UnifiedAtsCandidateInput = { }; /** @internal */ -export namespace UnifiedAtsCandidateInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsCandidateInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsCandidateInputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsCandidateInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsCandidateInputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateInputFieldMappings - > = z.object({}); +/** @internal */ +export const UnifiedAtsCandidateInputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsCandidateInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateInputFieldMappings +> = 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 UnifiedAtsCandidateInputFieldMappings$ { + /** @deprecated use `UnifiedAtsCandidateInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsCandidateInput$ { - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string().optional(), - last_name: z.string().optional(), - company: z.string().optional(), - title: z.string().optional(), - locations: z.string().optional(), - is_private: z.boolean().optional(), - email_reachable: z.boolean().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - last_interaction_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - attachments: z.array(z.string()).optional(), - applications: z.array(z.string()).optional(), - tags: z.array(z.string()).optional(), - urls: z.array(Url$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - email_addresses: z.array(Email$.inboundSchema).optional(), - field_mappings: z.lazy(() => UnifiedAtsCandidateInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - first_name: "firstName", - last_name: "lastName", - is_private: "isPrivate", - email_reachable: "emailReachable", - remote_created_at: "remoteCreatedAt", - remote_modified_at: "remoteModifiedAt", - last_interaction_at: "lastInteractionAt", - phone_numbers: "phoneNumbers", - email_addresses: "emailAddresses", - field_mappings: "fieldMappings", - }); +export const UnifiedAtsCandidateInput$inboundSchema: z.ZodType< + UnifiedAtsCandidateInput, + z.ZodTypeDef, + unknown +> = z + .object({ + first_name: z.string().optional(), + last_name: z.string().optional(), + company: z.string().optional(), + title: z.string().optional(), + locations: z.string().optional(), + is_private: z.boolean().optional(), + email_reachable: z.boolean().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + last_interaction_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + attachments: z.array(z.string()).optional(), + applications: z.array(z.string()).optional(), + tags: z.array(z.string()).optional(), + urls: z.array(Url$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + email_addresses: z.array(Email$inboundSchema).optional(), + field_mappings: z.lazy(() => UnifiedAtsCandidateInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + first_name: "firstName", + last_name: "lastName", + is_private: "isPrivate", + email_reachable: "emailReachable", + remote_created_at: "remoteCreatedAt", + remote_modified_at: "remoteModifiedAt", + last_interaction_at: "lastInteractionAt", + phone_numbers: "phoneNumbers", + email_addresses: "emailAddresses", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - first_name?: string | undefined; - last_name?: string | undefined; - company?: string | undefined; - title?: string | undefined; - locations?: string | undefined; - is_private?: boolean | undefined; - email_reachable?: boolean | undefined; - remote_created_at?: string | undefined; - remote_modified_at?: string | undefined; - last_interaction_at?: string | undefined; - attachments?: Array | undefined; - applications?: Array | undefined; - tags?: Array | undefined; - urls?: Array | undefined; - phone_numbers?: Array | undefined; - email_addresses?: Array | undefined; - field_mappings: UnifiedAtsCandidateInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedAtsCandidateInput$Outbound = { + first_name?: string | undefined; + last_name?: string | undefined; + company?: string | undefined; + title?: string | undefined; + locations?: string | undefined; + is_private?: boolean | undefined; + email_reachable?: boolean | undefined; + remote_created_at?: string | undefined; + remote_modified_at?: string | undefined; + last_interaction_at?: string | undefined; + attachments?: Array | undefined; + applications?: Array | undefined; + tags?: Array | undefined; + urls?: Array | undefined; + phone_numbers?: Array | undefined; + email_addresses?: Array | undefined; + field_mappings: UnifiedAtsCandidateInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string().optional(), - lastName: z.string().optional(), - company: z.string().optional(), - title: z.string().optional(), - locations: z.string().optional(), - isPrivate: z.boolean().optional(), - emailReachable: z.boolean().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteModifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - lastInteractionAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - attachments: z.array(z.string()).optional(), - applications: z.array(z.string()).optional(), - tags: z.array(z.string()).optional(), - urls: z.array(Url$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - fieldMappings: z.lazy(() => UnifiedAtsCandidateInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - isPrivate: "is_private", - emailReachable: "email_reachable", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_modified_at", - lastInteractionAt: "last_interaction_at", - phoneNumbers: "phone_numbers", - emailAddresses: "email_addresses", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedAtsCandidateInput$outboundSchema: z.ZodType< + UnifiedAtsCandidateInput$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateInput +> = z + .object({ + firstName: z.string().optional(), + lastName: z.string().optional(), + company: z.string().optional(), + title: z.string().optional(), + locations: z.string().optional(), + isPrivate: z.boolean().optional(), + emailReachable: z.boolean().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteModifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + lastInteractionAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + attachments: z.array(z.string()).optional(), + applications: z.array(z.string()).optional(), + tags: z.array(z.string()).optional(), + urls: z.array(Url$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + emailAddresses: z.array(Email$outboundSchema).optional(), + fieldMappings: z.lazy(() => UnifiedAtsCandidateInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + firstName: "first_name", + lastName: "last_name", + isPrivate: "is_private", + emailReachable: "email_reachable", + remoteCreatedAt: "remote_created_at", + remoteModifiedAt: "remote_modified_at", + lastInteractionAt: "last_interaction_at", + phoneNumbers: "phone_numbers", + emailAddresses: "email_addresses", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsCandidateInput$ { + /** @deprecated use `UnifiedAtsCandidateInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateInput$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateInput$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateInput$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateInput$Outbound; } diff --git a/src/models/components/unifiedatscandidateoutput.ts b/src/models/components/unifiedatscandidateoutput.ts index d9efe535..732264e1 100644 --- a/src/models/components/unifiedatscandidateoutput.ts +++ b/src/models/components/unifiedatscandidateoutput.ts @@ -3,9 +3,9 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; -import { Url, Url$ } from "./url.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; +import { Url, Url$inboundSchema, Url$Outbound, Url$outboundSchema } from "./url.js"; import * as z from "zod"; export type UnifiedAtsCandidateOutputFieldMappings = {}; @@ -96,206 +96,279 @@ export type UnifiedAtsCandidateOutput = { }; /** @internal */ -export namespace UnifiedAtsCandidateOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsCandidateOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsCandidateOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsCandidateOutputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputFieldMappings - > = z.object({}); +/** @internal */ +export const UnifiedAtsCandidateOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsCandidateOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateOutputFieldMappings +> = 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 UnifiedAtsCandidateOutputFieldMappings$ { + /** @deprecated use `UnifiedAtsCandidateOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsCandidateOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsCandidateOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsCandidateOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsCandidateOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsCandidateOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsCandidateOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputRemoteData - > = 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 UnifiedAtsCandidateOutputRemoteData$ { + /** @deprecated use `UnifiedAtsCandidateOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsCandidateOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsCandidateOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsCandidateOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsCandidateOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputCreatedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsCandidateOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsCandidateOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateOutputCreatedAt +> = 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 UnifiedAtsCandidateOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsCandidateOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsCandidateOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsCandidateOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsCandidateOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsCandidateOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsCandidateOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsCandidateOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateOutputModifiedAt +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputModifiedAt - > = 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 UnifiedAtsCandidateOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsCandidateOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsCandidateOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string().optional(), - last_name: z.string().optional(), - company: z.string().optional(), - title: z.string().optional(), - locations: z.string().optional(), - is_private: z.boolean().optional(), - email_reachable: z.boolean().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - last_interaction_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - attachments: z.array(z.string()).optional(), - applications: z.array(z.string()).optional(), - tags: z.array(z.string()).optional(), - urls: z.array(Url$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - email_addresses: z.array(Email$.inboundSchema).optional(), - field_mappings: z.lazy(() => UnifiedAtsCandidateOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsCandidateOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsCandidateOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsCandidateOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - first_name: "firstName", - last_name: "lastName", - is_private: "isPrivate", - email_reachable: "emailReachable", - remote_created_at: "remoteCreatedAt", - remote_modified_at: "remoteModifiedAt", - last_interaction_at: "lastInteractionAt", - phone_numbers: "phoneNumbers", - email_addresses: "emailAddresses", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsCandidateOutput$inboundSchema: z.ZodType< + UnifiedAtsCandidateOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + first_name: z.string().optional(), + last_name: z.string().optional(), + company: z.string().optional(), + title: z.string().optional(), + locations: z.string().optional(), + is_private: z.boolean().optional(), + email_reachable: z.boolean().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + last_interaction_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + attachments: z.array(z.string()).optional(), + applications: z.array(z.string()).optional(), + tags: z.array(z.string()).optional(), + urls: z.array(Url$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + email_addresses: z.array(Email$inboundSchema).optional(), + field_mappings: z.lazy(() => UnifiedAtsCandidateOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsCandidateOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsCandidateOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsCandidateOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + first_name: "firstName", + last_name: "lastName", + is_private: "isPrivate", + email_reachable: "emailReachable", + remote_created_at: "remoteCreatedAt", + remote_modified_at: "remoteModifiedAt", + last_interaction_at: "lastInteractionAt", + phone_numbers: "phoneNumbers", + email_addresses: "emailAddresses", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - first_name?: string | undefined; - last_name?: string | undefined; - company?: string | undefined; - title?: string | undefined; - locations?: string | undefined; - is_private?: boolean | undefined; - email_reachable?: boolean | undefined; - remote_created_at?: string | undefined; - remote_modified_at?: string | undefined; - last_interaction_at?: string | undefined; - attachments?: Array | undefined; - applications?: Array | undefined; - tags?: Array | undefined; - urls?: Array | undefined; - phone_numbers?: Array | undefined; - email_addresses?: Array | undefined; - field_mappings: UnifiedAtsCandidateOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsCandidateOutputRemoteData$.Outbound; - created_at: UnifiedAtsCandidateOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsCandidateOutputModifiedAt$.Outbound; - }; +/** @internal */ +export type UnifiedAtsCandidateOutput$Outbound = { + first_name?: string | undefined; + last_name?: string | undefined; + company?: string | undefined; + title?: string | undefined; + locations?: string | undefined; + is_private?: boolean | undefined; + email_reachable?: boolean | undefined; + remote_created_at?: string | undefined; + remote_modified_at?: string | undefined; + last_interaction_at?: string | undefined; + attachments?: Array | undefined; + applications?: Array | undefined; + tags?: Array | undefined; + urls?: Array | undefined; + phone_numbers?: Array | undefined; + email_addresses?: Array | undefined; + field_mappings: UnifiedAtsCandidateOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsCandidateOutputRemoteData$Outbound; + created_at: UnifiedAtsCandidateOutputCreatedAt$Outbound; + modified_at: UnifiedAtsCandidateOutputModifiedAt$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string().optional(), - lastName: z.string().optional(), - company: z.string().optional(), - title: z.string().optional(), - locations: z.string().optional(), - isPrivate: z.boolean().optional(), - emailReachable: z.boolean().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteModifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - lastInteractionAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - attachments: z.array(z.string()).optional(), - applications: z.array(z.string()).optional(), - tags: z.array(z.string()).optional(), - urls: z.array(Url$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - fieldMappings: z.lazy(() => UnifiedAtsCandidateOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsCandidateOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsCandidateOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsCandidateOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - isPrivate: "is_private", - emailReachable: "email_reachable", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_modified_at", - lastInteractionAt: "last_interaction_at", - phoneNumbers: "phone_numbers", - emailAddresses: "email_addresses", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedAtsCandidateOutput$outboundSchema: z.ZodType< + UnifiedAtsCandidateOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsCandidateOutput +> = z + .object({ + firstName: z.string().optional(), + lastName: z.string().optional(), + company: z.string().optional(), + title: z.string().optional(), + locations: z.string().optional(), + isPrivate: z.boolean().optional(), + emailReachable: z.boolean().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteModifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + lastInteractionAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + attachments: z.array(z.string()).optional(), + applications: z.array(z.string()).optional(), + tags: z.array(z.string()).optional(), + urls: z.array(Url$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + emailAddresses: z.array(Email$outboundSchema).optional(), + fieldMappings: z.lazy(() => UnifiedAtsCandidateOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsCandidateOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsCandidateOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsCandidateOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + firstName: "first_name", + lastName: "last_name", + isPrivate: "is_private", + emailReachable: "email_reachable", + remoteCreatedAt: "remote_created_at", + remoteModifiedAt: "remote_modified_at", + lastInteractionAt: "last_interaction_at", + phoneNumbers: "phone_numbers", + emailAddresses: "email_addresses", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsCandidateOutput$ { + /** @deprecated use `UnifiedAtsCandidateOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsCandidateOutput$inboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsCandidateOutput$outboundSchema; + /** @deprecated use `UnifiedAtsCandidateOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsCandidateOutput$Outbound; } diff --git a/src/models/components/unifiedatsdepartmentoutput.ts b/src/models/components/unifiedatsdepartmentoutput.ts index 60d290ce..62aada32 100644 --- a/src/models/components/unifiedatsdepartmentoutput.ts +++ b/src/models/components/unifiedatsdepartmentoutput.ts @@ -33,122 +33,195 @@ export type UnifiedAtsDepartmentOutput = { }; /** @internal */ +export const UnifiedAtsDepartmentOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsDepartmentOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsDepartmentOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsDepartmentOutputFieldMappings +> = 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 UnifiedAtsDepartmentOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsDepartmentOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsDepartmentOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsDepartmentOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsDepartmentOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsDepartmentOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsDepartmentOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsDepartmentOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsDepartmentOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsDepartmentOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsDepartmentOutputRemoteData +> = 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 UnifiedAtsDepartmentOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsDepartmentOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsDepartmentOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsDepartmentOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsDepartmentOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsDepartmentOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsDepartmentOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsDepartmentOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsDepartmentOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsDepartmentOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsDepartmentOutputCreatedAt +> = 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 UnifiedAtsDepartmentOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsDepartmentOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsDepartmentOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsDepartmentOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsDepartmentOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsDepartmentOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsDepartmentOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsDepartmentOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsDepartmentOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsDepartmentOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsDepartmentOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsDepartmentOutputModifiedAt +> = 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 UnifiedAtsDepartmentOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsDepartmentOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsDepartmentOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsDepartmentOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsDepartmentOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsDepartmentOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsDepartmentOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsDepartmentOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsDepartmentOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsDepartmentOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsDepartmentOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsDepartmentOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsDepartmentOutput$inboundSchema: z.ZodType< + UnifiedAtsDepartmentOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsDepartmentOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsDepartmentOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsDepartmentOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsDepartmentOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - field_mappings: UnifiedAtsDepartmentOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsDepartmentOutputRemoteData$.Outbound; - created_at: UnifiedAtsDepartmentOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsDepartmentOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsDepartmentOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsDepartmentOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsDepartmentOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsDepartmentOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsDepartmentOutput$Outbound = { + name?: string | undefined; + field_mappings: UnifiedAtsDepartmentOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsDepartmentOutputRemoteData$Outbound; + created_at: UnifiedAtsDepartmentOutputCreatedAt$Outbound; + modified_at: UnifiedAtsDepartmentOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsDepartmentOutput$outboundSchema: z.ZodType< + UnifiedAtsDepartmentOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsDepartmentOutput +> = z + .object({ + name: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsDepartmentOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsDepartmentOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsDepartmentOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsDepartmentOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsDepartmentOutput$ { + /** @deprecated use `UnifiedAtsDepartmentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsDepartmentOutput$inboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsDepartmentOutput$outboundSchema; + /** @deprecated use `UnifiedAtsDepartmentOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsDepartmentOutput$Outbound; } diff --git a/src/models/components/unifiedatseeocsoutput.ts b/src/models/components/unifiedatseeocsoutput.ts index efc38641..01051e10 100644 --- a/src/models/components/unifiedatseeocsoutput.ts +++ b/src/models/components/unifiedatseeocsoutput.ts @@ -53,140 +53,225 @@ export type UnifiedAtsEeocsOutput = { }; /** @internal */ +export const UnifiedAtsEeocsOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsEeocsOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsEeocsOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsEeocsOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsEeocsOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsEeocsOutputFieldMappings +> = 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 UnifiedAtsEeocsOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsEeocsOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsEeocsOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsEeocsOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsEeocsOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsEeocsOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsEeocsOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsEeocsOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsEeocsOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsEeocsOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsEeocsOutputRemoteData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsEeocsOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsEeocsOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsEeocsOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsEeocsOutputRemoteData - > = 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 UnifiedAtsEeocsOutputRemoteData$ { + /** @deprecated use `UnifiedAtsEeocsOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsEeocsOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsEeocsOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsEeocsOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsEeocsOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsEeocsOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsEeocsOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsEeocsOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedAtsEeocsOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsEeocsOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsEeocsOutputCreatedAt +> = 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 UnifiedAtsEeocsOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsEeocsOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsEeocsOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsEeocsOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsEeocsOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsEeocsOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsEeocsOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsEeocsOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsEeocsOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsEeocsOutputModifiedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsEeocsOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsEeocsOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsEeocsOutputModifiedAt +> = 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 UnifiedAtsEeocsOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsEeocsOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsEeocsOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsEeocsOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsEeocsOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsEeocsOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - candidate_id: z.string().optional(), - submitted_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - race: z.string().optional(), - gender: z.string().optional(), - veteran_status: z.string().optional(), - disability_status: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsEeocsOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsEeocsOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsEeocsOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsEeocsOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - candidate_id: "candidateId", - submitted_at: "submittedAt", - veteran_status: "veteranStatus", - disability_status: "disabilityStatus", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsEeocsOutput$inboundSchema: z.ZodType< + UnifiedAtsEeocsOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + candidate_id: z.string().optional(), + submitted_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + race: z.string().optional(), + gender: z.string().optional(), + veteran_status: z.string().optional(), + disability_status: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsEeocsOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsEeocsOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsEeocsOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsEeocsOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + candidate_id: "candidateId", + submitted_at: "submittedAt", + veteran_status: "veteranStatus", + disability_status: "disabilityStatus", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - candidate_id?: string | undefined; - submitted_at?: string | undefined; - race?: string | undefined; - gender?: string | undefined; - veteran_status?: string | undefined; - disability_status?: string | undefined; - field_mappings: UnifiedAtsEeocsOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsEeocsOutputRemoteData$.Outbound; - created_at: UnifiedAtsEeocsOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsEeocsOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - candidateId: z.string().optional(), - submittedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - race: z.string().optional(), - gender: z.string().optional(), - veteranStatus: z.string().optional(), - disabilityStatus: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsEeocsOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsEeocsOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsEeocsOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsEeocsOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - candidateId: "candidate_id", - submittedAt: "submitted_at", - veteranStatus: "veteran_status", - disabilityStatus: "disability_status", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsEeocsOutput$Outbound = { + candidate_id?: string | undefined; + submitted_at?: string | undefined; + race?: string | undefined; + gender?: string | undefined; + veteran_status?: string | undefined; + disability_status?: string | undefined; + field_mappings: UnifiedAtsEeocsOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsEeocsOutputRemoteData$Outbound; + created_at: UnifiedAtsEeocsOutputCreatedAt$Outbound; + modified_at: UnifiedAtsEeocsOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsEeocsOutput$outboundSchema: z.ZodType< + UnifiedAtsEeocsOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsEeocsOutput +> = z + .object({ + candidateId: z.string().optional(), + submittedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + race: z.string().optional(), + gender: z.string().optional(), + veteranStatus: z.string().optional(), + disabilityStatus: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsEeocsOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsEeocsOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsEeocsOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsEeocsOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + candidateId: "candidate_id", + submittedAt: "submitted_at", + veteranStatus: "veteran_status", + disabilityStatus: "disability_status", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsEeocsOutput$ { + /** @deprecated use `UnifiedAtsEeocsOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsEeocsOutput$inboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsEeocsOutput$outboundSchema; + /** @deprecated use `UnifiedAtsEeocsOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsEeocsOutput$Outbound; } diff --git a/src/models/components/unifiedatsinterviewinput.ts b/src/models/components/unifiedatsinterviewinput.ts index 0e457d69..de080eb1 100644 --- a/src/models/components/unifiedatsinterviewinput.ts +++ b/src/models/components/unifiedatsinterviewinput.ts @@ -52,117 +52,151 @@ export type UnifiedAtsInterviewInput = { }; /** @internal */ -export namespace UnifiedAtsInterviewInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsInterviewInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsInterviewInputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsInterviewInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsInterviewInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsInterviewInputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsInterviewInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewInputFieldMappings - > = 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 UnifiedAtsInterviewInputFieldMappings$ { + /** @deprecated use `UnifiedAtsInterviewInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsInterviewInput$ { - export const inboundSchema: z.ZodType = z - .object({ - status: z.string().optional(), - application_id: z.string().optional(), - job_interview_stage_id: z.string().optional(), - organized_by: z.string().optional(), - interviewers: z.array(z.string()).optional(), - location: z.string().optional(), - start_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - end_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_updated_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsInterviewInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - application_id: "applicationId", - job_interview_stage_id: "jobInterviewStageId", - organized_by: "organizedBy", - start_at: "startAt", - end_at: "endAt", - remote_created_at: "remoteCreatedAt", - remote_updated_at: "remoteUpdatedAt", - field_mappings: "fieldMappings", - }); +export const UnifiedAtsInterviewInput$inboundSchema: z.ZodType< + UnifiedAtsInterviewInput, + z.ZodTypeDef, + unknown +> = z + .object({ + status: z.string().optional(), + application_id: z.string().optional(), + job_interview_stage_id: z.string().optional(), + organized_by: z.string().optional(), + interviewers: z.array(z.string()).optional(), + location: z.string().optional(), + start_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + end_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_updated_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsInterviewInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + application_id: "applicationId", + job_interview_stage_id: "jobInterviewStageId", + organized_by: "organizedBy", + start_at: "startAt", + end_at: "endAt", + remote_created_at: "remoteCreatedAt", + remote_updated_at: "remoteUpdatedAt", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - status?: string | undefined; - application_id?: string | undefined; - job_interview_stage_id?: string | undefined; - organized_by?: string | undefined; - interviewers?: Array | undefined; - location?: string | undefined; - start_at?: string | undefined; - end_at?: string | undefined; - remote_created_at?: string | undefined; - remote_updated_at?: string | undefined; - field_mappings: UnifiedAtsInterviewInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedAtsInterviewInput$Outbound = { + status?: string | undefined; + application_id?: string | undefined; + job_interview_stage_id?: string | undefined; + organized_by?: string | undefined; + interviewers?: Array | undefined; + location?: string | undefined; + start_at?: string | undefined; + end_at?: string | undefined; + remote_created_at?: string | undefined; + remote_updated_at?: string | undefined; + field_mappings: UnifiedAtsInterviewInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - status: z.string().optional(), - applicationId: z.string().optional(), - jobInterviewStageId: z.string().optional(), - organizedBy: z.string().optional(), - interviewers: z.array(z.string()).optional(), - location: z.string().optional(), - startAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - endAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteUpdatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsInterviewInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - applicationId: "application_id", - jobInterviewStageId: "job_interview_stage_id", - organizedBy: "organized_by", - startAt: "start_at", - endAt: "end_at", - remoteCreatedAt: "remote_created_at", - remoteUpdatedAt: "remote_updated_at", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedAtsInterviewInput$outboundSchema: z.ZodType< + UnifiedAtsInterviewInput$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewInput +> = z + .object({ + status: z.string().optional(), + applicationId: z.string().optional(), + jobInterviewStageId: z.string().optional(), + organizedBy: z.string().optional(), + interviewers: z.array(z.string()).optional(), + location: z.string().optional(), + startAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + endAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteUpdatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsInterviewInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + applicationId: "application_id", + jobInterviewStageId: "job_interview_stage_id", + organizedBy: "organized_by", + startAt: "start_at", + endAt: "end_at", + remoteCreatedAt: "remote_created_at", + remoteUpdatedAt: "remote_updated_at", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsInterviewInput$ { + /** @deprecated use `UnifiedAtsInterviewInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewInput$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewInput$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewInput$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewInput$Outbound; } diff --git a/src/models/components/unifiedatsinterviewoutput.ts b/src/models/components/unifiedatsinterviewoutput.ts index 38884664..add8caa1 100644 --- a/src/models/components/unifiedatsinterviewoutput.ts +++ b/src/models/components/unifiedatsinterviewoutput.ts @@ -69,191 +69,264 @@ export type UnifiedAtsInterviewOutput = { }; /** @internal */ -export namespace UnifiedAtsInterviewOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsInterviewOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsInterviewOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsInterviewOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsInterviewOutputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewOutputFieldMappings - > = z.object({}); +/** @internal */ +export const UnifiedAtsInterviewOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsInterviewOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewOutputFieldMappings +> = 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 UnifiedAtsInterviewOutputFieldMappings$ { + /** @deprecated use `UnifiedAtsInterviewOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsInterviewOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsInterviewOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsInterviewOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsInterviewOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsInterviewOutputRemoteData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsInterviewOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsInterviewOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewOutputRemoteData - > = 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 UnifiedAtsInterviewOutputRemoteData$ { + /** @deprecated use `UnifiedAtsInterviewOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsInterviewOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsInterviewOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsInterviewOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsInterviewOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsInterviewOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewOutputCreatedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsInterviewOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsInterviewOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewOutputCreatedAt +> = 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 UnifiedAtsInterviewOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsInterviewOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsInterviewOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsInterviewOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedAtsInterviewOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsInterviewOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsInterviewOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewOutputModifiedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsInterviewOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsInterviewOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewOutputModifiedAt +> = 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 UnifiedAtsInterviewOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsInterviewOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsInterviewOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - status: z.string().optional(), - application_id: z.string().optional(), - job_interview_stage_id: z.string().optional(), - organized_by: z.string().optional(), - interviewers: z.array(z.string()).optional(), - location: z.string().optional(), - start_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - end_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_updated_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsInterviewOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsInterviewOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsInterviewOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsInterviewOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - application_id: "applicationId", - job_interview_stage_id: "jobInterviewStageId", - organized_by: "organizedBy", - start_at: "startAt", - end_at: "endAt", - remote_created_at: "remoteCreatedAt", - remote_updated_at: "remoteUpdatedAt", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsInterviewOutput$inboundSchema: z.ZodType< + UnifiedAtsInterviewOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + status: z.string().optional(), + application_id: z.string().optional(), + job_interview_stage_id: z.string().optional(), + organized_by: z.string().optional(), + interviewers: z.array(z.string()).optional(), + location: z.string().optional(), + start_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + end_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_updated_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsInterviewOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsInterviewOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsInterviewOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsInterviewOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + application_id: "applicationId", + job_interview_stage_id: "jobInterviewStageId", + organized_by: "organizedBy", + start_at: "startAt", + end_at: "endAt", + remote_created_at: "remoteCreatedAt", + remote_updated_at: "remoteUpdatedAt", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - status?: string | undefined; - application_id?: string | undefined; - job_interview_stage_id?: string | undefined; - organized_by?: string | undefined; - interviewers?: Array | undefined; - location?: string | undefined; - start_at?: string | undefined; - end_at?: string | undefined; - remote_created_at?: string | undefined; - remote_updated_at?: string | undefined; - field_mappings: UnifiedAtsInterviewOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsInterviewOutputRemoteData$.Outbound; - created_at: UnifiedAtsInterviewOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsInterviewOutputModifiedAt$.Outbound; - }; +/** @internal */ +export type UnifiedAtsInterviewOutput$Outbound = { + status?: string | undefined; + application_id?: string | undefined; + job_interview_stage_id?: string | undefined; + organized_by?: string | undefined; + interviewers?: Array | undefined; + location?: string | undefined; + start_at?: string | undefined; + end_at?: string | undefined; + remote_created_at?: string | undefined; + remote_updated_at?: string | undefined; + field_mappings: UnifiedAtsInterviewOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsInterviewOutputRemoteData$Outbound; + created_at: UnifiedAtsInterviewOutputCreatedAt$Outbound; + modified_at: UnifiedAtsInterviewOutputModifiedAt$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - status: z.string().optional(), - applicationId: z.string().optional(), - jobInterviewStageId: z.string().optional(), - organizedBy: z.string().optional(), - interviewers: z.array(z.string()).optional(), - location: z.string().optional(), - startAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - endAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteUpdatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsInterviewOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsInterviewOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsInterviewOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsInterviewOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - applicationId: "application_id", - jobInterviewStageId: "job_interview_stage_id", - organizedBy: "organized_by", - startAt: "start_at", - endAt: "end_at", - remoteCreatedAt: "remote_created_at", - remoteUpdatedAt: "remote_updated_at", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedAtsInterviewOutput$outboundSchema: z.ZodType< + UnifiedAtsInterviewOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsInterviewOutput +> = z + .object({ + status: z.string().optional(), + applicationId: z.string().optional(), + jobInterviewStageId: z.string().optional(), + organizedBy: z.string().optional(), + interviewers: z.array(z.string()).optional(), + location: z.string().optional(), + startAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + endAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteUpdatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsInterviewOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsInterviewOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsInterviewOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsInterviewOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + applicationId: "application_id", + jobInterviewStageId: "job_interview_stage_id", + organizedBy: "organized_by", + startAt: "start_at", + endAt: "end_at", + remoteCreatedAt: "remote_created_at", + remoteUpdatedAt: "remote_updated_at", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsInterviewOutput$ { + /** @deprecated use `UnifiedAtsInterviewOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsInterviewOutput$inboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsInterviewOutput$outboundSchema; + /** @deprecated use `UnifiedAtsInterviewOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsInterviewOutput$Outbound; } diff --git a/src/models/components/unifiedatsjobinterviewstageoutput.ts b/src/models/components/unifiedatsjobinterviewstageoutput.ts index 0ac9c177..20fbf83b 100644 --- a/src/models/components/unifiedatsjobinterviewstageoutput.ts +++ b/src/models/components/unifiedatsjobinterviewstageoutput.ts @@ -41,144 +41,205 @@ export type UnifiedAtsJobinterviewstageOutput = { }; /** @internal */ +export const UnifiedAtsJobinterviewstageOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobinterviewstageOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsJobinterviewstageOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsJobinterviewstageOutputFieldMappings +> = 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 UnifiedAtsJobinterviewstageOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsJobinterviewstageOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobinterviewstageOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobinterviewstageOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsJobinterviewstageOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsJobinterviewstageOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobinterviewstageOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsJobinterviewstageOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsJobinterviewstageOutputRemoteData +> = 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 UnifiedAtsJobinterviewstageOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsJobinterviewstageOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobinterviewstageOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobinterviewstageOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsJobinterviewstageOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsJobinterviewstageOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobinterviewstageOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsJobinterviewstageOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsJobinterviewstageOutputCreatedAt +> = 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 UnifiedAtsJobinterviewstageOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsJobinterviewstageOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobinterviewstageOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobinterviewstageOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsJobinterviewstageOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsJobinterviewstageOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobinterviewstageOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsJobinterviewstageOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsJobinterviewstageOutputModifiedAt +> = 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 UnifiedAtsJobinterviewstageOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsJobinterviewstageOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobinterviewstageOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobinterviewstageOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsJobinterviewstageOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsJobinterviewstageOutput$ { - export const inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutput, - z.ZodTypeDef, - unknown - > = z - .object({ - name: z.string().optional(), - stage_order: z.number().optional(), - job_id: z.string().optional(), - field_mappings: z.lazy( - () => UnifiedAtsJobinterviewstageOutputFieldMappings$.inboundSchema - ), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsJobinterviewstageOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsJobinterviewstageOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsJobinterviewstageOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - stage_order: "stageOrder", - job_id: "jobId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsJobinterviewstageOutput$inboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + stage_order: z.number().optional(), + job_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsJobinterviewstageOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsJobinterviewstageOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsJobinterviewstageOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsJobinterviewstageOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + stage_order: "stageOrder", + job_id: "jobId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - stage_order?: number | undefined; - job_id?: string | undefined; - field_mappings: UnifiedAtsJobinterviewstageOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsJobinterviewstageOutputRemoteData$.Outbound; - created_at: UnifiedAtsJobinterviewstageOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsJobinterviewstageOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutput - > = z - .object({ - name: z.string().optional(), - stageOrder: z.number().optional(), - jobId: z.string().optional(), - fieldMappings: z.lazy( - () => UnifiedAtsJobinterviewstageOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsJobinterviewstageOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsJobinterviewstageOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsJobinterviewstageOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - stageOrder: "stage_order", - jobId: "job_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsJobinterviewstageOutput$Outbound = { + name?: string | undefined; + stage_order?: number | undefined; + job_id?: string | undefined; + field_mappings: UnifiedAtsJobinterviewstageOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsJobinterviewstageOutputRemoteData$Outbound; + created_at: UnifiedAtsJobinterviewstageOutputCreatedAt$Outbound; + modified_at: UnifiedAtsJobinterviewstageOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsJobinterviewstageOutput$outboundSchema: z.ZodType< + UnifiedAtsJobinterviewstageOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsJobinterviewstageOutput +> = z + .object({ + name: z.string().optional(), + stageOrder: z.number().optional(), + jobId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsJobinterviewstageOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsJobinterviewstageOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsJobinterviewstageOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsJobinterviewstageOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + stageOrder: "stage_order", + jobId: "job_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsJobinterviewstageOutput$ { + /** @deprecated use `UnifiedAtsJobinterviewstageOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobinterviewstageOutput$inboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobinterviewstageOutput$outboundSchema; + /** @deprecated use `UnifiedAtsJobinterviewstageOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsJobinterviewstageOutput$Outbound; } diff --git a/src/models/components/unifiedatsjoboutput.ts b/src/models/components/unifiedatsjoboutput.ts index b5f1768f..85aba2fd 100644 --- a/src/models/components/unifiedatsjoboutput.ts +++ b/src/models/components/unifiedatsjoboutput.ts @@ -77,152 +77,246 @@ export type UnifiedAtsJobOutput = { }; /** @internal */ -export namespace UnifiedAtsJobOutputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsJobOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsJobOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobOutputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsJobOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsJobOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsJobOutputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsJobOutputFieldMappings - > = 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 UnifiedAtsJobOutputFieldMappings$ { + /** @deprecated use `UnifiedAtsJobOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsJobOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsJobOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsJobOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsJobOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsJobOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsJobOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsJobOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedAtsJobOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsJobOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsJobOutputRemoteData +> = 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 UnifiedAtsJobOutputRemoteData$ { + /** @deprecated use `UnifiedAtsJobOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsJobOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsJobOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsJobOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsJobOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsJobOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsJobOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsJobOutputCreatedAt$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsJobOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsJobOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsJobOutputCreatedAt +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAtsJobOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsJobOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsJobOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsJobOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsJobOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsJobOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsJobOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsJobOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsJobOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsJobOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsJobOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsJobOutputModifiedAt +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAtsJobOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsJobOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsJobOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsJobOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsJobOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsJobOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - description: z.string().optional(), - code: z.string().optional(), - status: z.string().optional(), - type: z.string().optional(), - confidential: z.boolean().optional(), - departments: z.array(z.string()).optional(), - offices: z.array(z.string()).optional(), - managers: z.array(z.string()).optional(), - recruiters: z.array(z.string()).optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_updated_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsJobOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsJobOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsJobOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsJobOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - remote_created_at: "remoteCreatedAt", - remote_updated_at: "remoteUpdatedAt", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsJobOutput$inboundSchema: z.ZodType< + UnifiedAtsJobOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + description: z.string().optional(), + code: z.string().optional(), + status: z.string().optional(), + type: z.string().optional(), + confidential: z.boolean().optional(), + departments: z.array(z.string()).optional(), + offices: z.array(z.string()).optional(), + managers: z.array(z.string()).optional(), + recruiters: z.array(z.string()).optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_updated_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsJobOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsJobOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsJobOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsJobOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + remote_created_at: "remoteCreatedAt", + remote_updated_at: "remoteUpdatedAt", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - description?: string | undefined; - code?: string | undefined; - status?: string | undefined; - type?: string | undefined; - confidential?: boolean | undefined; - departments?: Array | undefined; - offices?: Array | undefined; - managers?: Array | undefined; - recruiters?: Array | undefined; - remote_created_at?: string | undefined; - remote_updated_at?: string | undefined; - field_mappings: UnifiedAtsJobOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsJobOutputRemoteData$.Outbound; - created_at: UnifiedAtsJobOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsJobOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - description: z.string().optional(), - code: z.string().optional(), - status: z.string().optional(), - type: z.string().optional(), - confidential: z.boolean().optional(), - departments: z.array(z.string()).optional(), - offices: z.array(z.string()).optional(), - managers: z.array(z.string()).optional(), - recruiters: z.array(z.string()).optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteUpdatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsJobOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsJobOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsJobOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsJobOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - remoteCreatedAt: "remote_created_at", - remoteUpdatedAt: "remote_updated_at", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsJobOutput$Outbound = { + name?: string | undefined; + description?: string | undefined; + code?: string | undefined; + status?: string | undefined; + type?: string | undefined; + confidential?: boolean | undefined; + departments?: Array | undefined; + offices?: Array | undefined; + managers?: Array | undefined; + recruiters?: Array | undefined; + remote_created_at?: string | undefined; + remote_updated_at?: string | undefined; + field_mappings: UnifiedAtsJobOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsJobOutputRemoteData$Outbound; + created_at: UnifiedAtsJobOutputCreatedAt$Outbound; + modified_at: UnifiedAtsJobOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsJobOutput$outboundSchema: z.ZodType< + UnifiedAtsJobOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsJobOutput +> = z + .object({ + name: z.string().optional(), + description: z.string().optional(), + code: z.string().optional(), + status: z.string().optional(), + type: z.string().optional(), + confidential: z.boolean().optional(), + departments: z.array(z.string()).optional(), + offices: z.array(z.string()).optional(), + managers: z.array(z.string()).optional(), + recruiters: z.array(z.string()).optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteUpdatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsJobOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsJobOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsJobOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsJobOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + remoteCreatedAt: "remote_created_at", + remoteUpdatedAt: "remote_updated_at", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsJobOutput$ { + /** @deprecated use `UnifiedAtsJobOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsJobOutput$inboundSchema; + /** @deprecated use `UnifiedAtsJobOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsJobOutput$outboundSchema; + /** @deprecated use `UnifiedAtsJobOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsJobOutput$Outbound; } diff --git a/src/models/components/unifiedatsofferoutput.ts b/src/models/components/unifiedatsofferoutput.ts index 3ec412da..20e0fa28 100644 --- a/src/models/components/unifiedatsofferoutput.ts +++ b/src/models/components/unifiedatsofferoutput.ts @@ -57,168 +57,253 @@ export type UnifiedAtsOfferOutput = { }; /** @internal */ +export const UnifiedAtsOfferOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsOfferOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsOfferOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsOfferOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsOfferOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsOfferOutputFieldMappings +> = 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 UnifiedAtsOfferOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsOfferOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfferOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsOfferOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfferOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfferOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsOfferOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsOfferOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfferOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsOfferOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfferOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfferOutputRemoteData - > = z.object({}); +/** @internal */ +export const UnifiedAtsOfferOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsOfferOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsOfferOutputRemoteData +> = 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 UnifiedAtsOfferOutputRemoteData$ { + /** @deprecated use `UnifiedAtsOfferOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfferOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfferOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsOfferOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsOfferOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfferOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsOfferOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfferOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsOfferOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsOfferOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsOfferOutputCreatedAt +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAtsOfferOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsOfferOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfferOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfferOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsOfferOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsOfferOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfferOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsOfferOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfferOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsOfferOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsOfferOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsOfferOutputModifiedAt +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfferOutputModifiedAt - > = 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 UnifiedAtsOfferOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsOfferOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfferOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfferOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsOfferOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsOfferOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsOfferOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - created_by: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - closed_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - sent_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - start_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - status: z.string().optional(), - application_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsOfferOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsOfferOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsOfferOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsOfferOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - created_by: "createdBy", - remote_created_at: "remoteCreatedAt", - closed_at: "closedAt", - sent_at: "sentAt", - start_date: "startDate", - application_id: "applicationId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsOfferOutput$inboundSchema: z.ZodType< + UnifiedAtsOfferOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + created_by: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + closed_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + sent_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + start_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + status: z.string().optional(), + application_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsOfferOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsOfferOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsOfferOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsOfferOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + created_by: "createdBy", + remote_created_at: "remoteCreatedAt", + closed_at: "closedAt", + sent_at: "sentAt", + start_date: "startDate", + application_id: "applicationId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - created_by?: string | undefined; - remote_created_at?: string | undefined; - closed_at?: string | undefined; - sent_at?: string | undefined; - start_date?: string | undefined; - status?: string | undefined; - application_id?: string | undefined; - field_mappings: UnifiedAtsOfferOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsOfferOutputRemoteData$.Outbound; - created_at: UnifiedAtsOfferOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsOfferOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - createdBy: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - closedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - sentAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - startDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - status: z.string().optional(), - applicationId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsOfferOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsOfferOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsOfferOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsOfferOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - createdBy: "created_by", - remoteCreatedAt: "remote_created_at", - closedAt: "closed_at", - sentAt: "sent_at", - startDate: "start_date", - applicationId: "application_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsOfferOutput$Outbound = { + created_by?: string | undefined; + remote_created_at?: string | undefined; + closed_at?: string | undefined; + sent_at?: string | undefined; + start_date?: string | undefined; + status?: string | undefined; + application_id?: string | undefined; + field_mappings: UnifiedAtsOfferOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsOfferOutputRemoteData$Outbound; + created_at: UnifiedAtsOfferOutputCreatedAt$Outbound; + modified_at: UnifiedAtsOfferOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsOfferOutput$outboundSchema: z.ZodType< + UnifiedAtsOfferOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsOfferOutput +> = z + .object({ + createdBy: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + closedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + sentAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + startDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + status: z.string().optional(), + applicationId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsOfferOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsOfferOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsOfferOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsOfferOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + createdBy: "created_by", + remoteCreatedAt: "remote_created_at", + closedAt: "closed_at", + sentAt: "sent_at", + startDate: "start_date", + applicationId: "application_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsOfferOutput$ { + /** @deprecated use `UnifiedAtsOfferOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfferOutput$inboundSchema; + /** @deprecated use `UnifiedAtsOfferOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfferOutput$outboundSchema; + /** @deprecated use `UnifiedAtsOfferOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsOfferOutput$Outbound; } diff --git a/src/models/components/unifiedatsofficeoutput.ts b/src/models/components/unifiedatsofficeoutput.ts index 2579645d..4742f604 100644 --- a/src/models/components/unifiedatsofficeoutput.ts +++ b/src/models/components/unifiedatsofficeoutput.ts @@ -37,116 +37,198 @@ export type UnifiedAtsOfficeOutput = { }; /** @internal */ +export const UnifiedAtsOfficeOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsOfficeOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsOfficeOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsOfficeOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsOfficeOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsOfficeOutputFieldMappings +> = 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 UnifiedAtsOfficeOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsOfficeOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfficeOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsOfficeOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfficeOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfficeOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsOfficeOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsOfficeOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfficeOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsOfficeOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfficeOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfficeOutputRemoteData - > = z.object({}); +/** @internal */ +export const UnifiedAtsOfficeOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsOfficeOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsOfficeOutputRemoteData +> = 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 UnifiedAtsOfficeOutputRemoteData$ { + /** @deprecated use `UnifiedAtsOfficeOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfficeOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfficeOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsOfficeOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsOfficeOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfficeOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsOfficeOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfficeOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfficeOutputCreatedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsOfficeOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsOfficeOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsOfficeOutputCreatedAt +> = 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 UnifiedAtsOfficeOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsOfficeOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfficeOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfficeOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsOfficeOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsOfficeOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsOfficeOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsOfficeOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsOfficeOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsOfficeOutputModifiedAt - > = z.object({}); +/** @internal */ +export const UnifiedAtsOfficeOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsOfficeOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsOfficeOutputModifiedAt +> = 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 UnifiedAtsOfficeOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsOfficeOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfficeOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfficeOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsOfficeOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsOfficeOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - location: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsOfficeOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsOfficeOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsOfficeOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsOfficeOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsOfficeOutput$inboundSchema: z.ZodType< + UnifiedAtsOfficeOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + location: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsOfficeOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsOfficeOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsOfficeOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsOfficeOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - location?: string | undefined; - field_mappings: UnifiedAtsOfficeOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsOfficeOutputRemoteData$.Outbound; - created_at: UnifiedAtsOfficeOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsOfficeOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - location: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsOfficeOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsOfficeOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsOfficeOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsOfficeOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsOfficeOutput$Outbound = { + name?: string | undefined; + location?: string | undefined; + field_mappings: UnifiedAtsOfficeOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsOfficeOutputRemoteData$Outbound; + created_at: UnifiedAtsOfficeOutputCreatedAt$Outbound; + modified_at: UnifiedAtsOfficeOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsOfficeOutput$outboundSchema: z.ZodType< + UnifiedAtsOfficeOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsOfficeOutput +> = z + .object({ + name: z.string().optional(), + location: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsOfficeOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsOfficeOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsOfficeOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsOfficeOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsOfficeOutput$ { + /** @deprecated use `UnifiedAtsOfficeOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsOfficeOutput$inboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsOfficeOutput$outboundSchema; + /** @deprecated use `UnifiedAtsOfficeOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsOfficeOutput$Outbound; } diff --git a/src/models/components/unifiedatsrejectreasonoutput.ts b/src/models/components/unifiedatsrejectreasonoutput.ts index 471973da..229f00e8 100644 --- a/src/models/components/unifiedatsrejectreasonoutput.ts +++ b/src/models/components/unifiedatsrejectreasonoutput.ts @@ -33,122 +33,195 @@ export type UnifiedAtsRejectreasonOutput = { }; /** @internal */ +export const UnifiedAtsRejectreasonOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsRejectreasonOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsRejectreasonOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsRejectreasonOutputFieldMappings +> = 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 UnifiedAtsRejectreasonOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsRejectreasonOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsRejectreasonOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsRejectreasonOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsRejectreasonOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsRejectreasonOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsRejectreasonOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsRejectreasonOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsRejectreasonOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsRejectreasonOutputRemoteData +> = 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 UnifiedAtsRejectreasonOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsRejectreasonOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsRejectreasonOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsRejectreasonOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsRejectreasonOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsRejectreasonOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsRejectreasonOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsRejectreasonOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsRejectreasonOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsRejectreasonOutputCreatedAt +> = 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 UnifiedAtsRejectreasonOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsRejectreasonOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsRejectreasonOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsRejectreasonOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsRejectreasonOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsRejectreasonOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsRejectreasonOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsRejectreasonOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsRejectreasonOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsRejectreasonOutputModifiedAt +> = 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 UnifiedAtsRejectreasonOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsRejectreasonOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsRejectreasonOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsRejectreasonOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsRejectreasonOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsRejectreasonOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsRejectreasonOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsRejectreasonOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsRejectreasonOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsRejectreasonOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsRejectreasonOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsRejectreasonOutput$inboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsRejectreasonOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsRejectreasonOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsRejectreasonOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsRejectreasonOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - field_mappings: UnifiedAtsRejectreasonOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsRejectreasonOutputRemoteData$.Outbound; - created_at: UnifiedAtsRejectreasonOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsRejectreasonOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsRejectreasonOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsRejectreasonOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsRejectreasonOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsRejectreasonOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsRejectreasonOutput$Outbound = { + name?: string | undefined; + field_mappings: UnifiedAtsRejectreasonOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsRejectreasonOutputRemoteData$Outbound; + created_at: UnifiedAtsRejectreasonOutputCreatedAt$Outbound; + modified_at: UnifiedAtsRejectreasonOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsRejectreasonOutput$outboundSchema: z.ZodType< + UnifiedAtsRejectreasonOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsRejectreasonOutput +> = z + .object({ + name: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsRejectreasonOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsRejectreasonOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsRejectreasonOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsRejectreasonOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsRejectreasonOutput$ { + /** @deprecated use `UnifiedAtsRejectreasonOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsRejectreasonOutput$inboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsRejectreasonOutput$outboundSchema; + /** @deprecated use `UnifiedAtsRejectreasonOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsRejectreasonOutput$Outbound; } diff --git a/src/models/components/unifiedatsscorecardoutput.ts b/src/models/components/unifiedatsscorecardoutput.ts index b1e3821e..f9f27390 100644 --- a/src/models/components/unifiedatsscorecardoutput.ts +++ b/src/models/components/unifiedatsscorecardoutput.ts @@ -49,158 +49,231 @@ export type UnifiedAtsScorecardOutput = { }; /** @internal */ +export const UnifiedAtsScorecardOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsScorecardOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsScorecardOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsScorecardOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsScorecardOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsScorecardOutputFieldMappings +> = 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 UnifiedAtsScorecardOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsScorecardOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsScorecardOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsScorecardOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsScorecardOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsScorecardOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsScorecardOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedAtsScorecardOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsScorecardOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsScorecardOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedAtsScorecardOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsScorecardOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsScorecardOutputRemoteData +> = 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 UnifiedAtsScorecardOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedAtsScorecardOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsScorecardOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedAtsScorecardOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsScorecardOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsScorecardOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsScorecardOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedAtsScorecardOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsScorecardOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsScorecardOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsScorecardOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsScorecardOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsScorecardOutputCreatedAt +> = 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 UnifiedAtsScorecardOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsScorecardOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsScorecardOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsScorecardOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsScorecardOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsScorecardOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsScorecardOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedAtsScorecardOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsScorecardOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsScorecardOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedAtsScorecardOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsScorecardOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsScorecardOutputModifiedAt +> = 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 UnifiedAtsScorecardOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedAtsScorecardOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsScorecardOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedAtsScorecardOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsScorecardOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsScorecardOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsScorecardOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsScorecardOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - overall_recommendation: z.string().optional(), - application_id: z.string().optional(), - interview_id: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - submitted_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsScorecardOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsScorecardOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsScorecardOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsScorecardOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - overall_recommendation: "overallRecommendation", - application_id: "applicationId", - interview_id: "interviewId", - remote_created_at: "remoteCreatedAt", - submitted_at: "submittedAt", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsScorecardOutput$inboundSchema: z.ZodType< + UnifiedAtsScorecardOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + overall_recommendation: z.string().optional(), + application_id: z.string().optional(), + interview_id: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + submitted_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsScorecardOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsScorecardOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsScorecardOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsScorecardOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + overall_recommendation: "overallRecommendation", + application_id: "applicationId", + interview_id: "interviewId", + remote_created_at: "remoteCreatedAt", + submitted_at: "submittedAt", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - overall_recommendation?: string | undefined; - application_id?: string | undefined; - interview_id?: string | undefined; - remote_created_at?: string | undefined; - submitted_at?: string | undefined; - field_mappings: UnifiedAtsScorecardOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsScorecardOutputRemoteData$.Outbound; - created_at: UnifiedAtsScorecardOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsScorecardOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - overallRecommendation: z.string().optional(), - applicationId: z.string().optional(), - interviewId: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - submittedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsScorecardOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsScorecardOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsScorecardOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsScorecardOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - overallRecommendation: "overall_recommendation", - applicationId: "application_id", - interviewId: "interview_id", - remoteCreatedAt: "remote_created_at", - submittedAt: "submitted_at", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsScorecardOutput$Outbound = { + overall_recommendation?: string | undefined; + application_id?: string | undefined; + interview_id?: string | undefined; + remote_created_at?: string | undefined; + submitted_at?: string | undefined; + field_mappings: UnifiedAtsScorecardOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsScorecardOutputRemoteData$Outbound; + created_at: UnifiedAtsScorecardOutputCreatedAt$Outbound; + modified_at: UnifiedAtsScorecardOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsScorecardOutput$outboundSchema: z.ZodType< + UnifiedAtsScorecardOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsScorecardOutput +> = z + .object({ + overallRecommendation: z.string().optional(), + applicationId: z.string().optional(), + interviewId: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + submittedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsScorecardOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsScorecardOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsScorecardOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsScorecardOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + overallRecommendation: "overall_recommendation", + applicationId: "application_id", + interviewId: "interview_id", + remoteCreatedAt: "remote_created_at", + submittedAt: "submitted_at", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsScorecardOutput$ { + /** @deprecated use `UnifiedAtsScorecardOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsScorecardOutput$inboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsScorecardOutput$outboundSchema; + /** @deprecated use `UnifiedAtsScorecardOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsScorecardOutput$Outbound; } diff --git a/src/models/components/unifiedatstagoutput.ts b/src/models/components/unifiedatstagoutput.ts index 8639cd13..64c87832 100644 --- a/src/models/components/unifiedatstagoutput.ts +++ b/src/models/components/unifiedatstagoutput.ts @@ -39,98 +39,154 @@ export type UnifiedAtsTagOutput = { }; /** @internal */ -export namespace UnifiedAtsTagOutputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsTagOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsTagOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsTagOutputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsTagOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsTagOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsTagOutputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsTagOutputFieldMappings - > = 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 UnifiedAtsTagOutputFieldMappings$ { + /** @deprecated use `UnifiedAtsTagOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsTagOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsTagOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsTagOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsTagOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsTagOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsTagOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsTagOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsTagOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsTagOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedAtsTagOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsTagOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsTagOutputRemoteData +> = 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 UnifiedAtsTagOutputRemoteData$ { + /** @deprecated use `UnifiedAtsTagOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsTagOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsTagOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsTagOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsTagOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsTagOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsTagOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - id_ats_candidate: z.string().optional(), - field_mappings: z.lazy(() => UnifiedAtsTagOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsTagOutputRemoteData$.inboundSchema), - created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - }) - .transform((v) => { - return remap$(v, { - id_ats_candidate: "idAtsCandidate", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsTagOutput$inboundSchema: z.ZodType< + UnifiedAtsTagOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string().optional(), + id_ats_candidate: z.string().optional(), + field_mappings: z.lazy(() => UnifiedAtsTagOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsTagOutputRemoteData$inboundSchema), + created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + }) + .transform((v) => { + return remap$(v, { + id_ats_candidate: "idAtsCandidate", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name?: string | undefined; - id_ats_candidate?: string | undefined; - field_mappings: UnifiedAtsTagOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsTagOutputRemoteData$.Outbound; - created_at?: string | undefined; - modified_at?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string().optional(), - idAtsCandidate: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedAtsTagOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsTagOutputRemoteData$.outboundSchema), - createdAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - modifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - }) - .transform((v) => { - return remap$(v, { - idAtsCandidate: "id_ats_candidate", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsTagOutput$Outbound = { + name?: string | undefined; + id_ats_candidate?: string | undefined; + field_mappings: UnifiedAtsTagOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsTagOutputRemoteData$Outbound; + created_at?: string | undefined; + modified_at?: string | undefined; +}; + +/** @internal */ +export const UnifiedAtsTagOutput$outboundSchema: z.ZodType< + UnifiedAtsTagOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsTagOutput +> = z + .object({ + name: z.string().optional(), + idAtsCandidate: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedAtsTagOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsTagOutputRemoteData$outboundSchema), + createdAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + modifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + }) + .transform((v) => { + return remap$(v, { + idAtsCandidate: "id_ats_candidate", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsTagOutput$ { + /** @deprecated use `UnifiedAtsTagOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsTagOutput$inboundSchema; + /** @deprecated use `UnifiedAtsTagOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsTagOutput$outboundSchema; + /** @deprecated use `UnifiedAtsTagOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsTagOutput$Outbound; } diff --git a/src/models/components/unifiedatsuseroutput.ts b/src/models/components/unifiedatsuseroutput.ts index a676cd8a..fdd7e8e6 100644 --- a/src/models/components/unifiedatsuseroutput.ts +++ b/src/models/components/unifiedatsuseroutput.ts @@ -57,146 +57,237 @@ export type UnifiedAtsUserOutput = { }; /** @internal */ +export const UnifiedAtsUserOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedAtsUserOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsUserOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedAtsUserOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedAtsUserOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedAtsUserOutputFieldMappings +> = 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 UnifiedAtsUserOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedAtsUserOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedAtsUserOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedAtsUserOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsUserOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedAtsUserOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsUserOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedAtsUserOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedAtsUserOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedAtsUserOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsUserOutputRemoteData$inboundSchema: z.ZodType< + UnifiedAtsUserOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedAtsUserOutputRemoteData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedAtsUserOutputRemoteData$outboundSchema: z.ZodType< + UnifiedAtsUserOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedAtsUserOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedAtsUserOutputRemoteData$ { + /** @deprecated use `UnifiedAtsUserOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsUserOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedAtsUserOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsUserOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedAtsUserOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedAtsUserOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedAtsUserOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsUserOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedAtsUserOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsUserOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedAtsUserOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedAtsUserOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsUserOutputCreatedAt +> = 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 UnifiedAtsUserOutputCreatedAt$ { + /** @deprecated use `UnifiedAtsUserOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsUserOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedAtsUserOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsUserOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedAtsUserOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsUserOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsUserOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedAtsUserOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedAtsUserOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedAtsUserOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedAtsUserOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedAtsUserOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedAtsUserOutputModifiedAt +> = 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 UnifiedAtsUserOutputModifiedAt$ { + /** @deprecated use `UnifiedAtsUserOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsUserOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedAtsUserOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsUserOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedAtsUserOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedAtsUserOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedAtsUserOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string().optional(), - last_name: z.string().optional(), - email: z.string().optional(), - disabled: z.boolean().optional(), - access_role: z.string().optional(), - remote_created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - remote_modified_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - field_mappings: z.lazy(() => UnifiedAtsUserOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedAtsUserOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedAtsUserOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedAtsUserOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - first_name: "firstName", - last_name: "lastName", - access_role: "accessRole", - remote_created_at: "remoteCreatedAt", - remote_modified_at: "remoteModifiedAt", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedAtsUserOutput$inboundSchema: z.ZodType< + UnifiedAtsUserOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + first_name: z.string().optional(), + last_name: z.string().optional(), + email: z.string().optional(), + disabled: z.boolean().optional(), + access_role: z.string().optional(), + remote_created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + remote_modified_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + field_mappings: z.lazy(() => UnifiedAtsUserOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedAtsUserOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedAtsUserOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedAtsUserOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + first_name: "firstName", + last_name: "lastName", + access_role: "accessRole", + remote_created_at: "remoteCreatedAt", + remote_modified_at: "remoteModifiedAt", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - first_name?: string | undefined; - last_name?: string | undefined; - email?: string | undefined; - disabled?: boolean | undefined; - access_role?: string | undefined; - remote_created_at?: string | undefined; - remote_modified_at?: string | undefined; - field_mappings: UnifiedAtsUserOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedAtsUserOutputRemoteData$.Outbound; - created_at: UnifiedAtsUserOutputCreatedAt$.Outbound; - modified_at: UnifiedAtsUserOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string().optional(), - lastName: z.string().optional(), - email: z.string().optional(), - disabled: z.boolean().optional(), - accessRole: z.string().optional(), - remoteCreatedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - remoteModifiedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - fieldMappings: z.lazy(() => UnifiedAtsUserOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedAtsUserOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedAtsUserOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedAtsUserOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - accessRole: "access_role", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_modified_at", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedAtsUserOutput$Outbound = { + first_name?: string | undefined; + last_name?: string | undefined; + email?: string | undefined; + disabled?: boolean | undefined; + access_role?: string | undefined; + remote_created_at?: string | undefined; + remote_modified_at?: string | undefined; + field_mappings: UnifiedAtsUserOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedAtsUserOutputRemoteData$Outbound; + created_at: UnifiedAtsUserOutputCreatedAt$Outbound; + modified_at: UnifiedAtsUserOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedAtsUserOutput$outboundSchema: z.ZodType< + UnifiedAtsUserOutput$Outbound, + z.ZodTypeDef, + UnifiedAtsUserOutput +> = z + .object({ + firstName: z.string().optional(), + lastName: z.string().optional(), + email: z.string().optional(), + disabled: z.boolean().optional(), + accessRole: z.string().optional(), + remoteCreatedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + remoteModifiedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + fieldMappings: z.lazy(() => UnifiedAtsUserOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedAtsUserOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedAtsUserOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedAtsUserOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + firstName: "first_name", + lastName: "last_name", + accessRole: "access_role", + remoteCreatedAt: "remote_created_at", + remoteModifiedAt: "remote_modified_at", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedAtsUserOutput$ { + /** @deprecated use `UnifiedAtsUserOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedAtsUserOutput$inboundSchema; + /** @deprecated use `UnifiedAtsUserOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedAtsUserOutput$outboundSchema; + /** @deprecated use `UnifiedAtsUserOutput$Outbound` instead. */ + export type Outbound = UnifiedAtsUserOutput$Outbound; } diff --git a/src/models/components/unifiedcampaignoutput.ts b/src/models/components/unifiedcampaignoutput.ts index a91919e8..45fa7d64 100644 --- a/src/models/components/unifiedcampaignoutput.ts +++ b/src/models/components/unifiedcampaignoutput.ts @@ -7,13 +7,31 @@ import * as z from "zod"; export type UnifiedCampaignOutput = {}; /** @internal */ -export namespace UnifiedCampaignOutput$ { - export const inboundSchema: z.ZodType = z.object( - {} - ); +export const UnifiedCampaignOutput$inboundSchema: z.ZodType< + UnifiedCampaignOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCampaignOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCampaignOutput$outboundSchema: z.ZodType< + UnifiedCampaignOutput$Outbound, + z.ZodTypeDef, + UnifiedCampaignOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedCampaignOutput$ { + /** @deprecated use `UnifiedCampaignOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCampaignOutput$inboundSchema; + /** @deprecated use `UnifiedCampaignOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCampaignOutput$outboundSchema; + /** @deprecated use `UnifiedCampaignOutput$Outbound` instead. */ + export type Outbound = UnifiedCampaignOutput$Outbound; } diff --git a/src/models/components/unifiedcrmcompanyinput.ts b/src/models/components/unifiedcrmcompanyinput.ts index dfd5e43e..b7aeefda 100644 --- a/src/models/components/unifiedcrmcompanyinput.ts +++ b/src/models/components/unifiedcrmcompanyinput.ts @@ -3,9 +3,14 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Address, Address$ } from "./address.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; +import { + Address, + Address$inboundSchema, + Address$Outbound, + Address$outboundSchema, +} from "./address.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; import * as z from "zod"; export type UnifiedCrmCompanyInputFieldMappings = {}; @@ -43,74 +48,108 @@ export type UnifiedCrmCompanyInput = { }; /** @internal */ -export namespace UnifiedCrmCompanyInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmCompanyInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedCrmCompanyInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmCompanyInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmCompanyInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmCompanyInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmCompanyInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmCompanyInputFieldMappings - > = 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 UnifiedCrmCompanyInputFieldMappings$ { + /** @deprecated use `UnifiedCrmCompanyInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmCompanyInput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - industry: z.string().optional(), - number_of_employees: z.number().optional(), - user_id: z.string().optional(), - email_addresses: z.array(Email$.inboundSchema).optional(), - addresses: z.array(Address$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - field_mappings: z.lazy(() => UnifiedCrmCompanyInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - number_of_employees: "numberOfEmployees", - user_id: "userId", - email_addresses: "emailAddresses", - phone_numbers: "phoneNumbers", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmCompanyInput$inboundSchema: z.ZodType< + UnifiedCrmCompanyInput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + industry: z.string().optional(), + number_of_employees: z.number().optional(), + user_id: z.string().optional(), + email_addresses: z.array(Email$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + field_mappings: z.lazy(() => UnifiedCrmCompanyInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + number_of_employees: "numberOfEmployees", + user_id: "userId", + email_addresses: "emailAddresses", + phone_numbers: "phoneNumbers", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - name: string; - industry?: string | undefined; - number_of_employees?: number | undefined; - user_id?: string | undefined; - email_addresses?: Array | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - field_mappings: UnifiedCrmCompanyInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmCompanyInput$Outbound = { + name: string; + industry?: string | undefined; + number_of_employees?: number | undefined; + user_id?: string | undefined; + email_addresses?: Array | undefined; + addresses?: Array | undefined; + phone_numbers?: Array | undefined; + field_mappings: UnifiedCrmCompanyInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - industry: z.string().optional(), - numberOfEmployees: z.number().optional(), - userId: z.string().optional(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - addresses: z.array(Address$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - fieldMappings: z.lazy(() => UnifiedCrmCompanyInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - numberOfEmployees: "number_of_employees", - userId: "user_id", - emailAddresses: "email_addresses", - phoneNumbers: "phone_numbers", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmCompanyInput$outboundSchema: z.ZodType< + UnifiedCrmCompanyInput$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyInput +> = z + .object({ + name: z.string(), + industry: z.string().optional(), + numberOfEmployees: z.number().optional(), + userId: z.string().optional(), + emailAddresses: z.array(Email$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + fieldMappings: z.lazy(() => UnifiedCrmCompanyInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + numberOfEmployees: "number_of_employees", + userId: "user_id", + emailAddresses: "email_addresses", + phoneNumbers: "phone_numbers", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmCompanyInput$ { + /** @deprecated use `UnifiedCrmCompanyInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyInput$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyInput$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyInput$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyInput$Outbound; } diff --git a/src/models/components/unifiedcrmcompanyoutput.ts b/src/models/components/unifiedcrmcompanyoutput.ts index 46433b18..03ad5bea 100644 --- a/src/models/components/unifiedcrmcompanyoutput.ts +++ b/src/models/components/unifiedcrmcompanyoutput.ts @@ -3,9 +3,14 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Address, Address$ } from "./address.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; +import { + Address, + Address$inboundSchema, + Address$Outbound, + Address$outboundSchema, +} from "./address.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; import * as z from "zod"; export type UnifiedCrmCompanyOutputFieldMappings = {}; @@ -60,145 +65,221 @@ export type UnifiedCrmCompanyOutput = { }; /** @internal */ +export const UnifiedCrmCompanyOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmCompanyOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmCompanyOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmCompanyOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmCompanyOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyOutputFieldMappings +> = 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 UnifiedCrmCompanyOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmCompanyOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmCompanyOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmCompanyOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedCrmCompanyOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmCompanyOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmCompanyOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedCrmCompanyOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmCompanyOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyOutputRemoteData +> = 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 UnifiedCrmCompanyOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedCrmCompanyOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmCompanyOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedCrmCompanyOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmCompanyOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmCompanyOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmCompanyOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmCompanyOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmCompanyOutputCreatedAt - > = z.object({}); +/** @internal */ +export const UnifiedCrmCompanyOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmCompanyOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyOutputCreatedAt +> = 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 UnifiedCrmCompanyOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmCompanyOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedCrmCompanyOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmCompanyOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmCompanyOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmCompanyOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmCompanyOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyOutputModifiedAt +> = 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 UnifiedCrmCompanyOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedCrmCompanyOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmCompanyOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedCrmCompanyOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmCompanyOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - industry: z.string().optional(), - number_of_employees: z.number().optional(), - user_id: z.string().optional(), - email_addresses: z.array(Email$.inboundSchema).optional(), - addresses: z.array(Address$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - field_mappings: z.lazy(() => UnifiedCrmCompanyOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmCompanyOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmCompanyOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmCompanyOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - number_of_employees: "numberOfEmployees", - user_id: "userId", - email_addresses: "emailAddresses", - phone_numbers: "phoneNumbers", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmCompanyOutput$inboundSchema: z.ZodType< + UnifiedCrmCompanyOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + industry: z.string().optional(), + number_of_employees: z.number().optional(), + user_id: z.string().optional(), + email_addresses: z.array(Email$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + field_mappings: z.lazy(() => UnifiedCrmCompanyOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmCompanyOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmCompanyOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmCompanyOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + number_of_employees: "numberOfEmployees", + user_id: "userId", + email_addresses: "emailAddresses", + phone_numbers: "phoneNumbers", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - industry?: string | undefined; - number_of_employees?: number | undefined; - user_id?: string | undefined; - email_addresses?: Array | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - field_mappings: UnifiedCrmCompanyOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmCompanyOutputRemoteData$.Outbound; - created_at: UnifiedCrmCompanyOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmCompanyOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - industry: z.string().optional(), - numberOfEmployees: z.number().optional(), - userId: z.string().optional(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - addresses: z.array(Address$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - fieldMappings: z.lazy(() => UnifiedCrmCompanyOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmCompanyOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmCompanyOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmCompanyOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - numberOfEmployees: "number_of_employees", - userId: "user_id", - emailAddresses: "email_addresses", - phoneNumbers: "phone_numbers", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedCrmCompanyOutput$Outbound = { + name: string; + industry?: string | undefined; + number_of_employees?: number | undefined; + user_id?: string | undefined; + email_addresses?: Array | undefined; + addresses?: Array | undefined; + phone_numbers?: Array | undefined; + field_mappings: UnifiedCrmCompanyOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmCompanyOutputRemoteData$Outbound; + created_at: UnifiedCrmCompanyOutputCreatedAt$Outbound; + modified_at: UnifiedCrmCompanyOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedCrmCompanyOutput$outboundSchema: z.ZodType< + UnifiedCrmCompanyOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmCompanyOutput +> = z + .object({ + name: z.string(), + industry: z.string().optional(), + numberOfEmployees: z.number().optional(), + userId: z.string().optional(), + emailAddresses: z.array(Email$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + fieldMappings: z.lazy(() => UnifiedCrmCompanyOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmCompanyOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmCompanyOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmCompanyOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + numberOfEmployees: "number_of_employees", + userId: "user_id", + emailAddresses: "email_addresses", + phoneNumbers: "phone_numbers", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmCompanyOutput$ { + /** @deprecated use `UnifiedCrmCompanyOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmCompanyOutput$inboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmCompanyOutput$outboundSchema; + /** @deprecated use `UnifiedCrmCompanyOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmCompanyOutput$Outbound; } diff --git a/src/models/components/unifiedcrmcontactinput.ts b/src/models/components/unifiedcrmcontactinput.ts index f1dcd327..14b60c6c 100644 --- a/src/models/components/unifiedcrmcontactinput.ts +++ b/src/models/components/unifiedcrmcontactinput.ts @@ -3,9 +3,14 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Address, Address$ } from "./address.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; +import { + Address, + Address$inboundSchema, + Address$Outbound, + Address$outboundSchema, +} from "./address.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; import * as z from "zod"; export type UnifiedCrmContactInputFieldMappings = {}; @@ -39,73 +44,107 @@ export type UnifiedCrmContactInput = { }; /** @internal */ -export namespace UnifiedCrmContactInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmContactInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedCrmContactInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmContactInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmContactInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmContactInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmContactInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmContactInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmContactInputFieldMappings - > = 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 UnifiedCrmContactInputFieldMappings$ { + /** @deprecated use `UnifiedCrmContactInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmContactInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmContactInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmContactInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmContactInput$ { - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string(), - last_name: z.string(), - email_addresses: z.array(Email$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - addresses: z.array(Address$.inboundSchema).optional(), - user_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmContactInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - first_name: "firstName", - last_name: "lastName", - email_addresses: "emailAddresses", - phone_numbers: "phoneNumbers", - user_id: "userId", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmContactInput$inboundSchema: z.ZodType< + UnifiedCrmContactInput, + z.ZodTypeDef, + unknown +> = z + .object({ + first_name: z.string(), + last_name: z.string(), + email_addresses: z.array(Email$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + user_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmContactInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + first_name: "firstName", + last_name: "lastName", + email_addresses: "emailAddresses", + phone_numbers: "phoneNumbers", + user_id: "userId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - first_name: string; - last_name: string; - email_addresses?: Array | undefined; - phone_numbers?: Array | undefined; - addresses?: Array | undefined; - user_id?: string | undefined; - field_mappings: UnifiedCrmContactInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmContactInput$Outbound = { + first_name: string; + last_name: string; + email_addresses?: Array | undefined; + phone_numbers?: Array | undefined; + addresses?: Array | undefined; + user_id?: string | undefined; + field_mappings: UnifiedCrmContactInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string(), - lastName: z.string(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - addresses: z.array(Address$.outboundSchema).optional(), - userId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmContactInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - emailAddresses: "email_addresses", - phoneNumbers: "phone_numbers", - userId: "user_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmContactInput$outboundSchema: z.ZodType< + UnifiedCrmContactInput$Outbound, + z.ZodTypeDef, + UnifiedCrmContactInput +> = z + .object({ + firstName: z.string(), + lastName: z.string(), + emailAddresses: z.array(Email$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + userId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmContactInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + firstName: "first_name", + lastName: "last_name", + emailAddresses: "email_addresses", + phoneNumbers: "phone_numbers", + userId: "user_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmContactInput$ { + /** @deprecated use `UnifiedCrmContactInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactInput$inboundSchema; + /** @deprecated use `UnifiedCrmContactInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactInput$outboundSchema; + /** @deprecated use `UnifiedCrmContactInput$Outbound` instead. */ + export type Outbound = UnifiedCrmContactInput$Outbound; } diff --git a/src/models/components/unifiedcrmcontactoutput.ts b/src/models/components/unifiedcrmcontactoutput.ts index 5beb1131..e7380657 100644 --- a/src/models/components/unifiedcrmcontactoutput.ts +++ b/src/models/components/unifiedcrmcontactoutput.ts @@ -3,9 +3,14 @@ */ import { remap as remap$ } from "../../lib/primitives.js"; -import { Address, Address$ } from "./address.js"; -import { Email, Email$ } from "./email.js"; -import { Phone, Phone$ } from "./phone.js"; +import { + Address, + Address$inboundSchema, + Address$Outbound, + Address$outboundSchema, +} from "./address.js"; +import { Email, Email$inboundSchema, Email$Outbound, Email$outboundSchema } from "./email.js"; +import { Phone, Phone$inboundSchema, Phone$Outbound, Phone$outboundSchema } from "./phone.js"; import * as z from "zod"; export type UnifiedCrmContactOutputFieldMappings = {}; @@ -56,144 +61,220 @@ export type UnifiedCrmContactOutput = { }; /** @internal */ +export const UnifiedCrmContactOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmContactOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmContactOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmContactOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmContactOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmContactOutputFieldMappings +> = 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 UnifiedCrmContactOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmContactOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmContactOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmContactOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmContactOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmContactOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmContactOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedCrmContactOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmContactOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmContactOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedCrmContactOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmContactOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmContactOutputRemoteData +> = 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 UnifiedCrmContactOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedCrmContactOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmContactOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedCrmContactOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmContactOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmContactOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmContactOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmContactOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmContactOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmContactOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmContactOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmContactOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmContactOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmContactOutputCreatedAt +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmContactOutputCreatedAt - > = 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 UnifiedCrmContactOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmContactOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmContactOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmContactOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmContactOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedCrmContactOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmContactOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmContactOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmContactOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmContactOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmContactOutputModifiedAt +> = 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 UnifiedCrmContactOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedCrmContactOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmContactOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedCrmContactOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmContactOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmContactOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmContactOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmContactOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string(), - last_name: z.string(), - email_addresses: z.array(Email$.inboundSchema).optional(), - phone_numbers: z.array(Phone$.inboundSchema).optional(), - addresses: z.array(Address$.inboundSchema).optional(), - user_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmContactOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmContactOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmContactOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmContactOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - first_name: "firstName", - last_name: "lastName", - email_addresses: "emailAddresses", - phone_numbers: "phoneNumbers", - user_id: "userId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmContactOutput$inboundSchema: z.ZodType< + UnifiedCrmContactOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + first_name: z.string(), + last_name: z.string(), + email_addresses: z.array(Email$inboundSchema).optional(), + phone_numbers: z.array(Phone$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + user_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmContactOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmContactOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmContactOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmContactOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + first_name: "firstName", + last_name: "lastName", + email_addresses: "emailAddresses", + phone_numbers: "phoneNumbers", + user_id: "userId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - first_name: string; - last_name: string; - email_addresses?: Array | undefined; - phone_numbers?: Array | undefined; - addresses?: Array | undefined; - user_id?: string | undefined; - field_mappings: UnifiedCrmContactOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmContactOutputRemoteData$.Outbound; - created_at: UnifiedCrmContactOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmContactOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string(), - lastName: z.string(), - emailAddresses: z.array(Email$.outboundSchema).optional(), - phoneNumbers: z.array(Phone$.outboundSchema).optional(), - addresses: z.array(Address$.outboundSchema).optional(), - userId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmContactOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmContactOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmContactOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmContactOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - emailAddresses: "email_addresses", - phoneNumbers: "phone_numbers", - userId: "user_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedCrmContactOutput$Outbound = { + first_name: string; + last_name: string; + email_addresses?: Array | undefined; + phone_numbers?: Array | undefined; + addresses?: Array | undefined; + user_id?: string | undefined; + field_mappings: UnifiedCrmContactOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmContactOutputRemoteData$Outbound; + created_at: UnifiedCrmContactOutputCreatedAt$Outbound; + modified_at: UnifiedCrmContactOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedCrmContactOutput$outboundSchema: z.ZodType< + UnifiedCrmContactOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmContactOutput +> = z + .object({ + firstName: z.string(), + lastName: z.string(), + emailAddresses: z.array(Email$outboundSchema).optional(), + phoneNumbers: z.array(Phone$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + userId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmContactOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmContactOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmContactOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmContactOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + firstName: "first_name", + lastName: "last_name", + emailAddresses: "email_addresses", + phoneNumbers: "phone_numbers", + userId: "user_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmContactOutput$ { + /** @deprecated use `UnifiedCrmContactOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmContactOutput$inboundSchema; + /** @deprecated use `UnifiedCrmContactOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmContactOutput$outboundSchema; + /** @deprecated use `UnifiedCrmContactOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmContactOutput$Outbound; } diff --git a/src/models/components/unifiedcrmdealinput.ts b/src/models/components/unifiedcrmdealinput.ts index 15c467b2..8b8ca3f1 100644 --- a/src/models/components/unifiedcrmdealinput.ts +++ b/src/models/components/unifiedcrmdealinput.ts @@ -36,66 +36,103 @@ export type UnifiedCrmDealInput = { }; /** @internal */ -export namespace UnifiedCrmDealInputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmDealInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmDealInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmDealInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmDealInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmDealInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmDealInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmDealInputFieldMappings - > = 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 UnifiedCrmDealInputFieldMappings$ { + /** @deprecated use `UnifiedCrmDealInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmDealInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmDealInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmDealInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmDealInput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string(), - amount: z.number(), - user_id: z.string().optional(), - stage_id: z.string().optional(), - company_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmDealInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - user_id: "userId", - stage_id: "stageId", - company_id: "companyId", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmDealInput$inboundSchema: z.ZodType< + UnifiedCrmDealInput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + description: z.string(), + amount: z.number(), + user_id: z.string().optional(), + stage_id: z.string().optional(), + company_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmDealInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + user_id: "userId", + stage_id: "stageId", + company_id: "companyId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - name: string; - description: string; - amount: number; - user_id?: string | undefined; - stage_id?: string | undefined; - company_id?: string | undefined; - field_mappings: UnifiedCrmDealInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmDealInput$Outbound = { + name: string; + description: string; + amount: number; + user_id?: string | undefined; + stage_id?: string | undefined; + company_id?: string | undefined; + field_mappings: UnifiedCrmDealInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string(), - amount: z.number(), - userId: z.string().optional(), - stageId: z.string().optional(), - companyId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmDealInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - userId: "user_id", - stageId: "stage_id", - companyId: "company_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmDealInput$outboundSchema: z.ZodType< + UnifiedCrmDealInput$Outbound, + z.ZodTypeDef, + UnifiedCrmDealInput +> = z + .object({ + name: z.string(), + description: z.string(), + amount: z.number(), + userId: z.string().optional(), + stageId: z.string().optional(), + companyId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmDealInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + userId: "user_id", + stageId: "stage_id", + companyId: "company_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmDealInput$ { + /** @deprecated use `UnifiedCrmDealInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealInput$inboundSchema; + /** @deprecated use `UnifiedCrmDealInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealInput$outboundSchema; + /** @deprecated use `UnifiedCrmDealInput$Outbound` instead. */ + export type Outbound = UnifiedCrmDealInput$Outbound; } diff --git a/src/models/components/unifiedcrmdealoutput.ts b/src/models/components/unifiedcrmdealoutput.ts index fa8bedc0..abab66c2 100644 --- a/src/models/components/unifiedcrmdealoutput.ts +++ b/src/models/components/unifiedcrmdealoutput.ts @@ -53,125 +53,216 @@ export type UnifiedCrmDealOutput = { }; /** @internal */ +export const UnifiedCrmDealOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmDealOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmDealOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmDealOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmDealOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmDealOutputFieldMappings +> = 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 UnifiedCrmDealOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmDealOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmDealOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmDealOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmDealOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmDealOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmDealOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmDealOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmDealOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmDealOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmDealOutputRemoteData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmDealOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmDealOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmDealOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedCrmDealOutputRemoteData$ { + /** @deprecated use `UnifiedCrmDealOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmDealOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmDealOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmDealOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmDealOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmDealOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmDealOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmDealOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmDealOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmDealOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmDealOutputCreatedAt +> = 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 UnifiedCrmDealOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmDealOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmDealOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmDealOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmDealOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmDealOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmDealOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmDealOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmDealOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmDealOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmDealOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmDealOutputModifiedAt +> = 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 UnifiedCrmDealOutputModifiedAt$ { + /** @deprecated use `UnifiedCrmDealOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmDealOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmDealOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmDealOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmDealOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string(), - amount: z.number(), - user_id: z.string().optional(), - stage_id: z.string().optional(), - company_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmDealOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmDealOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmDealOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmDealOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - user_id: "userId", - stage_id: "stageId", - company_id: "companyId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmDealOutput$inboundSchema: z.ZodType< + UnifiedCrmDealOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + description: z.string(), + amount: z.number(), + user_id: z.string().optional(), + stage_id: z.string().optional(), + company_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmDealOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmDealOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmDealOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmDealOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + user_id: "userId", + stage_id: "stageId", + company_id: "companyId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedCrmDealOutput$Outbound = { + name: string; + description: string; + amount: number; + user_id?: string | undefined; + stage_id?: string | undefined; + company_id?: string | undefined; + field_mappings: UnifiedCrmDealOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmDealOutputRemoteData$Outbound; + created_at: UnifiedCrmDealOutputCreatedAt$Outbound; + modified_at: UnifiedCrmDealOutputModifiedAt$Outbound; +}; - export type Outbound = { - name: string; - description: string; - amount: number; - user_id?: string | undefined; - stage_id?: string | undefined; - company_id?: string | undefined; - field_mappings: UnifiedCrmDealOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmDealOutputRemoteData$.Outbound; - created_at: UnifiedCrmDealOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmDealOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string(), - amount: z.number(), - userId: z.string().optional(), - stageId: z.string().optional(), - companyId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmDealOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmDealOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmDealOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmDealOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - userId: "user_id", - stageId: "stage_id", - companyId: "company_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedCrmDealOutput$outboundSchema: z.ZodType< + UnifiedCrmDealOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmDealOutput +> = z + .object({ + name: z.string(), + description: z.string(), + amount: z.number(), + userId: z.string().optional(), + stageId: z.string().optional(), + companyId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmDealOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmDealOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmDealOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmDealOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + userId: "user_id", + stageId: "stage_id", + companyId: "company_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmDealOutput$ { + /** @deprecated use `UnifiedCrmDealOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmDealOutput$inboundSchema; + /** @deprecated use `UnifiedCrmDealOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmDealOutput$outboundSchema; + /** @deprecated use `UnifiedCrmDealOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmDealOutput$Outbound; } diff --git a/src/models/components/unifiedcrmengagementinput.ts b/src/models/components/unifiedcrmengagementinput.ts index b91b28ae..71618e6e 100644 --- a/src/models/components/unifiedcrmengagementinput.ts +++ b/src/models/components/unifiedcrmengagementinput.ts @@ -48,94 +48,128 @@ export type UnifiedCrmEngagementInput = { }; /** @internal */ -export namespace UnifiedCrmEngagementInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmEngagementInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedCrmEngagementInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmEngagementInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmEngagementInputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmEngagementInputFieldMappings - > = z.object({}); +/** @internal */ +export const UnifiedCrmEngagementInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmEngagementInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementInputFieldMappings +> = 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 UnifiedCrmEngagementInputFieldMappings$ { + /** @deprecated use `UnifiedCrmEngagementInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmEngagementInput$ { - export const inboundSchema: z.ZodType = z - .object({ - content: z.string().optional(), - direction: z.string().optional(), - subject: z.string().optional(), - start_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - end_time: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - type: z.string(), - user_id: z.string().optional(), - company_id: z.string().optional(), - contacts: z.array(z.string()).optional(), - field_mappings: z.lazy(() => UnifiedCrmEngagementInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - start_at: "startAt", - end_time: "endTime", - user_id: "userId", - company_id: "companyId", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmEngagementInput$inboundSchema: z.ZodType< + UnifiedCrmEngagementInput, + z.ZodTypeDef, + unknown +> = z + .object({ + content: z.string().optional(), + direction: z.string().optional(), + subject: z.string().optional(), + start_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + end_time: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + type: z.string(), + user_id: z.string().optional(), + company_id: z.string().optional(), + contacts: z.array(z.string()).optional(), + field_mappings: z.lazy(() => UnifiedCrmEngagementInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + start_at: "startAt", + end_time: "endTime", + user_id: "userId", + company_id: "companyId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - content?: string | undefined; - direction?: string | undefined; - subject?: string | undefined; - start_at?: string | undefined; - end_time?: string | undefined; - type: string; - user_id?: string | undefined; - company_id?: string | undefined; - contacts?: Array | undefined; - field_mappings: UnifiedCrmEngagementInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmEngagementInput$Outbound = { + content?: string | undefined; + direction?: string | undefined; + subject?: string | undefined; + start_at?: string | undefined; + end_time?: string | undefined; + type: string; + user_id?: string | undefined; + company_id?: string | undefined; + contacts?: Array | undefined; + field_mappings: UnifiedCrmEngagementInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - content: z.string().optional(), - direction: z.string().optional(), - subject: z.string().optional(), - startAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - endTime: z - .date() - .transform((v) => v.toISOString()) - .optional(), - type: z.string(), - userId: z.string().optional(), - companyId: z.string().optional(), - contacts: z.array(z.string()).optional(), - fieldMappings: z.lazy(() => UnifiedCrmEngagementInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - startAt: "start_at", - endTime: "end_time", - userId: "user_id", - companyId: "company_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmEngagementInput$outboundSchema: z.ZodType< + UnifiedCrmEngagementInput$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementInput +> = z + .object({ + content: z.string().optional(), + direction: z.string().optional(), + subject: z.string().optional(), + startAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + endTime: z + .date() + .transform((v) => v.toISOString()) + .optional(), + type: z.string(), + userId: z.string().optional(), + companyId: z.string().optional(), + contacts: z.array(z.string()).optional(), + fieldMappings: z.lazy(() => UnifiedCrmEngagementInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + startAt: "start_at", + endTime: "end_time", + userId: "user_id", + companyId: "company_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmEngagementInput$ { + /** @deprecated use `UnifiedCrmEngagementInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementInput$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementInput$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementInput$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementInput$Outbound; } diff --git a/src/models/components/unifiedcrmengagementoutput.ts b/src/models/components/unifiedcrmengagementoutput.ts index 57b7c4c6..acf2c6cd 100644 --- a/src/models/components/unifiedcrmengagementoutput.ts +++ b/src/models/components/unifiedcrmengagementoutput.ts @@ -65,168 +65,241 @@ export type UnifiedCrmEngagementOutput = { }; /** @internal */ +export const UnifiedCrmEngagementOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmEngagementOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmEngagementOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmEngagementOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmEngagementOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementOutputFieldMappings +> = 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 UnifiedCrmEngagementOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmEngagementOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmEngagementOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmEngagementOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedCrmEngagementOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmEngagementOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmEngagementOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedCrmEngagementOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmEngagementOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementOutputRemoteData +> = 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 UnifiedCrmEngagementOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedCrmEngagementOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmEngagementOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedCrmEngagementOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedCrmEngagementOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmEngagementOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmEngagementOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmEngagementOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmEngagementOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementOutputCreatedAt +> = 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 UnifiedCrmEngagementOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedCrmEngagementOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmEngagementOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedCrmEngagementOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedCrmEngagementOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmEngagementOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmEngagementOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmEngagementOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmEngagementOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementOutputModifiedAt +> = 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 UnifiedCrmEngagementOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedCrmEngagementOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmEngagementOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedCrmEngagementOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmEngagementOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - content: z.string().optional(), - direction: z.string().optional(), - subject: z.string().optional(), - start_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - end_time: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - type: z.string(), - user_id: z.string().optional(), - company_id: z.string().optional(), - contacts: z.array(z.string()).optional(), - field_mappings: z.lazy(() => UnifiedCrmEngagementOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmEngagementOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmEngagementOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmEngagementOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - start_at: "startAt", - end_time: "endTime", - user_id: "userId", - company_id: "companyId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmEngagementOutput$inboundSchema: z.ZodType< + UnifiedCrmEngagementOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + content: z.string().optional(), + direction: z.string().optional(), + subject: z.string().optional(), + start_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + end_time: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + type: z.string(), + user_id: z.string().optional(), + company_id: z.string().optional(), + contacts: z.array(z.string()).optional(), + field_mappings: z.lazy(() => UnifiedCrmEngagementOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmEngagementOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmEngagementOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmEngagementOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + start_at: "startAt", + end_time: "endTime", + user_id: "userId", + company_id: "companyId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - content?: string | undefined; - direction?: string | undefined; - subject?: string | undefined; - start_at?: string | undefined; - end_time?: string | undefined; - type: string; - user_id?: string | undefined; - company_id?: string | undefined; - contacts?: Array | undefined; - field_mappings: UnifiedCrmEngagementOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmEngagementOutputRemoteData$.Outbound; - created_at: UnifiedCrmEngagementOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmEngagementOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - content: z.string().optional(), - direction: z.string().optional(), - subject: z.string().optional(), - startAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - endTime: z - .date() - .transform((v) => v.toISOString()) - .optional(), - type: z.string(), - userId: z.string().optional(), - companyId: z.string().optional(), - contacts: z.array(z.string()).optional(), - fieldMappings: z.lazy(() => UnifiedCrmEngagementOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmEngagementOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmEngagementOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmEngagementOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - startAt: "start_at", - endTime: "end_time", - userId: "user_id", - companyId: "company_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedCrmEngagementOutput$Outbound = { + content?: string | undefined; + direction?: string | undefined; + subject?: string | undefined; + start_at?: string | undefined; + end_time?: string | undefined; + type: string; + user_id?: string | undefined; + company_id?: string | undefined; + contacts?: Array | undefined; + field_mappings: UnifiedCrmEngagementOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmEngagementOutputRemoteData$Outbound; + created_at: UnifiedCrmEngagementOutputCreatedAt$Outbound; + modified_at: UnifiedCrmEngagementOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedCrmEngagementOutput$outboundSchema: z.ZodType< + UnifiedCrmEngagementOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmEngagementOutput +> = z + .object({ + content: z.string().optional(), + direction: z.string().optional(), + subject: z.string().optional(), + startAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + endTime: z + .date() + .transform((v) => v.toISOString()) + .optional(), + type: z.string(), + userId: z.string().optional(), + companyId: z.string().optional(), + contacts: z.array(z.string()).optional(), + fieldMappings: z.lazy(() => UnifiedCrmEngagementOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmEngagementOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmEngagementOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmEngagementOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + startAt: "start_at", + endTime: "end_time", + userId: "user_id", + companyId: "company_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmEngagementOutput$ { + /** @deprecated use `UnifiedCrmEngagementOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmEngagementOutput$inboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmEngagementOutput$outboundSchema; + /** @deprecated use `UnifiedCrmEngagementOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmEngagementOutput$Outbound; } diff --git a/src/models/components/unifiedcrmnoteinput.ts b/src/models/components/unifiedcrmnoteinput.ts index 75e3dd29..b56db66b 100644 --- a/src/models/components/unifiedcrmnoteinput.ts +++ b/src/models/components/unifiedcrmnoteinput.ts @@ -32,65 +32,102 @@ export type UnifiedCrmNoteInput = { }; /** @internal */ -export namespace UnifiedCrmNoteInputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmNoteInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmNoteInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmNoteInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmNoteInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmNoteInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmNoteInputFieldMappings - > = 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 UnifiedCrmNoteInputFieldMappings$ { + /** @deprecated use `UnifiedCrmNoteInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmNoteInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmNoteInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmNoteInput$ { - export const inboundSchema: z.ZodType = z - .object({ - content: z.string(), - user_id: z.string().optional(), - company_id: z.string().optional(), - contact_id: z.string().optional(), - deal_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmNoteInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - user_id: "userId", - company_id: "companyId", - contact_id: "contactId", - deal_id: "dealId", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmNoteInput$inboundSchema: z.ZodType< + UnifiedCrmNoteInput, + z.ZodTypeDef, + unknown +> = z + .object({ + content: z.string(), + user_id: z.string().optional(), + company_id: z.string().optional(), + contact_id: z.string().optional(), + deal_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmNoteInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + user_id: "userId", + company_id: "companyId", + contact_id: "contactId", + deal_id: "dealId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - content: string; - user_id?: string | undefined; - company_id?: string | undefined; - contact_id?: string | undefined; - deal_id?: string | undefined; - field_mappings: UnifiedCrmNoteInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmNoteInput$Outbound = { + content: string; + user_id?: string | undefined; + company_id?: string | undefined; + contact_id?: string | undefined; + deal_id?: string | undefined; + field_mappings: UnifiedCrmNoteInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - content: z.string(), - userId: z.string().optional(), - companyId: z.string().optional(), - contactId: z.string().optional(), - dealId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmNoteInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - userId: "user_id", - companyId: "company_id", - contactId: "contact_id", - dealId: "deal_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmNoteInput$outboundSchema: z.ZodType< + UnifiedCrmNoteInput$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteInput +> = z + .object({ + content: z.string(), + userId: z.string().optional(), + companyId: z.string().optional(), + contactId: z.string().optional(), + dealId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmNoteInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + userId: "user_id", + companyId: "company_id", + contactId: "contact_id", + dealId: "deal_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmNoteInput$ { + /** @deprecated use `UnifiedCrmNoteInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteInput$inboundSchema; + /** @deprecated use `UnifiedCrmNoteInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteInput$outboundSchema; + /** @deprecated use `UnifiedCrmNoteInput$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteInput$Outbound; } diff --git a/src/models/components/unifiedcrmnoteoutput.ts b/src/models/components/unifiedcrmnoteoutput.ts index c46d8b91..4a14d2a6 100644 --- a/src/models/components/unifiedcrmnoteoutput.ts +++ b/src/models/components/unifiedcrmnoteoutput.ts @@ -49,124 +49,215 @@ export type UnifiedCrmNoteOutput = { }; /** @internal */ +export const UnifiedCrmNoteOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmNoteOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmNoteOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmNoteOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmNoteOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteOutputFieldMappings +> = 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 UnifiedCrmNoteOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmNoteOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmNoteOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmNoteOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmNoteOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmNoteOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmNoteOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmNoteOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmNoteOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmNoteOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteOutputRemoteData +> = 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 UnifiedCrmNoteOutputRemoteData$ { + /** @deprecated use `UnifiedCrmNoteOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmNoteOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmNoteOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmNoteOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmNoteOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmNoteOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmNoteOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteOutputCreatedAt +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedCrmNoteOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmNoteOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmNoteOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmNoteOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmNoteOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmNoteOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedCrmNoteOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmNoteOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteOutputModifiedAt +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedCrmNoteOutputModifiedAt$ { + /** @deprecated use `UnifiedCrmNoteOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmNoteOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmNoteOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - content: z.string(), - user_id: z.string().optional(), - company_id: z.string().optional(), - contact_id: z.string().optional(), - deal_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmNoteOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmNoteOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmNoteOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmNoteOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - user_id: "userId", - company_id: "companyId", - contact_id: "contactId", - deal_id: "dealId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmNoteOutput$inboundSchema: z.ZodType< + UnifiedCrmNoteOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + content: z.string(), + user_id: z.string().optional(), + company_id: z.string().optional(), + contact_id: z.string().optional(), + deal_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmNoteOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmNoteOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmNoteOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmNoteOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + user_id: "userId", + company_id: "companyId", + contact_id: "contactId", + deal_id: "dealId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - content: string; - user_id?: string | undefined; - company_id?: string | undefined; - contact_id?: string | undefined; - deal_id?: string | undefined; - field_mappings: UnifiedCrmNoteOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmNoteOutputRemoteData$.Outbound; - created_at: UnifiedCrmNoteOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmNoteOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - content: z.string(), - userId: z.string().optional(), - companyId: z.string().optional(), - contactId: z.string().optional(), - dealId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmNoteOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmNoteOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmNoteOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmNoteOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - userId: "user_id", - companyId: "company_id", - contactId: "contact_id", - dealId: "deal_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedCrmNoteOutput$Outbound = { + content: string; + user_id?: string | undefined; + company_id?: string | undefined; + contact_id?: string | undefined; + deal_id?: string | undefined; + field_mappings: UnifiedCrmNoteOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmNoteOutputRemoteData$Outbound; + created_at: UnifiedCrmNoteOutputCreatedAt$Outbound; + modified_at: UnifiedCrmNoteOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedCrmNoteOutput$outboundSchema: z.ZodType< + UnifiedCrmNoteOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmNoteOutput +> = z + .object({ + content: z.string(), + userId: z.string().optional(), + companyId: z.string().optional(), + contactId: z.string().optional(), + dealId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmNoteOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmNoteOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmNoteOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmNoteOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + userId: "user_id", + companyId: "company_id", + contactId: "contact_id", + dealId: "deal_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmNoteOutput$ { + /** @deprecated use `UnifiedCrmNoteOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmNoteOutput$inboundSchema; + /** @deprecated use `UnifiedCrmNoteOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmNoteOutput$outboundSchema; + /** @deprecated use `UnifiedCrmNoteOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmNoteOutput$Outbound; } diff --git a/src/models/components/unifiedcrmstageoutput.ts b/src/models/components/unifiedcrmstageoutput.ts index cb22e11c..2d4d2323 100644 --- a/src/models/components/unifiedcrmstageoutput.ts +++ b/src/models/components/unifiedcrmstageoutput.ts @@ -33,112 +33,197 @@ export type UnifiedCrmStageOutput = { }; /** @internal */ +export const UnifiedCrmStageOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmStageOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmStageOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmStageOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmStageOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmStageOutputFieldMappings +> = 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 UnifiedCrmStageOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmStageOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmStageOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmStageOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmStageOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmStageOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmStageOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmStageOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmStageOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmStageOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmStageOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmStageOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmStageOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmStageOutputRemoteData - > = z.object({}); +/** @internal */ +export const UnifiedCrmStageOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmStageOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmStageOutputRemoteData +> = 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 UnifiedCrmStageOutputRemoteData$ { + /** @deprecated use `UnifiedCrmStageOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmStageOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmStageOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmStageOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmStageOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmStageOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmStageOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmStageOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmStageOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmStageOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmStageOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmStageOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmStageOutputCreatedAt +> = 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 UnifiedCrmStageOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmStageOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmStageOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmStageOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmStageOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmStageOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmStageOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmStageOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmStageOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmStageOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmStageOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmStageOutputModifiedAt - > = z.object({}); +/** @internal */ +export const UnifiedCrmStageOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmStageOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmStageOutputModifiedAt +> = 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 UnifiedCrmStageOutputModifiedAt$ { + /** @deprecated use `UnifiedCrmStageOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmStageOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmStageOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmStageOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmStageOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmStageOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmStageOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - stage_name: z.string(), - field_mappings: z.lazy(() => UnifiedCrmStageOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmStageOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmStageOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmStageOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - stage_name: "stageName", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmStageOutput$inboundSchema: z.ZodType< + UnifiedCrmStageOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + stage_name: z.string(), + field_mappings: z.lazy(() => UnifiedCrmStageOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmStageOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmStageOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmStageOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + stage_name: "stageName", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedCrmStageOutput$Outbound = { + stage_name: string; + field_mappings: UnifiedCrmStageOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmStageOutputRemoteData$Outbound; + created_at: UnifiedCrmStageOutputCreatedAt$Outbound; + modified_at: UnifiedCrmStageOutputModifiedAt$Outbound; +}; - export type Outbound = { - stage_name: string; - field_mappings: UnifiedCrmStageOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmStageOutputRemoteData$.Outbound; - created_at: UnifiedCrmStageOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmStageOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - stageName: z.string(), - fieldMappings: z.lazy(() => UnifiedCrmStageOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmStageOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmStageOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmStageOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - stageName: "stage_name", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedCrmStageOutput$outboundSchema: z.ZodType< + UnifiedCrmStageOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmStageOutput +> = z + .object({ + stageName: z.string(), + fieldMappings: z.lazy(() => UnifiedCrmStageOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmStageOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmStageOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmStageOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + stageName: "stage_name", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmStageOutput$ { + /** @deprecated use `UnifiedCrmStageOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmStageOutput$inboundSchema; + /** @deprecated use `UnifiedCrmStageOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmStageOutput$outboundSchema; + /** @deprecated use `UnifiedCrmStageOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmStageOutput$Outbound; } diff --git a/src/models/components/unifiedcrmtaskinput.ts b/src/models/components/unifiedcrmtaskinput.ts index a345455a..7ba4f917 100644 --- a/src/models/components/unifiedcrmtaskinput.ts +++ b/src/models/components/unifiedcrmtaskinput.ts @@ -44,90 +44,127 @@ export type UnifiedCrmTaskInput = { }; /** @internal */ -export namespace UnifiedCrmTaskInputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmTaskInputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmTaskInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmTaskInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmTaskInputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmTaskInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmTaskInputFieldMappings - > = 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 UnifiedCrmTaskInputFieldMappings$ { + /** @deprecated use `UnifiedCrmTaskInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmTaskInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmTaskInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmTaskInput$ { - export const inboundSchema: z.ZodType = z - .object({ - subject: z.string(), - content: z.string(), - status: z.string(), - due_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - finished_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - user_id: z.string().optional(), - company_id: z.string().optional(), - deal_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmTaskInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - due_date: "dueDate", - finished_date: "finishedDate", - user_id: "userId", - company_id: "companyId", - deal_id: "dealId", - field_mappings: "fieldMappings", - }); +export const UnifiedCrmTaskInput$inboundSchema: z.ZodType< + UnifiedCrmTaskInput, + z.ZodTypeDef, + unknown +> = z + .object({ + subject: z.string(), + content: z.string(), + status: z.string(), + due_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + finished_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + user_id: z.string().optional(), + company_id: z.string().optional(), + deal_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmTaskInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + due_date: "dueDate", + finished_date: "finishedDate", + user_id: "userId", + company_id: "companyId", + deal_id: "dealId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - subject: string; - content: string; - status: string; - due_date?: string | undefined; - finished_date?: string | undefined; - user_id?: string | undefined; - company_id?: string | undefined; - deal_id?: string | undefined; - field_mappings: UnifiedCrmTaskInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedCrmTaskInput$Outbound = { + subject: string; + content: string; + status: string; + due_date?: string | undefined; + finished_date?: string | undefined; + user_id?: string | undefined; + company_id?: string | undefined; + deal_id?: string | undefined; + field_mappings: UnifiedCrmTaskInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - subject: z.string(), - content: z.string(), - status: z.string(), - dueDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - finishedDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - userId: z.string().optional(), - companyId: z.string().optional(), - dealId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmTaskInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - dueDate: "due_date", - finishedDate: "finished_date", - userId: "user_id", - companyId: "company_id", - dealId: "deal_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedCrmTaskInput$outboundSchema: z.ZodType< + UnifiedCrmTaskInput$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskInput +> = z + .object({ + subject: z.string(), + content: z.string(), + status: z.string(), + dueDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + finishedDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + userId: z.string().optional(), + companyId: z.string().optional(), + dealId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmTaskInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + dueDate: "due_date", + finishedDate: "finished_date", + userId: "user_id", + companyId: "company_id", + dealId: "deal_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmTaskInput$ { + /** @deprecated use `UnifiedCrmTaskInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskInput$inboundSchema; + /** @deprecated use `UnifiedCrmTaskInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskInput$outboundSchema; + /** @deprecated use `UnifiedCrmTaskInput$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskInput$Outbound; } diff --git a/src/models/components/unifiedcrmtaskoutput.ts b/src/models/components/unifiedcrmtaskoutput.ts index 7a52461e..3e9acaf3 100644 --- a/src/models/components/unifiedcrmtaskoutput.ts +++ b/src/models/components/unifiedcrmtaskoutput.ts @@ -61,149 +61,240 @@ export type UnifiedCrmTaskOutput = { }; /** @internal */ +export const UnifiedCrmTaskOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmTaskOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmTaskOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmTaskOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmTaskOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskOutputFieldMappings +> = 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 UnifiedCrmTaskOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmTaskOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmTaskOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmTaskOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmTaskOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmTaskOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmTaskOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmTaskOutputRemoteData$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedCrmTaskOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmTaskOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskOutputRemoteData +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedCrmTaskOutputRemoteData$ { + /** @deprecated use `UnifiedCrmTaskOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmTaskOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmTaskOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmTaskOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmTaskOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmTaskOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmTaskOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskOutputCreatedAt +> = 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 UnifiedCrmTaskOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmTaskOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmTaskOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmTaskOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmTaskOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmTaskOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmTaskOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmTaskOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskOutputModifiedAt +> = 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 UnifiedCrmTaskOutputModifiedAt$ { + /** @deprecated use `UnifiedCrmTaskOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmTaskOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmTaskOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - subject: z.string(), - content: z.string(), - status: z.string(), - due_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - finished_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - user_id: z.string().optional(), - company_id: z.string().optional(), - deal_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedCrmTaskOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmTaskOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmTaskOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmTaskOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - due_date: "dueDate", - finished_date: "finishedDate", - user_id: "userId", - company_id: "companyId", - deal_id: "dealId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmTaskOutput$inboundSchema: z.ZodType< + UnifiedCrmTaskOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + subject: z.string(), + content: z.string(), + status: z.string(), + due_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + finished_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + user_id: z.string().optional(), + company_id: z.string().optional(), + deal_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedCrmTaskOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmTaskOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmTaskOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmTaskOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + due_date: "dueDate", + finished_date: "finishedDate", + user_id: "userId", + company_id: "companyId", + deal_id: "dealId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedCrmTaskOutput$Outbound = { + subject: string; + content: string; + status: string; + due_date?: string | undefined; + finished_date?: string | undefined; + user_id?: string | undefined; + company_id?: string | undefined; + deal_id?: string | undefined; + field_mappings: UnifiedCrmTaskOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmTaskOutputRemoteData$Outbound; + created_at: UnifiedCrmTaskOutputCreatedAt$Outbound; + modified_at: UnifiedCrmTaskOutputModifiedAt$Outbound; +}; - export type Outbound = { - subject: string; - content: string; - status: string; - due_date?: string | undefined; - finished_date?: string | undefined; - user_id?: string | undefined; - company_id?: string | undefined; - deal_id?: string | undefined; - field_mappings: UnifiedCrmTaskOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmTaskOutputRemoteData$.Outbound; - created_at: UnifiedCrmTaskOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmTaskOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - subject: z.string(), - content: z.string(), - status: z.string(), - dueDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - finishedDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - userId: z.string().optional(), - companyId: z.string().optional(), - dealId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedCrmTaskOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmTaskOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmTaskOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmTaskOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - dueDate: "due_date", - finishedDate: "finished_date", - userId: "user_id", - companyId: "company_id", - dealId: "deal_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedCrmTaskOutput$outboundSchema: z.ZodType< + UnifiedCrmTaskOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmTaskOutput +> = z + .object({ + subject: z.string(), + content: z.string(), + status: z.string(), + dueDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + finishedDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + userId: z.string().optional(), + companyId: z.string().optional(), + dealId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedCrmTaskOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmTaskOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmTaskOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmTaskOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + dueDate: "due_date", + finishedDate: "finished_date", + userId: "user_id", + companyId: "company_id", + dealId: "deal_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmTaskOutput$ { + /** @deprecated use `UnifiedCrmTaskOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmTaskOutput$inboundSchema; + /** @deprecated use `UnifiedCrmTaskOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmTaskOutput$outboundSchema; + /** @deprecated use `UnifiedCrmTaskOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmTaskOutput$Outbound; } diff --git a/src/models/components/unifiedcrmuseroutput.ts b/src/models/components/unifiedcrmuseroutput.ts index 0aff619a..8ba91a2d 100644 --- a/src/models/components/unifiedcrmuseroutput.ts +++ b/src/models/components/unifiedcrmuseroutput.ts @@ -37,107 +37,198 @@ export type UnifiedCrmUserOutput = { }; /** @internal */ +export const UnifiedCrmUserOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedCrmUserOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedCrmUserOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedCrmUserOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedCrmUserOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedCrmUserOutputFieldMappings +> = 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 UnifiedCrmUserOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedCrmUserOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedCrmUserOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedCrmUserOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmUserOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedCrmUserOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmUserOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedCrmUserOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedCrmUserOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedCrmUserOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmUserOutputRemoteData$inboundSchema: z.ZodType< + UnifiedCrmUserOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmUserOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmUserOutputRemoteData$outboundSchema: z.ZodType< + UnifiedCrmUserOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedCrmUserOutputRemoteData +> = 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 UnifiedCrmUserOutputRemoteData$ { + /** @deprecated use `UnifiedCrmUserOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmUserOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedCrmUserOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmUserOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedCrmUserOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedCrmUserOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedCrmUserOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmUserOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedCrmUserOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmUserOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmUserOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedCrmUserOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmUserOutputCreatedAt +> = 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 UnifiedCrmUserOutputCreatedAt$ { + /** @deprecated use `UnifiedCrmUserOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmUserOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedCrmUserOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmUserOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedCrmUserOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmUserOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmUserOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedCrmUserOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedCrmUserOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedCrmUserOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedCrmUserOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedCrmUserOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedCrmUserOutputModifiedAt +> = 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 UnifiedCrmUserOutputModifiedAt$ { + /** @deprecated use `UnifiedCrmUserOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmUserOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedCrmUserOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmUserOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedCrmUserOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedCrmUserOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedCrmUserOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - email: z.string(), - field_mappings: z.lazy(() => UnifiedCrmUserOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedCrmUserOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedCrmUserOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedCrmUserOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedCrmUserOutput$inboundSchema: z.ZodType< + UnifiedCrmUserOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + email: z.string(), + field_mappings: z.lazy(() => UnifiedCrmUserOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedCrmUserOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedCrmUserOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedCrmUserOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - email: string; - field_mappings: UnifiedCrmUserOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedCrmUserOutputRemoteData$.Outbound; - created_at: UnifiedCrmUserOutputCreatedAt$.Outbound; - modified_at: UnifiedCrmUserOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - email: z.string(), - fieldMappings: z.lazy(() => UnifiedCrmUserOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedCrmUserOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedCrmUserOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedCrmUserOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedCrmUserOutput$Outbound = { + name: string; + email: string; + field_mappings: UnifiedCrmUserOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedCrmUserOutputRemoteData$Outbound; + created_at: UnifiedCrmUserOutputCreatedAt$Outbound; + modified_at: UnifiedCrmUserOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedCrmUserOutput$outboundSchema: z.ZodType< + UnifiedCrmUserOutput$Outbound, + z.ZodTypeDef, + UnifiedCrmUserOutput +> = z + .object({ + name: z.string(), + email: z.string(), + fieldMappings: z.lazy(() => UnifiedCrmUserOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedCrmUserOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedCrmUserOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedCrmUserOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedCrmUserOutput$ { + /** @deprecated use `UnifiedCrmUserOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedCrmUserOutput$inboundSchema; + /** @deprecated use `UnifiedCrmUserOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedCrmUserOutput$outboundSchema; + /** @deprecated use `UnifiedCrmUserOutput$Outbound` instead. */ + export type Outbound = UnifiedCrmUserOutput$Outbound; } diff --git a/src/models/components/unifiedfilestoragedriveoutput.ts b/src/models/components/unifiedfilestoragedriveoutput.ts index 7a385683..a5ac40e4 100644 --- a/src/models/components/unifiedfilestoragedriveoutput.ts +++ b/src/models/components/unifiedfilestoragedriveoutput.ts @@ -41,135 +41,205 @@ export type UnifiedFilestorageDriveOutput = { }; /** @internal */ +export const UnifiedFilestorageDriveOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageDriveOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageDriveOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageDriveOutputFieldMappings +> = 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 UnifiedFilestorageDriveOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageDriveOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageDriveOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedFilestorageDriveOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageDriveOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageDriveOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageDriveOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedFilestorageDriveOutputRemoteData$inboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageDriveOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageDriveOutputRemoteData$outboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedFilestorageDriveOutputRemoteData +> = 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 UnifiedFilestorageDriveOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageDriveOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageDriveOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedFilestorageDriveOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageDriveOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageDriveOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedFilestorageDriveOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedFilestorageDriveOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageDriveOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageDriveOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageDriveOutputCreatedAt +> = 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 UnifiedFilestorageDriveOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageDriveOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageDriveOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageDriveOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageDriveOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageDriveOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageDriveOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedFilestorageDriveOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageDriveOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageDriveOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedFilestorageDriveOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageDriveOutputModifiedAt +> = 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 UnifiedFilestorageDriveOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageDriveOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageDriveOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageDriveOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageDriveOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageDriveOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageDriveOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedFilestorageDriveOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - remote_created_at: z.string(), - drive_url: z.string(), - field_mappings: z.lazy(() => UnifiedFilestorageDriveOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedFilestorageDriveOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedFilestorageDriveOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedFilestorageDriveOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - remote_created_at: "remoteCreatedAt", - drive_url: "driveUrl", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedFilestorageDriveOutput$inboundSchema: z.ZodType< + UnifiedFilestorageDriveOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + remote_created_at: z.string(), + drive_url: z.string(), + field_mappings: z.lazy(() => UnifiedFilestorageDriveOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedFilestorageDriveOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedFilestorageDriveOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedFilestorageDriveOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + remote_created_at: "remoteCreatedAt", + drive_url: "driveUrl", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - remote_created_at: string; - drive_url: string; - field_mappings: UnifiedFilestorageDriveOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedFilestorageDriveOutputRemoteData$.Outbound; - created_at: UnifiedFilestorageDriveOutputCreatedAt$.Outbound; - modified_at: UnifiedFilestorageDriveOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - remoteCreatedAt: z.string(), - driveUrl: z.string(), - fieldMappings: z.lazy( - () => UnifiedFilestorageDriveOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedFilestorageDriveOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedFilestorageDriveOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedFilestorageDriveOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - remoteCreatedAt: "remote_created_at", - driveUrl: "drive_url", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** @internal */ +export type UnifiedFilestorageDriveOutput$Outbound = { + name: string; + remote_created_at: string; + drive_url: string; + field_mappings: UnifiedFilestorageDriveOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedFilestorageDriveOutputRemoteData$Outbound; + created_at: UnifiedFilestorageDriveOutputCreatedAt$Outbound; + modified_at: UnifiedFilestorageDriveOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedFilestorageDriveOutput$outboundSchema: z.ZodType< + UnifiedFilestorageDriveOutput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageDriveOutput +> = z + .object({ + name: z.string(), + remoteCreatedAt: z.string(), + driveUrl: z.string(), + fieldMappings: z.lazy(() => UnifiedFilestorageDriveOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedFilestorageDriveOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedFilestorageDriveOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedFilestorageDriveOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + remoteCreatedAt: "remote_created_at", + driveUrl: "drive_url", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageDriveOutput$ { + /** @deprecated use `UnifiedFilestorageDriveOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageDriveOutput$inboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageDriveOutput$outboundSchema; + /** @deprecated use `UnifiedFilestorageDriveOutput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageDriveOutput$Outbound; } diff --git a/src/models/components/unifiedfilestoragefileinput.ts b/src/models/components/unifiedfilestoragefileinput.ts index 3ae09ce4..785b2655 100644 --- a/src/models/components/unifiedfilestoragefileinput.ts +++ b/src/models/components/unifiedfilestoragefileinput.ts @@ -40,74 +40,108 @@ export type UnifiedFilestorageFileInput = { }; /** @internal */ -export namespace UnifiedFilestorageFileInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFileInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedFilestorageFileInputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageFileInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFileInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedFilestorageFileInputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageFileInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFileInputFieldMappings - > = 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 UnifiedFilestorageFileInputFieldMappings$ { + /** @deprecated use `UnifiedFilestorageFileInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedFilestorageFileInput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - file_url: z.string(), - mime_type: z.string(), - size: z.string(), - folder_id: z.string(), - permission: z.string(), - shared_link: z.string(), - field_mappings: z.lazy(() => UnifiedFilestorageFileInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - file_url: "fileUrl", - mime_type: "mimeType", - folder_id: "folderId", - shared_link: "sharedLink", - field_mappings: "fieldMappings", - }); +export const UnifiedFilestorageFileInput$inboundSchema: z.ZodType< + UnifiedFilestorageFileInput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + file_url: z.string(), + mime_type: z.string(), + size: z.string(), + folder_id: z.string(), + permission: z.string(), + shared_link: z.string(), + field_mappings: z.lazy(() => UnifiedFilestorageFileInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_url: "fileUrl", + mime_type: "mimeType", + folder_id: "folderId", + shared_link: "sharedLink", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - name: string; - file_url: string; - mime_type: string; - size: string; - folder_id: string; - permission: string; - shared_link: string; - field_mappings: UnifiedFilestorageFileInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedFilestorageFileInput$Outbound = { + name: string; + file_url: string; + mime_type: string; + size: string; + folder_id: string; + permission: string; + shared_link: string; + field_mappings: UnifiedFilestorageFileInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - fileUrl: z.string(), - mimeType: z.string(), - size: z.string(), - folderId: z.string(), - permission: z.string(), - sharedLink: z.string(), - fieldMappings: z.lazy(() => UnifiedFilestorageFileInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fileUrl: "file_url", - mimeType: "mime_type", - folderId: "folder_id", - sharedLink: "shared_link", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedFilestorageFileInput$outboundSchema: z.ZodType< + UnifiedFilestorageFileInput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileInput +> = z + .object({ + name: z.string(), + fileUrl: z.string(), + mimeType: z.string(), + size: z.string(), + folderId: z.string(), + permission: z.string(), + sharedLink: z.string(), + fieldMappings: z.lazy(() => UnifiedFilestorageFileInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileUrl: "file_url", + mimeType: "mime_type", + folderId: "folder_id", + sharedLink: "shared_link", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageFileInput$ { + /** @deprecated use `UnifiedFilestorageFileInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileInput$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileInput$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileInput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileInput$Outbound; } diff --git a/src/models/components/unifiedfilestoragefileoutput.ts b/src/models/components/unifiedfilestoragefileoutput.ts index 5600e354..d188481b 100644 --- a/src/models/components/unifiedfilestoragefileoutput.ts +++ b/src/models/components/unifiedfilestoragefileoutput.ts @@ -57,148 +57,221 @@ export type UnifiedFilestorageFileOutput = { }; /** @internal */ +export const UnifiedFilestorageFileOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageFileOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFileOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFileOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageFileOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileOutputFieldMappings +> = 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 UnifiedFilestorageFileOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFileOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFileOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFileOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedFilestorageFileOutputRemoteData$inboundSchema: z.ZodType< + UnifiedFilestorageFileOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFileOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFileOutputRemoteData$outboundSchema: z.ZodType< + UnifiedFilestorageFileOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileOutputRemoteData +> = 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 UnifiedFilestorageFileOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFileOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFileOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFileOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedFilestorageFileOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedFilestorageFileOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFileOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFileOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedFilestorageFileOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileOutputCreatedAt +> = 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 UnifiedFilestorageFileOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFileOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFileOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFileOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedFilestorageFileOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedFilestorageFileOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFileOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFileOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedFilestorageFileOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileOutputModifiedAt +> = 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 UnifiedFilestorageFileOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFileOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFileOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFileOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedFilestorageFileOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - file_url: z.string(), - mime_type: z.string(), - size: z.string(), - folder_id: z.string(), - permission: z.string(), - shared_link: z.string(), - field_mappings: z.lazy(() => UnifiedFilestorageFileOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedFilestorageFileOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedFilestorageFileOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedFilestorageFileOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - file_url: "fileUrl", - mime_type: "mimeType", - folder_id: "folderId", - shared_link: "sharedLink", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedFilestorageFileOutput$inboundSchema: z.ZodType< + UnifiedFilestorageFileOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + file_url: z.string(), + mime_type: z.string(), + size: z.string(), + folder_id: z.string(), + permission: z.string(), + shared_link: z.string(), + field_mappings: z.lazy(() => UnifiedFilestorageFileOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedFilestorageFileOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedFilestorageFileOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedFilestorageFileOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_url: "fileUrl", + mime_type: "mimeType", + folder_id: "folderId", + shared_link: "sharedLink", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedFilestorageFileOutput$Outbound = { + name: string; + file_url: string; + mime_type: string; + size: string; + folder_id: string; + permission: string; + shared_link: string; + field_mappings: UnifiedFilestorageFileOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedFilestorageFileOutputRemoteData$Outbound; + created_at: UnifiedFilestorageFileOutputCreatedAt$Outbound; + modified_at: UnifiedFilestorageFileOutputModifiedAt$Outbound; +}; - export type Outbound = { - name: string; - file_url: string; - mime_type: string; - size: string; - folder_id: string; - permission: string; - shared_link: string; - field_mappings: UnifiedFilestorageFileOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedFilestorageFileOutputRemoteData$.Outbound; - created_at: UnifiedFilestorageFileOutputCreatedAt$.Outbound; - modified_at: UnifiedFilestorageFileOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - fileUrl: z.string(), - mimeType: z.string(), - size: z.string(), - folderId: z.string(), - permission: z.string(), - sharedLink: z.string(), - fieldMappings: z.lazy(() => UnifiedFilestorageFileOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedFilestorageFileOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedFilestorageFileOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedFilestorageFileOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fileUrl: "file_url", - mimeType: "mime_type", - folderId: "folder_id", - sharedLink: "shared_link", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedFilestorageFileOutput$outboundSchema: z.ZodType< + UnifiedFilestorageFileOutput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFileOutput +> = z + .object({ + name: z.string(), + fileUrl: z.string(), + mimeType: z.string(), + size: z.string(), + folderId: z.string(), + permission: z.string(), + sharedLink: z.string(), + fieldMappings: z.lazy(() => UnifiedFilestorageFileOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedFilestorageFileOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedFilestorageFileOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedFilestorageFileOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileUrl: "file_url", + mimeType: "mime_type", + folderId: "folder_id", + sharedLink: "shared_link", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageFileOutput$ { + /** @deprecated use `UnifiedFilestorageFileOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFileOutput$inboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFileOutput$outboundSchema; + /** @deprecated use `UnifiedFilestorageFileOutput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFileOutput$Outbound; } diff --git a/src/models/components/unifiedfilestoragefolderinput.ts b/src/models/components/unifiedfilestoragefolderinput.ts index cc0fac5a..8dde1d42 100644 --- a/src/models/components/unifiedfilestoragefolderinput.ts +++ b/src/models/components/unifiedfilestoragefolderinput.ts @@ -44,80 +44,111 @@ export type UnifiedFilestorageFolderInput = { }; /** @internal */ -export namespace UnifiedFilestorageFolderInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFolderInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedFilestorageFolderInputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageFolderInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedFilestorageFolderInputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFolderInputFieldMappings - > = z.object({}); +/** @internal */ +export const UnifiedFilestorageFolderInputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageFolderInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderInputFieldMappings +> = 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 UnifiedFilestorageFolderInputFieldMappings$ { + /** @deprecated use `UnifiedFilestorageFolderInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedFilestorageFolderInput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - size: z.string(), - folder_url: z.string(), - description: z.string(), - drive_id: z.string(), - parent_folder_id: z.string(), - shared_link: z.string(), - permission: z.string(), - field_mappings: z.lazy(() => UnifiedFilestorageFolderInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - folder_url: "folderUrl", - drive_id: "driveId", - parent_folder_id: "parentFolderId", - shared_link: "sharedLink", - field_mappings: "fieldMappings", - }); +export const UnifiedFilestorageFolderInput$inboundSchema: z.ZodType< + UnifiedFilestorageFolderInput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + size: z.string(), + folder_url: z.string(), + description: z.string(), + drive_id: z.string(), + parent_folder_id: z.string(), + shared_link: z.string(), + permission: z.string(), + field_mappings: z.lazy(() => UnifiedFilestorageFolderInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + folder_url: "folderUrl", + drive_id: "driveId", + parent_folder_id: "parentFolderId", + shared_link: "sharedLink", + field_mappings: "fieldMappings", }); + }); + +/** @internal */ +export type UnifiedFilestorageFolderInput$Outbound = { + name: string; + size: string; + folder_url: string; + description: string; + drive_id: string; + parent_folder_id: string; + shared_link: string; + permission: string; + field_mappings: UnifiedFilestorageFolderInputFieldMappings$Outbound; +}; - export type Outbound = { - name: string; - size: string; - folder_url: string; - description: string; - drive_id: string; - parent_folder_id: string; - shared_link: string; - permission: string; - field_mappings: UnifiedFilestorageFolderInputFieldMappings$.Outbound; - }; +/** @internal */ +export const UnifiedFilestorageFolderInput$outboundSchema: z.ZodType< + UnifiedFilestorageFolderInput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderInput +> = z + .object({ + name: z.string(), + size: z.string(), + folderUrl: z.string(), + description: z.string(), + driveId: z.string(), + parentFolderId: z.string(), + sharedLink: z.string(), + permission: z.string(), + fieldMappings: z.lazy(() => UnifiedFilestorageFolderInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + folderUrl: "folder_url", + driveId: "drive_id", + parentFolderId: "parent_folder_id", + sharedLink: "shared_link", + fieldMappings: "field_mappings", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - size: z.string(), - folderUrl: z.string(), - description: z.string(), - driveId: z.string(), - parentFolderId: z.string(), - sharedLink: z.string(), - permission: z.string(), - fieldMappings: z.lazy( - () => UnifiedFilestorageFolderInputFieldMappings$.outboundSchema - ), - }) - .transform((v) => { - return remap$(v, { - folderUrl: "folder_url", - driveId: "drive_id", - parentFolderId: "parent_folder_id", - sharedLink: "shared_link", - fieldMappings: "field_mappings", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageFolderInput$ { + /** @deprecated use `UnifiedFilestorageFolderInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderInput$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderInput$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderInput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderInput$Outbound; } diff --git a/src/models/components/unifiedfilestoragefolderoutput.ts b/src/models/components/unifiedfilestoragefolderoutput.ts index 2773a9a9..e311af7e 100644 --- a/src/models/components/unifiedfilestoragefolderoutput.ts +++ b/src/models/components/unifiedfilestoragefolderoutput.ts @@ -61,156 +61,224 @@ export type UnifiedFilestorageFolderOutput = { }; /** @internal */ +export const UnifiedFilestorageFolderOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFolderOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFolderOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderOutputFieldMappings +> = 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 UnifiedFilestorageFolderOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFolderOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFolderOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFolderOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedFilestorageFolderOutputRemoteData$inboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFolderOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFolderOutputRemoteData$outboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderOutputRemoteData +> = 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 UnifiedFilestorageFolderOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFolderOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFolderOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFolderOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedFilestorageFolderOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFolderOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFolderOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderOutputCreatedAt +> = 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 UnifiedFilestorageFolderOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFolderOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFolderOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFolderOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedFilestorageFolderOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageFolderOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageFolderOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedFilestorageFolderOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderOutputModifiedAt +> = 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 UnifiedFilestorageFolderOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageFolderOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageFolderOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageFolderOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedFilestorageFolderOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - size: z.string(), - folder_url: z.string(), - description: z.string(), - drive_id: z.string(), - parent_folder_id: z.string(), - shared_link: z.string(), - permission: z.string(), - field_mappings: z.lazy( - () => UnifiedFilestorageFolderOutputFieldMappings$.inboundSchema - ), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedFilestorageFolderOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedFilestorageFolderOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedFilestorageFolderOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - folder_url: "folderUrl", - drive_id: "driveId", - parent_folder_id: "parentFolderId", - shared_link: "sharedLink", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedFilestorageFolderOutput$inboundSchema: z.ZodType< + UnifiedFilestorageFolderOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + size: z.string(), + folder_url: z.string(), + description: z.string(), + drive_id: z.string(), + parent_folder_id: z.string(), + shared_link: z.string(), + permission: z.string(), + field_mappings: z.lazy(() => UnifiedFilestorageFolderOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedFilestorageFolderOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedFilestorageFolderOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedFilestorageFolderOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + folder_url: "folderUrl", + drive_id: "driveId", + parent_folder_id: "parentFolderId", + shared_link: "sharedLink", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - size: string; - folder_url: string; - description: string; - drive_id: string; - parent_folder_id: string; - shared_link: string; - permission: string; - field_mappings: UnifiedFilestorageFolderOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedFilestorageFolderOutputRemoteData$.Outbound; - created_at: UnifiedFilestorageFolderOutputCreatedAt$.Outbound; - modified_at: UnifiedFilestorageFolderOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - size: z.string(), - folderUrl: z.string(), - description: z.string(), - driveId: z.string(), - parentFolderId: z.string(), - sharedLink: z.string(), - permission: z.string(), - fieldMappings: z.lazy( - () => UnifiedFilestorageFolderOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedFilestorageFolderOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedFilestorageFolderOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedFilestorageFolderOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - folderUrl: "folder_url", - driveId: "drive_id", - parentFolderId: "parent_folder_id", - sharedLink: "shared_link", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** @internal */ +export type UnifiedFilestorageFolderOutput$Outbound = { + name: string; + size: string; + folder_url: string; + description: string; + drive_id: string; + parent_folder_id: string; + shared_link: string; + permission: string; + field_mappings: UnifiedFilestorageFolderOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedFilestorageFolderOutputRemoteData$Outbound; + created_at: UnifiedFilestorageFolderOutputCreatedAt$Outbound; + modified_at: UnifiedFilestorageFolderOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedFilestorageFolderOutput$outboundSchema: z.ZodType< + UnifiedFilestorageFolderOutput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageFolderOutput +> = z + .object({ + name: z.string(), + size: z.string(), + folderUrl: z.string(), + description: z.string(), + driveId: z.string(), + parentFolderId: z.string(), + sharedLink: z.string(), + permission: z.string(), + fieldMappings: z.lazy(() => UnifiedFilestorageFolderOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedFilestorageFolderOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedFilestorageFolderOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedFilestorageFolderOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + folderUrl: "folder_url", + driveId: "drive_id", + parentFolderId: "parent_folder_id", + sharedLink: "shared_link", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageFolderOutput$ { + /** @deprecated use `UnifiedFilestorageFolderOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageFolderOutput$inboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageFolderOutput$outboundSchema; + /** @deprecated use `UnifiedFilestorageFolderOutput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageFolderOutput$Outbound; } diff --git a/src/models/components/unifiedfilestoragegroupoutput.ts b/src/models/components/unifiedfilestoragegroupoutput.ts index e772d158..9c326016 100644 --- a/src/models/components/unifiedfilestoragegroupoutput.ts +++ b/src/models/components/unifiedfilestoragegroupoutput.ts @@ -41,133 +41,203 @@ export type UnifiedFilestorageGroupOutput = { }; /** @internal */ +export const UnifiedFilestorageGroupOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageGroupOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageGroupOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedFilestorageGroupOutputFieldMappings +> = 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 UnifiedFilestorageGroupOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageGroupOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageGroupOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedFilestorageGroupOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageGroupOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageGroupOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedFilestorageGroupOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedFilestorageGroupOutputRemoteData$inboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageGroupOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageGroupOutputRemoteData$outboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedFilestorageGroupOutputRemoteData +> = 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 UnifiedFilestorageGroupOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageGroupOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageGroupOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedFilestorageGroupOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageGroupOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageGroupOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedFilestorageGroupOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedFilestorageGroupOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageGroupOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageGroupOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageGroupOutputCreatedAt +> = 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 UnifiedFilestorageGroupOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageGroupOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageGroupOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageGroupOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageGroupOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageGroupOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageGroupOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedFilestorageGroupOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedFilestorageGroupOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedFilestorageGroupOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedFilestorageGroupOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedFilestorageGroupOutputModifiedAt +> = 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 UnifiedFilestorageGroupOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedFilestorageGroupOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedFilestorageGroupOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedFilestorageGroupOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageGroupOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageGroupOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedFilestorageGroupOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedFilestorageGroupOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - users: z.array(z.string()), - remote_was_deleted: z.boolean(), - field_mappings: z.lazy(() => UnifiedFilestorageGroupOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedFilestorageGroupOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedFilestorageGroupOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedFilestorageGroupOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - remote_was_deleted: "remoteWasDeleted", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedFilestorageGroupOutput$inboundSchema: z.ZodType< + UnifiedFilestorageGroupOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + users: z.array(z.string()), + remote_was_deleted: z.boolean(), + field_mappings: z.lazy(() => UnifiedFilestorageGroupOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedFilestorageGroupOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedFilestorageGroupOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedFilestorageGroupOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + remote_was_deleted: "remoteWasDeleted", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", + }); + }); + +/** @internal */ +export type UnifiedFilestorageGroupOutput$Outbound = { + name: string; + users: Array; + remote_was_deleted: boolean; + field_mappings: UnifiedFilestorageGroupOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedFilestorageGroupOutputRemoteData$Outbound; + created_at: UnifiedFilestorageGroupOutputCreatedAt$Outbound; + modified_at: UnifiedFilestorageGroupOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedFilestorageGroupOutput$outboundSchema: z.ZodType< + UnifiedFilestorageGroupOutput$Outbound, + z.ZodTypeDef, + UnifiedFilestorageGroupOutput +> = z + .object({ + name: z.string(), + users: z.array(z.string()), + remoteWasDeleted: z.boolean(), + fieldMappings: z.lazy(() => UnifiedFilestorageGroupOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedFilestorageGroupOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedFilestorageGroupOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedFilestorageGroupOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + remoteWasDeleted: "remote_was_deleted", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); - export type Outbound = { - name: string; - users: Array; - remote_was_deleted: boolean; - field_mappings: UnifiedFilestorageGroupOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedFilestorageGroupOutputRemoteData$.Outbound; - created_at: UnifiedFilestorageGroupOutputCreatedAt$.Outbound; - modified_at: UnifiedFilestorageGroupOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - users: z.array(z.string()), - remoteWasDeleted: z.boolean(), - fieldMappings: z.lazy( - () => UnifiedFilestorageGroupOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedFilestorageGroupOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedFilestorageGroupOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedFilestorageGroupOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - remoteWasDeleted: "remote_was_deleted", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedFilestorageGroupOutput$ { + /** @deprecated use `UnifiedFilestorageGroupOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedFilestorageGroupOutput$inboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedFilestorageGroupOutput$outboundSchema; + /** @deprecated use `UnifiedFilestorageGroupOutput$Outbound` instead. */ + export type Outbound = UnifiedFilestorageGroupOutput$Outbound; } diff --git a/src/models/components/unifiedhrisbankinfooutput.ts b/src/models/components/unifiedhrisbankinfooutput.ts index bbf489d3..3ed1c703 100644 --- a/src/models/components/unifiedhrisbankinfooutput.ts +++ b/src/models/components/unifiedhrisbankinfooutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisBankinfoOutput = {}; /** @internal */ -export namespace UnifiedHrisBankinfoOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisBankinfoOutput$inboundSchema: z.ZodType< + UnifiedHrisBankinfoOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisBankinfoOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisBankinfoOutput$outboundSchema: z.ZodType< + UnifiedHrisBankinfoOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisBankinfoOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisBankinfoOutput$ { + /** @deprecated use `UnifiedHrisBankinfoOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisBankinfoOutput$inboundSchema; + /** @deprecated use `UnifiedHrisBankinfoOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisBankinfoOutput$outboundSchema; + /** @deprecated use `UnifiedHrisBankinfoOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisBankinfoOutput$Outbound; } diff --git a/src/models/components/unifiedhrisbenefitoutput.ts b/src/models/components/unifiedhrisbenefitoutput.ts index 6253c38c..72fb3988 100644 --- a/src/models/components/unifiedhrisbenefitoutput.ts +++ b/src/models/components/unifiedhrisbenefitoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisBenefitOutput = {}; /** @internal */ -export namespace UnifiedHrisBenefitOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisBenefitOutput$inboundSchema: z.ZodType< + UnifiedHrisBenefitOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisBenefitOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisBenefitOutput$outboundSchema: z.ZodType< + UnifiedHrisBenefitOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisBenefitOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisBenefitOutput$ { + /** @deprecated use `UnifiedHrisBenefitOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisBenefitOutput$inboundSchema; + /** @deprecated use `UnifiedHrisBenefitOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisBenefitOutput$outboundSchema; + /** @deprecated use `UnifiedHrisBenefitOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisBenefitOutput$Outbound; } diff --git a/src/models/components/unifiedhriscompanyoutput.ts b/src/models/components/unifiedhriscompanyoutput.ts index 5f3524df..db890772 100644 --- a/src/models/components/unifiedhriscompanyoutput.ts +++ b/src/models/components/unifiedhriscompanyoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisCompanyOutput = {}; /** @internal */ -export namespace UnifiedHrisCompanyOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisCompanyOutput$inboundSchema: z.ZodType< + UnifiedHrisCompanyOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisCompanyOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisCompanyOutput$outboundSchema: z.ZodType< + UnifiedHrisCompanyOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisCompanyOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisCompanyOutput$ { + /** @deprecated use `UnifiedHrisCompanyOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisCompanyOutput$inboundSchema; + /** @deprecated use `UnifiedHrisCompanyOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisCompanyOutput$outboundSchema; + /** @deprecated use `UnifiedHrisCompanyOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisCompanyOutput$Outbound; } diff --git a/src/models/components/unifiedhrisdependentoutput.ts b/src/models/components/unifiedhrisdependentoutput.ts index ded52413..0e2693f4 100644 --- a/src/models/components/unifiedhrisdependentoutput.ts +++ b/src/models/components/unifiedhrisdependentoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisDependentOutput = {}; /** @internal */ -export namespace UnifiedHrisDependentOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisDependentOutput$inboundSchema: z.ZodType< + UnifiedHrisDependentOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisDependentOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisDependentOutput$outboundSchema: z.ZodType< + UnifiedHrisDependentOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisDependentOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisDependentOutput$ { + /** @deprecated use `UnifiedHrisDependentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisDependentOutput$inboundSchema; + /** @deprecated use `UnifiedHrisDependentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisDependentOutput$outboundSchema; + /** @deprecated use `UnifiedHrisDependentOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisDependentOutput$Outbound; } diff --git a/src/models/components/unifiedhrisemployeeinput.ts b/src/models/components/unifiedhrisemployeeinput.ts index edb3b308..ca4c6741 100644 --- a/src/models/components/unifiedhrisemployeeinput.ts +++ b/src/models/components/unifiedhrisemployeeinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisEmployeeInput = {}; /** @internal */ -export namespace UnifiedHrisEmployeeInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisEmployeeInput$inboundSchema: z.ZodType< + UnifiedHrisEmployeeInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisEmployeeInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisEmployeeInput$outboundSchema: z.ZodType< + UnifiedHrisEmployeeInput$Outbound, + z.ZodTypeDef, + UnifiedHrisEmployeeInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisEmployeeInput$ { + /** @deprecated use `UnifiedHrisEmployeeInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisEmployeeInput$inboundSchema; + /** @deprecated use `UnifiedHrisEmployeeInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisEmployeeInput$outboundSchema; + /** @deprecated use `UnifiedHrisEmployeeInput$Outbound` instead. */ + export type Outbound = UnifiedHrisEmployeeInput$Outbound; } diff --git a/src/models/components/unifiedhrisemployeeoutput.ts b/src/models/components/unifiedhrisemployeeoutput.ts index 84aaa0fe..0506c1e2 100644 --- a/src/models/components/unifiedhrisemployeeoutput.ts +++ b/src/models/components/unifiedhrisemployeeoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisEmployeeOutput = {}; /** @internal */ -export namespace UnifiedHrisEmployeeOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisEmployeeOutput$inboundSchema: z.ZodType< + UnifiedHrisEmployeeOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisEmployeeOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisEmployeeOutput$outboundSchema: z.ZodType< + UnifiedHrisEmployeeOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisEmployeeOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisEmployeeOutput$ { + /** @deprecated use `UnifiedHrisEmployeeOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisEmployeeOutput$inboundSchema; + /** @deprecated use `UnifiedHrisEmployeeOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisEmployeeOutput$outboundSchema; + /** @deprecated use `UnifiedHrisEmployeeOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisEmployeeOutput$Outbound; } diff --git a/src/models/components/unifiedhrisemployeepayrollrunoutput.ts b/src/models/components/unifiedhrisemployeepayrollrunoutput.ts index 4d809a10..8fd44548 100644 --- a/src/models/components/unifiedhrisemployeepayrollrunoutput.ts +++ b/src/models/components/unifiedhrisemployeepayrollrunoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedHrisEmployeepayrollrunOutput = {}; /** @internal */ -export namespace UnifiedHrisEmployeepayrollrunOutput$ { - export const inboundSchema: z.ZodType< - UnifiedHrisEmployeepayrollrunOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedHrisEmployeepayrollrunOutput$inboundSchema: z.ZodType< + UnifiedHrisEmployeepayrollrunOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisEmployeepayrollrunOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisEmployeepayrollrunOutput$outboundSchema: z.ZodType< + UnifiedHrisEmployeepayrollrunOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisEmployeepayrollrunOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeepayrollrunOutput - > = 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 UnifiedHrisEmployeepayrollrunOutput$ { + /** @deprecated use `UnifiedHrisEmployeepayrollrunOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisEmployeepayrollrunOutput$inboundSchema; + /** @deprecated use `UnifiedHrisEmployeepayrollrunOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisEmployeepayrollrunOutput$outboundSchema; + /** @deprecated use `UnifiedHrisEmployeepayrollrunOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisEmployeepayrollrunOutput$Outbound; } diff --git a/src/models/components/unifiedhrisemployerbenefitoutput.ts b/src/models/components/unifiedhrisemployerbenefitoutput.ts index a885fb5f..cec855dd 100644 --- a/src/models/components/unifiedhrisemployerbenefitoutput.ts +++ b/src/models/components/unifiedhrisemployerbenefitoutput.ts @@ -7,15 +7,31 @@ import * as z from "zod"; export type UnifiedHrisEmployerbenefitOutput = {}; /** @internal */ -export namespace UnifiedHrisEmployerbenefitOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisEmployerbenefitOutput$inboundSchema: z.ZodType< + UnifiedHrisEmployerbenefitOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisEmployerbenefitOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisEmployerbenefitOutput$outboundSchema: z.ZodType< + UnifiedHrisEmployerbenefitOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisEmployerbenefitOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedHrisEmployerbenefitOutput - > = 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 UnifiedHrisEmployerbenefitOutput$ { + /** @deprecated use `UnifiedHrisEmployerbenefitOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisEmployerbenefitOutput$inboundSchema; + /** @deprecated use `UnifiedHrisEmployerbenefitOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisEmployerbenefitOutput$outboundSchema; + /** @deprecated use `UnifiedHrisEmployerbenefitOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisEmployerbenefitOutput$Outbound; } diff --git a/src/models/components/unifiedhrisemploymentoutput.ts b/src/models/components/unifiedhrisemploymentoutput.ts index 92858379..cbdd3645 100644 --- a/src/models/components/unifiedhrisemploymentoutput.ts +++ b/src/models/components/unifiedhrisemploymentoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisEmploymentOutput = {}; /** @internal */ -export namespace UnifiedHrisEmploymentOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisEmploymentOutput$inboundSchema: z.ZodType< + UnifiedHrisEmploymentOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisEmploymentOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisEmploymentOutput$outboundSchema: z.ZodType< + UnifiedHrisEmploymentOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisEmploymentOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisEmploymentOutput$ { + /** @deprecated use `UnifiedHrisEmploymentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisEmploymentOutput$inboundSchema; + /** @deprecated use `UnifiedHrisEmploymentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisEmploymentOutput$outboundSchema; + /** @deprecated use `UnifiedHrisEmploymentOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisEmploymentOutput$Outbound; } diff --git a/src/models/components/unifiedhrisgroupoutput.ts b/src/models/components/unifiedhrisgroupoutput.ts index f436fe75..a8953ad9 100644 --- a/src/models/components/unifiedhrisgroupoutput.ts +++ b/src/models/components/unifiedhrisgroupoutput.ts @@ -7,13 +7,31 @@ import * as z from "zod"; export type UnifiedHrisGroupOutput = {}; /** @internal */ -export namespace UnifiedHrisGroupOutput$ { - export const inboundSchema: z.ZodType = z.object( - {} - ); +export const UnifiedHrisGroupOutput$inboundSchema: z.ZodType< + UnifiedHrisGroupOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisGroupOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisGroupOutput$outboundSchema: z.ZodType< + UnifiedHrisGroupOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisGroupOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisGroupOutput$ { + /** @deprecated use `UnifiedHrisGroupOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisGroupOutput$inboundSchema; + /** @deprecated use `UnifiedHrisGroupOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisGroupOutput$outboundSchema; + /** @deprecated use `UnifiedHrisGroupOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisGroupOutput$Outbound; } diff --git a/src/models/components/unifiedhrislocationoutput.ts b/src/models/components/unifiedhrislocationoutput.ts index bf4e7444..317e39ec 100644 --- a/src/models/components/unifiedhrislocationoutput.ts +++ b/src/models/components/unifiedhrislocationoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisLocationOutput = {}; /** @internal */ -export namespace UnifiedHrisLocationOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisLocationOutput$inboundSchema: z.ZodType< + UnifiedHrisLocationOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisLocationOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisLocationOutput$outboundSchema: z.ZodType< + UnifiedHrisLocationOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisLocationOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisLocationOutput$ { + /** @deprecated use `UnifiedHrisLocationOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisLocationOutput$inboundSchema; + /** @deprecated use `UnifiedHrisLocationOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisLocationOutput$outboundSchema; + /** @deprecated use `UnifiedHrisLocationOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisLocationOutput$Outbound; } diff --git a/src/models/components/unifiedhrispaygroupoutput.ts b/src/models/components/unifiedhrispaygroupoutput.ts index 83bfc68f..87cc6067 100644 --- a/src/models/components/unifiedhrispaygroupoutput.ts +++ b/src/models/components/unifiedhrispaygroupoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisPaygroupOutput = {}; /** @internal */ -export namespace UnifiedHrisPaygroupOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisPaygroupOutput$inboundSchema: z.ZodType< + UnifiedHrisPaygroupOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisPaygroupOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisPaygroupOutput$outboundSchema: z.ZodType< + UnifiedHrisPaygroupOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisPaygroupOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisPaygroupOutput$ { + /** @deprecated use `UnifiedHrisPaygroupOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisPaygroupOutput$inboundSchema; + /** @deprecated use `UnifiedHrisPaygroupOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisPaygroupOutput$outboundSchema; + /** @deprecated use `UnifiedHrisPaygroupOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisPaygroupOutput$Outbound; } diff --git a/src/models/components/unifiedhrispayrollrunoutput.ts b/src/models/components/unifiedhrispayrollrunoutput.ts index eb6fa60a..75dfdbd3 100644 --- a/src/models/components/unifiedhrispayrollrunoutput.ts +++ b/src/models/components/unifiedhrispayrollrunoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisPayrollrunOutput = {}; /** @internal */ -export namespace UnifiedHrisPayrollrunOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisPayrollrunOutput$inboundSchema: z.ZodType< + UnifiedHrisPayrollrunOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisPayrollrunOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisPayrollrunOutput$outboundSchema: z.ZodType< + UnifiedHrisPayrollrunOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisPayrollrunOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisPayrollrunOutput$ { + /** @deprecated use `UnifiedHrisPayrollrunOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisPayrollrunOutput$inboundSchema; + /** @deprecated use `UnifiedHrisPayrollrunOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisPayrollrunOutput$outboundSchema; + /** @deprecated use `UnifiedHrisPayrollrunOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisPayrollrunOutput$Outbound; } diff --git a/src/models/components/unifiedhristimeoffbalanceoutput.ts b/src/models/components/unifiedhristimeoffbalanceoutput.ts index 70c07f1c..2336e7bf 100644 --- a/src/models/components/unifiedhristimeoffbalanceoutput.ts +++ b/src/models/components/unifiedhristimeoffbalanceoutput.ts @@ -7,15 +7,31 @@ import * as z from "zod"; export type UnifiedHrisTimeoffbalanceOutput = {}; /** @internal */ -export namespace UnifiedHrisTimeoffbalanceOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisTimeoffbalanceOutput$inboundSchema: z.ZodType< + UnifiedHrisTimeoffbalanceOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisTimeoffbalanceOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisTimeoffbalanceOutput$outboundSchema: z.ZodType< + UnifiedHrisTimeoffbalanceOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisTimeoffbalanceOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffbalanceOutput - > = 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 UnifiedHrisTimeoffbalanceOutput$ { + /** @deprecated use `UnifiedHrisTimeoffbalanceOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisTimeoffbalanceOutput$inboundSchema; + /** @deprecated use `UnifiedHrisTimeoffbalanceOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisTimeoffbalanceOutput$outboundSchema; + /** @deprecated use `UnifiedHrisTimeoffbalanceOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisTimeoffbalanceOutput$Outbound; } diff --git a/src/models/components/unifiedhristimeoffinput.ts b/src/models/components/unifiedhristimeoffinput.ts index 61c9f1a5..77e7ba76 100644 --- a/src/models/components/unifiedhristimeoffinput.ts +++ b/src/models/components/unifiedhristimeoffinput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisTimeoffInput = {}; /** @internal */ -export namespace UnifiedHrisTimeoffInput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisTimeoffInput$inboundSchema: z.ZodType< + UnifiedHrisTimeoffInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisTimeoffInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisTimeoffInput$outboundSchema: z.ZodType< + UnifiedHrisTimeoffInput$Outbound, + z.ZodTypeDef, + UnifiedHrisTimeoffInput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisTimeoffInput$ { + /** @deprecated use `UnifiedHrisTimeoffInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisTimeoffInput$inboundSchema; + /** @deprecated use `UnifiedHrisTimeoffInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisTimeoffInput$outboundSchema; + /** @deprecated use `UnifiedHrisTimeoffInput$Outbound` instead. */ + export type Outbound = UnifiedHrisTimeoffInput$Outbound; } diff --git a/src/models/components/unifiedhristimeoffoutput.ts b/src/models/components/unifiedhristimeoffoutput.ts index aebc3544..4c166b4d 100644 --- a/src/models/components/unifiedhristimeoffoutput.ts +++ b/src/models/components/unifiedhristimeoffoutput.ts @@ -7,12 +7,31 @@ import * as z from "zod"; export type UnifiedHrisTimeoffOutput = {}; /** @internal */ -export namespace UnifiedHrisTimeoffOutput$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedHrisTimeoffOutput$inboundSchema: z.ZodType< + UnifiedHrisTimeoffOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedHrisTimeoffOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedHrisTimeoffOutput$outboundSchema: z.ZodType< + UnifiedHrisTimeoffOutput$Outbound, + z.ZodTypeDef, + UnifiedHrisTimeoffOutput +> = z.object({}); - export const outboundSchema: z.ZodType = - 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 UnifiedHrisTimeoffOutput$ { + /** @deprecated use `UnifiedHrisTimeoffOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedHrisTimeoffOutput$inboundSchema; + /** @deprecated use `UnifiedHrisTimeoffOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedHrisTimeoffOutput$outboundSchema; + /** @deprecated use `UnifiedHrisTimeoffOutput$Outbound` instead. */ + export type Outbound = UnifiedHrisTimeoffOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationactioninput.ts b/src/models/components/unifiedmarketingautomationactioninput.ts index d111b76f..d72a5eb3 100644 --- a/src/models/components/unifiedmarketingautomationactioninput.ts +++ b/src/models/components/unifiedmarketingautomationactioninput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationActionInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationActionInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationActionInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationActionInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationActionInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationActionInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationActionInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationActionInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationActionInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationActionInput - > = 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 UnifiedMarketingautomationActionInput$ { + /** @deprecated use `UnifiedMarketingautomationActionInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationActionInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationActionInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationActionInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationActionInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationActionInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationactionoutput.ts b/src/models/components/unifiedmarketingautomationactionoutput.ts index 5403317a..839fb0c2 100644 --- a/src/models/components/unifiedmarketingautomationactionoutput.ts +++ b/src/models/components/unifiedmarketingautomationactionoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationActionOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationActionOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationActionOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationActionOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationActionOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationActionOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationActionOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationActionOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationActionOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationActionOutput - > = 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 UnifiedMarketingautomationActionOutput$ { + /** @deprecated use `UnifiedMarketingautomationActionOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationActionOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationActionOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationActionOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationActionOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationActionOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationautomationinput.ts b/src/models/components/unifiedmarketingautomationautomationinput.ts index be752f79..16b01f4e 100644 --- a/src/models/components/unifiedmarketingautomationautomationinput.ts +++ b/src/models/components/unifiedmarketingautomationautomationinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationAutomationInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationAutomationInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationAutomationInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationAutomationInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationAutomationInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationAutomationInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationAutomationInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationAutomationInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationAutomationInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationAutomationInput - > = 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 UnifiedMarketingautomationAutomationInput$ { + /** @deprecated use `UnifiedMarketingautomationAutomationInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationAutomationInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationAutomationInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationAutomationInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationAutomationInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationAutomationInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationautomationoutput.ts b/src/models/components/unifiedmarketingautomationautomationoutput.ts index 3d74f0c0..0ad0ca3d 100644 --- a/src/models/components/unifiedmarketingautomationautomationoutput.ts +++ b/src/models/components/unifiedmarketingautomationautomationoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationAutomationOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationAutomationOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationAutomationOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationAutomationOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationAutomationOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationAutomationOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationAutomationOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationAutomationOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationAutomationOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationAutomationOutput - > = 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 UnifiedMarketingautomationAutomationOutput$ { + /** @deprecated use `UnifiedMarketingautomationAutomationOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationAutomationOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationAutomationOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationAutomationOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationAutomationOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationAutomationOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationcampaigninput.ts b/src/models/components/unifiedmarketingautomationcampaigninput.ts index f9127ca1..89d64acb 100644 --- a/src/models/components/unifiedmarketingautomationcampaigninput.ts +++ b/src/models/components/unifiedmarketingautomationcampaigninput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationCampaignInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationCampaignInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationCampaignInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationCampaignInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationCampaignInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationCampaignInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationCampaignInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationCampaignInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationCampaignInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationCampaignInput - > = 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 UnifiedMarketingautomationCampaignInput$ { + /** @deprecated use `UnifiedMarketingautomationCampaignInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationCampaignInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationCampaignInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationCampaignInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationCampaignInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationCampaignInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationcontactinput.ts b/src/models/components/unifiedmarketingautomationcontactinput.ts index 8d004486..f221bed4 100644 --- a/src/models/components/unifiedmarketingautomationcontactinput.ts +++ b/src/models/components/unifiedmarketingautomationcontactinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationContactInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationContactInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationContactInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationContactInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationContactInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationContactInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationContactInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationContactInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationContactInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationContactInput - > = 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 UnifiedMarketingautomationContactInput$ { + /** @deprecated use `UnifiedMarketingautomationContactInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationContactInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationContactInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationContactInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationContactInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationContactInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationcontactoutput.ts b/src/models/components/unifiedmarketingautomationcontactoutput.ts index 06f3962f..d5d4b950 100644 --- a/src/models/components/unifiedmarketingautomationcontactoutput.ts +++ b/src/models/components/unifiedmarketingautomationcontactoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationContactOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationContactOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationContactOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationContactOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationContactOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationContactOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationContactOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationContactOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationContactOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationContactOutput - > = 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 UnifiedMarketingautomationContactOutput$ { + /** @deprecated use `UnifiedMarketingautomationContactOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationContactOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationContactOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationContactOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationContactOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationContactOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationemailoutput.ts b/src/models/components/unifiedmarketingautomationemailoutput.ts index 78dbb214..928f98d7 100644 --- a/src/models/components/unifiedmarketingautomationemailoutput.ts +++ b/src/models/components/unifiedmarketingautomationemailoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationEmailOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationEmailOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationEmailOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationEmailOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationEmailOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationEmailOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationEmailOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationEmailOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationEmailOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationEmailOutput - > = 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 UnifiedMarketingautomationEmailOutput$ { + /** @deprecated use `UnifiedMarketingautomationEmailOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationEmailOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationEmailOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationEmailOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationEmailOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationEmailOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationeventoutput.ts b/src/models/components/unifiedmarketingautomationeventoutput.ts index 9602b355..a9686d32 100644 --- a/src/models/components/unifiedmarketingautomationeventoutput.ts +++ b/src/models/components/unifiedmarketingautomationeventoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationEventOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationEventOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationEventOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationEventOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationEventOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationEventOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationEventOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationEventOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationEventOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationEventOutput - > = 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 UnifiedMarketingautomationEventOutput$ { + /** @deprecated use `UnifiedMarketingautomationEventOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationEventOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationEventOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationEventOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationEventOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationEventOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationlistinput.ts b/src/models/components/unifiedmarketingautomationlistinput.ts index a392927a..552a104b 100644 --- a/src/models/components/unifiedmarketingautomationlistinput.ts +++ b/src/models/components/unifiedmarketingautomationlistinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationListInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationListInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationListInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationListInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationListInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationListInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationListInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationListInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationListInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationListInput - > = 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 UnifiedMarketingautomationListInput$ { + /** @deprecated use `UnifiedMarketingautomationListInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationListInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationListInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationListInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationListInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationListInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationlistoutput.ts b/src/models/components/unifiedmarketingautomationlistoutput.ts index 815d809a..2273c018 100644 --- a/src/models/components/unifiedmarketingautomationlistoutput.ts +++ b/src/models/components/unifiedmarketingautomationlistoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationListOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationListOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationListOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationListOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationListOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationListOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationListOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationListOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationListOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationListOutput - > = 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 UnifiedMarketingautomationListOutput$ { + /** @deprecated use `UnifiedMarketingautomationListOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationListOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationListOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationListOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationListOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationListOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationmessageoutput.ts b/src/models/components/unifiedmarketingautomationmessageoutput.ts index 448dcdb7..cc47b3d9 100644 --- a/src/models/components/unifiedmarketingautomationmessageoutput.ts +++ b/src/models/components/unifiedmarketingautomationmessageoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationMessageOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationMessageOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationMessageOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationMessageOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationMessageOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationMessageOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationMessageOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationMessageOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationMessageOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationMessageOutput - > = 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 UnifiedMarketingautomationMessageOutput$ { + /** @deprecated use `UnifiedMarketingautomationMessageOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationMessageOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationMessageOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationMessageOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationMessageOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationMessageOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationtemplateinput.ts b/src/models/components/unifiedmarketingautomationtemplateinput.ts index 04d8350d..28e74758 100644 --- a/src/models/components/unifiedmarketingautomationtemplateinput.ts +++ b/src/models/components/unifiedmarketingautomationtemplateinput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationTemplateInput = {}; /** @internal */ -export namespace UnifiedMarketingautomationTemplateInput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationTemplateInput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationTemplateInput$inboundSchema: z.ZodType< + UnifiedMarketingautomationTemplateInput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationTemplateInput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationTemplateInput$outboundSchema: z.ZodType< + UnifiedMarketingautomationTemplateInput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationTemplateInput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationTemplateInput - > = 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 UnifiedMarketingautomationTemplateInput$ { + /** @deprecated use `UnifiedMarketingautomationTemplateInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationTemplateInput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationTemplateInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationTemplateInput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationTemplateInput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationTemplateInput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationtemplateoutput.ts b/src/models/components/unifiedmarketingautomationtemplateoutput.ts index bc4804d6..6463a094 100644 --- a/src/models/components/unifiedmarketingautomationtemplateoutput.ts +++ b/src/models/components/unifiedmarketingautomationtemplateoutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationTemplateOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationTemplateOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationTemplateOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationTemplateOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationTemplateOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationTemplateOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationTemplateOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationTemplateOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationTemplateOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationTemplateOutput - > = 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 UnifiedMarketingautomationTemplateOutput$ { + /** @deprecated use `UnifiedMarketingautomationTemplateOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationTemplateOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationTemplateOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationTemplateOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationTemplateOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationTemplateOutput$Outbound; } diff --git a/src/models/components/unifiedmarketingautomationuseroutput.ts b/src/models/components/unifiedmarketingautomationuseroutput.ts index 002bfb7c..3ce07328 100644 --- a/src/models/components/unifiedmarketingautomationuseroutput.ts +++ b/src/models/components/unifiedmarketingautomationuseroutput.ts @@ -7,18 +7,31 @@ import * as z from "zod"; export type UnifiedMarketingautomationUserOutput = {}; /** @internal */ -export namespace UnifiedMarketingautomationUserOutput$ { - export const inboundSchema: z.ZodType< - UnifiedMarketingautomationUserOutput, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedMarketingautomationUserOutput$inboundSchema: z.ZodType< + UnifiedMarketingautomationUserOutput, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedMarketingautomationUserOutput$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedMarketingautomationUserOutput$outboundSchema: z.ZodType< + UnifiedMarketingautomationUserOutput$Outbound, + z.ZodTypeDef, + UnifiedMarketingautomationUserOutput +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedMarketingautomationUserOutput - > = 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 UnifiedMarketingautomationUserOutput$ { + /** @deprecated use `UnifiedMarketingautomationUserOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedMarketingautomationUserOutput$inboundSchema; + /** @deprecated use `UnifiedMarketingautomationUserOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedMarketingautomationUserOutput$outboundSchema; + /** @deprecated use `UnifiedMarketingautomationUserOutput$Outbound` instead. */ + export type Outbound = UnifiedMarketingautomationUserOutput$Outbound; } diff --git a/src/models/components/unifiedticketingaccountoutput.ts b/src/models/components/unifiedticketingaccountoutput.ts index c0d28b8d..2426ff41 100644 --- a/src/models/components/unifiedticketingaccountoutput.ts +++ b/src/models/components/unifiedticketingaccountoutput.ts @@ -37,128 +37,198 @@ export type UnifiedTicketingAccountOutput = { }; /** @internal */ +export const UnifiedTicketingAccountOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingAccountOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAccountOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAccountOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingAccountOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingAccountOutputFieldMappings +> = 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 UnifiedTicketingAccountOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAccountOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAccountOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingAccountOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAccountOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAccountOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingAccountOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingAccountOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingAccountOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAccountOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAccountOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingAccountOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingAccountOutputRemoteData +> = 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 UnifiedTicketingAccountOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAccountOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAccountOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingAccountOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAccountOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAccountOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingAccountOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingAccountOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingAccountOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAccountOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAccountOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingAccountOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingAccountOutputCreatedAt +> = 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 UnifiedTicketingAccountOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAccountOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAccountOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingAccountOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAccountOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAccountOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingAccountOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingAccountOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingAccountOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAccountOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAccountOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingAccountOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingAccountOutputModifiedAt +> = 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 UnifiedTicketingAccountOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAccountOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAccountOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingAccountOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAccountOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAccountOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingAccountOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingAccountOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - domains: z.array(z.string()).optional(), - field_mappings: z.lazy(() => UnifiedTicketingAccountOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingAccountOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingAccountOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingAccountOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingAccountOutput$inboundSchema: z.ZodType< + UnifiedTicketingAccountOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + domains: z.array(z.string()).optional(), + field_mappings: z.lazy(() => UnifiedTicketingAccountOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingAccountOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingAccountOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingAccountOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", + }); + }); + +/** @internal */ +export type UnifiedTicketingAccountOutput$Outbound = { + name: string; + domains?: Array | undefined; + field_mappings: UnifiedTicketingAccountOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingAccountOutputRemoteData$Outbound; + created_at: UnifiedTicketingAccountOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingAccountOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingAccountOutput$outboundSchema: z.ZodType< + UnifiedTicketingAccountOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingAccountOutput +> = z + .object({ + name: z.string(), + domains: z.array(z.string()).optional(), + fieldMappings: z.lazy(() => UnifiedTicketingAccountOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingAccountOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingAccountOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingAccountOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); - export type Outbound = { - name: string; - domains?: Array | undefined; - field_mappings: UnifiedTicketingAccountOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingAccountOutputRemoteData$.Outbound; - created_at: UnifiedTicketingAccountOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingAccountOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - domains: z.array(z.string()).optional(), - fieldMappings: z.lazy( - () => UnifiedTicketingAccountOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingAccountOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingAccountOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingAccountOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingAccountOutput$ { + /** @deprecated use `UnifiedTicketingAccountOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAccountOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAccountOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingAccountOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingAccountOutput$Outbound; } diff --git a/src/models/components/unifiedticketingattachmentinput.ts b/src/models/components/unifiedticketingattachmentinput.ts index 1c68d814..2322ed91 100644 --- a/src/models/components/unifiedticketingattachmentinput.ts +++ b/src/models/components/unifiedticketingattachmentinput.ts @@ -32,77 +32,102 @@ export type UnifiedTicketingAttachmentInput = { }; /** @internal */ -export namespace UnifiedTicketingAttachmentInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAttachmentInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedTicketingAttachmentInputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAttachmentInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedTicketingAttachmentInputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentInputFieldMappings - > = 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 UnifiedTicketingAttachmentInputFieldMappings$ { + /** @deprecated use `UnifiedTicketingAttachmentInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedTicketingAttachmentInput$ { - export const inboundSchema: z.ZodType = - z - .object({ - file_name: z.string(), - file_url: z.string(), - uploader: z.string(), - ticket_id: z.string().optional(), - comment_id: z.string().optional(), - field_mappings: z.lazy( - () => UnifiedTicketingAttachmentInputFieldMappings$.inboundSchema - ), - }) - .transform((v) => { - return remap$(v, { - file_name: "fileName", - file_url: "fileUrl", - ticket_id: "ticketId", - comment_id: "commentId", - field_mappings: "fieldMappings", - }); - }); +export const UnifiedTicketingAttachmentInput$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentInput, + z.ZodTypeDef, + unknown +> = z + .object({ + file_name: z.string(), + file_url: z.string(), + uploader: z.string(), + ticket_id: z.string().optional(), + comment_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedTicketingAttachmentInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_name: "fileName", + file_url: "fileUrl", + ticket_id: "ticketId", + comment_id: "commentId", + field_mappings: "fieldMappings", + }); + }); - export type Outbound = { - file_name: string; - file_url: string; - uploader: string; - ticket_id?: string | undefined; - comment_id?: string | undefined; - field_mappings: UnifiedTicketingAttachmentInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedTicketingAttachmentInput$Outbound = { + file_name: string; + file_url: string; + uploader: string; + ticket_id?: string | undefined; + comment_id?: string | undefined; + field_mappings: UnifiedTicketingAttachmentInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentInput - > = z - .object({ - fileName: z.string(), - fileUrl: z.string(), - uploader: z.string(), - ticketId: z.string().optional(), - commentId: z.string().optional(), - fieldMappings: z.lazy( - () => UnifiedTicketingAttachmentInputFieldMappings$.outboundSchema - ), - }) - .transform((v) => { - return remap$(v, { - fileName: "file_name", - fileUrl: "file_url", - ticketId: "ticket_id", - commentId: "comment_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedTicketingAttachmentInput$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentInput$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentInput +> = z + .object({ + fileName: z.string(), + fileUrl: z.string(), + uploader: z.string(), + ticketId: z.string().optional(), + commentId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedTicketingAttachmentInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileName: "file_name", + fileUrl: "file_url", + ticketId: "ticket_id", + commentId: "comment_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingAttachmentInput$ { + /** @deprecated use `UnifiedTicketingAttachmentInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentInput$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentInput$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentInput$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentInput$Outbound; } diff --git a/src/models/components/unifiedticketingattachmentoutput.ts b/src/models/components/unifiedticketingattachmentoutput.ts index 1a0a1e04..bbad24ee 100644 --- a/src/models/components/unifiedticketingattachmentoutput.ts +++ b/src/models/components/unifiedticketingattachmentoutput.ts @@ -49,155 +49,215 @@ export type UnifiedTicketingAttachmentOutput = { }; /** @internal */ +export const UnifiedTicketingAttachmentOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAttachmentOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAttachmentOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentOutputFieldMappings +> = 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 UnifiedTicketingAttachmentOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAttachmentOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingAttachmentOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingAttachmentOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAttachmentOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAttachmentOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentOutputRemoteData +> = 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 UnifiedTicketingAttachmentOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAttachmentOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingAttachmentOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingAttachmentOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAttachmentOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAttachmentOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentOutputCreatedAt +> = 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 UnifiedTicketingAttachmentOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAttachmentOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingAttachmentOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingAttachmentOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingAttachmentOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingAttachmentOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentOutputModifiedAt +> = 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 UnifiedTicketingAttachmentOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingAttachmentOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingAttachmentOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingAttachmentOutput$ { - export const inboundSchema: z.ZodType = - z - .object({ - file_name: z.string(), - file_url: z.string(), - uploader: z.string(), - ticket_id: z.string().optional(), - comment_id: z.string().optional(), - field_mappings: z.lazy( - () => UnifiedTicketingAttachmentOutputFieldMappings$.inboundSchema - ), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy( - () => UnifiedTicketingAttachmentOutputRemoteData$.inboundSchema - ), - created_at: z.lazy(() => UnifiedTicketingAttachmentOutputCreatedAt$.inboundSchema), - modified_at: z.lazy( - () => UnifiedTicketingAttachmentOutputModifiedAt$.inboundSchema - ), - }) - .transform((v) => { - return remap$(v, { - file_name: "fileName", - file_url: "fileUrl", - ticket_id: "ticketId", - comment_id: "commentId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); - }); - - export type Outbound = { - file_name: string; - file_url: string; - uploader: string; - ticket_id?: string | undefined; - comment_id?: string | undefined; - field_mappings: UnifiedTicketingAttachmentOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingAttachmentOutputRemoteData$.Outbound; - created_at: UnifiedTicketingAttachmentOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingAttachmentOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingAttachmentOutput - > = z - .object({ - fileName: z.string(), - fileUrl: z.string(), - uploader: z.string(), - ticketId: z.string().optional(), - commentId: z.string().optional(), - fieldMappings: z.lazy( - () => UnifiedTicketingAttachmentOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingAttachmentOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingAttachmentOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingAttachmentOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fileName: "file_name", - fileUrl: "file_url", - ticketId: "ticket_id", - commentId: "comment_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +export const UnifiedTicketingAttachmentOutput$inboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + file_name: z.string(), + file_url: z.string(), + uploader: z.string(), + ticket_id: z.string().optional(), + comment_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedTicketingAttachmentOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingAttachmentOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingAttachmentOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingAttachmentOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + file_name: "fileName", + file_url: "fileUrl", + ticket_id: "ticketId", + comment_id: "commentId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", + }); + }); + +/** @internal */ +export type UnifiedTicketingAttachmentOutput$Outbound = { + file_name: string; + file_url: string; + uploader: string; + ticket_id?: string | undefined; + comment_id?: string | undefined; + field_mappings: UnifiedTicketingAttachmentOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingAttachmentOutputRemoteData$Outbound; + created_at: UnifiedTicketingAttachmentOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingAttachmentOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingAttachmentOutput$outboundSchema: z.ZodType< + UnifiedTicketingAttachmentOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingAttachmentOutput +> = z + .object({ + fileName: z.string(), + fileUrl: z.string(), + uploader: z.string(), + ticketId: z.string().optional(), + commentId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedTicketingAttachmentOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingAttachmentOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingAttachmentOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingAttachmentOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fileName: "file_name", + fileUrl: "file_url", + ticketId: "ticket_id", + commentId: "comment_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingAttachmentOutput$ { + /** @deprecated use `UnifiedTicketingAttachmentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingAttachmentOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingAttachmentOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingAttachmentOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingAttachmentOutput$Outbound; } diff --git a/src/models/components/unifiedticketingcollectionoutput.ts b/src/models/components/unifiedticketingcollectionoutput.ts index 3869216b..e7f7a388 100644 --- a/src/models/components/unifiedticketingcollectionoutput.ts +++ b/src/models/components/unifiedticketingcollectionoutput.ts @@ -38,117 +38,168 @@ export type UnifiedTicketingCollectionOutput = { }; /** @internal */ +export const UnifiedTicketingCollectionOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCollectionOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCollectionOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingCollectionOutputRemoteData +> = 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 UnifiedTicketingCollectionOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCollectionOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCollectionOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingCollectionOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCollectionOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCollectionOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingCollectionOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingCollectionOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCollectionOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCollectionOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingCollectionOutputCreatedAt +> = 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 UnifiedTicketingCollectionOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCollectionOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCollectionOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingCollectionOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCollectionOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCollectionOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingCollectionOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingCollectionOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCollectionOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCollectionOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingCollectionOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingCollectionOutputModifiedAt +> = 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 UnifiedTicketingCollectionOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCollectionOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCollectionOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingCollectionOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCollectionOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCollectionOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingCollectionOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingCollectionOutput$ { - export const inboundSchema: z.ZodType = - z - .object({ - name: z.string(), - description: z.string().optional(), - collection_type: z.string().optional(), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy( - () => UnifiedTicketingCollectionOutputRemoteData$.inboundSchema - ), - created_at: z.lazy(() => UnifiedTicketingCollectionOutputCreatedAt$.inboundSchema), - modified_at: z.lazy( - () => UnifiedTicketingCollectionOutputModifiedAt$.inboundSchema - ), - }) - .transform((v) => { - return remap$(v, { - collection_type: "collectionType", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); - }); - - export type Outbound = { - name: string; - description?: string | undefined; - collection_type?: string | undefined; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingCollectionOutputRemoteData$.Outbound; - created_at: UnifiedTicketingCollectionOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingCollectionOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCollectionOutput - > = z - .object({ - name: z.string(), - description: z.string().optional(), - collectionType: z.string().optional(), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingCollectionOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingCollectionOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingCollectionOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - collectionType: "collection_type", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +export const UnifiedTicketingCollectionOutput$inboundSchema: z.ZodType< + UnifiedTicketingCollectionOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + description: z.string().optional(), + collection_type: z.string().optional(), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingCollectionOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingCollectionOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingCollectionOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + collection_type: "collectionType", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", + }); + }); + +/** @internal */ +export type UnifiedTicketingCollectionOutput$Outbound = { + name: string; + description?: string | undefined; + collection_type?: string | undefined; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingCollectionOutputRemoteData$Outbound; + created_at: UnifiedTicketingCollectionOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingCollectionOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingCollectionOutput$outboundSchema: z.ZodType< + UnifiedTicketingCollectionOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingCollectionOutput +> = z + .object({ + name: z.string(), + description: z.string().optional(), + collectionType: z.string().optional(), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingCollectionOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingCollectionOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingCollectionOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + collectionType: "collection_type", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingCollectionOutput$ { + /** @deprecated use `UnifiedTicketingCollectionOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCollectionOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCollectionOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingCollectionOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingCollectionOutput$Outbound; } diff --git a/src/models/components/unifiedticketingcommentinput.ts b/src/models/components/unifiedticketingcommentinput.ts index 93b5eec2..7638b3d7 100644 --- a/src/models/components/unifiedticketingcommentinput.ts +++ b/src/models/components/unifiedticketingcommentinput.ts @@ -41,59 +41,80 @@ export type UnifiedTicketingCommentInput = { }; /** @internal */ -export namespace UnifiedTicketingCommentInput$ { - export const inboundSchema: z.ZodType = z - .object({ - body: z.string(), - html_body: z.string().optional(), - is_private: z.boolean().optional(), - creator_type: z.string().optional(), - ticket_id: z.string().optional(), - contact_id: z.string().optional(), - user_id: z.string().optional(), - attachments: z.array(z.string()).optional(), - }) - .transform((v) => { - return remap$(v, { - html_body: "htmlBody", - is_private: "isPrivate", - creator_type: "creatorType", - ticket_id: "ticketId", - contact_id: "contactId", - user_id: "userId", - }); +export const UnifiedTicketingCommentInput$inboundSchema: z.ZodType< + UnifiedTicketingCommentInput, + z.ZodTypeDef, + unknown +> = z + .object({ + body: z.string(), + html_body: z.string().optional(), + is_private: z.boolean().optional(), + creator_type: z.string().optional(), + ticket_id: z.string().optional(), + contact_id: z.string().optional(), + user_id: z.string().optional(), + attachments: z.array(z.string()).optional(), + }) + .transform((v) => { + return remap$(v, { + html_body: "htmlBody", + is_private: "isPrivate", + creator_type: "creatorType", + ticket_id: "ticketId", + contact_id: "contactId", + user_id: "userId", }); + }); - export type Outbound = { - body: string; - html_body?: string | undefined; - is_private?: boolean | undefined; - creator_type?: string | undefined; - ticket_id?: string | undefined; - contact_id?: string | undefined; - user_id?: string | undefined; - attachments?: Array | undefined; - }; +/** @internal */ +export type UnifiedTicketingCommentInput$Outbound = { + body: string; + html_body?: string | undefined; + is_private?: boolean | undefined; + creator_type?: string | undefined; + ticket_id?: string | undefined; + contact_id?: string | undefined; + user_id?: string | undefined; + attachments?: Array | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - body: z.string(), - htmlBody: z.string().optional(), - isPrivate: z.boolean().optional(), - creatorType: z.string().optional(), - ticketId: z.string().optional(), - contactId: z.string().optional(), - userId: z.string().optional(), - attachments: z.array(z.string()).optional(), - }) - .transform((v) => { - return remap$(v, { - htmlBody: "html_body", - isPrivate: "is_private", - creatorType: "creator_type", - ticketId: "ticket_id", - contactId: "contact_id", - userId: "user_id", - }); +/** @internal */ +export const UnifiedTicketingCommentInput$outboundSchema: z.ZodType< + UnifiedTicketingCommentInput$Outbound, + z.ZodTypeDef, + UnifiedTicketingCommentInput +> = z + .object({ + body: z.string(), + htmlBody: z.string().optional(), + isPrivate: z.boolean().optional(), + creatorType: z.string().optional(), + ticketId: z.string().optional(), + contactId: z.string().optional(), + userId: z.string().optional(), + attachments: z.array(z.string()).optional(), + }) + .transform((v) => { + return remap$(v, { + htmlBody: "html_body", + isPrivate: "is_private", + creatorType: "creator_type", + ticketId: "ticket_id", + contactId: "contact_id", + userId: "user_id", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingCommentInput$ { + /** @deprecated use `UnifiedTicketingCommentInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCommentInput$inboundSchema; + /** @deprecated use `UnifiedTicketingCommentInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCommentInput$outboundSchema; + /** @deprecated use `UnifiedTicketingCommentInput$Outbound` instead. */ + export type Outbound = UnifiedTicketingCommentInput$Outbound; } diff --git a/src/models/components/unifiedticketingcommentoutput.ts b/src/models/components/unifiedticketingcommentoutput.ts index 039110ef..3088fe1b 100644 --- a/src/models/components/unifiedticketingcommentoutput.ts +++ b/src/models/components/unifiedticketingcommentoutput.ts @@ -58,134 +58,193 @@ export type UnifiedTicketingCommentOutput = { }; /** @internal */ +export const UnifiedTicketingCommentOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingCommentOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCommentOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCommentOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingCommentOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingCommentOutputRemoteData +> = 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 UnifiedTicketingCommentOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCommentOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCommentOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingCommentOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCommentOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCommentOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingCommentOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingCommentOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingCommentOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCommentOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCommentOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingCommentOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingCommentOutputCreatedAt +> = 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 UnifiedTicketingCommentOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCommentOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCommentOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingCommentOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCommentOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCommentOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingCommentOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingCommentOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingCommentOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingCommentOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingCommentOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingCommentOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingCommentOutputModifiedAt +> = 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 UnifiedTicketingCommentOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingCommentOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingCommentOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingCommentOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCommentOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCommentOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingCommentOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingCommentOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - body: z.string(), - html_body: z.string().optional(), - is_private: z.boolean().optional(), - creator_type: z.string().optional(), - ticket_id: z.string().optional(), - contact_id: z.string().optional(), - user_id: z.string().optional(), - attachments: z.array(z.string()).optional(), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingCommentOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingCommentOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingCommentOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - html_body: "htmlBody", - is_private: "isPrivate", - creator_type: "creatorType", - ticket_id: "ticketId", - contact_id: "contactId", - user_id: "userId", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingCommentOutput$inboundSchema: z.ZodType< + UnifiedTicketingCommentOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + body: z.string(), + html_body: z.string().optional(), + is_private: z.boolean().optional(), + creator_type: z.string().optional(), + ticket_id: z.string().optional(), + contact_id: z.string().optional(), + user_id: z.string().optional(), + attachments: z.array(z.string()).optional(), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingCommentOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingCommentOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingCommentOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + html_body: "htmlBody", + is_private: "isPrivate", + creator_type: "creatorType", + ticket_id: "ticketId", + contact_id: "contactId", + user_id: "userId", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - body: string; - html_body?: string | undefined; - is_private?: boolean | undefined; - creator_type?: string | undefined; - ticket_id?: string | undefined; - contact_id?: string | undefined; - user_id?: string | undefined; - attachments?: Array | undefined; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingCommentOutputRemoteData$.Outbound; - created_at: UnifiedTicketingCommentOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingCommentOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - body: z.string(), - htmlBody: z.string().optional(), - isPrivate: z.boolean().optional(), - creatorType: z.string().optional(), - ticketId: z.string().optional(), - contactId: z.string().optional(), - userId: z.string().optional(), - attachments: z.array(z.string()).optional(), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingCommentOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingCommentOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingCommentOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - htmlBody: "html_body", - isPrivate: "is_private", - creatorType: "creator_type", - ticketId: "ticket_id", - contactId: "contact_id", - userId: "user_id", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** @internal */ +export type UnifiedTicketingCommentOutput$Outbound = { + body: string; + html_body?: string | undefined; + is_private?: boolean | undefined; + creator_type?: string | undefined; + ticket_id?: string | undefined; + contact_id?: string | undefined; + user_id?: string | undefined; + attachments?: Array | undefined; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingCommentOutputRemoteData$Outbound; + created_at: UnifiedTicketingCommentOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingCommentOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingCommentOutput$outboundSchema: z.ZodType< + UnifiedTicketingCommentOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingCommentOutput +> = z + .object({ + body: z.string(), + htmlBody: z.string().optional(), + isPrivate: z.boolean().optional(), + creatorType: z.string().optional(), + ticketId: z.string().optional(), + contactId: z.string().optional(), + userId: z.string().optional(), + attachments: z.array(z.string()).optional(), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingCommentOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingCommentOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingCommentOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + htmlBody: "html_body", + isPrivate: "is_private", + creatorType: "creator_type", + ticketId: "ticket_id", + contactId: "contact_id", + userId: "user_id", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingCommentOutput$ { + /** @deprecated use `UnifiedTicketingCommentOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingCommentOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingCommentOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingCommentOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingCommentOutput$Outbound; } diff --git a/src/models/components/unifiedticketingcontactoutput.ts b/src/models/components/unifiedticketingcontactoutput.ts index 51c3f81b..1978ec8a 100644 --- a/src/models/components/unifiedticketingcontactoutput.ts +++ b/src/models/components/unifiedticketingcontactoutput.ts @@ -45,138 +45,208 @@ export type UnifiedTicketingContactOutput = { }; /** @internal */ +export const UnifiedTicketingContactOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingContactOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingContactOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingContactOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingContactOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingContactOutputFieldMappings +> = 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 UnifiedTicketingContactOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingContactOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingContactOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingContactOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingContactOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingContactOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingContactOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingContactOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingContactOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingContactOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingContactOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingContactOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingContactOutputRemoteData +> = 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 UnifiedTicketingContactOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingContactOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingContactOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingContactOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingContactOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingContactOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingContactOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingContactOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingContactOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingContactOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingContactOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingContactOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingContactOutputCreatedAt +> = 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 UnifiedTicketingContactOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingContactOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingContactOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingContactOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingContactOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingContactOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingContactOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingContactOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingContactOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingContactOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingContactOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingContactOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingContactOutputModifiedAt +> = 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 UnifiedTicketingContactOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingContactOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingContactOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingContactOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingContactOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingContactOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingContactOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingContactOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingContactOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - email_address: z.string(), - phone_number: z.string().optional(), - details: z.string().optional(), - field_mappings: z.lazy(() => UnifiedTicketingContactOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingContactOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingContactOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingContactOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - email_address: "emailAddress", - phone_number: "phoneNumber", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingContactOutput$inboundSchema: z.ZodType< + UnifiedTicketingContactOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + email_address: z.string(), + phone_number: z.string().optional(), + details: z.string().optional(), + field_mappings: z.lazy(() => UnifiedTicketingContactOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingContactOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingContactOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingContactOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + email_address: "emailAddress", + phone_number: "phoneNumber", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", + }); + }); + +/** @internal */ +export type UnifiedTicketingContactOutput$Outbound = { + name: string; + email_address: string; + phone_number?: string | undefined; + details?: string | undefined; + field_mappings: UnifiedTicketingContactOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingContactOutputRemoteData$Outbound; + created_at: UnifiedTicketingContactOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingContactOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingContactOutput$outboundSchema: z.ZodType< + UnifiedTicketingContactOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingContactOutput +> = z + .object({ + name: z.string(), + emailAddress: z.string(), + phoneNumber: z.string().optional(), + details: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedTicketingContactOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingContactOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingContactOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingContactOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + emailAddress: "email_address", + phoneNumber: "phone_number", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); - export type Outbound = { - name: string; - email_address: string; - phone_number?: string | undefined; - details?: string | undefined; - field_mappings: UnifiedTicketingContactOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingContactOutputRemoteData$.Outbound; - created_at: UnifiedTicketingContactOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingContactOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - name: z.string(), - emailAddress: z.string(), - phoneNumber: z.string().optional(), - details: z.string().optional(), - fieldMappings: z.lazy( - () => UnifiedTicketingContactOutputFieldMappings$.outboundSchema - ), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingContactOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingContactOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingContactOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - emailAddress: "email_address", - phoneNumber: "phone_number", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingContactOutput$ { + /** @deprecated use `UnifiedTicketingContactOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingContactOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingContactOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingContactOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingContactOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingContactOutput$Outbound; } diff --git a/src/models/components/unifiedticketingtagoutput.ts b/src/models/components/unifiedticketingtagoutput.ts index 0571791d..d9a836aa 100644 --- a/src/models/components/unifiedticketingtagoutput.ts +++ b/src/models/components/unifiedticketingtagoutput.ts @@ -33,122 +33,195 @@ export type UnifiedTicketingTagOutput = { }; /** @internal */ +export const UnifiedTicketingTagOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingTagOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTagOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTagOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingTagOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingTagOutputFieldMappings +> = 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 UnifiedTicketingTagOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTagOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTagOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingTagOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTagOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTagOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingTagOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingTagOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingTagOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTagOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTagOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingTagOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingTagOutputRemoteData +> = 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 UnifiedTicketingTagOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTagOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTagOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingTagOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTagOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTagOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingTagOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingTagOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingTagOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTagOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTagOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingTagOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingTagOutputCreatedAt +> = 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 UnifiedTicketingTagOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTagOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTagOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingTagOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTagOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTagOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingTagOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingTagOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingTagOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTagOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTagOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingTagOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingTagOutputModifiedAt +> = 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 UnifiedTicketingTagOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTagOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTagOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingTagOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTagOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTagOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingTagOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingTagOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingTagOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - field_mappings: z.lazy(() => UnifiedTicketingTagOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingTagOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingTagOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingTagOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingTagOutput$inboundSchema: z.ZodType< + UnifiedTicketingTagOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + field_mappings: z.lazy(() => UnifiedTicketingTagOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingTagOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingTagOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingTagOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - field_mappings: UnifiedTicketingTagOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingTagOutputRemoteData$.Outbound; - created_at: UnifiedTicketingTagOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingTagOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - fieldMappings: z.lazy(() => UnifiedTicketingTagOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingTagOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingTagOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingTagOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedTicketingTagOutput$Outbound = { + name: string; + field_mappings: UnifiedTicketingTagOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingTagOutputRemoteData$Outbound; + created_at: UnifiedTicketingTagOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingTagOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingTagOutput$outboundSchema: z.ZodType< + UnifiedTicketingTagOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingTagOutput +> = z + .object({ + name: z.string(), + fieldMappings: z.lazy(() => UnifiedTicketingTagOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingTagOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingTagOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingTagOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingTagOutput$ { + /** @deprecated use `UnifiedTicketingTagOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTagOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingTagOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTagOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingTagOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingTagOutput$Outbound; } diff --git a/src/models/components/unifiedticketingteamoutput.ts b/src/models/components/unifiedticketingteamoutput.ts index 94975d77..eb6a35ac 100644 --- a/src/models/components/unifiedticketingteamoutput.ts +++ b/src/models/components/unifiedticketingteamoutput.ts @@ -37,125 +37,198 @@ export type UnifiedTicketingTeamOutput = { }; /** @internal */ +export const UnifiedTicketingTeamOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingTeamOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTeamOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTeamOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingTeamOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingTeamOutputFieldMappings +> = 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 UnifiedTicketingTeamOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTeamOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTeamOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingTeamOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTeamOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTeamOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingTeamOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingTeamOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingTeamOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTeamOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTeamOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingTeamOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingTeamOutputRemoteData +> = 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 UnifiedTicketingTeamOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTeamOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTeamOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingTeamOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTeamOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTeamOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingTeamOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingTeamOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingTeamOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTeamOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTeamOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingTeamOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingTeamOutputCreatedAt +> = 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 UnifiedTicketingTeamOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTeamOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTeamOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingTeamOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTeamOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTeamOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingTeamOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingTeamOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingTeamOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTeamOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingTeamOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingTeamOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingTeamOutputModifiedAt +> = 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 UnifiedTicketingTeamOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTeamOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTeamOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingTeamOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTeamOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTeamOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingTeamOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingTeamOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string().optional(), - field_mappings: z.lazy(() => UnifiedTicketingTeamOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingTeamOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingTeamOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingTeamOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingTeamOutput$inboundSchema: z.ZodType< + UnifiedTicketingTeamOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + description: z.string().optional(), + field_mappings: z.lazy(() => UnifiedTicketingTeamOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingTeamOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingTeamOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingTeamOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - description?: string | undefined; - field_mappings: UnifiedTicketingTeamOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingTeamOutputRemoteData$.Outbound; - created_at: UnifiedTicketingTeamOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingTeamOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - description: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedTicketingTeamOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingTeamOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingTeamOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingTeamOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedTicketingTeamOutput$Outbound = { + name: string; + description?: string | undefined; + field_mappings: UnifiedTicketingTeamOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingTeamOutputRemoteData$Outbound; + created_at: UnifiedTicketingTeamOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingTeamOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingTeamOutput$outboundSchema: z.ZodType< + UnifiedTicketingTeamOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingTeamOutput +> = z + .object({ + name: z.string(), + description: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedTicketingTeamOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingTeamOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingTeamOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingTeamOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingTeamOutput$ { + /** @deprecated use `UnifiedTicketingTeamOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTeamOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTeamOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingTeamOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingTeamOutput$Outbound; } diff --git a/src/models/components/unifiedticketingticketinput.ts b/src/models/components/unifiedticketingticketinput.ts index dd127ada..fd4cf0b6 100644 --- a/src/models/components/unifiedticketingticketinput.ts +++ b/src/models/components/unifiedticketingticketinput.ts @@ -5,7 +5,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { UnifiedTicketingCommentInput, - UnifiedTicketingCommentInput$, + UnifiedTicketingCommentInput$inboundSchema, + UnifiedTicketingCommentInput$Outbound, + UnifiedTicketingCommentInput$outboundSchema, } from "./unifiedticketingcommentinput.js"; import * as z from "zod"; @@ -76,116 +78,150 @@ export type UnifiedTicketingTicketInput = { }; /** @internal */ -export namespace UnifiedTicketingTicketInputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingTicketInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const UnifiedTicketingTicketInputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingTicketInputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingTicketInputFieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const UnifiedTicketingTicketInputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingTicketInputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingTicketInputFieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingTicketInputFieldMappings - > = 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 UnifiedTicketingTicketInputFieldMappings$ { + /** @deprecated use `UnifiedTicketingTicketInputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTicketInputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingTicketInputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTicketInputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingTicketInputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingTicketInputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedTicketingTicketInput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - status: z.string().optional(), - description: z.string(), - due_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - type: z.string().optional(), - parent_ticket: z.string().optional(), - collections: z.string().optional(), - tags: z.array(z.string()).optional(), - completed_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - priority: z.string().optional(), - assigned_to: z.array(z.string()).optional(), - comment: UnifiedTicketingCommentInput$.inboundSchema.optional(), - account_id: z.string().optional(), - contact_id: z.string().optional(), - attachments: z.array(z.string()).optional(), - field_mappings: z.lazy(() => UnifiedTicketingTicketInputFieldMappings$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - due_date: "dueDate", - parent_ticket: "parentTicket", - completed_at: "completedAt", - assigned_to: "assignedTo", - account_id: "accountId", - contact_id: "contactId", - field_mappings: "fieldMappings", - }); +export const UnifiedTicketingTicketInput$inboundSchema: z.ZodType< + UnifiedTicketingTicketInput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + status: z.string().optional(), + description: z.string(), + due_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + type: z.string().optional(), + parent_ticket: z.string().optional(), + collections: z.string().optional(), + tags: z.array(z.string()).optional(), + completed_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + priority: z.string().optional(), + assigned_to: z.array(z.string()).optional(), + comment: UnifiedTicketingCommentInput$inboundSchema.optional(), + account_id: z.string().optional(), + contact_id: z.string().optional(), + attachments: z.array(z.string()).optional(), + field_mappings: z.lazy(() => UnifiedTicketingTicketInputFieldMappings$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + due_date: "dueDate", + parent_ticket: "parentTicket", + completed_at: "completedAt", + assigned_to: "assignedTo", + account_id: "accountId", + contact_id: "contactId", + field_mappings: "fieldMappings", }); + }); - export type Outbound = { - name: string; - status?: string | undefined; - description: string; - due_date?: string | undefined; - type?: string | undefined; - parent_ticket?: string | undefined; - collections?: string | undefined; - tags?: Array | undefined; - completed_at?: string | undefined; - priority?: string | undefined; - assigned_to?: Array | undefined; - comment?: UnifiedTicketingCommentInput$.Outbound | undefined; - account_id?: string | undefined; - contact_id?: string | undefined; - attachments?: Array | undefined; - field_mappings: UnifiedTicketingTicketInputFieldMappings$.Outbound; - }; +/** @internal */ +export type UnifiedTicketingTicketInput$Outbound = { + name: string; + status?: string | undefined; + description: string; + due_date?: string | undefined; + type?: string | undefined; + parent_ticket?: string | undefined; + collections?: string | undefined; + tags?: Array | undefined; + completed_at?: string | undefined; + priority?: string | undefined; + assigned_to?: Array | undefined; + comment?: UnifiedTicketingCommentInput$Outbound | undefined; + account_id?: string | undefined; + contact_id?: string | undefined; + attachments?: Array | undefined; + field_mappings: UnifiedTicketingTicketInputFieldMappings$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - status: z.string().optional(), - description: z.string(), - dueDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - type: z.string().optional(), - parentTicket: z.string().optional(), - collections: z.string().optional(), - tags: z.array(z.string()).optional(), - completedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - priority: z.string().optional(), - assignedTo: z.array(z.string()).optional(), - comment: UnifiedTicketingCommentInput$.outboundSchema.optional(), - accountId: z.string().optional(), - contactId: z.string().optional(), - attachments: z.array(z.string()).optional(), - fieldMappings: z.lazy(() => UnifiedTicketingTicketInputFieldMappings$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - dueDate: "due_date", - parentTicket: "parent_ticket", - completedAt: "completed_at", - assignedTo: "assigned_to", - accountId: "account_id", - contactId: "contact_id", - fieldMappings: "field_mappings", - }); +/** @internal */ +export const UnifiedTicketingTicketInput$outboundSchema: z.ZodType< + UnifiedTicketingTicketInput$Outbound, + z.ZodTypeDef, + UnifiedTicketingTicketInput +> = z + .object({ + name: z.string(), + status: z.string().optional(), + description: z.string(), + dueDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + type: z.string().optional(), + parentTicket: z.string().optional(), + collections: z.string().optional(), + tags: z.array(z.string()).optional(), + completedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + priority: z.string().optional(), + assignedTo: z.array(z.string()).optional(), + comment: UnifiedTicketingCommentInput$outboundSchema.optional(), + accountId: z.string().optional(), + contactId: z.string().optional(), + attachments: z.array(z.string()).optional(), + fieldMappings: z.lazy(() => UnifiedTicketingTicketInputFieldMappings$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + dueDate: "due_date", + parentTicket: "parent_ticket", + completedAt: "completed_at", + assignedTo: "assigned_to", + accountId: "account_id", + contactId: "contact_id", + fieldMappings: "field_mappings", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingTicketInput$ { + /** @deprecated use `UnifiedTicketingTicketInput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTicketInput$inboundSchema; + /** @deprecated use `UnifiedTicketingTicketInput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTicketInput$outboundSchema; + /** @deprecated use `UnifiedTicketingTicketInput$Outbound` instead. */ + export type Outbound = UnifiedTicketingTicketInput$Outbound; } diff --git a/src/models/components/unifiedticketingticketoutput.ts b/src/models/components/unifiedticketingticketoutput.ts index d761c6e8..a9fb00c1 100644 --- a/src/models/components/unifiedticketingticketoutput.ts +++ b/src/models/components/unifiedticketingticketoutput.ts @@ -5,7 +5,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { UnifiedTicketingCommentInput, - UnifiedTicketingCommentInput$, + UnifiedTicketingCommentInput$inboundSchema, + UnifiedTicketingCommentInput$Outbound, + UnifiedTicketingCommentInput$outboundSchema, } from "./unifiedticketingcommentinput.js"; import * as z from "zod"; @@ -93,158 +95,239 @@ export type UnifiedTicketingTicketOutput = { }; /** @internal */ -export namespace FieldMappings$ { - export const inboundSchema: z.ZodType = z.object({}); +export const FieldMappings$inboundSchema: z.ZodType = + z.object({}); + +/** @internal */ +export type FieldMappings$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const FieldMappings$outboundSchema: z.ZodType< + FieldMappings$Outbound, + z.ZodTypeDef, + FieldMappings +> = z.object({}); - export const outboundSchema: z.ZodType = 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 FieldMappings$ { + /** @deprecated use `FieldMappings$inboundSchema` instead. */ + export const inboundSchema = FieldMappings$inboundSchema; + /** @deprecated use `FieldMappings$outboundSchema` instead. */ + export const outboundSchema = FieldMappings$outboundSchema; + /** @deprecated use `FieldMappings$Outbound` instead. */ + export type Outbound = FieldMappings$Outbound; } /** @internal */ -export namespace RemoteData$ { - export const inboundSchema: z.ZodType = z.object({}); +export const RemoteData$inboundSchema: z.ZodType = z.object({}); - export type Outbound = {}; +/** @internal */ +export type RemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = z.object({}); +/** @internal */ +export const RemoteData$outboundSchema: z.ZodType = + 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 RemoteData$ { + /** @deprecated use `RemoteData$inboundSchema` instead. */ + export const inboundSchema = RemoteData$inboundSchema; + /** @deprecated use `RemoteData$outboundSchema` instead. */ + export const outboundSchema = RemoteData$outboundSchema; + /** @deprecated use `RemoteData$Outbound` instead. */ + export type Outbound = RemoteData$Outbound; } /** @internal */ -export namespace CreatedAt$ { - export const inboundSchema: z.ZodType = z.object({}); +export const CreatedAt$inboundSchema: z.ZodType = z.object({}); - export type Outbound = {}; +/** @internal */ +export type CreatedAt$Outbound = {}; + +/** @internal */ +export const CreatedAt$outboundSchema: z.ZodType = + z.object({}); - export const outboundSchema: z.ZodType = 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 CreatedAt$ { + /** @deprecated use `CreatedAt$inboundSchema` instead. */ + export const inboundSchema = CreatedAt$inboundSchema; + /** @deprecated use `CreatedAt$outboundSchema` instead. */ + export const outboundSchema = CreatedAt$outboundSchema; + /** @deprecated use `CreatedAt$Outbound` instead. */ + export type Outbound = CreatedAt$Outbound; } /** @internal */ -export namespace ModifiedAt$ { - export const inboundSchema: z.ZodType = z.object({}); +export const ModifiedAt$inboundSchema: z.ZodType = z.object({}); - export type Outbound = {}; +/** @internal */ +export type ModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = z.object({}); +/** @internal */ +export const ModifiedAt$outboundSchema: z.ZodType = + 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 ModifiedAt$ { + /** @deprecated use `ModifiedAt$inboundSchema` instead. */ + export const inboundSchema = ModifiedAt$inboundSchema; + /** @deprecated use `ModifiedAt$outboundSchema` instead. */ + export const outboundSchema = ModifiedAt$outboundSchema; + /** @deprecated use `ModifiedAt$Outbound` instead. */ + export type Outbound = ModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingTicketOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - status: z.string().optional(), - description: z.string(), - due_date: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - type: z.string().optional(), - parent_ticket: z.string().optional(), - collections: z.string().optional(), - tags: z.array(z.string()).optional(), - completed_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)) - .optional(), - priority: z.string().optional(), - assigned_to: z.array(z.string()).optional(), - comment: UnifiedTicketingCommentInput$.inboundSchema.optional(), - account_id: z.string().optional(), - contact_id: z.string().optional(), - attachments: z.array(z.string()).optional(), - field_mappings: z.lazy(() => FieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => RemoteData$.inboundSchema), - created_at: z.lazy(() => CreatedAt$.inboundSchema), - modified_at: z.lazy(() => ModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - due_date: "dueDate", - parent_ticket: "parentTicket", - completed_at: "completedAt", - assigned_to: "assignedTo", - account_id: "accountId", - contact_id: "contactId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingTicketOutput$inboundSchema: z.ZodType< + UnifiedTicketingTicketOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + status: z.string().optional(), + description: z.string(), + due_date: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + type: z.string().optional(), + parent_ticket: z.string().optional(), + collections: z.string().optional(), + tags: z.array(z.string()).optional(), + completed_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)) + .optional(), + priority: z.string().optional(), + assigned_to: z.array(z.string()).optional(), + comment: UnifiedTicketingCommentInput$inboundSchema.optional(), + account_id: z.string().optional(), + contact_id: z.string().optional(), + attachments: z.array(z.string()).optional(), + field_mappings: z.lazy(() => FieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => RemoteData$inboundSchema), + created_at: z.lazy(() => CreatedAt$inboundSchema), + modified_at: z.lazy(() => ModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + due_date: "dueDate", + parent_ticket: "parentTicket", + completed_at: "completedAt", + assigned_to: "assignedTo", + account_id: "accountId", + contact_id: "contactId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); + +/** @internal */ +export type UnifiedTicketingTicketOutput$Outbound = { + name: string; + status?: string | undefined; + description: string; + due_date?: string | undefined; + type?: string | undefined; + parent_ticket?: string | undefined; + collections?: string | undefined; + tags?: Array | undefined; + completed_at?: string | undefined; + priority?: string | undefined; + assigned_to?: Array | undefined; + comment?: UnifiedTicketingCommentInput$Outbound | undefined; + account_id?: string | undefined; + contact_id?: string | undefined; + attachments?: Array | undefined; + field_mappings: FieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: RemoteData$Outbound; + created_at: CreatedAt$Outbound; + modified_at: ModifiedAt$Outbound; +}; - export type Outbound = { - name: string; - status?: string | undefined; - description: string; - due_date?: string | undefined; - type?: string | undefined; - parent_ticket?: string | undefined; - collections?: string | undefined; - tags?: Array | undefined; - completed_at?: string | undefined; - priority?: string | undefined; - assigned_to?: Array | undefined; - comment?: UnifiedTicketingCommentInput$.Outbound | undefined; - account_id?: string | undefined; - contact_id?: string | undefined; - attachments?: Array | undefined; - field_mappings: FieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: RemoteData$.Outbound; - created_at: CreatedAt$.Outbound; - modified_at: ModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - status: z.string().optional(), - description: z.string(), - dueDate: z - .date() - .transform((v) => v.toISOString()) - .optional(), - type: z.string().optional(), - parentTicket: z.string().optional(), - collections: z.string().optional(), - tags: z.array(z.string()).optional(), - completedAt: z - .date() - .transform((v) => v.toISOString()) - .optional(), - priority: z.string().optional(), - assignedTo: z.array(z.string()).optional(), - comment: UnifiedTicketingCommentInput$.outboundSchema.optional(), - accountId: z.string().optional(), - contactId: z.string().optional(), - attachments: z.array(z.string()).optional(), - fieldMappings: z.lazy(() => FieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => RemoteData$.outboundSchema), - createdAt: z.lazy(() => CreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => ModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - dueDate: "due_date", - parentTicket: "parent_ticket", - completedAt: "completed_at", - assignedTo: "assigned_to", - accountId: "account_id", - contactId: "contact_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export const UnifiedTicketingTicketOutput$outboundSchema: z.ZodType< + UnifiedTicketingTicketOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingTicketOutput +> = z + .object({ + name: z.string(), + status: z.string().optional(), + description: z.string(), + dueDate: z + .date() + .transform((v) => v.toISOString()) + .optional(), + type: z.string().optional(), + parentTicket: z.string().optional(), + collections: z.string().optional(), + tags: z.array(z.string()).optional(), + completedAt: z + .date() + .transform((v) => v.toISOString()) + .optional(), + priority: z.string().optional(), + assignedTo: z.array(z.string()).optional(), + comment: UnifiedTicketingCommentInput$outboundSchema.optional(), + accountId: z.string().optional(), + contactId: z.string().optional(), + attachments: z.array(z.string()).optional(), + fieldMappings: z.lazy(() => FieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => RemoteData$outboundSchema), + createdAt: z.lazy(() => CreatedAt$outboundSchema), + modifiedAt: z.lazy(() => ModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + dueDate: "due_date", + parentTicket: "parent_ticket", + completedAt: "completed_at", + assignedTo: "assigned_to", + accountId: "account_id", + contactId: "contact_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingTicketOutput$ { + /** @deprecated use `UnifiedTicketingTicketOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingTicketOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingTicketOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingTicketOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingTicketOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingTicketOutput$Outbound; } diff --git a/src/models/components/unifiedticketinguseroutput.ts b/src/models/components/unifiedticketinguseroutput.ts index e47833a4..2ad0f18c 100644 --- a/src/models/components/unifiedticketinguseroutput.ts +++ b/src/models/components/unifiedticketinguseroutput.ts @@ -45,135 +45,208 @@ export type UnifiedTicketingUserOutput = { }; /** @internal */ +export const UnifiedTicketingUserOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedTicketingUserOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingUserOutputFieldMappings$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingUserOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedTicketingUserOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedTicketingUserOutputFieldMappings +> = 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 UnifiedTicketingUserOutputFieldMappings$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingUserOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingUserOutputFieldMappings - > = z.object({}); + /** @deprecated use `UnifiedTicketingUserOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingUserOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingUserOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedTicketingUserOutputFieldMappings$Outbound; } /** @internal */ +export const UnifiedTicketingUserOutputRemoteData$inboundSchema: z.ZodType< + UnifiedTicketingUserOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingUserOutputRemoteData$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingUserOutputRemoteData$outboundSchema: z.ZodType< + UnifiedTicketingUserOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedTicketingUserOutputRemoteData +> = 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 UnifiedTicketingUserOutputRemoteData$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingUserOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingUserOutputRemoteData - > = z.object({}); + /** @deprecated use `UnifiedTicketingUserOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingUserOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingUserOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedTicketingUserOutputRemoteData$Outbound; } /** @internal */ +export const UnifiedTicketingUserOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedTicketingUserOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingUserOutputCreatedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingUserOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedTicketingUserOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingUserOutputCreatedAt +> = 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 UnifiedTicketingUserOutputCreatedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingUserOutputCreatedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingUserOutputCreatedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingUserOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingUserOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingUserOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingUserOutputCreatedAt$Outbound; } /** @internal */ +export const UnifiedTicketingUserOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedTicketingUserOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UnifiedTicketingUserOutputModifiedAt$Outbound = {}; + +/** @internal */ +export const UnifiedTicketingUserOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedTicketingUserOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedTicketingUserOutputModifiedAt +> = 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 UnifiedTicketingUserOutputModifiedAt$ { - export const inboundSchema: z.ZodType< - UnifiedTicketingUserOutputModifiedAt, - z.ZodTypeDef, - unknown - > = z.object({}); - - export type Outbound = {}; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - UnifiedTicketingUserOutputModifiedAt - > = z.object({}); + /** @deprecated use `UnifiedTicketingUserOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingUserOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingUserOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedTicketingUserOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedTicketingUserOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedTicketingUserOutput$ { - export const inboundSchema: z.ZodType = z - .object({ - name: z.string(), - email_address: z.string(), - teams: z.array(z.string()).optional(), - account_id: z.string().optional(), - field_mappings: z.lazy(() => UnifiedTicketingUserOutputFieldMappings$.inboundSchema), - id: z.string().optional(), - remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedTicketingUserOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedTicketingUserOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedTicketingUserOutputModifiedAt$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - email_address: "emailAddress", - account_id: "accountId", - field_mappings: "fieldMappings", - remote_id: "remoteId", - remote_data: "remoteData", - created_at: "createdAt", - modified_at: "modifiedAt", - }); +export const UnifiedTicketingUserOutput$inboundSchema: z.ZodType< + UnifiedTicketingUserOutput, + z.ZodTypeDef, + unknown +> = z + .object({ + name: z.string(), + email_address: z.string(), + teams: z.array(z.string()).optional(), + account_id: z.string().optional(), + field_mappings: z.lazy(() => UnifiedTicketingUserOutputFieldMappings$inboundSchema), + id: z.string().optional(), + remote_id: z.string().optional(), + remote_data: z.lazy(() => UnifiedTicketingUserOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedTicketingUserOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedTicketingUserOutputModifiedAt$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + email_address: "emailAddress", + account_id: "accountId", + field_mappings: "fieldMappings", + remote_id: "remoteId", + remote_data: "remoteData", + created_at: "createdAt", + modified_at: "modifiedAt", }); + }); - export type Outbound = { - name: string; - email_address: string; - teams?: Array | undefined; - account_id?: string | undefined; - field_mappings: UnifiedTicketingUserOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedTicketingUserOutputRemoteData$.Outbound; - created_at: UnifiedTicketingUserOutputCreatedAt$.Outbound; - modified_at: UnifiedTicketingUserOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - emailAddress: z.string(), - teams: z.array(z.string()).optional(), - accountId: z.string().optional(), - fieldMappings: z.lazy(() => UnifiedTicketingUserOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedTicketingUserOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedTicketingUserOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedTicketingUserOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - emailAddress: "email_address", - accountId: "account_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedTicketingUserOutput$Outbound = { + name: string; + email_address: string; + teams?: Array | undefined; + account_id?: string | undefined; + field_mappings: UnifiedTicketingUserOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedTicketingUserOutputRemoteData$Outbound; + created_at: UnifiedTicketingUserOutputCreatedAt$Outbound; + modified_at: UnifiedTicketingUserOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedTicketingUserOutput$outboundSchema: z.ZodType< + UnifiedTicketingUserOutput$Outbound, + z.ZodTypeDef, + UnifiedTicketingUserOutput +> = z + .object({ + name: z.string(), + emailAddress: z.string(), + teams: z.array(z.string()).optional(), + accountId: z.string().optional(), + fieldMappings: z.lazy(() => UnifiedTicketingUserOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedTicketingUserOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedTicketingUserOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedTicketingUserOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + emailAddress: "email_address", + accountId: "account_id", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedTicketingUserOutput$ { + /** @deprecated use `UnifiedTicketingUserOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedTicketingUserOutput$inboundSchema; + /** @deprecated use `UnifiedTicketingUserOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedTicketingUserOutput$outboundSchema; + /** @deprecated use `UnifiedTicketingUserOutput$Outbound` instead. */ + export type Outbound = UnifiedTicketingUserOutput$Outbound; } diff --git a/src/models/components/unifieduseroutput.ts b/src/models/components/unifieduseroutput.ts index f8e3ddc8..725a3573 100644 --- a/src/models/components/unifieduseroutput.ts +++ b/src/models/components/unifieduseroutput.ts @@ -41,62 +41,138 @@ export type UnifiedUserOutput = { }; /** @internal */ -export namespace UnifiedUserOutputFieldMappings$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedUserOutputFieldMappings$inboundSchema: z.ZodType< + UnifiedUserOutputFieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedUserOutputFieldMappings$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedUserOutputFieldMappings$outboundSchema: z.ZodType< + UnifiedUserOutputFieldMappings$Outbound, + z.ZodTypeDef, + UnifiedUserOutputFieldMappings +> = 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 UnifiedUserOutputFieldMappings$ { + /** @deprecated use `UnifiedUserOutputFieldMappings$inboundSchema` instead. */ + export const inboundSchema = UnifiedUserOutputFieldMappings$inboundSchema; + /** @deprecated use `UnifiedUserOutputFieldMappings$outboundSchema` instead. */ + export const outboundSchema = UnifiedUserOutputFieldMappings$outboundSchema; + /** @deprecated use `UnifiedUserOutputFieldMappings$Outbound` instead. */ + export type Outbound = UnifiedUserOutputFieldMappings$Outbound; } /** @internal */ -export namespace UnifiedUserOutputRemoteData$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedUserOutputRemoteData$inboundSchema: z.ZodType< + UnifiedUserOutputRemoteData, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedUserOutputRemoteData$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedUserOutputRemoteData$outboundSchema: z.ZodType< + UnifiedUserOutputRemoteData$Outbound, + z.ZodTypeDef, + UnifiedUserOutputRemoteData +> = 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 UnifiedUserOutputRemoteData$ { + /** @deprecated use `UnifiedUserOutputRemoteData$inboundSchema` instead. */ + export const inboundSchema = UnifiedUserOutputRemoteData$inboundSchema; + /** @deprecated use `UnifiedUserOutputRemoteData$outboundSchema` instead. */ + export const outboundSchema = UnifiedUserOutputRemoteData$outboundSchema; + /** @deprecated use `UnifiedUserOutputRemoteData$Outbound` instead. */ + export type Outbound = UnifiedUserOutputRemoteData$Outbound; } /** @internal */ -export namespace UnifiedUserOutputCreatedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedUserOutputCreatedAt$inboundSchema: z.ZodType< + UnifiedUserOutputCreatedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedUserOutputCreatedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedUserOutputCreatedAt$outboundSchema: z.ZodType< + UnifiedUserOutputCreatedAt$Outbound, + z.ZodTypeDef, + UnifiedUserOutputCreatedAt +> = 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 UnifiedUserOutputCreatedAt$ { + /** @deprecated use `UnifiedUserOutputCreatedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedUserOutputCreatedAt$inboundSchema; + /** @deprecated use `UnifiedUserOutputCreatedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedUserOutputCreatedAt$outboundSchema; + /** @deprecated use `UnifiedUserOutputCreatedAt$Outbound` instead. */ + export type Outbound = UnifiedUserOutputCreatedAt$Outbound; } /** @internal */ -export namespace UnifiedUserOutputModifiedAt$ { - export const inboundSchema: z.ZodType = - z.object({}); +export const UnifiedUserOutputModifiedAt$inboundSchema: z.ZodType< + UnifiedUserOutputModifiedAt, + z.ZodTypeDef, + unknown +> = z.object({}); - export type Outbound = {}; +/** @internal */ +export type UnifiedUserOutputModifiedAt$Outbound = {}; - export const outboundSchema: z.ZodType = - z.object({}); +/** @internal */ +export const UnifiedUserOutputModifiedAt$outboundSchema: z.ZodType< + UnifiedUserOutputModifiedAt$Outbound, + z.ZodTypeDef, + UnifiedUserOutputModifiedAt +> = 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 UnifiedUserOutputModifiedAt$ { + /** @deprecated use `UnifiedUserOutputModifiedAt$inboundSchema` instead. */ + export const inboundSchema = UnifiedUserOutputModifiedAt$inboundSchema; + /** @deprecated use `UnifiedUserOutputModifiedAt$outboundSchema` instead. */ + export const outboundSchema = UnifiedUserOutputModifiedAt$outboundSchema; + /** @deprecated use `UnifiedUserOutputModifiedAt$Outbound` instead. */ + export type Outbound = UnifiedUserOutputModifiedAt$Outbound; } /** @internal */ -export namespace UnifiedUserOutput$ { - export const inboundSchema: z.ZodType = z +export const UnifiedUserOutput$inboundSchema: z.ZodType = + z .object({ name: z.string(), email: z.string(), is_me: z.boolean(), - field_mappings: z.lazy(() => UnifiedUserOutputFieldMappings$.inboundSchema), + field_mappings: z.lazy(() => UnifiedUserOutputFieldMappings$inboundSchema), id: z.string().optional(), remote_id: z.string().optional(), - remote_data: z.lazy(() => UnifiedUserOutputRemoteData$.inboundSchema), - created_at: z.lazy(() => UnifiedUserOutputCreatedAt$.inboundSchema), - modified_at: z.lazy(() => UnifiedUserOutputModifiedAt$.inboundSchema), + remote_data: z.lazy(() => UnifiedUserOutputRemoteData$inboundSchema), + created_at: z.lazy(() => UnifiedUserOutputCreatedAt$inboundSchema), + modified_at: z.lazy(() => UnifiedUserOutputModifiedAt$inboundSchema), }) .transform((v) => { return remap$(v, { @@ -109,38 +185,56 @@ export namespace UnifiedUserOutput$ { }); }); - export type Outbound = { - name: string; - email: string; - is_me: boolean; - field_mappings: UnifiedUserOutputFieldMappings$.Outbound; - id?: string | undefined; - remote_id?: string | undefined; - remote_data: UnifiedUserOutputRemoteData$.Outbound; - created_at: UnifiedUserOutputCreatedAt$.Outbound; - modified_at: UnifiedUserOutputModifiedAt$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - name: z.string(), - email: z.string(), - isMe: z.boolean(), - fieldMappings: z.lazy(() => UnifiedUserOutputFieldMappings$.outboundSchema), - id: z.string().optional(), - remoteId: z.string().optional(), - remoteData: z.lazy(() => UnifiedUserOutputRemoteData$.outboundSchema), - createdAt: z.lazy(() => UnifiedUserOutputCreatedAt$.outboundSchema), - modifiedAt: z.lazy(() => UnifiedUserOutputModifiedAt$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - isMe: "is_me", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - createdAt: "created_at", - modifiedAt: "modified_at", - }); +/** @internal */ +export type UnifiedUserOutput$Outbound = { + name: string; + email: string; + is_me: boolean; + field_mappings: UnifiedUserOutputFieldMappings$Outbound; + id?: string | undefined; + remote_id?: string | undefined; + remote_data: UnifiedUserOutputRemoteData$Outbound; + created_at: UnifiedUserOutputCreatedAt$Outbound; + modified_at: UnifiedUserOutputModifiedAt$Outbound; +}; + +/** @internal */ +export const UnifiedUserOutput$outboundSchema: z.ZodType< + UnifiedUserOutput$Outbound, + z.ZodTypeDef, + UnifiedUserOutput +> = z + .object({ + name: z.string(), + email: z.string(), + isMe: z.boolean(), + fieldMappings: z.lazy(() => UnifiedUserOutputFieldMappings$outboundSchema), + id: z.string().optional(), + remoteId: z.string().optional(), + remoteData: z.lazy(() => UnifiedUserOutputRemoteData$outboundSchema), + createdAt: z.lazy(() => UnifiedUserOutputCreatedAt$outboundSchema), + modifiedAt: z.lazy(() => UnifiedUserOutputModifiedAt$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + isMe: "is_me", + fieldMappings: "field_mappings", + remoteId: "remote_id", + remoteData: "remote_data", + createdAt: "created_at", + modifiedAt: "modified_at", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UnifiedUserOutput$ { + /** @deprecated use `UnifiedUserOutput$inboundSchema` instead. */ + export const inboundSchema = UnifiedUserOutput$inboundSchema; + /** @deprecated use `UnifiedUserOutput$outboundSchema` instead. */ + export const outboundSchema = UnifiedUserOutput$outboundSchema; + /** @deprecated use `UnifiedUserOutput$Outbound` instead. */ + export type Outbound = UnifiedUserOutput$Outbound; } diff --git a/src/models/components/url.ts b/src/models/components/url.ts index 9f4a8818..cca2c9d7 100644 --- a/src/models/components/url.ts +++ b/src/models/components/url.ts @@ -7,10 +7,23 @@ import * as z from "zod"; export type Url = {}; /** @internal */ -export namespace Url$ { - export const inboundSchema: z.ZodType = z.object({}); +export const Url$inboundSchema: z.ZodType = z.object({}); + +/** @internal */ +export type Url$Outbound = {}; - export type Outbound = {}; +/** @internal */ +export const Url$outboundSchema: z.ZodType = z.object({}); - export const outboundSchema: z.ZodType = 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 Url$ { + /** @deprecated use `Url$inboundSchema` instead. */ + export const inboundSchema = Url$inboundSchema; + /** @deprecated use `Url$outboundSchema` instead. */ + export const outboundSchema = Url$outboundSchema; + /** @deprecated use `Url$Outbound` instead. */ + export type Outbound = Url$Outbound; } diff --git a/src/models/components/webhookdto.ts b/src/models/components/webhookdto.ts index 161580b0..b9b1f0d8 100644 --- a/src/models/components/webhookdto.ts +++ b/src/models/components/webhookdto.ts @@ -20,22 +20,36 @@ export type WebhookDto = { }; /** @internal */ -export namespace WebhookDto$ { - export const inboundSchema: z.ZodType = z.object({ - url: z.string(), - description: z.string(), - scope: z.array(z.string()), - }); +export const WebhookDto$inboundSchema: z.ZodType = z.object({ + url: z.string(), + description: z.string(), + scope: z.array(z.string()), +}); - export type Outbound = { - url: string; - description: string; - scope: Array; - }; +/** @internal */ +export type WebhookDto$Outbound = { + url: string; + description: string; + scope: Array; +}; - export const outboundSchema: z.ZodType = z.object({ +/** @internal */ +export const WebhookDto$outboundSchema: z.ZodType = + z.object({ url: z.string(), description: z.string(), scope: z.array(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 WebhookDto$ { + /** @deprecated use `WebhookDto$inboundSchema` instead. */ + export const inboundSchema = WebhookDto$inboundSchema; + /** @deprecated use `WebhookDto$outboundSchema` instead. */ + export const outboundSchema = WebhookDto$outboundSchema; + /** @deprecated use `WebhookDto$Outbound` instead. */ + export type Outbound = WebhookDto$Outbound; } diff --git a/src/models/components/webhookresponse.ts b/src/models/components/webhookresponse.ts index 85ab36b6..df28ede7 100644 --- a/src/models/components/webhookresponse.ts +++ b/src/models/components/webhookresponse.ts @@ -45,66 +45,83 @@ export type WebhookResponse = { }; /** @internal */ -export namespace WebhookResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - id_webhook_endpoint: z.string(), - endpoint_description: z.string(), - url: z.string(), - secret: z.string(), - active: z.boolean(), - created_at: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)), - scope: z.array(z.string()), - id_project: z.string(), - last_update: z - .string() - .datetime({ offset: true }) - .transform((v) => new Date(v)), - }) - .transform((v) => { - return remap$(v, { - id_webhook_endpoint: "idWebhookEndpoint", - endpoint_description: "endpointDescription", - created_at: "createdAt", - id_project: "idProject", - last_update: "lastUpdate", - }); +export const WebhookResponse$inboundSchema: z.ZodType = z + .object({ + id_webhook_endpoint: z.string(), + endpoint_description: z.string(), + url: z.string(), + secret: z.string(), + active: z.boolean(), + created_at: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)), + scope: z.array(z.string()), + id_project: z.string(), + last_update: z + .string() + .datetime({ offset: true }) + .transform((v) => new Date(v)), + }) + .transform((v) => { + return remap$(v, { + id_webhook_endpoint: "idWebhookEndpoint", + endpoint_description: "endpointDescription", + created_at: "createdAt", + id_project: "idProject", + last_update: "lastUpdate", }); + }); - export type Outbound = { - id_webhook_endpoint: string; - endpoint_description: string; - url: string; - secret: string; - active: boolean; - created_at: string; - scope: Array; - id_project: string; - last_update: string; - }; +/** @internal */ +export type WebhookResponse$Outbound = { + id_webhook_endpoint: string; + endpoint_description: string; + url: string; + secret: string; + active: boolean; + created_at: string; + scope: Array; + id_project: string; + last_update: string; +}; - export const outboundSchema: z.ZodType = z - .object({ - idWebhookEndpoint: z.string(), - endpointDescription: z.string(), - url: z.string(), - secret: z.string(), - active: z.boolean(), - createdAt: z.date().transform((v) => v.toISOString()), - scope: z.array(z.string()), - idProject: z.string(), - lastUpdate: z.date().transform((v) => v.toISOString()), - }) - .transform((v) => { - return remap$(v, { - idWebhookEndpoint: "id_webhook_endpoint", - endpointDescription: "endpoint_description", - createdAt: "created_at", - idProject: "id_project", - lastUpdate: "last_update", - }); +/** @internal */ +export const WebhookResponse$outboundSchema: z.ZodType< + WebhookResponse$Outbound, + z.ZodTypeDef, + WebhookResponse +> = z + .object({ + idWebhookEndpoint: z.string(), + endpointDescription: z.string(), + url: z.string(), + secret: z.string(), + active: z.boolean(), + createdAt: z.date().transform((v) => v.toISOString()), + scope: z.array(z.string()), + idProject: z.string(), + lastUpdate: z.date().transform((v) => v.toISOString()), + }) + .transform((v) => { + return remap$(v, { + idWebhookEndpoint: "id_webhook_endpoint", + endpointDescription: "endpoint_description", + createdAt: "created_at", + idProject: "id_project", + lastUpdate: "last_update", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace WebhookResponse$ { + /** @deprecated use `WebhookResponse$inboundSchema` instead. */ + export const inboundSchema = WebhookResponse$inboundSchema; + /** @deprecated use `WebhookResponse$outboundSchema` instead. */ + export const outboundSchema = WebhookResponse$outboundSchema; + /** @deprecated use `WebhookResponse$Outbound` instead. */ + export type Outbound = WebhookResponse$Outbound; } diff --git a/src/models/operations/addcrmcontact.ts b/src/models/operations/addcrmcontact.ts deleted file mode 100644 index 8181b1bb..00000000 --- a/src/models/operations/addcrmcontact.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type AddCrmContactRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original CRM software. - */ - remoteData?: boolean | undefined; - unifiedCrmContactInput: components.UnifiedCrmContactInput; -}; - -export type AddCrmContactResponse = { - httpMeta: components.HTTPMetadata; - unifiedCrmContactOutput?: components.UnifiedCrmContactOutput | undefined; -}; - -/** @internal */ -export namespace AddCrmContactRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmContactInput: components.UnifiedCrmContactInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmContactInput: "unifiedCrmContactInput", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmContactInput: components.UnifiedCrmContactInput$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmContactInput: components.UnifiedCrmContactInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmContactInput: "UnifiedCrmContactInput", - }); - }); -} - -/** @internal */ -export namespace AddCrmContactResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmContactOutput: components.UnifiedCrmContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmContactOutput: "unifiedCrmContactOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmContactOutput?: components.UnifiedCrmContactOutput$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmContactOutput: components.UnifiedCrmContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmContactOutput: "UnifiedCrmContactOutput", - }); - }); -} diff --git a/src/models/operations/addlist.ts b/src/models/operations/addlist.ts deleted file mode 100644 index 8591f481..00000000 --- a/src/models/operations/addlist.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type AddListRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; - unifiedMarketingautomationListInput: components.UnifiedMarketingautomationListInput; -}; - -export type AddListResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationListOutput?: - | components.UnifiedMarketingautomationListOutput - | undefined; -}; - -/** @internal */ -export namespace AddListRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationListInput: - components.UnifiedMarketingautomationListInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationListInput: "unifiedMarketingautomationListInput", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationListInput: components.UnifiedMarketingautomationListInput$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationListInput: - components.UnifiedMarketingautomationListInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationListInput: "UnifiedMarketingautomationListInput", - }); - }); -} - -/** @internal */ -export namespace AddListResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationListOutput: - components.UnifiedMarketingautomationListOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationListOutput: "unifiedMarketingautomationListOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationListOutput?: - | components.UnifiedMarketingautomationListOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationListOutput: - components.UnifiedMarketingautomationListOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationListOutput: "UnifiedMarketingautomationListOutput", - }); - }); -} diff --git a/src/models/operations/addmarketingautomationcontact.ts b/src/models/operations/addmarketingautomationcontact.ts deleted file mode 100644 index c0396722..00000000 --- a/src/models/operations/addmarketingautomationcontact.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type AddMarketingAutomationContactRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; - unifiedMarketingautomationContactInput: components.UnifiedMarketingautomationContactInput; -}; - -export type AddMarketingAutomationContactResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationContactOutput?: - | components.UnifiedMarketingautomationContactOutput - | undefined; -}; - -/** @internal */ -export namespace AddMarketingAutomationContactRequest$ { - export const inboundSchema: z.ZodType< - AddMarketingAutomationContactRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationContactInput: - components.UnifiedMarketingautomationContactInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationContactInput: "unifiedMarketingautomationContactInput", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationContactInput: components.UnifiedMarketingautomationContactInput$.Outbound; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - AddMarketingAutomationContactRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationContactInput: - components.UnifiedMarketingautomationContactInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationContactInput: "UnifiedMarketingautomationContactInput", - }); - }); -} - -/** @internal */ -export namespace AddMarketingAutomationContactResponse$ { - export const inboundSchema: z.ZodType< - AddMarketingAutomationContactResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationContactOutput: - components.UnifiedMarketingautomationContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationContactOutput: "unifiedMarketingautomationContactOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationContactOutput?: - | components.UnifiedMarketingautomationContactOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - AddMarketingAutomationContactResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationContactOutput: - components.UnifiedMarketingautomationContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationContactOutput: "UnifiedMarketingautomationContactOutput", - }); - }); -} diff --git a/src/models/operations/addtemplate.ts b/src/models/operations/addtemplate.ts deleted file mode 100644 index 193df411..00000000 --- a/src/models/operations/addtemplate.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type AddTemplateRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; - unifiedMarketingautomationTemplateInput: components.UnifiedMarketingautomationTemplateInput; -}; - -export type AddTemplateResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationTemplateOutput?: - | components.UnifiedMarketingautomationTemplateOutput - | undefined; -}; - -/** @internal */ -export namespace AddTemplateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationTemplateInput: - components.UnifiedMarketingautomationTemplateInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationTemplateInput: "unifiedMarketingautomationTemplateInput", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationTemplateInput: components.UnifiedMarketingautomationTemplateInput$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationTemplateInput: - components.UnifiedMarketingautomationTemplateInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationTemplateInput: "UnifiedMarketingautomationTemplateInput", - }); - }); -} - -/** @internal */ -export namespace AddTemplateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationTemplateOutput: - components.UnifiedMarketingautomationTemplateOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationTemplateOutput: - "unifiedMarketingautomationTemplateOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationTemplateOutput?: - | components.UnifiedMarketingautomationTemplateOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationTemplateOutput: - components.UnifiedMarketingautomationTemplateOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationTemplateOutput: - "UnifiedMarketingautomationTemplateOutput", - }); - }); -} diff --git a/src/models/operations/appcontrollerhello.ts b/src/models/operations/appcontrollerhello.ts deleted file mode 100644 index 7f39679b..00000000 --- a/src/models/operations/appcontrollerhello.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type AppControllerHelloResponse = { - httpMeta: components.HTTPMetadata; - string?: string | undefined; -}; - -/** @internal */ -export namespace AppControllerHelloResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - string: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - string?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - string: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/create.ts b/src/models/operations/create.ts index 2645ee84..930ab500 100644 --- a/src/models/operations/create.ts +++ b/src/models/operations/create.ts @@ -11,28 +11,45 @@ export type CreateResponse = { }; /** @internal */ -export namespace CreateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const CreateResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type CreateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const CreateResponse$outboundSchema: z.ZodType< + CreateResponse$Outbound, + z.ZodTypeDef, + CreateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateResponse$ { + /** @deprecated use `CreateResponse$inboundSchema` instead. */ + export const inboundSchema = CreateResponse$inboundSchema; + /** @deprecated use `CreateResponse$outboundSchema` instead. */ + export const outboundSchema = CreateResponse$outboundSchema; + /** @deprecated use `CreateResponse$Outbound` instead. */ + export type Outbound = CreateResponse$Outbound; } diff --git a/src/models/operations/createaccountingaccount.ts b/src/models/operations/createaccountingaccount.ts index 228deefa..59604e4d 100644 --- a/src/models/operations/createaccountingaccount.ts +++ b/src/models/operations/createaccountingaccount.ts @@ -24,81 +24,114 @@ export type CreateAccountingAccountResponse = { }; /** @internal */ -export namespace CreateAccountingAccountRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingAccountInput: components.UnifiedAccountingAccountInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingAccountInput: "unifiedAccountingAccountInput", - }); +export const CreateAccountingAccountRequest$inboundSchema: z.ZodType< + CreateAccountingAccountRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingAccountInput: components.UnifiedAccountingAccountInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingAccountInput: "unifiedAccountingAccountInput", }); + }); + +/** @internal */ +export type CreateAccountingAccountRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingAccountInput: components.UnifiedAccountingAccountInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingAccountInput: components.UnifiedAccountingAccountInput$.Outbound; - }; +/** @internal */ +export const CreateAccountingAccountRequest$outboundSchema: z.ZodType< + CreateAccountingAccountRequest$Outbound, + z.ZodTypeDef, + CreateAccountingAccountRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingAccountInput: components.UnifiedAccountingAccountInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingAccountInput: "UnifiedAccountingAccountInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingAccountInput: - components.UnifiedAccountingAccountInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingAccountInput: "UnifiedAccountingAccountInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingAccountRequest$ { + /** @deprecated use `CreateAccountingAccountRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingAccountRequest$inboundSchema; + /** @deprecated use `CreateAccountingAccountRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingAccountRequest$outboundSchema; + /** @deprecated use `CreateAccountingAccountRequest$Outbound` instead. */ + export type Outbound = CreateAccountingAccountRequest$Outbound; } /** @internal */ -export namespace CreateAccountingAccountResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingAccountOutput: - components.UnifiedAccountingAccountOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingAccountOutput: "unifiedAccountingAccountOutput", - }); - }); +export const CreateAccountingAccountResponse$inboundSchema: z.ZodType< + CreateAccountingAccountResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingAccountOutput: + components.UnifiedAccountingAccountOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingAccountOutput: "unifiedAccountingAccountOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingAccountOutput?: - | components.UnifiedAccountingAccountOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingAccountResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingAccountOutput?: components.UnifiedAccountingAccountOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingAccountResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingAccountOutput: - components.UnifiedAccountingAccountOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingAccountOutput: "UnifiedAccountingAccountOutput", - }); +/** @internal */ +export const CreateAccountingAccountResponse$outboundSchema: z.ZodType< + CreateAccountingAccountResponse$Outbound, + z.ZodTypeDef, + CreateAccountingAccountResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingAccountOutput: + components.UnifiedAccountingAccountOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingAccountOutput: "UnifiedAccountingAccountOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingAccountResponse$ { + /** @deprecated use `CreateAccountingAccountResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingAccountResponse$inboundSchema; + /** @deprecated use `CreateAccountingAccountResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingAccountResponse$outboundSchema; + /** @deprecated use `CreateAccountingAccountResponse$Outbound` instead. */ + export type Outbound = CreateAccountingAccountResponse$Outbound; } diff --git a/src/models/operations/createaccountingattachment.ts b/src/models/operations/createaccountingattachment.ts index 36120933..d9635605 100644 --- a/src/models/operations/createaccountingattachment.ts +++ b/src/models/operations/createaccountingattachment.ts @@ -24,92 +24,117 @@ export type CreateAccountingAttachmentResponse = { }; /** @internal */ -export namespace CreateAccountingAttachmentRequest$ { - export const inboundSchema: z.ZodType< - CreateAccountingAttachmentRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingAttachmentInput: - components.UnifiedAccountingAttachmentInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingAttachmentInput: "unifiedAccountingAttachmentInput", - }); +export const CreateAccountingAttachmentRequest$inboundSchema: z.ZodType< + CreateAccountingAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingAttachmentInput: components.UnifiedAccountingAttachmentInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingAttachmentInput: "unifiedAccountingAttachmentInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingAttachmentInput: components.UnifiedAccountingAttachmentInput$.Outbound; - }; +/** @internal */ +export type CreateAccountingAttachmentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingAttachmentInput: components.UnifiedAccountingAttachmentInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingAttachmentRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingAttachmentInput: - components.UnifiedAccountingAttachmentInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingAttachmentInput: "UnifiedAccountingAttachmentInput", - }); +/** @internal */ +export const CreateAccountingAttachmentRequest$outboundSchema: z.ZodType< + CreateAccountingAttachmentRequest$Outbound, + z.ZodTypeDef, + CreateAccountingAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingAttachmentInput: + components.UnifiedAccountingAttachmentInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingAttachmentInput: "UnifiedAccountingAttachmentInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingAttachmentRequest$ { + /** @deprecated use `CreateAccountingAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingAttachmentRequest$inboundSchema; + /** @deprecated use `CreateAccountingAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingAttachmentRequest$outboundSchema; + /** @deprecated use `CreateAccountingAttachmentRequest$Outbound` instead. */ + export type Outbound = CreateAccountingAttachmentRequest$Outbound; } /** @internal */ -export namespace CreateAccountingAttachmentResponse$ { - export const inboundSchema: z.ZodType< - CreateAccountingAttachmentResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingAttachmentOutput: - components.UnifiedAccountingAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingAttachmentOutput: "unifiedAccountingAttachmentOutput", - }); +export const CreateAccountingAttachmentResponse$inboundSchema: z.ZodType< + CreateAccountingAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingAttachmentOutput: + components.UnifiedAccountingAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingAttachmentOutput: "unifiedAccountingAttachmentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingAttachmentOutput?: - | components.UnifiedAccountingAttachmentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingAttachmentOutput?: + | components.UnifiedAccountingAttachmentOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingAttachmentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingAttachmentOutput: - components.UnifiedAccountingAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingAttachmentOutput: "UnifiedAccountingAttachmentOutput", - }); +/** @internal */ +export const CreateAccountingAttachmentResponse$outboundSchema: z.ZodType< + CreateAccountingAttachmentResponse$Outbound, + z.ZodTypeDef, + CreateAccountingAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingAttachmentOutput: + components.UnifiedAccountingAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingAttachmentOutput: "UnifiedAccountingAttachmentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingAttachmentResponse$ { + /** @deprecated use `CreateAccountingAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingAttachmentResponse$inboundSchema; + /** @deprecated use `CreateAccountingAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingAttachmentResponse$outboundSchema; + /** @deprecated use `CreateAccountingAttachmentResponse$Outbound` instead. */ + export type Outbound = CreateAccountingAttachmentResponse$Outbound; } diff --git a/src/models/operations/createaccountingcontact.ts b/src/models/operations/createaccountingcontact.ts index fca3d005..f55c3a65 100644 --- a/src/models/operations/createaccountingcontact.ts +++ b/src/models/operations/createaccountingcontact.ts @@ -24,81 +24,114 @@ export type CreateAccountingContactResponse = { }; /** @internal */ -export namespace CreateAccountingContactRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingContactInput: components.UnifiedAccountingContactInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingContactInput: "unifiedAccountingContactInput", - }); +export const CreateAccountingContactRequest$inboundSchema: z.ZodType< + CreateAccountingContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingContactInput: components.UnifiedAccountingContactInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingContactInput: "unifiedAccountingContactInput", }); + }); + +/** @internal */ +export type CreateAccountingContactRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingContactInput: components.UnifiedAccountingContactInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingContactInput: components.UnifiedAccountingContactInput$.Outbound; - }; +/** @internal */ +export const CreateAccountingContactRequest$outboundSchema: z.ZodType< + CreateAccountingContactRequest$Outbound, + z.ZodTypeDef, + CreateAccountingContactRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingContactInput: components.UnifiedAccountingContactInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingContactInput: "UnifiedAccountingContactInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingContactInput: - components.UnifiedAccountingContactInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingContactInput: "UnifiedAccountingContactInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingContactRequest$ { + /** @deprecated use `CreateAccountingContactRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingContactRequest$inboundSchema; + /** @deprecated use `CreateAccountingContactRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingContactRequest$outboundSchema; + /** @deprecated use `CreateAccountingContactRequest$Outbound` instead. */ + export type Outbound = CreateAccountingContactRequest$Outbound; } /** @internal */ -export namespace CreateAccountingContactResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingContactOutput: - components.UnifiedAccountingContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingContactOutput: "unifiedAccountingContactOutput", - }); - }); +export const CreateAccountingContactResponse$inboundSchema: z.ZodType< + CreateAccountingContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingContactOutput: + components.UnifiedAccountingContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingContactOutput: "unifiedAccountingContactOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingContactOutput?: - | components.UnifiedAccountingContactOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingContactOutput?: components.UnifiedAccountingContactOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingContactResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingContactOutput: - components.UnifiedAccountingContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingContactOutput: "UnifiedAccountingContactOutput", - }); +/** @internal */ +export const CreateAccountingContactResponse$outboundSchema: z.ZodType< + CreateAccountingContactResponse$Outbound, + z.ZodTypeDef, + CreateAccountingContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingContactOutput: + components.UnifiedAccountingContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingContactOutput: "UnifiedAccountingContactOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingContactResponse$ { + /** @deprecated use `CreateAccountingContactResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingContactResponse$inboundSchema; + /** @deprecated use `CreateAccountingContactResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingContactResponse$outboundSchema; + /** @deprecated use `CreateAccountingContactResponse$Outbound` instead. */ + export type Outbound = CreateAccountingContactResponse$Outbound; } diff --git a/src/models/operations/createaccountingexpense.ts b/src/models/operations/createaccountingexpense.ts index 44e0c062..653b692b 100644 --- a/src/models/operations/createaccountingexpense.ts +++ b/src/models/operations/createaccountingexpense.ts @@ -24,81 +24,114 @@ export type CreateAccountingExpenseResponse = { }; /** @internal */ -export namespace CreateAccountingExpenseRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingExpenseInput: components.UnifiedAccountingExpenseInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingExpenseInput: "unifiedAccountingExpenseInput", - }); +export const CreateAccountingExpenseRequest$inboundSchema: z.ZodType< + CreateAccountingExpenseRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingExpenseInput: components.UnifiedAccountingExpenseInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingExpenseInput: "unifiedAccountingExpenseInput", }); + }); + +/** @internal */ +export type CreateAccountingExpenseRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingExpenseInput: components.UnifiedAccountingExpenseInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingExpenseInput: components.UnifiedAccountingExpenseInput$.Outbound; - }; +/** @internal */ +export const CreateAccountingExpenseRequest$outboundSchema: z.ZodType< + CreateAccountingExpenseRequest$Outbound, + z.ZodTypeDef, + CreateAccountingExpenseRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingExpenseInput: components.UnifiedAccountingExpenseInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingExpenseInput: "UnifiedAccountingExpenseInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingExpenseInput: - components.UnifiedAccountingExpenseInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingExpenseInput: "UnifiedAccountingExpenseInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingExpenseRequest$ { + /** @deprecated use `CreateAccountingExpenseRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingExpenseRequest$inboundSchema; + /** @deprecated use `CreateAccountingExpenseRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingExpenseRequest$outboundSchema; + /** @deprecated use `CreateAccountingExpenseRequest$Outbound` instead. */ + export type Outbound = CreateAccountingExpenseRequest$Outbound; } /** @internal */ -export namespace CreateAccountingExpenseResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingExpenseOutput: - components.UnifiedAccountingExpenseOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingExpenseOutput: "unifiedAccountingExpenseOutput", - }); - }); +export const CreateAccountingExpenseResponse$inboundSchema: z.ZodType< + CreateAccountingExpenseResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingExpenseOutput: + components.UnifiedAccountingExpenseOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingExpenseOutput: "unifiedAccountingExpenseOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingExpenseOutput?: - | components.UnifiedAccountingExpenseOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingExpenseResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingExpenseOutput?: components.UnifiedAccountingExpenseOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingExpenseResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingExpenseOutput: - components.UnifiedAccountingExpenseOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingExpenseOutput: "UnifiedAccountingExpenseOutput", - }); +/** @internal */ +export const CreateAccountingExpenseResponse$outboundSchema: z.ZodType< + CreateAccountingExpenseResponse$Outbound, + z.ZodTypeDef, + CreateAccountingExpenseResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingExpenseOutput: + components.UnifiedAccountingExpenseOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingExpenseOutput: "UnifiedAccountingExpenseOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingExpenseResponse$ { + /** @deprecated use `CreateAccountingExpenseResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingExpenseResponse$inboundSchema; + /** @deprecated use `CreateAccountingExpenseResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingExpenseResponse$outboundSchema; + /** @deprecated use `CreateAccountingExpenseResponse$Outbound` instead. */ + export type Outbound = CreateAccountingExpenseResponse$Outbound; } diff --git a/src/models/operations/createaccountinginvoice.ts b/src/models/operations/createaccountinginvoice.ts index 43f36059..ea849d2d 100644 --- a/src/models/operations/createaccountinginvoice.ts +++ b/src/models/operations/createaccountinginvoice.ts @@ -24,81 +24,114 @@ export type CreateAccountingInvoiceResponse = { }; /** @internal */ -export namespace CreateAccountingInvoiceRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingInvoiceInput: components.UnifiedAccountingInvoiceInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingInvoiceInput: "unifiedAccountingInvoiceInput", - }); +export const CreateAccountingInvoiceRequest$inboundSchema: z.ZodType< + CreateAccountingInvoiceRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingInvoiceInput: components.UnifiedAccountingInvoiceInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingInvoiceInput: "unifiedAccountingInvoiceInput", }); + }); + +/** @internal */ +export type CreateAccountingInvoiceRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingInvoiceInput: components.UnifiedAccountingInvoiceInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingInvoiceInput: components.UnifiedAccountingInvoiceInput$.Outbound; - }; +/** @internal */ +export const CreateAccountingInvoiceRequest$outboundSchema: z.ZodType< + CreateAccountingInvoiceRequest$Outbound, + z.ZodTypeDef, + CreateAccountingInvoiceRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingInvoiceInput: components.UnifiedAccountingInvoiceInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingInvoiceInput: "UnifiedAccountingInvoiceInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingInvoiceInput: - components.UnifiedAccountingInvoiceInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingInvoiceInput: "UnifiedAccountingInvoiceInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingInvoiceRequest$ { + /** @deprecated use `CreateAccountingInvoiceRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingInvoiceRequest$inboundSchema; + /** @deprecated use `CreateAccountingInvoiceRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingInvoiceRequest$outboundSchema; + /** @deprecated use `CreateAccountingInvoiceRequest$Outbound` instead. */ + export type Outbound = CreateAccountingInvoiceRequest$Outbound; } /** @internal */ -export namespace CreateAccountingInvoiceResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingInvoiceOutput: - components.UnifiedAccountingInvoiceOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingInvoiceOutput: "unifiedAccountingInvoiceOutput", - }); - }); +export const CreateAccountingInvoiceResponse$inboundSchema: z.ZodType< + CreateAccountingInvoiceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingInvoiceOutput: + components.UnifiedAccountingInvoiceOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingInvoiceOutput: "unifiedAccountingInvoiceOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingInvoiceOutput?: - | components.UnifiedAccountingInvoiceOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingInvoiceResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingInvoiceOutput?: components.UnifiedAccountingInvoiceOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingInvoiceResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingInvoiceOutput: - components.UnifiedAccountingInvoiceOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingInvoiceOutput: "UnifiedAccountingInvoiceOutput", - }); +/** @internal */ +export const CreateAccountingInvoiceResponse$outboundSchema: z.ZodType< + CreateAccountingInvoiceResponse$Outbound, + z.ZodTypeDef, + CreateAccountingInvoiceResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingInvoiceOutput: + components.UnifiedAccountingInvoiceOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingInvoiceOutput: "UnifiedAccountingInvoiceOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingInvoiceResponse$ { + /** @deprecated use `CreateAccountingInvoiceResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingInvoiceResponse$inboundSchema; + /** @deprecated use `CreateAccountingInvoiceResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingInvoiceResponse$outboundSchema; + /** @deprecated use `CreateAccountingInvoiceResponse$Outbound` instead. */ + export type Outbound = CreateAccountingInvoiceResponse$Outbound; } diff --git a/src/models/operations/createaccountingjournalentry.ts b/src/models/operations/createaccountingjournalentry.ts index c1ce7fd5..bf78e0b2 100644 --- a/src/models/operations/createaccountingjournalentry.ts +++ b/src/models/operations/createaccountingjournalentry.ts @@ -26,92 +26,118 @@ export type CreateAccountingJournalEntryResponse = { }; /** @internal */ -export namespace CreateAccountingJournalEntryRequest$ { - export const inboundSchema: z.ZodType< - CreateAccountingJournalEntryRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingJournalentryInput: - components.UnifiedAccountingJournalentryInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingJournalentryInput: "unifiedAccountingJournalentryInput", - }); +export const CreateAccountingJournalEntryRequest$inboundSchema: z.ZodType< + CreateAccountingJournalEntryRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingJournalentryInput: + components.UnifiedAccountingJournalentryInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingJournalentryInput: "unifiedAccountingJournalentryInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingJournalentryInput: components.UnifiedAccountingJournalentryInput$.Outbound; - }; +/** @internal */ +export type CreateAccountingJournalEntryRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingJournalentryInput: components.UnifiedAccountingJournalentryInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingJournalEntryRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingJournalentryInput: - components.UnifiedAccountingJournalentryInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingJournalentryInput: "UnifiedAccountingJournalentryInput", - }); +/** @internal */ +export const CreateAccountingJournalEntryRequest$outboundSchema: z.ZodType< + CreateAccountingJournalEntryRequest$Outbound, + z.ZodTypeDef, + CreateAccountingJournalEntryRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingJournalentryInput: + components.UnifiedAccountingJournalentryInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingJournalentryInput: "UnifiedAccountingJournalentryInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingJournalEntryRequest$ { + /** @deprecated use `CreateAccountingJournalEntryRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingJournalEntryRequest$inboundSchema; + /** @deprecated use `CreateAccountingJournalEntryRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingJournalEntryRequest$outboundSchema; + /** @deprecated use `CreateAccountingJournalEntryRequest$Outbound` instead. */ + export type Outbound = CreateAccountingJournalEntryRequest$Outbound; } /** @internal */ -export namespace CreateAccountingJournalEntryResponse$ { - export const inboundSchema: z.ZodType< - CreateAccountingJournalEntryResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingJournalentryOutput: - components.UnifiedAccountingJournalentryOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingJournalentryOutput: "unifiedAccountingJournalentryOutput", - }); +export const CreateAccountingJournalEntryResponse$inboundSchema: z.ZodType< + CreateAccountingJournalEntryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingJournalentryOutput: + components.UnifiedAccountingJournalentryOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingJournalentryOutput: "unifiedAccountingJournalentryOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingJournalentryOutput?: - | components.UnifiedAccountingJournalentryOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingJournalEntryResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingJournalentryOutput?: + | components.UnifiedAccountingJournalentryOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingJournalEntryResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingJournalentryOutput: - components.UnifiedAccountingJournalentryOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingJournalentryOutput: "UnifiedAccountingJournalentryOutput", - }); +/** @internal */ +export const CreateAccountingJournalEntryResponse$outboundSchema: z.ZodType< + CreateAccountingJournalEntryResponse$Outbound, + z.ZodTypeDef, + CreateAccountingJournalEntryResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingJournalentryOutput: + components.UnifiedAccountingJournalentryOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingJournalentryOutput: "UnifiedAccountingJournalentryOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingJournalEntryResponse$ { + /** @deprecated use `CreateAccountingJournalEntryResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingJournalEntryResponse$inboundSchema; + /** @deprecated use `CreateAccountingJournalEntryResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingJournalEntryResponse$outboundSchema; + /** @deprecated use `CreateAccountingJournalEntryResponse$Outbound` instead. */ + export type Outbound = CreateAccountingJournalEntryResponse$Outbound; } diff --git a/src/models/operations/createaccountingpayment.ts b/src/models/operations/createaccountingpayment.ts index d878db6c..4122293b 100644 --- a/src/models/operations/createaccountingpayment.ts +++ b/src/models/operations/createaccountingpayment.ts @@ -24,81 +24,114 @@ export type CreateAccountingPaymentResponse = { }; /** @internal */ -export namespace CreateAccountingPaymentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingPaymentInput: components.UnifiedAccountingPaymentInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingPaymentInput: "unifiedAccountingPaymentInput", - }); +export const CreateAccountingPaymentRequest$inboundSchema: z.ZodType< + CreateAccountingPaymentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingPaymentInput: components.UnifiedAccountingPaymentInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingPaymentInput: "unifiedAccountingPaymentInput", }); + }); + +/** @internal */ +export type CreateAccountingPaymentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingPaymentInput: components.UnifiedAccountingPaymentInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingPaymentInput: components.UnifiedAccountingPaymentInput$.Outbound; - }; +/** @internal */ +export const CreateAccountingPaymentRequest$outboundSchema: z.ZodType< + CreateAccountingPaymentRequest$Outbound, + z.ZodTypeDef, + CreateAccountingPaymentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingPaymentInput: components.UnifiedAccountingPaymentInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingPaymentInput: "UnifiedAccountingPaymentInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingPaymentInput: - components.UnifiedAccountingPaymentInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingPaymentInput: "UnifiedAccountingPaymentInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingPaymentRequest$ { + /** @deprecated use `CreateAccountingPaymentRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingPaymentRequest$inboundSchema; + /** @deprecated use `CreateAccountingPaymentRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingPaymentRequest$outboundSchema; + /** @deprecated use `CreateAccountingPaymentRequest$Outbound` instead. */ + export type Outbound = CreateAccountingPaymentRequest$Outbound; } /** @internal */ -export namespace CreateAccountingPaymentResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingPaymentOutput: - components.UnifiedAccountingPaymentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingPaymentOutput: "unifiedAccountingPaymentOutput", - }); - }); +export const CreateAccountingPaymentResponse$inboundSchema: z.ZodType< + CreateAccountingPaymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingPaymentOutput: + components.UnifiedAccountingPaymentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingPaymentOutput: "unifiedAccountingPaymentOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingPaymentOutput?: - | components.UnifiedAccountingPaymentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingPaymentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingPaymentOutput?: components.UnifiedAccountingPaymentOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingPaymentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingPaymentOutput: - components.UnifiedAccountingPaymentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingPaymentOutput: "UnifiedAccountingPaymentOutput", - }); +/** @internal */ +export const CreateAccountingPaymentResponse$outboundSchema: z.ZodType< + CreateAccountingPaymentResponse$Outbound, + z.ZodTypeDef, + CreateAccountingPaymentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingPaymentOutput: + components.UnifiedAccountingPaymentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingPaymentOutput: "UnifiedAccountingPaymentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingPaymentResponse$ { + /** @deprecated use `CreateAccountingPaymentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingPaymentResponse$inboundSchema; + /** @deprecated use `CreateAccountingPaymentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingPaymentResponse$outboundSchema; + /** @deprecated use `CreateAccountingPaymentResponse$Outbound` instead. */ + export type Outbound = CreateAccountingPaymentResponse$Outbound; } diff --git a/src/models/operations/createaccountingpurchaseorder.ts b/src/models/operations/createaccountingpurchaseorder.ts index 052e5722..0f7a0a66 100644 --- a/src/models/operations/createaccountingpurchaseorder.ts +++ b/src/models/operations/createaccountingpurchaseorder.ts @@ -26,92 +26,118 @@ export type CreateAccountingPurchaseOrderResponse = { }; /** @internal */ -export namespace CreateAccountingPurchaseOrderRequest$ { - export const inboundSchema: z.ZodType< - CreateAccountingPurchaseOrderRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAccountingPurchaseorderInput: - components.UnifiedAccountingPurchaseorderInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAccountingPurchaseorderInput: "unifiedAccountingPurchaseorderInput", - }); +export const CreateAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< + CreateAccountingPurchaseOrderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAccountingPurchaseorderInput: + components.UnifiedAccountingPurchaseorderInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAccountingPurchaseorderInput: "unifiedAccountingPurchaseorderInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAccountingPurchaseorderInput: components.UnifiedAccountingPurchaseorderInput$.Outbound; - }; +/** @internal */ +export type CreateAccountingPurchaseOrderRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAccountingPurchaseorderInput: components.UnifiedAccountingPurchaseorderInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingPurchaseOrderRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAccountingPurchaseorderInput: - components.UnifiedAccountingPurchaseorderInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAccountingPurchaseorderInput: "UnifiedAccountingPurchaseorderInput", - }); +/** @internal */ +export const CreateAccountingPurchaseOrderRequest$outboundSchema: z.ZodType< + CreateAccountingPurchaseOrderRequest$Outbound, + z.ZodTypeDef, + CreateAccountingPurchaseOrderRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAccountingPurchaseorderInput: + components.UnifiedAccountingPurchaseorderInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAccountingPurchaseorderInput: "UnifiedAccountingPurchaseorderInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingPurchaseOrderRequest$ { + /** @deprecated use `CreateAccountingPurchaseOrderRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingPurchaseOrderRequest$inboundSchema; + /** @deprecated use `CreateAccountingPurchaseOrderRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingPurchaseOrderRequest$outboundSchema; + /** @deprecated use `CreateAccountingPurchaseOrderRequest$Outbound` instead. */ + export type Outbound = CreateAccountingPurchaseOrderRequest$Outbound; } /** @internal */ -export namespace CreateAccountingPurchaseOrderResponse$ { - export const inboundSchema: z.ZodType< - CreateAccountingPurchaseOrderResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingPurchaseorderOutput: - components.UnifiedAccountingPurchaseorderOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingPurchaseorderOutput: "unifiedAccountingPurchaseorderOutput", - }); +export const CreateAccountingPurchaseOrderResponse$inboundSchema: z.ZodType< + CreateAccountingPurchaseOrderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingPurchaseorderOutput: + components.UnifiedAccountingPurchaseorderOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingPurchaseorderOutput: "unifiedAccountingPurchaseorderOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingPurchaseorderOutput?: - | components.UnifiedAccountingPurchaseorderOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateAccountingPurchaseOrderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingPurchaseorderOutput?: + | components.UnifiedAccountingPurchaseorderOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateAccountingPurchaseOrderResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingPurchaseorderOutput: - components.UnifiedAccountingPurchaseorderOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingPurchaseorderOutput: "UnifiedAccountingPurchaseorderOutput", - }); +/** @internal */ +export const CreateAccountingPurchaseOrderResponse$outboundSchema: z.ZodType< + CreateAccountingPurchaseOrderResponse$Outbound, + z.ZodTypeDef, + CreateAccountingPurchaseOrderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingPurchaseorderOutput: + components.UnifiedAccountingPurchaseorderOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingPurchaseorderOutput: "UnifiedAccountingPurchaseorderOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAccountingPurchaseOrderResponse$ { + /** @deprecated use `CreateAccountingPurchaseOrderResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAccountingPurchaseOrderResponse$inboundSchema; + /** @deprecated use `CreateAccountingPurchaseOrderResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAccountingPurchaseOrderResponse$outboundSchema; + /** @deprecated use `CreateAccountingPurchaseOrderResponse$Outbound` instead. */ + export type Outbound = CreateAccountingPurchaseOrderResponse$Outbound; } diff --git a/src/models/operations/createatsactivity.ts b/src/models/operations/createatsactivity.ts index 57f2ac7d..af44e192 100644 --- a/src/models/operations/createatsactivity.ts +++ b/src/models/operations/createatsactivity.ts @@ -24,71 +24,112 @@ export type CreateAtsActivityResponse = { }; /** @internal */ -export namespace CreateAtsActivityRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAtsActivityInput: components.UnifiedAtsActivityInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAtsActivityInput: "unifiedAtsActivityInput", - }); +export const CreateAtsActivityRequest$inboundSchema: z.ZodType< + CreateAtsActivityRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAtsActivityInput: components.UnifiedAtsActivityInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAtsActivityInput: "unifiedAtsActivityInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsActivityInput: components.UnifiedAtsActivityInput$.Outbound; - }; +/** @internal */ +export type CreateAtsActivityRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAtsActivityInput: components.UnifiedAtsActivityInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAtsActivityInput: components.UnifiedAtsActivityInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAtsActivityInput: "UnifiedAtsActivityInput", - }); +/** @internal */ +export const CreateAtsActivityRequest$outboundSchema: z.ZodType< + CreateAtsActivityRequest$Outbound, + z.ZodTypeDef, + CreateAtsActivityRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAtsActivityInput: components.UnifiedAtsActivityInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAtsActivityInput: "UnifiedAtsActivityInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsActivityRequest$ { + /** @deprecated use `CreateAtsActivityRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAtsActivityRequest$inboundSchema; + /** @deprecated use `CreateAtsActivityRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAtsActivityRequest$outboundSchema; + /** @deprecated use `CreateAtsActivityRequest$Outbound` instead. */ + export type Outbound = CreateAtsActivityRequest$Outbound; } /** @internal */ -export namespace CreateAtsActivityResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsActivityOutput: "unifiedAtsActivityOutput", - }); +export const CreateAtsActivityResponse$inboundSchema: z.ZodType< + CreateAtsActivityResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsActivityOutput: "unifiedAtsActivityOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsActivityOutput?: components.UnifiedAtsActivityOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateAtsActivityResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsActivityOutput?: components.UnifiedAtsActivityOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsActivityOutput: - components.UnifiedAtsActivityOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsActivityOutput: "UnifiedAtsActivityOutput", - }); +/** @internal */ +export const CreateAtsActivityResponse$outboundSchema: z.ZodType< + CreateAtsActivityResponse$Outbound, + z.ZodTypeDef, + CreateAtsActivityResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsActivityOutput: "UnifiedAtsActivityOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsActivityResponse$ { + /** @deprecated use `CreateAtsActivityResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAtsActivityResponse$inboundSchema; + /** @deprecated use `CreateAtsActivityResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAtsActivityResponse$outboundSchema; + /** @deprecated use `CreateAtsActivityResponse$Outbound` instead. */ + export type Outbound = CreateAtsActivityResponse$Outbound; } diff --git a/src/models/operations/createatsapplication.ts b/src/models/operations/createatsapplication.ts index 5a5406d5..dadef39e 100644 --- a/src/models/operations/createatsapplication.ts +++ b/src/models/operations/createatsapplication.ts @@ -24,72 +24,114 @@ export type CreateAtsApplicationResponse = { }; /** @internal */ -export namespace CreateAtsApplicationRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAtsApplicationInput: "unifiedAtsApplicationInput", - }); +export const CreateAtsApplicationRequest$inboundSchema: z.ZodType< + CreateAtsApplicationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAtsApplicationInput: "unifiedAtsApplicationInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$.Outbound; - }; +/** @internal */ +export type CreateAtsApplicationRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAtsApplicationInput: "UnifiedAtsApplicationInput", - }); +/** @internal */ +export const CreateAtsApplicationRequest$outboundSchema: z.ZodType< + CreateAtsApplicationRequest$Outbound, + z.ZodTypeDef, + CreateAtsApplicationRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAtsApplicationInput: "UnifiedAtsApplicationInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsApplicationRequest$ { + /** @deprecated use `CreateAtsApplicationRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAtsApplicationRequest$inboundSchema; + /** @deprecated use `CreateAtsApplicationRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAtsApplicationRequest$outboundSchema; + /** @deprecated use `CreateAtsApplicationRequest$Outbound` instead. */ + export type Outbound = CreateAtsApplicationRequest$Outbound; } /** @internal */ -export namespace CreateAtsApplicationResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsApplicationOutput: - components.UnifiedAtsApplicationOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsApplicationOutput: "unifiedAtsApplicationOutput", - }); +export const CreateAtsApplicationResponse$inboundSchema: z.ZodType< + CreateAtsApplicationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsApplicationOutput: + components.UnifiedAtsApplicationOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsApplicationOutput: "unifiedAtsApplicationOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsApplicationOutput?: components.UnifiedAtsApplicationOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateAtsApplicationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsApplicationOutput?: components.UnifiedAtsApplicationOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsApplicationOutput: - components.UnifiedAtsApplicationOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsApplicationOutput: "UnifiedAtsApplicationOutput", - }); +/** @internal */ +export const CreateAtsApplicationResponse$outboundSchema: z.ZodType< + CreateAtsApplicationResponse$Outbound, + z.ZodTypeDef, + CreateAtsApplicationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsApplicationOutput: + components.UnifiedAtsApplicationOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsApplicationOutput: "UnifiedAtsApplicationOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsApplicationResponse$ { + /** @deprecated use `CreateAtsApplicationResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAtsApplicationResponse$inboundSchema; + /** @deprecated use `CreateAtsApplicationResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAtsApplicationResponse$outboundSchema; + /** @deprecated use `CreateAtsApplicationResponse$Outbound` instead. */ + export type Outbound = CreateAtsApplicationResponse$Outbound; } diff --git a/src/models/operations/createatsattachment.ts b/src/models/operations/createatsattachment.ts index 993548ab..14a32349 100644 --- a/src/models/operations/createatsattachment.ts +++ b/src/models/operations/createatsattachment.ts @@ -24,72 +24,112 @@ export type CreateAtsAttachmentResponse = { }; /** @internal */ -export namespace CreateAtsAttachmentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAtsAttachmentInput: "unifiedAtsAttachmentInput", - }); +export const CreateAtsAttachmentRequest$inboundSchema: z.ZodType< + CreateAtsAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAtsAttachmentInput: "unifiedAtsAttachmentInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$.Outbound; - }; +/** @internal */ +export type CreateAtsAttachmentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAtsAttachmentInput: "UnifiedAtsAttachmentInput", - }); +/** @internal */ +export const CreateAtsAttachmentRequest$outboundSchema: z.ZodType< + CreateAtsAttachmentRequest$Outbound, + z.ZodTypeDef, + CreateAtsAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAtsAttachmentInput: "UnifiedAtsAttachmentInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsAttachmentRequest$ { + /** @deprecated use `CreateAtsAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAtsAttachmentRequest$inboundSchema; + /** @deprecated use `CreateAtsAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAtsAttachmentRequest$outboundSchema; + /** @deprecated use `CreateAtsAttachmentRequest$Outbound` instead. */ + export type Outbound = CreateAtsAttachmentRequest$Outbound; } /** @internal */ -export namespace CreateAtsAttachmentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsAttachmentOutput: - components.UnifiedAtsAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsAttachmentOutput: "unifiedAtsAttachmentOutput", - }); +export const CreateAtsAttachmentResponse$inboundSchema: z.ZodType< + CreateAtsAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsAttachmentOutput: components.UnifiedAtsAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsAttachmentOutput: "unifiedAtsAttachmentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsAttachmentOutput?: components.UnifiedAtsAttachmentOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateAtsAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsAttachmentOutput?: components.UnifiedAtsAttachmentOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsAttachmentOutput: - components.UnifiedAtsAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsAttachmentOutput: "UnifiedAtsAttachmentOutput", - }); +/** @internal */ +export const CreateAtsAttachmentResponse$outboundSchema: z.ZodType< + CreateAtsAttachmentResponse$Outbound, + z.ZodTypeDef, + CreateAtsAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsAttachmentOutput: components.UnifiedAtsAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsAttachmentOutput: "UnifiedAtsAttachmentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsAttachmentResponse$ { + /** @deprecated use `CreateAtsAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAtsAttachmentResponse$inboundSchema; + /** @deprecated use `CreateAtsAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAtsAttachmentResponse$outboundSchema; + /** @deprecated use `CreateAtsAttachmentResponse$Outbound` instead. */ + export type Outbound = CreateAtsAttachmentResponse$Outbound; } diff --git a/src/models/operations/createatscandidate.ts b/src/models/operations/createatscandidate.ts index cefeec69..883c623b 100644 --- a/src/models/operations/createatscandidate.ts +++ b/src/models/operations/createatscandidate.ts @@ -24,72 +24,112 @@ export type CreateAtsCandidateResponse = { }; /** @internal */ -export namespace CreateAtsCandidateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAtsCandidateInput: "unifiedAtsCandidateInput", - }); +export const CreateAtsCandidateRequest$inboundSchema: z.ZodType< + CreateAtsCandidateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAtsCandidateInput: "unifiedAtsCandidateInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$.Outbound; - }; +/** @internal */ +export type CreateAtsCandidateRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAtsCandidateInput: "UnifiedAtsCandidateInput", - }); +/** @internal */ +export const CreateAtsCandidateRequest$outboundSchema: z.ZodType< + CreateAtsCandidateRequest$Outbound, + z.ZodTypeDef, + CreateAtsCandidateRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAtsCandidateInput: "UnifiedAtsCandidateInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsCandidateRequest$ { + /** @deprecated use `CreateAtsCandidateRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAtsCandidateRequest$inboundSchema; + /** @deprecated use `CreateAtsCandidateRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAtsCandidateRequest$outboundSchema; + /** @deprecated use `CreateAtsCandidateRequest$Outbound` instead. */ + export type Outbound = CreateAtsCandidateRequest$Outbound; } /** @internal */ -export namespace CreateAtsCandidateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsCandidateOutput: - components.UnifiedAtsCandidateOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsCandidateOutput: "unifiedAtsCandidateOutput", - }); +export const CreateAtsCandidateResponse$inboundSchema: z.ZodType< + CreateAtsCandidateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsCandidateOutput: components.UnifiedAtsCandidateOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsCandidateOutput: "unifiedAtsCandidateOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsCandidateOutput?: components.UnifiedAtsCandidateOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateAtsCandidateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsCandidateOutput?: components.UnifiedAtsCandidateOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsCandidateOutput: - components.UnifiedAtsCandidateOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsCandidateOutput: "UnifiedAtsCandidateOutput", - }); +/** @internal */ +export const CreateAtsCandidateResponse$outboundSchema: z.ZodType< + CreateAtsCandidateResponse$Outbound, + z.ZodTypeDef, + CreateAtsCandidateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsCandidateOutput: components.UnifiedAtsCandidateOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsCandidateOutput: "UnifiedAtsCandidateOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsCandidateResponse$ { + /** @deprecated use `CreateAtsCandidateResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAtsCandidateResponse$inboundSchema; + /** @deprecated use `CreateAtsCandidateResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAtsCandidateResponse$outboundSchema; + /** @deprecated use `CreateAtsCandidateResponse$Outbound` instead. */ + export type Outbound = CreateAtsCandidateResponse$Outbound; } diff --git a/src/models/operations/createatsinterview.ts b/src/models/operations/createatsinterview.ts index 91bb33ef..992998c7 100644 --- a/src/models/operations/createatsinterview.ts +++ b/src/models/operations/createatsinterview.ts @@ -24,72 +24,112 @@ export type CreateAtsInterviewResponse = { }; /** @internal */ -export namespace CreateAtsInterviewRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedAtsInterviewInput: "unifiedAtsInterviewInput", - }); +export const CreateAtsInterviewRequest$inboundSchema: z.ZodType< + CreateAtsInterviewRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedAtsInterviewInput: "unifiedAtsInterviewInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$.Outbound; - }; +/** @internal */ +export type CreateAtsInterviewRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedAtsInterviewInput: "UnifiedAtsInterviewInput", - }); +/** @internal */ +export const CreateAtsInterviewRequest$outboundSchema: z.ZodType< + CreateAtsInterviewRequest$Outbound, + z.ZodTypeDef, + CreateAtsInterviewRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedAtsInterviewInput: "UnifiedAtsInterviewInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsInterviewRequest$ { + /** @deprecated use `CreateAtsInterviewRequest$inboundSchema` instead. */ + export const inboundSchema = CreateAtsInterviewRequest$inboundSchema; + /** @deprecated use `CreateAtsInterviewRequest$outboundSchema` instead. */ + export const outboundSchema = CreateAtsInterviewRequest$outboundSchema; + /** @deprecated use `CreateAtsInterviewRequest$Outbound` instead. */ + export type Outbound = CreateAtsInterviewRequest$Outbound; } /** @internal */ -export namespace CreateAtsInterviewResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsInterviewOutput: - components.UnifiedAtsInterviewOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsInterviewOutput: "unifiedAtsInterviewOutput", - }); +export const CreateAtsInterviewResponse$inboundSchema: z.ZodType< + CreateAtsInterviewResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsInterviewOutput: components.UnifiedAtsInterviewOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsInterviewOutput: "unifiedAtsInterviewOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsInterviewOutput?: components.UnifiedAtsInterviewOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateAtsInterviewResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsInterviewOutput?: components.UnifiedAtsInterviewOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsInterviewOutput: - components.UnifiedAtsInterviewOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsInterviewOutput: "UnifiedAtsInterviewOutput", - }); +/** @internal */ +export const CreateAtsInterviewResponse$outboundSchema: z.ZodType< + CreateAtsInterviewResponse$Outbound, + z.ZodTypeDef, + CreateAtsInterviewResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsInterviewOutput: components.UnifiedAtsInterviewOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsInterviewOutput: "UnifiedAtsInterviewOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateAtsInterviewResponse$ { + /** @deprecated use `CreateAtsInterviewResponse$inboundSchema` instead. */ + export const inboundSchema = CreateAtsInterviewResponse$inboundSchema; + /** @deprecated use `CreateAtsInterviewResponse$outboundSchema` instead. */ + export const outboundSchema = CreateAtsInterviewResponse$outboundSchema; + /** @deprecated use `CreateAtsInterviewResponse$Outbound` instead. */ + export type Outbound = CreateAtsInterviewResponse$Outbound; } diff --git a/src/models/operations/createcrmcompany.ts b/src/models/operations/createcrmcompany.ts index e0ddb6bc..7cc13f20 100644 --- a/src/models/operations/createcrmcompany.ts +++ b/src/models/operations/createcrmcompany.ts @@ -24,70 +24,112 @@ export type CreateCrmCompanyResponse = { }; /** @internal */ -export namespace CreateCrmCompanyRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmCompanyInput: "unifiedCrmCompanyInput", - }); +export const CreateCrmCompanyRequest$inboundSchema: z.ZodType< + CreateCrmCompanyRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmCompanyInput: "unifiedCrmCompanyInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$.Outbound; - }; +/** @internal */ +export type CreateCrmCompanyRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmCompanyInput: "UnifiedCrmCompanyInput", - }); +/** @internal */ +export const CreateCrmCompanyRequest$outboundSchema: z.ZodType< + CreateCrmCompanyRequest$Outbound, + z.ZodTypeDef, + CreateCrmCompanyRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmCompanyInput: components.UnifiedCrmCompanyInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmCompanyInput: "UnifiedCrmCompanyInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmCompanyRequest$ { + /** @deprecated use `CreateCrmCompanyRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmCompanyRequest$inboundSchema; + /** @deprecated use `CreateCrmCompanyRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmCompanyRequest$outboundSchema; + /** @deprecated use `CreateCrmCompanyRequest$Outbound` instead. */ + export type Outbound = CreateCrmCompanyRequest$Outbound; } /** @internal */ -export namespace CreateCrmCompanyResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmCompanyOutput: "unifiedCrmCompanyOutput", - }); +export const CreateCrmCompanyResponse$inboundSchema: z.ZodType< + CreateCrmCompanyResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmCompanyOutput: "unifiedCrmCompanyOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmCompanyOutput?: components.UnifiedCrmCompanyOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateCrmCompanyResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmCompanyOutput?: components.UnifiedCrmCompanyOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmCompanyOutput: "UnifiedCrmCompanyOutput", - }); +/** @internal */ +export const CreateCrmCompanyResponse$outboundSchema: z.ZodType< + CreateCrmCompanyResponse$Outbound, + z.ZodTypeDef, + CreateCrmCompanyResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmCompanyOutput: "UnifiedCrmCompanyOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmCompanyResponse$ { + /** @deprecated use `CreateCrmCompanyResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmCompanyResponse$inboundSchema; + /** @deprecated use `CreateCrmCompanyResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmCompanyResponse$outboundSchema; + /** @deprecated use `CreateCrmCompanyResponse$Outbound` instead. */ + export type Outbound = CreateCrmCompanyResponse$Outbound; } diff --git a/src/models/operations/createcrmcontact.ts b/src/models/operations/createcrmcontact.ts new file mode 100644 index 00000000..d9f3cca0 --- /dev/null +++ b/src/models/operations/createcrmcontact.ts @@ -0,0 +1,135 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type CreateCrmContactRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original CRM software. + */ + remoteData?: boolean | undefined; + unifiedCrmContactInput: components.UnifiedCrmContactInput; +}; + +export type CreateCrmContactResponse = { + httpMeta: components.HTTPMetadata; + unifiedCrmContactOutput?: components.UnifiedCrmContactOutput | undefined; +}; + +/** @internal */ +export const CreateCrmContactRequest$inboundSchema: z.ZodType< + CreateCrmContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmContactInput: components.UnifiedCrmContactInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmContactInput: "unifiedCrmContactInput", + }); + }); + +/** @internal */ +export type CreateCrmContactRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmContactInput: components.UnifiedCrmContactInput$Outbound; +}; + +/** @internal */ +export const CreateCrmContactRequest$outboundSchema: z.ZodType< + CreateCrmContactRequest$Outbound, + z.ZodTypeDef, + CreateCrmContactRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmContactInput: components.UnifiedCrmContactInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmContactInput: "UnifiedCrmContactInput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmContactRequest$ { + /** @deprecated use `CreateCrmContactRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmContactRequest$inboundSchema; + /** @deprecated use `CreateCrmContactRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmContactRequest$outboundSchema; + /** @deprecated use `CreateCrmContactRequest$Outbound` instead. */ + export type Outbound = CreateCrmContactRequest$Outbound; +} + +/** @internal */ +export const CreateCrmContactResponse$inboundSchema: z.ZodType< + CreateCrmContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmContactOutput: components.UnifiedCrmContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmContactOutput: "unifiedCrmContactOutput", + }); + }); + +/** @internal */ +export type CreateCrmContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmContactOutput?: components.UnifiedCrmContactOutput$Outbound | undefined; +}; + +/** @internal */ +export const CreateCrmContactResponse$outboundSchema: z.ZodType< + CreateCrmContactResponse$Outbound, + z.ZodTypeDef, + CreateCrmContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmContactOutput: components.UnifiedCrmContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmContactOutput: "UnifiedCrmContactOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmContactResponse$ { + /** @deprecated use `CreateCrmContactResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmContactResponse$inboundSchema; + /** @deprecated use `CreateCrmContactResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmContactResponse$outboundSchema; + /** @deprecated use `CreateCrmContactResponse$Outbound` instead. */ + export type Outbound = CreateCrmContactResponse$Outbound; +} diff --git a/src/models/operations/createcrmdeal.ts b/src/models/operations/createcrmdeal.ts index 3c32ca55..49fd18f1 100644 --- a/src/models/operations/createcrmdeal.ts +++ b/src/models/operations/createcrmdeal.ts @@ -24,70 +24,112 @@ export type CreateCrmDealResponse = { }; /** @internal */ -export namespace CreateCrmDealRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmDealInput: components.UnifiedCrmDealInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmDealInput: "unifiedCrmDealInput", - }); +export const CreateCrmDealRequest$inboundSchema: z.ZodType< + CreateCrmDealRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmDealInput: components.UnifiedCrmDealInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmDealInput: "unifiedCrmDealInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmDealInput: components.UnifiedCrmDealInput$.Outbound; - }; +/** @internal */ +export type CreateCrmDealRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmDealInput: components.UnifiedCrmDealInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmDealInput: components.UnifiedCrmDealInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmDealInput: "UnifiedCrmDealInput", - }); +/** @internal */ +export const CreateCrmDealRequest$outboundSchema: z.ZodType< + CreateCrmDealRequest$Outbound, + z.ZodTypeDef, + CreateCrmDealRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmDealInput: components.UnifiedCrmDealInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmDealInput: "UnifiedCrmDealInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmDealRequest$ { + /** @deprecated use `CreateCrmDealRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmDealRequest$inboundSchema; + /** @deprecated use `CreateCrmDealRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmDealRequest$outboundSchema; + /** @deprecated use `CreateCrmDealRequest$Outbound` instead. */ + export type Outbound = CreateCrmDealRequest$Outbound; } /** @internal */ -export namespace CreateCrmDealResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmDealOutput: components.UnifiedCrmDealOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmDealOutput: "unifiedCrmDealOutput", - }); +export const CreateCrmDealResponse$inboundSchema: z.ZodType< + CreateCrmDealResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmDealOutput: components.UnifiedCrmDealOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmDealOutput: "unifiedCrmDealOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmDealOutput?: components.UnifiedCrmDealOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateCrmDealResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmDealOutput?: components.UnifiedCrmDealOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmDealOutput: components.UnifiedCrmDealOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmDealOutput: "UnifiedCrmDealOutput", - }); +/** @internal */ +export const CreateCrmDealResponse$outboundSchema: z.ZodType< + CreateCrmDealResponse$Outbound, + z.ZodTypeDef, + CreateCrmDealResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmDealOutput: components.UnifiedCrmDealOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmDealOutput: "UnifiedCrmDealOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmDealResponse$ { + /** @deprecated use `CreateCrmDealResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmDealResponse$inboundSchema; + /** @deprecated use `CreateCrmDealResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmDealResponse$outboundSchema; + /** @deprecated use `CreateCrmDealResponse$Outbound` instead. */ + export type Outbound = CreateCrmDealResponse$Outbound; } diff --git a/src/models/operations/createcrmengagement.ts b/src/models/operations/createcrmengagement.ts index fb3eeca9..89b7381c 100644 --- a/src/models/operations/createcrmengagement.ts +++ b/src/models/operations/createcrmengagement.ts @@ -24,72 +24,112 @@ export type CreateCrmEngagementResponse = { }; /** @internal */ -export namespace CreateCrmEngagementRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmEngagementInput: "unifiedCrmEngagementInput", - }); +export const CreateCrmEngagementRequest$inboundSchema: z.ZodType< + CreateCrmEngagementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmEngagementInput: "unifiedCrmEngagementInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$.Outbound; - }; +/** @internal */ +export type CreateCrmEngagementRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmEngagementInput: "UnifiedCrmEngagementInput", - }); +/** @internal */ +export const CreateCrmEngagementRequest$outboundSchema: z.ZodType< + CreateCrmEngagementRequest$Outbound, + z.ZodTypeDef, + CreateCrmEngagementRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmEngagementInput: components.UnifiedCrmEngagementInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmEngagementInput: "UnifiedCrmEngagementInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmEngagementRequest$ { + /** @deprecated use `CreateCrmEngagementRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmEngagementRequest$inboundSchema; + /** @deprecated use `CreateCrmEngagementRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmEngagementRequest$outboundSchema; + /** @deprecated use `CreateCrmEngagementRequest$Outbound` instead. */ + export type Outbound = CreateCrmEngagementRequest$Outbound; } /** @internal */ -export namespace CreateCrmEngagementResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmEngagementOutput: - components.UnifiedCrmEngagementOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmEngagementOutput: "unifiedCrmEngagementOutput", - }); +export const CreateCrmEngagementResponse$inboundSchema: z.ZodType< + CreateCrmEngagementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmEngagementOutput: components.UnifiedCrmEngagementOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmEngagementOutput: "unifiedCrmEngagementOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmEngagementOutput?: components.UnifiedCrmEngagementOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateCrmEngagementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmEngagementOutput?: components.UnifiedCrmEngagementOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmEngagementOutput: - components.UnifiedCrmEngagementOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmEngagementOutput: "UnifiedCrmEngagementOutput", - }); +/** @internal */ +export const CreateCrmEngagementResponse$outboundSchema: z.ZodType< + CreateCrmEngagementResponse$Outbound, + z.ZodTypeDef, + CreateCrmEngagementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmEngagementOutput: components.UnifiedCrmEngagementOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmEngagementOutput: "UnifiedCrmEngagementOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmEngagementResponse$ { + /** @deprecated use `CreateCrmEngagementResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmEngagementResponse$inboundSchema; + /** @deprecated use `CreateCrmEngagementResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmEngagementResponse$outboundSchema; + /** @deprecated use `CreateCrmEngagementResponse$Outbound` instead. */ + export type Outbound = CreateCrmEngagementResponse$Outbound; } diff --git a/src/models/operations/createcrmnote.ts b/src/models/operations/createcrmnote.ts index 52399935..d65c4108 100644 --- a/src/models/operations/createcrmnote.ts +++ b/src/models/operations/createcrmnote.ts @@ -24,70 +24,112 @@ export type CreateCrmNoteResponse = { }; /** @internal */ -export namespace CreateCrmNoteRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmNoteInput: components.UnifiedCrmNoteInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmNoteInput: "unifiedCrmNoteInput", - }); +export const CreateCrmNoteRequest$inboundSchema: z.ZodType< + CreateCrmNoteRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmNoteInput: components.UnifiedCrmNoteInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmNoteInput: "unifiedCrmNoteInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmNoteInput: components.UnifiedCrmNoteInput$.Outbound; - }; +/** @internal */ +export type CreateCrmNoteRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmNoteInput: components.UnifiedCrmNoteInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmNoteInput: components.UnifiedCrmNoteInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmNoteInput: "UnifiedCrmNoteInput", - }); +/** @internal */ +export const CreateCrmNoteRequest$outboundSchema: z.ZodType< + CreateCrmNoteRequest$Outbound, + z.ZodTypeDef, + CreateCrmNoteRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmNoteInput: components.UnifiedCrmNoteInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmNoteInput: "UnifiedCrmNoteInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmNoteRequest$ { + /** @deprecated use `CreateCrmNoteRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmNoteRequest$inboundSchema; + /** @deprecated use `CreateCrmNoteRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmNoteRequest$outboundSchema; + /** @deprecated use `CreateCrmNoteRequest$Outbound` instead. */ + export type Outbound = CreateCrmNoteRequest$Outbound; } /** @internal */ -export namespace CreateCrmNoteResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmNoteOutput: "unifiedCrmNoteOutput", - }); +export const CreateCrmNoteResponse$inboundSchema: z.ZodType< + CreateCrmNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmNoteOutput: "unifiedCrmNoteOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmNoteOutput?: components.UnifiedCrmNoteOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateCrmNoteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmNoteOutput?: components.UnifiedCrmNoteOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmNoteOutput: "UnifiedCrmNoteOutput", - }); +/** @internal */ +export const CreateCrmNoteResponse$outboundSchema: z.ZodType< + CreateCrmNoteResponse$Outbound, + z.ZodTypeDef, + CreateCrmNoteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmNoteOutput: "UnifiedCrmNoteOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmNoteResponse$ { + /** @deprecated use `CreateCrmNoteResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmNoteResponse$inboundSchema; + /** @deprecated use `CreateCrmNoteResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmNoteResponse$outboundSchema; + /** @deprecated use `CreateCrmNoteResponse$Outbound` instead. */ + export type Outbound = CreateCrmNoteResponse$Outbound; } diff --git a/src/models/operations/createcrmtask.ts b/src/models/operations/createcrmtask.ts index 6daa6c0b..d718cd8f 100644 --- a/src/models/operations/createcrmtask.ts +++ b/src/models/operations/createcrmtask.ts @@ -24,70 +24,112 @@ export type CreateCrmTaskResponse = { }; /** @internal */ -export namespace CreateCrmTaskRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedCrmTaskInput: components.UnifiedCrmTaskInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedCrmTaskInput: "unifiedCrmTaskInput", - }); +export const CreateCrmTaskRequest$inboundSchema: z.ZodType< + CreateCrmTaskRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedCrmTaskInput: components.UnifiedCrmTaskInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedCrmTaskInput: "unifiedCrmTaskInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedCrmTaskInput: components.UnifiedCrmTaskInput$.Outbound; - }; +/** @internal */ +export type CreateCrmTaskRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedCrmTaskInput: components.UnifiedCrmTaskInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedCrmTaskInput: components.UnifiedCrmTaskInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedCrmTaskInput: "UnifiedCrmTaskInput", - }); +/** @internal */ +export const CreateCrmTaskRequest$outboundSchema: z.ZodType< + CreateCrmTaskRequest$Outbound, + z.ZodTypeDef, + CreateCrmTaskRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedCrmTaskInput: components.UnifiedCrmTaskInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedCrmTaskInput: "UnifiedCrmTaskInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmTaskRequest$ { + /** @deprecated use `CreateCrmTaskRequest$inboundSchema` instead. */ + export const inboundSchema = CreateCrmTaskRequest$inboundSchema; + /** @deprecated use `CreateCrmTaskRequest$outboundSchema` instead. */ + export const outboundSchema = CreateCrmTaskRequest$outboundSchema; + /** @deprecated use `CreateCrmTaskRequest$Outbound` instead. */ + export type Outbound = CreateCrmTaskRequest$Outbound; } /** @internal */ -export namespace CreateCrmTaskResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmTaskOutput: "unifiedCrmTaskOutput", - }); +export const CreateCrmTaskResponse$inboundSchema: z.ZodType< + CreateCrmTaskResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmTaskOutput: "unifiedCrmTaskOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmTaskOutput?: components.UnifiedCrmTaskOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateCrmTaskResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmTaskOutput?: components.UnifiedCrmTaskOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmTaskOutput: "UnifiedCrmTaskOutput", - }); +/** @internal */ +export const CreateCrmTaskResponse$outboundSchema: z.ZodType< + CreateCrmTaskResponse$Outbound, + z.ZodTypeDef, + CreateCrmTaskResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmTaskOutput: "UnifiedCrmTaskOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateCrmTaskResponse$ { + /** @deprecated use `CreateCrmTaskResponse$inboundSchema` instead. */ + export const inboundSchema = CreateCrmTaskResponse$inboundSchema; + /** @deprecated use `CreateCrmTaskResponse$outboundSchema` instead. */ + export const outboundSchema = CreateCrmTaskResponse$outboundSchema; + /** @deprecated use `CreateCrmTaskResponse$Outbound` instead. */ + export type Outbound = CreateCrmTaskResponse$Outbound; } diff --git a/src/models/operations/createfilestoragefile.ts b/src/models/operations/createfilestoragefile.ts index 8323e25a..57d562b8 100644 --- a/src/models/operations/createfilestoragefile.ts +++ b/src/models/operations/createfilestoragefile.ts @@ -21,75 +21,114 @@ export type CreateFilestorageFileResponse = { }; /** @internal */ -export namespace CreateFilestorageFileRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean(), - UnifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedFilestorageFileInput: "unifiedFilestorageFileInput", - }); +export const CreateFilestorageFileRequest$inboundSchema: z.ZodType< + CreateFilestorageFileRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean(), + UnifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedFilestorageFileInput: "unifiedFilestorageFileInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data: boolean; - UnifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$.Outbound; - }; +/** @internal */ +export type CreateFilestorageFileRequest$Outbound = { + "x-connection-token": string; + remote_data: boolean; + UnifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean(), - unifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedFilestorageFileInput: "UnifiedFilestorageFileInput", - }); +/** @internal */ +export const CreateFilestorageFileRequest$outboundSchema: z.ZodType< + CreateFilestorageFileRequest$Outbound, + z.ZodTypeDef, + CreateFilestorageFileRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean(), + unifiedFilestorageFileInput: components.UnifiedFilestorageFileInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedFilestorageFileInput: "UnifiedFilestorageFileInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateFilestorageFileRequest$ { + /** @deprecated use `CreateFilestorageFileRequest$inboundSchema` instead. */ + export const inboundSchema = CreateFilestorageFileRequest$inboundSchema; + /** @deprecated use `CreateFilestorageFileRequest$outboundSchema` instead. */ + export const outboundSchema = CreateFilestorageFileRequest$outboundSchema; + /** @deprecated use `CreateFilestorageFileRequest$Outbound` instead. */ + export type Outbound = CreateFilestorageFileRequest$Outbound; } /** @internal */ -export namespace CreateFilestorageFileResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageFileOutput: - components.UnifiedFilestorageFileOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageFileOutput: "unifiedFilestorageFileOutput", - }); +export const CreateFilestorageFileResponse$inboundSchema: z.ZodType< + CreateFilestorageFileResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageFileOutput: + components.UnifiedFilestorageFileOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageFileOutput: "unifiedFilestorageFileOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageFileOutput?: - | components.UnifiedFilestorageFileOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateFilestorageFileResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageFileOutput?: components.UnifiedFilestorageFileOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageFileOutput: - components.UnifiedFilestorageFileOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageFileOutput: "UnifiedFilestorageFileOutput", - }); - }); +/** @internal */ +export const CreateFilestorageFileResponse$outboundSchema: z.ZodType< + CreateFilestorageFileResponse$Outbound, + z.ZodTypeDef, + CreateFilestorageFileResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageFileOutput: + components.UnifiedFilestorageFileOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageFileOutput: "UnifiedFilestorageFileOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateFilestorageFileResponse$ { + /** @deprecated use `CreateFilestorageFileResponse$inboundSchema` instead. */ + export const inboundSchema = CreateFilestorageFileResponse$inboundSchema; + /** @deprecated use `CreateFilestorageFileResponse$outboundSchema` instead. */ + export const outboundSchema = CreateFilestorageFileResponse$outboundSchema; + /** @deprecated use `CreateFilestorageFileResponse$Outbound` instead. */ + export type Outbound = CreateFilestorageFileResponse$Outbound; } diff --git a/src/models/operations/createfilestoragefolder.ts b/src/models/operations/createfilestoragefolder.ts index 8def746a..962eaa88 100644 --- a/src/models/operations/createfilestoragefolder.ts +++ b/src/models/operations/createfilestoragefolder.ts @@ -21,81 +21,114 @@ export type CreateFilestorageFolderResponse = { }; /** @internal */ -export namespace CreateFilestorageFolderRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean(), - UnifiedFilestorageFolderInput: components.UnifiedFilestorageFolderInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedFilestorageFolderInput: "unifiedFilestorageFolderInput", - }); +export const CreateFilestorageFolderRequest$inboundSchema: z.ZodType< + CreateFilestorageFolderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean(), + UnifiedFilestorageFolderInput: components.UnifiedFilestorageFolderInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedFilestorageFolderInput: "unifiedFilestorageFolderInput", }); + }); + +/** @internal */ +export type CreateFilestorageFolderRequest$Outbound = { + "x-connection-token": string; + remote_data: boolean; + UnifiedFilestorageFolderInput: components.UnifiedFilestorageFolderInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data: boolean; - UnifiedFilestorageFolderInput: components.UnifiedFilestorageFolderInput$.Outbound; - }; +/** @internal */ +export const CreateFilestorageFolderRequest$outboundSchema: z.ZodType< + CreateFilestorageFolderRequest$Outbound, + z.ZodTypeDef, + CreateFilestorageFolderRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean(), + unifiedFilestorageFolderInput: components.UnifiedFilestorageFolderInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedFilestorageFolderInput: "UnifiedFilestorageFolderInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean(), - unifiedFilestorageFolderInput: - components.UnifiedFilestorageFolderInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedFilestorageFolderInput: "UnifiedFilestorageFolderInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateFilestorageFolderRequest$ { + /** @deprecated use `CreateFilestorageFolderRequest$inboundSchema` instead. */ + export const inboundSchema = CreateFilestorageFolderRequest$inboundSchema; + /** @deprecated use `CreateFilestorageFolderRequest$outboundSchema` instead. */ + export const outboundSchema = CreateFilestorageFolderRequest$outboundSchema; + /** @deprecated use `CreateFilestorageFolderRequest$Outbound` instead. */ + export type Outbound = CreateFilestorageFolderRequest$Outbound; } /** @internal */ -export namespace CreateFilestorageFolderResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageFolderOutput: - components.UnifiedFilestorageFolderOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageFolderOutput: "unifiedFilestorageFolderOutput", - }); - }); +export const CreateFilestorageFolderResponse$inboundSchema: z.ZodType< + CreateFilestorageFolderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageFolderOutput: + components.UnifiedFilestorageFolderOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageFolderOutput: "unifiedFilestorageFolderOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageFolderOutput?: - | components.UnifiedFilestorageFolderOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateFilestorageFolderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageFolderOutput?: components.UnifiedFilestorageFolderOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateFilestorageFolderResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageFolderOutput: - components.UnifiedFilestorageFolderOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageFolderOutput: "UnifiedFilestorageFolderOutput", - }); +/** @internal */ +export const CreateFilestorageFolderResponse$outboundSchema: z.ZodType< + CreateFilestorageFolderResponse$Outbound, + z.ZodTypeDef, + CreateFilestorageFolderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageFolderOutput: + components.UnifiedFilestorageFolderOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageFolderOutput: "UnifiedFilestorageFolderOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateFilestorageFolderResponse$ { + /** @deprecated use `CreateFilestorageFolderResponse$inboundSchema` instead. */ + export const inboundSchema = CreateFilestorageFolderResponse$inboundSchema; + /** @deprecated use `CreateFilestorageFolderResponse$outboundSchema` instead. */ + export const outboundSchema = CreateFilestorageFolderResponse$outboundSchema; + /** @deprecated use `CreateFilestorageFolderResponse$Outbound` instead. */ + export type Outbound = CreateFilestorageFolderResponse$Outbound; } diff --git a/src/models/operations/createhrisemployee.ts b/src/models/operations/createhrisemployee.ts index aff159e6..5b1afc64 100644 --- a/src/models/operations/createhrisemployee.ts +++ b/src/models/operations/createhrisemployee.ts @@ -24,72 +24,112 @@ export type CreateHrisEmployeeResponse = { }; /** @internal */ -export namespace CreateHrisEmployeeRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedHrisEmployeeInput: "unifiedHrisEmployeeInput", - }); +export const CreateHrisEmployeeRequest$inboundSchema: z.ZodType< + CreateHrisEmployeeRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedHrisEmployeeInput: "unifiedHrisEmployeeInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$.Outbound; - }; +/** @internal */ +export type CreateHrisEmployeeRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedHrisEmployeeInput: "UnifiedHrisEmployeeInput", - }); +/** @internal */ +export const CreateHrisEmployeeRequest$outboundSchema: z.ZodType< + CreateHrisEmployeeRequest$Outbound, + z.ZodTypeDef, + CreateHrisEmployeeRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedHrisEmployeeInput: "UnifiedHrisEmployeeInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateHrisEmployeeRequest$ { + /** @deprecated use `CreateHrisEmployeeRequest$inboundSchema` instead. */ + export const inboundSchema = CreateHrisEmployeeRequest$inboundSchema; + /** @deprecated use `CreateHrisEmployeeRequest$outboundSchema` instead. */ + export const outboundSchema = CreateHrisEmployeeRequest$outboundSchema; + /** @deprecated use `CreateHrisEmployeeRequest$Outbound` instead. */ + export type Outbound = CreateHrisEmployeeRequest$Outbound; } /** @internal */ -export namespace CreateHrisEmployeeResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisEmployeeOutput: - components.UnifiedHrisEmployeeOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisEmployeeOutput: "unifiedHrisEmployeeOutput", - }); +export const CreateHrisEmployeeResponse$inboundSchema: z.ZodType< + CreateHrisEmployeeResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisEmployeeOutput: components.UnifiedHrisEmployeeOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisEmployeeOutput: "unifiedHrisEmployeeOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisEmployeeOutput?: components.UnifiedHrisEmployeeOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateHrisEmployeeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisEmployeeOutput?: components.UnifiedHrisEmployeeOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisEmployeeOutput: - components.UnifiedHrisEmployeeOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisEmployeeOutput: "UnifiedHrisEmployeeOutput", - }); +/** @internal */ +export const CreateHrisEmployeeResponse$outboundSchema: z.ZodType< + CreateHrisEmployeeResponse$Outbound, + z.ZodTypeDef, + CreateHrisEmployeeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisEmployeeOutput: components.UnifiedHrisEmployeeOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisEmployeeOutput: "UnifiedHrisEmployeeOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateHrisEmployeeResponse$ { + /** @deprecated use `CreateHrisEmployeeResponse$inboundSchema` instead. */ + export const inboundSchema = CreateHrisEmployeeResponse$inboundSchema; + /** @deprecated use `CreateHrisEmployeeResponse$outboundSchema` instead. */ + export const outboundSchema = CreateHrisEmployeeResponse$outboundSchema; + /** @deprecated use `CreateHrisEmployeeResponse$Outbound` instead. */ + export type Outbound = CreateHrisEmployeeResponse$Outbound; } diff --git a/src/models/operations/createhristimeoff.ts b/src/models/operations/createhristimeoff.ts index 7a497408..14562a13 100644 --- a/src/models/operations/createhristimeoff.ts +++ b/src/models/operations/createhristimeoff.ts @@ -24,71 +24,112 @@ export type CreateHrisTimeoffResponse = { }; /** @internal */ -export namespace CreateHrisTimeoffRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedHrisTimeoffInput: "unifiedHrisTimeoffInput", - }); +export const CreateHrisTimeoffRequest$inboundSchema: z.ZodType< + CreateHrisTimeoffRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedHrisTimeoffInput: "unifiedHrisTimeoffInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$.Outbound; - }; +/** @internal */ +export type CreateHrisTimeoffRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedHrisTimeoffInput: "UnifiedHrisTimeoffInput", - }); +/** @internal */ +export const CreateHrisTimeoffRequest$outboundSchema: z.ZodType< + CreateHrisTimeoffRequest$Outbound, + z.ZodTypeDef, + CreateHrisTimeoffRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedHrisTimeoffInput: "UnifiedHrisTimeoffInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateHrisTimeoffRequest$ { + /** @deprecated use `CreateHrisTimeoffRequest$inboundSchema` instead. */ + export const inboundSchema = CreateHrisTimeoffRequest$inboundSchema; + /** @deprecated use `CreateHrisTimeoffRequest$outboundSchema` instead. */ + export const outboundSchema = CreateHrisTimeoffRequest$outboundSchema; + /** @deprecated use `CreateHrisTimeoffRequest$Outbound` instead. */ + export type Outbound = CreateHrisTimeoffRequest$Outbound; } /** @internal */ -export namespace CreateHrisTimeoffResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisTimeoffOutput: "unifiedHrisTimeoffOutput", - }); +export const CreateHrisTimeoffResponse$inboundSchema: z.ZodType< + CreateHrisTimeoffResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisTimeoffOutput: "unifiedHrisTimeoffOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisTimeoffOutput?: components.UnifiedHrisTimeoffOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateHrisTimeoffResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisTimeoffOutput?: components.UnifiedHrisTimeoffOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisTimeoffOutput: - components.UnifiedHrisTimeoffOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisTimeoffOutput: "UnifiedHrisTimeoffOutput", - }); +/** @internal */ +export const CreateHrisTimeoffResponse$outboundSchema: z.ZodType< + CreateHrisTimeoffResponse$Outbound, + z.ZodTypeDef, + CreateHrisTimeoffResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisTimeoffOutput: "UnifiedHrisTimeoffOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateHrisTimeoffResponse$ { + /** @deprecated use `CreateHrisTimeoffResponse$inboundSchema` instead. */ + export const inboundSchema = CreateHrisTimeoffResponse$inboundSchema; + /** @deprecated use `CreateHrisTimeoffResponse$outboundSchema` instead. */ + export const outboundSchema = CreateHrisTimeoffResponse$outboundSchema; + /** @deprecated use `CreateHrisTimeoffResponse$Outbound` instead. */ + export type Outbound = CreateHrisTimeoffResponse$Outbound; } diff --git a/src/models/operations/createlinkeduser.ts b/src/models/operations/createlinkeduser.ts index adc3e1df..2d9680ec 100644 --- a/src/models/operations/createlinkeduser.ts +++ b/src/models/operations/createlinkeduser.ts @@ -11,28 +11,49 @@ export type CreateLinkedUserResponse = { }; /** @internal */ -export namespace CreateLinkedUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const CreateLinkedUserResponse$inboundSchema: z.ZodType< + CreateLinkedUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type CreateLinkedUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const CreateLinkedUserResponse$outboundSchema: z.ZodType< + CreateLinkedUserResponse$Outbound, + z.ZodTypeDef, + CreateLinkedUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateLinkedUserResponse$ { + /** @deprecated use `CreateLinkedUserResponse$inboundSchema` instead. */ + export const inboundSchema = CreateLinkedUserResponse$inboundSchema; + /** @deprecated use `CreateLinkedUserResponse$outboundSchema` instead. */ + export const outboundSchema = CreateLinkedUserResponse$outboundSchema; + /** @deprecated use `CreateLinkedUserResponse$Outbound` instead. */ + export type Outbound = CreateLinkedUserResponse$Outbound; } diff --git a/src/models/operations/createmarketingautomationaction.ts b/src/models/operations/createmarketingautomationaction.ts index 2218a4f6..b7639362 100644 --- a/src/models/operations/createmarketingautomationaction.ts +++ b/src/models/operations/createmarketingautomationaction.ts @@ -26,92 +26,118 @@ export type CreateMarketingautomationActionResponse = { }; /** @internal */ -export namespace CreateMarketingautomationActionRequest$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationActionRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationActionInput: - components.UnifiedMarketingautomationActionInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationActionInput: "unifiedMarketingautomationActionInput", - }); +export const CreateMarketingautomationActionRequest$inboundSchema: z.ZodType< + CreateMarketingautomationActionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationActionInput: + components.UnifiedMarketingautomationActionInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationActionInput: "unifiedMarketingautomationActionInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationActionInput: components.UnifiedMarketingautomationActionInput$.Outbound; - }; +/** @internal */ +export type CreateMarketingautomationActionRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationActionInput: components.UnifiedMarketingautomationActionInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationActionRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationActionInput: - components.UnifiedMarketingautomationActionInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationActionInput: "UnifiedMarketingautomationActionInput", - }); +/** @internal */ +export const CreateMarketingautomationActionRequest$outboundSchema: z.ZodType< + CreateMarketingautomationActionRequest$Outbound, + z.ZodTypeDef, + CreateMarketingautomationActionRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationActionInput: + components.UnifiedMarketingautomationActionInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationActionInput: "UnifiedMarketingautomationActionInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationActionRequest$ { + /** @deprecated use `CreateMarketingautomationActionRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationActionRequest$inboundSchema; + /** @deprecated use `CreateMarketingautomationActionRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationActionRequest$outboundSchema; + /** @deprecated use `CreateMarketingautomationActionRequest$Outbound` instead. */ + export type Outbound = CreateMarketingautomationActionRequest$Outbound; } /** @internal */ -export namespace CreateMarketingautomationActionResponse$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationActionResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationActionOutput: - components.UnifiedMarketingautomationActionOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationActionOutput: "unifiedMarketingautomationActionOutput", - }); +export const CreateMarketingautomationActionResponse$inboundSchema: z.ZodType< + CreateMarketingautomationActionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationActionOutput: + components.UnifiedMarketingautomationActionOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationActionOutput: "unifiedMarketingautomationActionOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationActionOutput?: - | components.UnifiedMarketingautomationActionOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateMarketingautomationActionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationActionOutput?: + | components.UnifiedMarketingautomationActionOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationActionResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationActionOutput: - components.UnifiedMarketingautomationActionOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationActionOutput: "UnifiedMarketingautomationActionOutput", - }); +/** @internal */ +export const CreateMarketingautomationActionResponse$outboundSchema: z.ZodType< + CreateMarketingautomationActionResponse$Outbound, + z.ZodTypeDef, + CreateMarketingautomationActionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationActionOutput: + components.UnifiedMarketingautomationActionOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationActionOutput: "UnifiedMarketingautomationActionOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationActionResponse$ { + /** @deprecated use `CreateMarketingautomationActionResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationActionResponse$inboundSchema; + /** @deprecated use `CreateMarketingautomationActionResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationActionResponse$outboundSchema; + /** @deprecated use `CreateMarketingautomationActionResponse$Outbound` instead. */ + export type Outbound = CreateMarketingautomationActionResponse$Outbound; } diff --git a/src/models/operations/createmarketingautomationautomation.ts b/src/models/operations/createmarketingautomationautomation.ts index 446194d8..9b0154b8 100644 --- a/src/models/operations/createmarketingautomationautomation.ts +++ b/src/models/operations/createmarketingautomationautomation.ts @@ -26,96 +26,120 @@ export type CreateMarketingautomationAutomationResponse = { }; /** @internal */ -export namespace CreateMarketingautomationAutomationRequest$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationAutomationRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationAutomationInput: - components.UnifiedMarketingautomationAutomationInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationAutomationInput: - "unifiedMarketingautomationAutomationInput", - }); +export const CreateMarketingautomationAutomationRequest$inboundSchema: z.ZodType< + CreateMarketingautomationAutomationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationAutomationInput: + components.UnifiedMarketingautomationAutomationInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationAutomationInput: "unifiedMarketingautomationAutomationInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationAutomationInput: components.UnifiedMarketingautomationAutomationInput$.Outbound; - }; +/** @internal */ +export type CreateMarketingautomationAutomationRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationAutomationInput: components.UnifiedMarketingautomationAutomationInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationAutomationRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationAutomationInput: - components.UnifiedMarketingautomationAutomationInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationAutomationInput: - "UnifiedMarketingautomationAutomationInput", - }); +/** @internal */ +export const CreateMarketingautomationAutomationRequest$outboundSchema: z.ZodType< + CreateMarketingautomationAutomationRequest$Outbound, + z.ZodTypeDef, + CreateMarketingautomationAutomationRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationAutomationInput: + components.UnifiedMarketingautomationAutomationInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationAutomationInput: "UnifiedMarketingautomationAutomationInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationAutomationRequest$ { + /** @deprecated use `CreateMarketingautomationAutomationRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationAutomationRequest$inboundSchema; + /** @deprecated use `CreateMarketingautomationAutomationRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationAutomationRequest$outboundSchema; + /** @deprecated use `CreateMarketingautomationAutomationRequest$Outbound` instead. */ + export type Outbound = CreateMarketingautomationAutomationRequest$Outbound; } /** @internal */ -export namespace CreateMarketingautomationAutomationResponse$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationAutomationResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, +export const CreateMarketingautomationAutomationResponse$inboundSchema: z.ZodType< + CreateMarketingautomationAutomationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationAutomationOutput: + components.UnifiedMarketingautomationAutomationOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", UnifiedMarketingautomationAutomationOutput: - components.UnifiedMarketingautomationAutomationOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationAutomationOutput: - "unifiedMarketingautomationAutomationOutput", - }); + "unifiedMarketingautomationAutomationOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationAutomationOutput?: - | components.UnifiedMarketingautomationAutomationOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateMarketingautomationAutomationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationAutomationOutput?: + | components.UnifiedMarketingautomationAutomationOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationAutomationResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, +/** @internal */ +export const CreateMarketingautomationAutomationResponse$outboundSchema: z.ZodType< + CreateMarketingautomationAutomationResponse$Outbound, + z.ZodTypeDef, + CreateMarketingautomationAutomationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationAutomationOutput: + components.UnifiedMarketingautomationAutomationOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", unifiedMarketingautomationAutomationOutput: - components.UnifiedMarketingautomationAutomationOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationAutomationOutput: - "UnifiedMarketingautomationAutomationOutput", - }); + "UnifiedMarketingautomationAutomationOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationAutomationResponse$ { + /** @deprecated use `CreateMarketingautomationAutomationResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationAutomationResponse$inboundSchema; + /** @deprecated use `CreateMarketingautomationAutomationResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationAutomationResponse$outboundSchema; + /** @deprecated use `CreateMarketingautomationAutomationResponse$Outbound` instead. */ + export type Outbound = CreateMarketingautomationAutomationResponse$Outbound; } diff --git a/src/models/operations/createmarketingautomationcampaign.ts b/src/models/operations/createmarketingautomationcampaign.ts index bc9718ac..0471613b 100644 --- a/src/models/operations/createmarketingautomationcampaign.ts +++ b/src/models/operations/createmarketingautomationcampaign.ts @@ -24,88 +24,114 @@ export type CreateMarketingautomationCampaignResponse = { }; /** @internal */ -export namespace CreateMarketingautomationCampaignRequest$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationCampaignRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedMarketingautomationCampaignInput: - components.UnifiedMarketingautomationCampaignInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedMarketingautomationCampaignInput: "unifiedMarketingautomationCampaignInput", - }); +export const CreateMarketingautomationCampaignRequest$inboundSchema: z.ZodType< + CreateMarketingautomationCampaignRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationCampaignInput: + components.UnifiedMarketingautomationCampaignInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationCampaignInput: "unifiedMarketingautomationCampaignInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedMarketingautomationCampaignInput: components.UnifiedMarketingautomationCampaignInput$.Outbound; - }; +/** @internal */ +export type CreateMarketingautomationCampaignRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationCampaignInput: components.UnifiedMarketingautomationCampaignInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationCampaignRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedMarketingautomationCampaignInput: - components.UnifiedMarketingautomationCampaignInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedMarketingautomationCampaignInput: "UnifiedMarketingautomationCampaignInput", - }); +/** @internal */ +export const CreateMarketingautomationCampaignRequest$outboundSchema: z.ZodType< + CreateMarketingautomationCampaignRequest$Outbound, + z.ZodTypeDef, + CreateMarketingautomationCampaignRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationCampaignInput: + components.UnifiedMarketingautomationCampaignInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationCampaignInput: "UnifiedMarketingautomationCampaignInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationCampaignRequest$ { + /** @deprecated use `CreateMarketingautomationCampaignRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationCampaignRequest$inboundSchema; + /** @deprecated use `CreateMarketingautomationCampaignRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationCampaignRequest$outboundSchema; + /** @deprecated use `CreateMarketingautomationCampaignRequest$Outbound` instead. */ + export type Outbound = CreateMarketingautomationCampaignRequest$Outbound; } /** @internal */ -export namespace CreateMarketingautomationCampaignResponse$ { - export const inboundSchema: z.ZodType< - CreateMarketingautomationCampaignResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCampaignOutput: components.UnifiedCampaignOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCampaignOutput: "unifiedCampaignOutput", - }); +export const CreateMarketingautomationCampaignResponse$inboundSchema: z.ZodType< + CreateMarketingautomationCampaignResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCampaignOutput: components.UnifiedCampaignOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCampaignOutput: "unifiedCampaignOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCampaignOutput?: components.UnifiedCampaignOutput$.Outbound | undefined; - }; +/** @internal */ +export type CreateMarketingautomationCampaignResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCampaignOutput?: components.UnifiedCampaignOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateMarketingautomationCampaignResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCampaignOutput: components.UnifiedCampaignOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCampaignOutput: "UnifiedCampaignOutput", - }); +/** @internal */ +export const CreateMarketingautomationCampaignResponse$outboundSchema: z.ZodType< + CreateMarketingautomationCampaignResponse$Outbound, + z.ZodTypeDef, + CreateMarketingautomationCampaignResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCampaignOutput: components.UnifiedCampaignOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCampaignOutput: "UnifiedCampaignOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationCampaignResponse$ { + /** @deprecated use `CreateMarketingautomationCampaignResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationCampaignResponse$inboundSchema; + /** @deprecated use `CreateMarketingautomationCampaignResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationCampaignResponse$outboundSchema; + /** @deprecated use `CreateMarketingautomationCampaignResponse$Outbound` instead. */ + export type Outbound = CreateMarketingautomationCampaignResponse$Outbound; } diff --git a/src/models/operations/createmarketingautomationcontact.ts b/src/models/operations/createmarketingautomationcontact.ts new file mode 100644 index 00000000..abdc931f --- /dev/null +++ b/src/models/operations/createmarketingautomationcontact.ts @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type CreateMarketingAutomationContactRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; + unifiedMarketingautomationContactInput: components.UnifiedMarketingautomationContactInput; +}; + +export type CreateMarketingAutomationContactResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationContactOutput?: + | components.UnifiedMarketingautomationContactOutput + | undefined; +}; + +/** @internal */ +export const CreateMarketingAutomationContactRequest$inboundSchema: z.ZodType< + CreateMarketingAutomationContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationContactInput: + components.UnifiedMarketingautomationContactInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationContactInput: "unifiedMarketingautomationContactInput", + }); + }); + +/** @internal */ +export type CreateMarketingAutomationContactRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationContactInput: components.UnifiedMarketingautomationContactInput$Outbound; +}; + +/** @internal */ +export const CreateMarketingAutomationContactRequest$outboundSchema: z.ZodType< + CreateMarketingAutomationContactRequest$Outbound, + z.ZodTypeDef, + CreateMarketingAutomationContactRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationContactInput: + components.UnifiedMarketingautomationContactInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationContactInput: "UnifiedMarketingautomationContactInput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingAutomationContactRequest$ { + /** @deprecated use `CreateMarketingAutomationContactRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingAutomationContactRequest$inboundSchema; + /** @deprecated use `CreateMarketingAutomationContactRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingAutomationContactRequest$outboundSchema; + /** @deprecated use `CreateMarketingAutomationContactRequest$Outbound` instead. */ + export type Outbound = CreateMarketingAutomationContactRequest$Outbound; +} + +/** @internal */ +export const CreateMarketingAutomationContactResponse$inboundSchema: z.ZodType< + CreateMarketingAutomationContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationContactOutput: + components.UnifiedMarketingautomationContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationContactOutput: "unifiedMarketingautomationContactOutput", + }); + }); + +/** @internal */ +export type CreateMarketingAutomationContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationContactOutput?: + | components.UnifiedMarketingautomationContactOutput$Outbound + | undefined; +}; + +/** @internal */ +export const CreateMarketingAutomationContactResponse$outboundSchema: z.ZodType< + CreateMarketingAutomationContactResponse$Outbound, + z.ZodTypeDef, + CreateMarketingAutomationContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationContactOutput: + components.UnifiedMarketingautomationContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationContactOutput: "UnifiedMarketingautomationContactOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingAutomationContactResponse$ { + /** @deprecated use `CreateMarketingAutomationContactResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingAutomationContactResponse$inboundSchema; + /** @deprecated use `CreateMarketingAutomationContactResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingAutomationContactResponse$outboundSchema; + /** @deprecated use `CreateMarketingAutomationContactResponse$Outbound` instead. */ + export type Outbound = CreateMarketingAutomationContactResponse$Outbound; +} diff --git a/src/models/operations/createmarketingautomationlist.ts b/src/models/operations/createmarketingautomationlist.ts new file mode 100644 index 00000000..2e451891 --- /dev/null +++ b/src/models/operations/createmarketingautomationlist.ts @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type CreateMarketingautomationListRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; + unifiedMarketingautomationListInput: components.UnifiedMarketingautomationListInput; +}; + +export type CreateMarketingautomationListResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationListOutput?: + | components.UnifiedMarketingautomationListOutput + | undefined; +}; + +/** @internal */ +export const CreateMarketingautomationListRequest$inboundSchema: z.ZodType< + CreateMarketingautomationListRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationListInput: + components.UnifiedMarketingautomationListInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationListInput: "unifiedMarketingautomationListInput", + }); + }); + +/** @internal */ +export type CreateMarketingautomationListRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationListInput: components.UnifiedMarketingautomationListInput$Outbound; +}; + +/** @internal */ +export const CreateMarketingautomationListRequest$outboundSchema: z.ZodType< + CreateMarketingautomationListRequest$Outbound, + z.ZodTypeDef, + CreateMarketingautomationListRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationListInput: + components.UnifiedMarketingautomationListInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationListInput: "UnifiedMarketingautomationListInput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationListRequest$ { + /** @deprecated use `CreateMarketingautomationListRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationListRequest$inboundSchema; + /** @deprecated use `CreateMarketingautomationListRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationListRequest$outboundSchema; + /** @deprecated use `CreateMarketingautomationListRequest$Outbound` instead. */ + export type Outbound = CreateMarketingautomationListRequest$Outbound; +} + +/** @internal */ +export const CreateMarketingautomationListResponse$inboundSchema: z.ZodType< + CreateMarketingautomationListResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationListOutput: + components.UnifiedMarketingautomationListOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationListOutput: "unifiedMarketingautomationListOutput", + }); + }); + +/** @internal */ +export type CreateMarketingautomationListResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationListOutput?: + | components.UnifiedMarketingautomationListOutput$Outbound + | undefined; +}; + +/** @internal */ +export const CreateMarketingautomationListResponse$outboundSchema: z.ZodType< + CreateMarketingautomationListResponse$Outbound, + z.ZodTypeDef, + CreateMarketingautomationListResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationListOutput: + components.UnifiedMarketingautomationListOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationListOutput: "UnifiedMarketingautomationListOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationListResponse$ { + /** @deprecated use `CreateMarketingautomationListResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationListResponse$inboundSchema; + /** @deprecated use `CreateMarketingautomationListResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationListResponse$outboundSchema; + /** @deprecated use `CreateMarketingautomationListResponse$Outbound` instead. */ + export type Outbound = CreateMarketingautomationListResponse$Outbound; +} diff --git a/src/models/operations/createmarketingautomationtemplate.ts b/src/models/operations/createmarketingautomationtemplate.ts new file mode 100644 index 00000000..c2009715 --- /dev/null +++ b/src/models/operations/createmarketingautomationtemplate.ts @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type CreateMarketingautomationTemplateRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; + unifiedMarketingautomationTemplateInput: components.UnifiedMarketingautomationTemplateInput; +}; + +export type CreateMarketingautomationTemplateResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationTemplateOutput?: + | components.UnifiedMarketingautomationTemplateOutput + | undefined; +}; + +/** @internal */ +export const CreateMarketingautomationTemplateRequest$inboundSchema: z.ZodType< + CreateMarketingautomationTemplateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedMarketingautomationTemplateInput: + components.UnifiedMarketingautomationTemplateInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedMarketingautomationTemplateInput: "unifiedMarketingautomationTemplateInput", + }); + }); + +/** @internal */ +export type CreateMarketingautomationTemplateRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedMarketingautomationTemplateInput: components.UnifiedMarketingautomationTemplateInput$Outbound; +}; + +/** @internal */ +export const CreateMarketingautomationTemplateRequest$outboundSchema: z.ZodType< + CreateMarketingautomationTemplateRequest$Outbound, + z.ZodTypeDef, + CreateMarketingautomationTemplateRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedMarketingautomationTemplateInput: + components.UnifiedMarketingautomationTemplateInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedMarketingautomationTemplateInput: "UnifiedMarketingautomationTemplateInput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationTemplateRequest$ { + /** @deprecated use `CreateMarketingautomationTemplateRequest$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationTemplateRequest$inboundSchema; + /** @deprecated use `CreateMarketingautomationTemplateRequest$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationTemplateRequest$outboundSchema; + /** @deprecated use `CreateMarketingautomationTemplateRequest$Outbound` instead. */ + export type Outbound = CreateMarketingautomationTemplateRequest$Outbound; +} + +/** @internal */ +export const CreateMarketingautomationTemplateResponse$inboundSchema: z.ZodType< + CreateMarketingautomationTemplateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationTemplateOutput: + components.UnifiedMarketingautomationTemplateOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationTemplateOutput: "unifiedMarketingautomationTemplateOutput", + }); + }); + +/** @internal */ +export type CreateMarketingautomationTemplateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationTemplateOutput?: + | components.UnifiedMarketingautomationTemplateOutput$Outbound + | undefined; +}; + +/** @internal */ +export const CreateMarketingautomationTemplateResponse$outboundSchema: z.ZodType< + CreateMarketingautomationTemplateResponse$Outbound, + z.ZodTypeDef, + CreateMarketingautomationTemplateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationTemplateOutput: + components.UnifiedMarketingautomationTemplateOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationTemplateOutput: "UnifiedMarketingautomationTemplateOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateMarketingautomationTemplateResponse$ { + /** @deprecated use `CreateMarketingautomationTemplateResponse$inboundSchema` instead. */ + export const inboundSchema = CreateMarketingautomationTemplateResponse$inboundSchema; + /** @deprecated use `CreateMarketingautomationTemplateResponse$outboundSchema` instead. */ + export const outboundSchema = CreateMarketingautomationTemplateResponse$outboundSchema; + /** @deprecated use `CreateMarketingautomationTemplateResponse$Outbound` instead. */ + export type Outbound = CreateMarketingautomationTemplateResponse$Outbound; +} diff --git a/src/models/operations/createticketingattachment.ts b/src/models/operations/createticketingattachment.ts index 7ae870dc..6bd2f425 100644 --- a/src/models/operations/createticketingattachment.ts +++ b/src/models/operations/createticketingattachment.ts @@ -24,89 +24,116 @@ export type CreateTicketingAttachmentResponse = { }; /** @internal */ -export namespace CreateTicketingAttachmentRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedTicketingAttachmentInput: - components.UnifiedTicketingAttachmentInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedTicketingAttachmentInput: "unifiedTicketingAttachmentInput", - }); - }); +export const CreateTicketingAttachmentRequest$inboundSchema: z.ZodType< + CreateTicketingAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedTicketingAttachmentInput: components.UnifiedTicketingAttachmentInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedTicketingAttachmentInput: "unifiedTicketingAttachmentInput", + }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedTicketingAttachmentInput: components.UnifiedTicketingAttachmentInput$.Outbound; - }; +/** @internal */ +export type CreateTicketingAttachmentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedTicketingAttachmentInput: components.UnifiedTicketingAttachmentInput$Outbound; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateTicketingAttachmentRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedTicketingAttachmentInput: - components.UnifiedTicketingAttachmentInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedTicketingAttachmentInput: "UnifiedTicketingAttachmentInput", - }); +/** @internal */ +export const CreateTicketingAttachmentRequest$outboundSchema: z.ZodType< + CreateTicketingAttachmentRequest$Outbound, + z.ZodTypeDef, + CreateTicketingAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedTicketingAttachmentInput: components.UnifiedTicketingAttachmentInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedTicketingAttachmentInput: "UnifiedTicketingAttachmentInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingAttachmentRequest$ { + /** @deprecated use `CreateTicketingAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingAttachmentRequest$inboundSchema; + /** @deprecated use `CreateTicketingAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingAttachmentRequest$outboundSchema; + /** @deprecated use `CreateTicketingAttachmentRequest$Outbound` instead. */ + export type Outbound = CreateTicketingAttachmentRequest$Outbound; } /** @internal */ -export namespace CreateTicketingAttachmentResponse$ { - export const inboundSchema: z.ZodType< - CreateTicketingAttachmentResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingAttachmentOutput: - components.UnifiedTicketingAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingAttachmentOutput: "unifiedTicketingAttachmentOutput", - }); +export const CreateTicketingAttachmentResponse$inboundSchema: z.ZodType< + CreateTicketingAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingAttachmentOutput: + components.UnifiedTicketingAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingAttachmentOutput: "unifiedTicketingAttachmentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingAttachmentOutput?: - | components.UnifiedTicketingAttachmentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateTicketingAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingAttachmentOutput?: + | components.UnifiedTicketingAttachmentOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - CreateTicketingAttachmentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingAttachmentOutput: - components.UnifiedTicketingAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingAttachmentOutput: "UnifiedTicketingAttachmentOutput", - }); +/** @internal */ +export const CreateTicketingAttachmentResponse$outboundSchema: z.ZodType< + CreateTicketingAttachmentResponse$Outbound, + z.ZodTypeDef, + CreateTicketingAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingAttachmentOutput: + components.UnifiedTicketingAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingAttachmentOutput: "UnifiedTicketingAttachmentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingAttachmentResponse$ { + /** @deprecated use `CreateTicketingAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingAttachmentResponse$inboundSchema; + /** @deprecated use `CreateTicketingAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingAttachmentResponse$outboundSchema; + /** @deprecated use `CreateTicketingAttachmentResponse$Outbound` instead. */ + export type Outbound = CreateTicketingAttachmentResponse$Outbound; } diff --git a/src/models/operations/createticketingcomment.ts b/src/models/operations/createticketingcomment.ts index 461faa63..61513f7a 100644 --- a/src/models/operations/createticketingcomment.ts +++ b/src/models/operations/createticketingcomment.ts @@ -24,77 +24,114 @@ export type CreateTicketingCommentResponse = { }; /** @internal */ -export namespace CreateTicketingCommentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedTicketingCommentInput: components.UnifiedTicketingCommentInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedTicketingCommentInput: "unifiedTicketingCommentInput", - }); +export const CreateTicketingCommentRequest$inboundSchema: z.ZodType< + CreateTicketingCommentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedTicketingCommentInput: components.UnifiedTicketingCommentInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedTicketingCommentInput: "unifiedTicketingCommentInput", }); + }); + +/** @internal */ +export type CreateTicketingCommentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedTicketingCommentInput: components.UnifiedTicketingCommentInput$Outbound; +}; - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedTicketingCommentInput: components.UnifiedTicketingCommentInput$.Outbound; - }; +/** @internal */ +export const CreateTicketingCommentRequest$outboundSchema: z.ZodType< + CreateTicketingCommentRequest$Outbound, + z.ZodTypeDef, + CreateTicketingCommentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedTicketingCommentInput: components.UnifiedTicketingCommentInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedTicketingCommentInput: "UnifiedTicketingCommentInput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedTicketingCommentInput: - components.UnifiedTicketingCommentInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedTicketingCommentInput: "UnifiedTicketingCommentInput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingCommentRequest$ { + /** @deprecated use `CreateTicketingCommentRequest$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingCommentRequest$inboundSchema; + /** @deprecated use `CreateTicketingCommentRequest$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingCommentRequest$outboundSchema; + /** @deprecated use `CreateTicketingCommentRequest$Outbound` instead. */ + export type Outbound = CreateTicketingCommentRequest$Outbound; } /** @internal */ -export namespace CreateTicketingCommentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingCommentOutput: - components.UnifiedTicketingCommentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingCommentOutput: "unifiedTicketingCommentOutput", - }); +export const CreateTicketingCommentResponse$inboundSchema: z.ZodType< + CreateTicketingCommentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingCommentOutput: + components.UnifiedTicketingCommentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingCommentOutput: "unifiedTicketingCommentOutput", }); + }); + +/** @internal */ +export type CreateTicketingCommentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingCommentOutput?: components.UnifiedTicketingCommentOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingCommentOutput?: - | components.UnifiedTicketingCommentOutput$.Outbound - | undefined; - }; +/** @internal */ +export const CreateTicketingCommentResponse$outboundSchema: z.ZodType< + CreateTicketingCommentResponse$Outbound, + z.ZodTypeDef, + CreateTicketingCommentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingCommentOutput: + components.UnifiedTicketingCommentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingCommentOutput: "UnifiedTicketingCommentOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingCommentOutput: - components.UnifiedTicketingCommentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingCommentOutput: "UnifiedTicketingCommentOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingCommentResponse$ { + /** @deprecated use `CreateTicketingCommentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingCommentResponse$inboundSchema; + /** @deprecated use `CreateTicketingCommentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingCommentResponse$outboundSchema; + /** @deprecated use `CreateTicketingCommentResponse$Outbound` instead. */ + export type Outbound = CreateTicketingCommentResponse$Outbound; } diff --git a/src/models/operations/createticketingticket.ts b/src/models/operations/createticketingticket.ts index b6e19cf3..1b3390cc 100644 --- a/src/models/operations/createticketingticket.ts +++ b/src/models/operations/createticketingticket.ts @@ -24,75 +24,114 @@ export type CreateTicketingTicketResponse = { }; /** @internal */ -export namespace CreateTicketingTicketRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - UnifiedTicketingTicketInput: "unifiedTicketingTicketInput", - }); +export const CreateTicketingTicketRequest$inboundSchema: z.ZodType< + CreateTicketingTicketRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + UnifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + UnifiedTicketingTicketInput: "unifiedTicketingTicketInput", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$.Outbound; - }; +/** @internal */ +export type CreateTicketingTicketRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + UnifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedTicketingTicketInput: "UnifiedTicketingTicketInput", - }); +/** @internal */ +export const CreateTicketingTicketRequest$outboundSchema: z.ZodType< + CreateTicketingTicketRequest$Outbound, + z.ZodTypeDef, + CreateTicketingTicketRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + unifiedTicketingTicketInput: components.UnifiedTicketingTicketInput$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + unifiedTicketingTicketInput: "UnifiedTicketingTicketInput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingTicketRequest$ { + /** @deprecated use `CreateTicketingTicketRequest$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingTicketRequest$inboundSchema; + /** @deprecated use `CreateTicketingTicketRequest$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingTicketRequest$outboundSchema; + /** @deprecated use `CreateTicketingTicketRequest$Outbound` instead. */ + export type Outbound = CreateTicketingTicketRequest$Outbound; } /** @internal */ -export namespace CreateTicketingTicketResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingTicketOutput: - components.UnifiedTicketingTicketOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingTicketOutput: "unifiedTicketingTicketOutput", - }); +export const CreateTicketingTicketResponse$inboundSchema: z.ZodType< + CreateTicketingTicketResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingTicketOutput: + components.UnifiedTicketingTicketOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingTicketOutput: "unifiedTicketingTicketOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingTicketOutput?: - | components.UnifiedTicketingTicketOutput$.Outbound - | undefined; - }; +/** @internal */ +export type CreateTicketingTicketResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingTicketOutput?: components.UnifiedTicketingTicketOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingTicketOutput: - components.UnifiedTicketingTicketOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingTicketOutput: "UnifiedTicketingTicketOutput", - }); - }); +/** @internal */ +export const CreateTicketingTicketResponse$outboundSchema: z.ZodType< + CreateTicketingTicketResponse$Outbound, + z.ZodTypeDef, + CreateTicketingTicketResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingTicketOutput: + components.UnifiedTicketingTicketOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingTicketOutput: "UnifiedTicketingTicketOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateTicketingTicketResponse$ { + /** @deprecated use `CreateTicketingTicketResponse$inboundSchema` instead. */ + export const inboundSchema = CreateTicketingTicketResponse$inboundSchema; + /** @deprecated use `CreateTicketingTicketResponse$outboundSchema` instead. */ + export const outboundSchema = CreateTicketingTicketResponse$outboundSchema; + /** @deprecated use `CreateTicketingTicketResponse$Outbound` instead. */ + export type Outbound = CreateTicketingTicketResponse$Outbound; } diff --git a/src/models/operations/createwebhook.ts b/src/models/operations/createwebhook.ts index 40eae0d5..6c8d9820 100644 --- a/src/models/operations/createwebhook.ts +++ b/src/models/operations/createwebhook.ts @@ -12,33 +12,54 @@ export type CreateWebhookResponse = { }; /** @internal */ -export namespace CreateWebhookResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - WebhookResponse: components.WebhookResponse$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - WebhookResponse: "webhookResponse", - }); +export const CreateWebhookResponse$inboundSchema: z.ZodType< + CreateWebhookResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + WebhookResponse: components.WebhookResponse$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + WebhookResponse: "webhookResponse", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - WebhookResponse?: components.WebhookResponse$.Outbound | undefined; - }; +/** @internal */ +export type CreateWebhookResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + WebhookResponse?: components.WebhookResponse$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - webhookResponse: components.WebhookResponse$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - webhookResponse: "WebhookResponse", - }); +/** @internal */ +export const CreateWebhookResponse$outboundSchema: z.ZodType< + CreateWebhookResponse$Outbound, + z.ZodTypeDef, + CreateWebhookResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + webhookResponse: components.WebhookResponse$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + webhookResponse: "WebhookResponse", }); + }); + +/** + * @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; } diff --git a/src/models/operations/define.ts b/src/models/operations/define.ts index 1faafea5..9f211266 100644 --- a/src/models/operations/define.ts +++ b/src/models/operations/define.ts @@ -11,28 +11,45 @@ export type DefineResponse = { }; /** @internal */ -export namespace DefineResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const DefineResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type DefineResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const DefineResponse$outboundSchema: z.ZodType< + DefineResponse$Outbound, + z.ZodTypeDef, + DefineResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DefineResponse$ { + /** @deprecated use `DefineResponse$inboundSchema` instead. */ + export const inboundSchema = DefineResponse$inboundSchema; + /** @deprecated use `DefineResponse$outboundSchema` instead. */ + export const outboundSchema = DefineResponse$outboundSchema; + /** @deprecated use `DefineResponse$Outbound` instead. */ + export type Outbound = DefineResponse$Outbound; } diff --git a/src/models/operations/delete.ts b/src/models/operations/delete.ts new file mode 100644 index 00000000..27c37944 --- /dev/null +++ b/src/models/operations/delete.ts @@ -0,0 +1,98 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type DeleteRequest = { + id: string; +}; + +export type DeleteResponse = { + httpMeta: components.HTTPMetadata; + webhookResponse?: components.WebhookResponse | undefined; +}; + +/** @internal */ +export const DeleteRequest$inboundSchema: z.ZodType = + z.object({ + id: z.string(), + }); + +/** @internal */ +export type DeleteRequest$Outbound = { + id: string; +}; + +/** @internal */ +export const DeleteRequest$outboundSchema: z.ZodType< + DeleteRequest$Outbound, + z.ZodTypeDef, + DeleteRequest +> = 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 DeleteRequest$ { + /** @deprecated use `DeleteRequest$inboundSchema` instead. */ + export const inboundSchema = DeleteRequest$inboundSchema; + /** @deprecated use `DeleteRequest$outboundSchema` instead. */ + export const outboundSchema = DeleteRequest$outboundSchema; + /** @deprecated use `DeleteRequest$Outbound` instead. */ + export type Outbound = DeleteRequest$Outbound; +} + +/** @internal */ +export const DeleteResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + WebhookResponse: components.WebhookResponse$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + WebhookResponse: "webhookResponse", + }); + }); + +/** @internal */ +export type DeleteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + WebhookResponse?: components.WebhookResponse$Outbound | undefined; +}; + +/** @internal */ +export const DeleteResponse$outboundSchema: z.ZodType< + DeleteResponse$Outbound, + z.ZodTypeDef, + DeleteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + webhookResponse: components.WebhookResponse$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + webhookResponse: "WebhookResponse", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteResponse$ { + /** @deprecated use `DeleteResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteResponse$inboundSchema; + /** @deprecated use `DeleteResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteResponse$outboundSchema; + /** @deprecated use `DeleteResponse$Outbound` instead. */ + export type Outbound = DeleteResponse$Outbound; +} diff --git a/src/models/operations/deletewebhook.ts b/src/models/operations/deletewebhook.ts deleted file mode 100644 index dfcddf17..00000000 --- a/src/models/operations/deletewebhook.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type DeleteWebhookRequest = { - id: string; -}; - -export type DeleteWebhookResponse = { - httpMeta: components.HTTPMetadata; - webhookResponse?: components.WebhookResponse | undefined; -}; - -/** @internal */ -export namespace DeleteWebhookRequest$ { - export const inboundSchema: z.ZodType = z.object({ - id: z.string(), - }); - - export type Outbound = { - id: string; - }; - - export const outboundSchema: z.ZodType = z.object( - { - id: z.string(), - } - ); -} - -/** @internal */ -export namespace DeleteWebhookResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - WebhookResponse: components.WebhookResponse$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - WebhookResponse: "webhookResponse", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - WebhookResponse?: components.WebhookResponse$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - webhookResponse: components.WebhookResponse$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - webhookResponse: "WebhookResponse", - }); - }); -} diff --git a/src/models/operations/getcrmcontact.ts b/src/models/operations/getcrmcontact.ts deleted file mode 100644 index 2bc1a8f7..00000000 --- a/src/models/operations/getcrmcontact.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetCrmContactRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the `contact` you want to retrive. - */ - id: string; - /** - * Set to true to include data from the original CRM software. - */ - remoteData?: boolean | undefined; -}; - -export type GetCrmContactResponse = { - httpMeta: components.HTTPMetadata; - unifiedCrmContactOutput?: components.UnifiedCrmContactOutput | undefined; -}; - -/** @internal */ -export namespace GetCrmContactRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetCrmContactResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmContactOutput: components.UnifiedCrmContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmContactOutput: "unifiedCrmContactOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmContactOutput?: components.UnifiedCrmContactOutput$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmContactOutput: components.UnifiedCrmContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmContactOutput: "UnifiedCrmContactOutput", - }); - }); -} diff --git a/src/models/operations/getdepartment.ts b/src/models/operations/getdepartment.ts deleted file mode 100644 index cbd6c684..00000000 --- a/src/models/operations/getdepartment.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetDepartmentRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the department you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -export type GetDepartmentResponse = { - httpMeta: components.HTTPMetadata; - unifiedAtsDepartmentOutput?: components.UnifiedAtsDepartmentOutput | undefined; -}; - -/** @internal */ -export namespace GetDepartmentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetDepartmentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsDepartmentOutput: - components.UnifiedAtsDepartmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsDepartmentOutput: "unifiedAtsDepartmentOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsDepartmentOutput?: components.UnifiedAtsDepartmentOutput$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsDepartmentOutput: - components.UnifiedAtsDepartmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsDepartmentOutput: "UnifiedAtsDepartmentOutput", - }); - }); -} diff --git a/src/models/operations/getdepartments.ts b/src/models/operations/getdepartments.ts deleted file mode 100644 index 6a77183e..00000000 --- a/src/models/operations/getdepartments.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetDepartmentsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetDepartmentsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetDepartmentsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetDepartmentsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetDepartmentsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetDepartmentsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsDepartmentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsDepartmentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetDepartmentsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetDepartmentsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetDepartmentsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetDepartmentsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getemail.ts b/src/models/operations/getemail.ts deleted file mode 100644 index d46fce0b..00000000 --- a/src/models/operations/getemail.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetEmailRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the email you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetEmailResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationEmailOutput?: - | components.UnifiedMarketingautomationEmailOutput - | undefined; -}; - -/** @internal */ -export namespace GetEmailRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetEmailResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationEmailOutput: - components.UnifiedMarketingautomationEmailOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationEmailOutput: "unifiedMarketingautomationEmailOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationEmailOutput?: - | components.UnifiedMarketingautomationEmailOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationEmailOutput: - components.UnifiedMarketingautomationEmailOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationEmailOutput: "UnifiedMarketingautomationEmailOutput", - }); - }); -} diff --git a/src/models/operations/getemails.ts b/src/models/operations/getemails.ts deleted file mode 100644 index d38a8c21..00000000 --- a/src/models/operations/getemails.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetEmailsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetEmailsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetEmailsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetEmailsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetEmailsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetEmailsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationEmailOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationEmailOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetEmailsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetEmailsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetEmailsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetEmailsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getevent.ts b/src/models/operations/getevent.ts deleted file mode 100644 index 38a85c5f..00000000 --- a/src/models/operations/getevent.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetEventRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the event you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetEventResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationEventOutput?: - | components.UnifiedMarketingautomationEventOutput - | undefined; -}; - -/** @internal */ -export namespace GetEventRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetEventResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationEventOutput: - components.UnifiedMarketingautomationEventOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationEventOutput: "unifiedMarketingautomationEventOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationEventOutput?: - | components.UnifiedMarketingautomationEventOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationEventOutput: - components.UnifiedMarketingautomationEventOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationEventOutput: "UnifiedMarketingautomationEventOutput", - }); - }); -} diff --git a/src/models/operations/gethealth.ts b/src/models/operations/gethealth.ts deleted file mode 100644 index 1841055d..00000000 --- a/src/models/operations/gethealth.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetHealthResponse = { - httpMeta: components.HTTPMetadata; - number?: number | undefined; -}; - -/** @internal */ -export namespace GetHealthResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - number: z.number().optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - number?: number | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - number: z.number().optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/gethelloprotected.ts b/src/models/operations/gethelloprotected.ts deleted file mode 100644 index 5750b4c0..00000000 --- a/src/models/operations/gethelloprotected.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetHelloProtectedResponse = { - httpMeta: components.HTTPMetadata; - string?: string | undefined; -}; - -/** @internal */ -export namespace GetHelloProtectedResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - string: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - string?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - string: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getlist.ts b/src/models/operations/getlist.ts deleted file mode 100644 index 63f66765..00000000 --- a/src/models/operations/getlist.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetListRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the list you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetListResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationListOutput?: - | components.UnifiedMarketingautomationListOutput - | undefined; -}; - -/** @internal */ -export namespace GetListRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetListResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationListOutput: - components.UnifiedMarketingautomationListOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationListOutput: "unifiedMarketingautomationListOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationListOutput?: - | components.UnifiedMarketingautomationListOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationListOutput: - components.UnifiedMarketingautomationListOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationListOutput: "UnifiedMarketingautomationListOutput", - }); - }); -} diff --git a/src/models/operations/getlists.ts b/src/models/operations/getlists.ts deleted file mode 100644 index 6613b126..00000000 --- a/src/models/operations/getlists.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetListsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetListsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetListsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetListsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetListsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetListsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationListOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationListOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetListsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetListsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetListsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetListsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getmarketingautomationcontact.ts b/src/models/operations/getmarketingautomationcontact.ts deleted file mode 100644 index aa72301c..00000000 --- a/src/models/operations/getmarketingautomationcontact.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMarketingAutomationContactRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the contact you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetMarketingAutomationContactResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationContactOutput?: - | components.UnifiedMarketingautomationContactOutput - | undefined; -}; - -/** @internal */ -export namespace GetMarketingAutomationContactRequest$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationContactRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationContactRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationContactResponse$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationContactResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationContactOutput: - components.UnifiedMarketingautomationContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationContactOutput: "unifiedMarketingautomationContactOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationContactOutput?: - | components.UnifiedMarketingautomationContactOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationContactResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationContactOutput: - components.UnifiedMarketingautomationContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationContactOutput: "UnifiedMarketingautomationContactOutput", - }); - }); -} diff --git a/src/models/operations/getmarketingautomationcontacts.ts b/src/models/operations/getmarketingautomationcontacts.ts deleted file mode 100644 index f57633ff..00000000 --- a/src/models/operations/getmarketingautomationcontacts.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMarketingAutomationContactsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetMarketingAutomationContactsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetMarketingAutomationContactsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetMarketingAutomationContactsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetMarketingAutomationContactsRequest$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationContactsRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationContactsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationContactsResponseBody$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationContactsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationContactOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationContactsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationContactOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationContactsResponse$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationContactsResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => GetMarketingAutomationContactsResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetMarketingAutomationContactsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationContactsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => GetMarketingAutomationContactsResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getmarketingautomationevents.ts b/src/models/operations/getmarketingautomationevents.ts deleted file mode 100644 index 5126d430..00000000 --- a/src/models/operations/getmarketingautomationevents.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMarketingAutomationEventsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetMarketingAutomationEventsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetMarketingAutomationEventsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetMarketingAutomationEventsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetMarketingAutomationEventsRequest$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationEventsRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationEventsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationEventsResponseBody$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationEventsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationEventOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationEventsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationEventOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationEventsResponse$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationEventsResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => GetMarketingAutomationEventsResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetMarketingAutomationEventsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationEventsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => GetMarketingAutomationEventsResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getmarketingautomationuser.ts b/src/models/operations/getmarketingautomationuser.ts deleted file mode 100644 index 53622efd..00000000 --- a/src/models/operations/getmarketingautomationuser.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMarketingAutomationUserRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the user you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetMarketingAutomationUserResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationUserOutput?: - | components.UnifiedMarketingautomationUserOutput - | undefined; -}; - -/** @internal */ -export namespace GetMarketingAutomationUserRequest$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationUserRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationUserRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationUserResponse$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationUserResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationUserOutput: - components.UnifiedMarketingautomationUserOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationUserOutput: "unifiedMarketingautomationUserOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationUserOutput?: - | components.UnifiedMarketingautomationUserOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationUserResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationUserOutput: - components.UnifiedMarketingautomationUserOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationUserOutput: "UnifiedMarketingautomationUserOutput", - }); - }); -} diff --git a/src/models/operations/getmarketingautomationusers.ts b/src/models/operations/getmarketingautomationusers.ts deleted file mode 100644 index a835db9e..00000000 --- a/src/models/operations/getmarketingautomationusers.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMarketingAutomationUsersRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetMarketingAutomationUsersResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetMarketingAutomationUsersResponse = { - httpMeta: components.HTTPMetadata; - object?: GetMarketingAutomationUsersResponseBody | undefined; -}; - -/** @internal */ -export namespace GetMarketingAutomationUsersRequest$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationUsersRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationUsersRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationUsersResponseBody$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationUsersResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationUserOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationUsersResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationUserOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetMarketingAutomationUsersResponse$ { - export const inboundSchema: z.ZodType< - GetMarketingAutomationUsersResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetMarketingAutomationUsersResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetMarketingAutomationUsersResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - GetMarketingAutomationUsersResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => GetMarketingAutomationUsersResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getmessage.ts b/src/models/operations/getmessage.ts deleted file mode 100644 index 3222a83a..00000000 --- a/src/models/operations/getmessage.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMessageRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the message you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetMessageResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationMessageOutput?: - | components.UnifiedMarketingautomationMessageOutput - | undefined; -}; - -/** @internal */ -export namespace GetMessageRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMessageResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationMessageOutput: - components.UnifiedMarketingautomationMessageOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationMessageOutput: "unifiedMarketingautomationMessageOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationMessageOutput?: - | components.UnifiedMarketingautomationMessageOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationMessageOutput: - components.UnifiedMarketingautomationMessageOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationMessageOutput: "UnifiedMarketingautomationMessageOutput", - }); - }); -} diff --git a/src/models/operations/getmessages.ts b/src/models/operations/getmessages.ts deleted file mode 100644 index 1d10959f..00000000 --- a/src/models/operations/getmessages.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetMessagesRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetMessagesResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetMessagesResponse = { - httpMeta: components.HTTPMetadata; - object?: GetMessagesResponseBody | undefined; -}; - -/** @internal */ -export namespace GetMessagesRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetMessagesResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationMessageOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationMessageOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetMessagesResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetMessagesResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetMessagesResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetMessagesResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getrejectreason.ts b/src/models/operations/getrejectreason.ts deleted file mode 100644 index 082224e7..00000000 --- a/src/models/operations/getrejectreason.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetRejectReasonRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the rejectreason you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -export type GetRejectReasonResponse = { - httpMeta: components.HTTPMetadata; - unifiedAtsRejectreasonOutput?: components.UnifiedAtsRejectreasonOutput | undefined; -}; - -/** @internal */ -export namespace GetRejectReasonRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetRejectReasonResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsRejectreasonOutput: - components.UnifiedAtsRejectreasonOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsRejectreasonOutput: "unifiedAtsRejectreasonOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsRejectreasonOutput?: - | components.UnifiedAtsRejectreasonOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsRejectreasonOutput: - components.UnifiedAtsRejectreasonOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsRejectreasonOutput: "UnifiedAtsRejectreasonOutput", - }); - }); -} diff --git a/src/models/operations/getrejectreasons.ts b/src/models/operations/getrejectreasons.ts deleted file mode 100644 index c92ca942..00000000 --- a/src/models/operations/getrejectreasons.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetRejectReasonsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetRejectReasonsResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetRejectReasonsResponse = { - httpMeta: components.HTTPMetadata; - object?: GetRejectReasonsResponseBody | undefined; -}; - -/** @internal */ -export namespace GetRejectReasonsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetRejectReasonsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsRejectreasonOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsRejectreasonOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetRejectReasonsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetRejectReasonsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetRejectReasonsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetRejectReasonsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getsyncstatus.ts b/src/models/operations/getsyncstatus.ts deleted file mode 100644 index 34cd2dad..00000000 --- a/src/models/operations/getsyncstatus.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetSyncStatusRequest = { - vertical: string; -}; - -export type GetSyncStatusResponse = { - httpMeta: components.HTTPMetadata; -}; - -/** @internal */ -export namespace GetSyncStatusRequest$ { - export const inboundSchema: z.ZodType = z.object({ - vertical: z.string(), - }); - - export type Outbound = { - vertical: string; - }; - - export const outboundSchema: z.ZodType = z.object( - { - vertical: z.string(), - } - ); -} - -/** @internal */ -export namespace GetSyncStatusResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/gettemplate.ts b/src/models/operations/gettemplate.ts deleted file mode 100644 index bb572d76..00000000 --- a/src/models/operations/gettemplate.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetTemplateRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the template you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Marketingautomation software. - */ - remoteData?: boolean | undefined; -}; - -export type GetTemplateResponse = { - httpMeta: components.HTTPMetadata; - unifiedMarketingautomationTemplateOutput?: - | components.UnifiedMarketingautomationTemplateOutput - | undefined; -}; - -/** @internal */ -export namespace GetTemplateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetTemplateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationTemplateOutput: - components.UnifiedMarketingautomationTemplateOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationTemplateOutput: - "unifiedMarketingautomationTemplateOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationTemplateOutput?: - | components.UnifiedMarketingautomationTemplateOutput$.Outbound - | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationTemplateOutput: - components.UnifiedMarketingautomationTemplateOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationTemplateOutput: - "UnifiedMarketingautomationTemplateOutput", - }); - }); -} diff --git a/src/models/operations/gettemplates.ts b/src/models/operations/gettemplates.ts deleted file mode 100644 index 98602eae..00000000 --- a/src/models/operations/gettemplates.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetTemplatesRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetTemplatesResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetTemplatesResponse = { - httpMeta: components.HTTPMetadata; - object?: GetTemplatesResponseBody | undefined; -}; - -/** @internal */ -export namespace GetTemplatesRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetTemplatesResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationTemplateOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationTemplateOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetTemplatesResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetTemplatesResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetTemplatesResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetTemplatesResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/getuser.ts b/src/models/operations/getuser.ts deleted file mode 100644 index 4e226592..00000000 --- a/src/models/operations/getuser.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetUserRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the permission you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original File Storage software. - */ - remoteData?: boolean | undefined; -}; - -export type GetUserResponse = { - httpMeta: components.HTTPMetadata; - unifiedUserOutput?: components.UnifiedUserOutput | undefined; -}; - -/** @internal */ -export namespace GetUserRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedUserOutput: components.UnifiedUserOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedUserOutput: "unifiedUserOutput", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedUserOutput?: components.UnifiedUserOutput$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedUserOutput: components.UnifiedUserOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedUserOutput: "UnifiedUserOutput", - }); - }); -} diff --git a/src/models/operations/getusers.ts b/src/models/operations/getusers.ts deleted file mode 100644 index 1d3441b2..00000000 --- a/src/models/operations/getusers.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type GetUsersRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original software. - */ - remoteData?: boolean | undefined; - /** - * Set to get the number of records. - */ - limit?: number | undefined; - /** - * Set to get the number of records after this cursor. - */ - cursor?: string | undefined; -}; - -export type GetUsersResponseBody = { - prevCursor: string; - nextCursor: string; - data: Array; -}; - -export type GetUsersResponse = { - httpMeta: components.HTTPMetadata; - object?: GetUsersResponseBody | undefined; -}; - -/** @internal */ -export namespace GetUsersRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); -} - -/** @internal */ -export namespace GetUsersResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedUserOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedUserOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); -} - -/** @internal */ -export namespace GetUsersResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => GetUsersResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: GetUsersResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => GetUsersResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); -} diff --git a/src/models/operations/health.ts b/src/models/operations/health.ts new file mode 100644 index 00000000..b68c9f30 --- /dev/null +++ b/src/models/operations/health.ts @@ -0,0 +1,55 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type HealthResponse = { + httpMeta: components.HTTPMetadata; +}; + +/** @internal */ +export const HealthResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type HealthResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; + +/** @internal */ +export const HealthResponse$outboundSchema: z.ZodType< + HealthResponse$Outbound, + z.ZodTypeDef, + HealthResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace HealthResponse$ { + /** @deprecated use `HealthResponse$inboundSchema` instead. */ + export const inboundSchema = HealthResponse$inboundSchema; + /** @deprecated use `HealthResponse$outboundSchema` instead. */ + export const outboundSchema = HealthResponse$outboundSchema; + /** @deprecated use `HealthResponse$Outbound` instead. */ + export type Outbound = HealthResponse$Outbound; +} diff --git a/src/models/operations/home.ts b/src/models/operations/home.ts new file mode 100644 index 00000000..4babde89 --- /dev/null +++ b/src/models/operations/home.ts @@ -0,0 +1,55 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type HomeResponse = { + httpMeta: components.HTTPMetadata; +}; + +/** @internal */ +export const HomeResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type HomeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; + +/** @internal */ +export const HomeResponse$outboundSchema: z.ZodType< + HomeResponse$Outbound, + z.ZodTypeDef, + HomeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace HomeResponse$ { + /** @deprecated use `HomeResponse$inboundSchema` instead. */ + export const inboundSchema = HomeResponse$inboundSchema; + /** @deprecated use `HomeResponse$outboundSchema` instead. */ + export const outboundSchema = HomeResponse$outboundSchema; + /** @deprecated use `HomeResponse$Outbound` instead. */ + export type Outbound = HomeResponse$Outbound; +} diff --git a/src/models/operations/importbatch.ts b/src/models/operations/importbatch.ts index b6fab075..f1b0a220 100644 --- a/src/models/operations/importbatch.ts +++ b/src/models/operations/importbatch.ts @@ -11,28 +11,49 @@ export type ImportBatchResponse = { }; /** @internal */ -export namespace ImportBatchResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ImportBatchResponse$inboundSchema: z.ZodType< + ImportBatchResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type ImportBatchResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ImportBatchResponse$outboundSchema: z.ZodType< + ImportBatchResponse$Outbound, + z.ZodTypeDef, + ImportBatchResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ImportBatchResponse$ { + /** @deprecated use `ImportBatchResponse$inboundSchema` instead. */ + export const inboundSchema = ImportBatchResponse$inboundSchema; + /** @deprecated use `ImportBatchResponse$outboundSchema` instead. */ + export const outboundSchema = ImportBatchResponse$outboundSchema; + /** @deprecated use `ImportBatchResponse$Outbound` instead. */ + export type Outbound = ImportBatchResponse$Outbound; } diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 91b0bc65..f7bdfe35 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -2,11 +2,6 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ -export * from "./addcrmcontact.js"; -export * from "./addlist.js"; -export * from "./addmarketingautomationcontact.js"; -export * from "./addtemplate.js"; -export * from "./appcontrollerhello.js"; export * from "./create.js"; export * from "./createaccountingaccount.js"; export * from "./createaccountingattachment.js"; @@ -22,6 +17,7 @@ export * from "./createatsattachment.js"; export * from "./createatscandidate.js"; export * from "./createatsinterview.js"; export * from "./createcrmcompany.js"; +export * from "./createcrmcontact.js"; export * from "./createcrmdeal.js"; export * from "./createcrmengagement.js"; export * from "./createcrmnote.js"; @@ -34,36 +30,17 @@ export * from "./createlinkeduser.js"; export * from "./createmarketingautomationaction.js"; export * from "./createmarketingautomationautomation.js"; export * from "./createmarketingautomationcampaign.js"; +export * from "./createmarketingautomationcontact.js"; +export * from "./createmarketingautomationlist.js"; +export * from "./createmarketingautomationtemplate.js"; export * from "./createticketingattachment.js"; export * from "./createticketingcomment.js"; export * from "./createticketingticket.js"; export * from "./createwebhook.js"; export * from "./define.js"; -export * from "./deletewebhook.js"; -export * from "./getcrmcontact.js"; -export * from "./getdepartment.js"; -export * from "./getdepartments.js"; -export * from "./getemail.js"; -export * from "./getemails.js"; -export * from "./getevent.js"; -export * from "./gethealth.js"; -export * from "./gethelloprotected.js"; -export * from "./getlist.js"; -export * from "./getlists.js"; -export * from "./getmarketingautomationcontact.js"; -export * from "./getmarketingautomationcontacts.js"; -export * from "./getmarketingautomationevents.js"; -export * from "./getmarketingautomationuser.js"; -export * from "./getmarketingautomationusers.js"; -export * from "./getmessage.js"; -export * from "./getmessages.js"; -export * from "./getrejectreason.js"; -export * from "./getrejectreasons.js"; -export * from "./getsyncstatus.js"; -export * from "./gettemplate.js"; -export * from "./gettemplates.js"; -export * from "./getuser.js"; -export * from "./getusers.js"; +export * from "./delete.js"; +export * from "./health.js"; +export * from "./home.js"; export * from "./importbatch.js"; export * from "./listaccountingaccounts.js"; export * from "./listaccountingaddress.js"; @@ -89,12 +66,14 @@ export * from "./listatsactivity.js"; export * from "./listatsapplication.js"; export * from "./listatsattachment.js"; export * from "./listatscandidate.js"; +export * from "./listatsdepartments.js"; export * from "./listatseeocs.js"; export * from "./listatsinterview.js"; export * from "./listatsjob.js"; export * from "./listatsjobinterviewstage.js"; export * from "./listatsoffer.js"; export * from "./listatsoffice.js"; +export * from "./listatsrejectreasons.js"; export * from "./listatsscorecard.js"; export * from "./listatstags.js"; export * from "./listatsusers.js"; @@ -110,6 +89,7 @@ export * from "./listfilestoragedrives.js"; export * from "./listfilestoragefile.js"; export * from "./listfilestoragefolder.js"; export * from "./listfilestoragegroup.js"; +export * from "./listfilestorageusers.js"; export * from "./listhrisbankinfo.js"; export * from "./listhrisbenefit.js"; export * from "./listhriscompanys.js"; @@ -128,6 +108,13 @@ export * from "./listlinkedusers.js"; export * from "./listmarketingautomationaction.js"; export * from "./listmarketingautomationautomation.js"; export * from "./listmarketingautomationcampaign.js"; +export * from "./listmarketingautomationcontacts.js"; +export * from "./listmarketingautomationemails.js"; +export * from "./listmarketingautomationevents.js"; +export * from "./listmarketingautomationlists.js"; +export * from "./listmarketingautomationmessages.js"; +export * from "./listmarketingautomationtemplates.js"; +export * from "./listmarketingautomationusers.js"; export * from "./listticketingaccount.js"; export * from "./listticketingattachments.js"; export * from "./listticketingcollections.js"; @@ -166,17 +153,20 @@ export * from "./retrieveatsactivity.js"; export * from "./retrieveatsapplication.js"; export * from "./retrieveatsattachment.js"; export * from "./retrieveatscandidate.js"; +export * from "./retrieveatsdepartment.js"; export * from "./retrieveatseeocs.js"; export * from "./retrieveatsinterview.js"; export * from "./retrieveatsjob.js"; export * from "./retrieveatsjobinterviewstage.js"; export * from "./retrieveatsoffer.js"; export * from "./retrieveatsoffice.js"; +export * from "./retrieveatsrejectreason.js"; export * from "./retrieveatsscorecard.js"; export * from "./retrieveatstag.js"; export * from "./retrieveatsuser.js"; export * from "./retrievecollection.js"; export * from "./retrievecrmcompany.js"; +export * from "./retrievecrmcontact.js"; export * from "./retrievecrmdeal.js"; export * from "./retrievecrmengagement.js"; export * from "./retrievecrmnote.js"; @@ -187,6 +177,7 @@ export * from "./retrievefilestoragedrive.js"; export * from "./retrievefilestoragefile.js"; export * from "./retrievefilestoragefolder.js"; export * from "./retrievefilestoragegroup.js"; +export * from "./retrievefilestorageuser.js"; export * from "./retrievehrisbankinfo.js"; export * from "./retrievehrisbenefit.js"; export * from "./retrievehrisdependent.js"; @@ -203,6 +194,13 @@ export * from "./retrievelinkeduser.js"; export * from "./retrievemarketingautomationaction.js"; export * from "./retrievemarketingautomationautomation.js"; export * from "./retrievemarketingautomationcampaign.js"; +export * from "./retrievemarketingautomationcontact.js"; +export * from "./retrievemarketingautomationemail.js"; +export * from "./retrievemarketingautomationevent.js"; +export * from "./retrievemarketingautomationlist.js"; +export * from "./retrievemarketingautomationmessage.js"; +export * from "./retrievemarketingautomationtemplate.js"; +export * from "./retrievemarketingautomationuser.js"; export * from "./retrieveticketingaccount.js"; export * from "./retrieveticketingattachment.js"; export * from "./retrieveticketingcomment.js"; @@ -211,5 +209,6 @@ export * from "./retrieveticketingtag.js"; export * from "./retrieveticketingteam.js"; export * from "./retrieveticketingticket.js"; export * from "./retrieveticketinguser.js"; -export * from "./updatewebhookstatus.js"; +export * from "./status.js"; +export * from "./updatestatus.js"; export * from "./verifyevent.js"; diff --git a/src/models/operations/listaccountingaccounts.ts b/src/models/operations/listaccountingaccounts.ts index 0be00364..23ad1ff7 100644 --- a/src/models/operations/listaccountingaccounts.ts +++ b/src/models/operations/listaccountingaccounts.ts @@ -37,114 +37,167 @@ export type ListAccountingAccountsResponse = { }; /** @internal */ -export namespace ListAccountingAccountsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< + ListAccountingAccountsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingAccountsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingAccountsRequest$outboundSchema: z.ZodType< + ListAccountingAccountsRequest$Outbound, + z.ZodTypeDef, + ListAccountingAccountsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAccountsRequest$ { + /** @deprecated use `ListAccountingAccountsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAccountsRequest$inboundSchema; + /** @deprecated use `ListAccountingAccountsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAccountsRequest$outboundSchema; + /** @deprecated use `ListAccountingAccountsRequest$Outbound` instead. */ + export type Outbound = ListAccountingAccountsRequest$Outbound; } /** @internal */ -export namespace ListAccountingAccountsResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingAccountsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingAccountOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingAccountsResponseBody$inboundSchema: z.ZodType< + ListAccountingAccountsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingAccountOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingAccountsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingAccountsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingAccountOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingAccountsResponseBody$outboundSchema: z.ZodType< + ListAccountingAccountsResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingAccountsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingAccountOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAccountsResponseBody$ { + /** @deprecated use `ListAccountingAccountsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAccountsResponseBody$inboundSchema; + /** @deprecated use `ListAccountingAccountsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAccountsResponseBody$outboundSchema; + /** @deprecated use `ListAccountingAccountsResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingAccountsResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingAccountsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingAccountsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingAccountsResponse$inboundSchema: z.ZodType< + ListAccountingAccountsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingAccountsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingAccountsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingAccountsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingAccountsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingAccountsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingAccountsResponse$outboundSchema: z.ZodType< + ListAccountingAccountsResponse$Outbound, + z.ZodTypeDef, + ListAccountingAccountsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingAccountsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAccountsResponse$ { + /** @deprecated use `ListAccountingAccountsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAccountsResponse$inboundSchema; + /** @deprecated use `ListAccountingAccountsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAccountsResponse$outboundSchema; + /** @deprecated use `ListAccountingAccountsResponse$Outbound` instead. */ + export type Outbound = ListAccountingAccountsResponse$Outbound; } diff --git a/src/models/operations/listaccountingaddress.ts b/src/models/operations/listaccountingaddress.ts index 7b291850..6ad586eb 100644 --- a/src/models/operations/listaccountingaddress.ts +++ b/src/models/operations/listaccountingaddress.ts @@ -37,113 +37,167 @@ export type ListAccountingAddressResponse = { }; /** @internal */ -export namespace ListAccountingAddressRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingAddressRequest$inboundSchema: z.ZodType< + ListAccountingAddressRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingAddressRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingAddressRequest$outboundSchema: z.ZodType< + ListAccountingAddressRequest$Outbound, + z.ZodTypeDef, + ListAccountingAddressRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAddressRequest$ { + /** @deprecated use `ListAccountingAddressRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAddressRequest$inboundSchema; + /** @deprecated use `ListAccountingAddressRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAddressRequest$outboundSchema; + /** @deprecated use `ListAccountingAddressRequest$Outbound` instead. */ + export type Outbound = ListAccountingAddressRequest$Outbound; } /** @internal */ -export namespace ListAccountingAddressResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingAddressResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingAddressOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingAddressResponseBody$inboundSchema: z.ZodType< + ListAccountingAddressResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingAddressOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingAddressResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingAddressResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingAddressOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingAddressResponseBody$outboundSchema: z.ZodType< + ListAccountingAddressResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingAddressResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingAddressOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAddressResponseBody$ { + /** @deprecated use `ListAccountingAddressResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAddressResponseBody$inboundSchema; + /** @deprecated use `ListAccountingAddressResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAddressResponseBody$outboundSchema; + /** @deprecated use `ListAccountingAddressResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingAddressResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingAddressResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingAddressResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingAddressResponse$inboundSchema: z.ZodType< + ListAccountingAddressResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingAddressResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingAddressResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingAddressResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingAddressResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingAddressResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingAddressResponse$outboundSchema: z.ZodType< + ListAccountingAddressResponse$Outbound, + z.ZodTypeDef, + ListAccountingAddressResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingAddressResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAddressResponse$ { + /** @deprecated use `ListAccountingAddressResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAddressResponse$inboundSchema; + /** @deprecated use `ListAccountingAddressResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAddressResponse$outboundSchema; + /** @deprecated use `ListAccountingAddressResponse$Outbound` instead. */ + export type Outbound = ListAccountingAddressResponse$Outbound; } diff --git a/src/models/operations/listaccountingattachments.ts b/src/models/operations/listaccountingattachments.ts index 0b8fc36b..56dea153 100644 --- a/src/models/operations/listaccountingattachments.ts +++ b/src/models/operations/listaccountingattachments.ts @@ -37,125 +37,167 @@ export type ListAccountingAttachmentsResponse = { }; /** @internal */ -export namespace ListAccountingAttachmentsRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingAttachmentsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< + ListAccountingAttachmentsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingAttachmentsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingAttachmentsRequest$outboundSchema: z.ZodType< + ListAccountingAttachmentsRequest$Outbound, + z.ZodTypeDef, + ListAccountingAttachmentsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAttachmentsRequest$ { + /** @deprecated use `ListAccountingAttachmentsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAttachmentsRequest$inboundSchema; + /** @deprecated use `ListAccountingAttachmentsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAttachmentsRequest$outboundSchema; + /** @deprecated use `ListAccountingAttachmentsRequest$Outbound` instead. */ + export type Outbound = ListAccountingAttachmentsRequest$Outbound; } /** @internal */ -export namespace ListAccountingAttachmentsResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingAttachmentsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingAttachmentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingAttachmentsResponseBody$inboundSchema: z.ZodType< + ListAccountingAttachmentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingAttachmentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingAttachmentsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingAttachmentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export type ListAccountingAttachmentsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAccountingAttachmentsResponseBody$outboundSchema: z.ZodType< + ListAccountingAttachmentsResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingAttachmentsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingAttachmentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAttachmentsResponseBody$ { + /** @deprecated use `ListAccountingAttachmentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAttachmentsResponseBody$inboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAttachmentsResponseBody$outboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingAttachmentsResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingAttachmentsResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingAttachmentsResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingAttachmentsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingAttachmentsResponse$inboundSchema: z.ZodType< + ListAccountingAttachmentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingAttachmentsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingAttachmentsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingAttachmentsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingAttachmentsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAccountingAttachmentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingAttachmentsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingAttachmentsResponse$outboundSchema: z.ZodType< + ListAccountingAttachmentsResponse$Outbound, + z.ZodTypeDef, + ListAccountingAttachmentsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingAttachmentsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingAttachmentsResponse$ { + /** @deprecated use `ListAccountingAttachmentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAttachmentsResponse$inboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAttachmentsResponse$outboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponse$Outbound` instead. */ + export type Outbound = ListAccountingAttachmentsResponse$Outbound; } diff --git a/src/models/operations/listaccountingbalancesheets.ts b/src/models/operations/listaccountingbalancesheets.ts index 94a13237..36248167 100644 --- a/src/models/operations/listaccountingbalancesheets.ts +++ b/src/models/operations/listaccountingbalancesheets.ts @@ -37,130 +37,167 @@ export type ListAccountingBalanceSheetsResponse = { }; /** @internal */ -export namespace ListAccountingBalanceSheetsRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingBalanceSheetsRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< + ListAccountingBalanceSheetsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingBalanceSheetsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingBalanceSheetsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingBalanceSheetsRequest$outboundSchema: z.ZodType< + ListAccountingBalanceSheetsRequest$Outbound, + z.ZodTypeDef, + ListAccountingBalanceSheetsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingBalanceSheetsRequest$ { + /** @deprecated use `ListAccountingBalanceSheetsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingBalanceSheetsRequest$inboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingBalanceSheetsRequest$outboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsRequest$Outbound` instead. */ + export type Outbound = ListAccountingBalanceSheetsRequest$Outbound; } /** @internal */ -export namespace ListAccountingBalanceSheetsResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingBalanceSheetsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingBalancesheetOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingBalanceSheetsResponseBody$inboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingBalancesheetOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingBalanceSheetsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingBalanceSheetsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingBalancesheetOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingBalanceSheetsResponseBody$outboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingBalanceSheetsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingBalancesheetOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingBalanceSheetsResponseBody$ { + /** @deprecated use `ListAccountingBalanceSheetsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingBalanceSheetsResponseBody$inboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingBalanceSheetsResponseBody$outboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingBalanceSheetsResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingBalanceSheetsResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingBalanceSheetsResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingBalanceSheetsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingBalanceSheetsResponse$inboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingBalanceSheetsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingBalanceSheetsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingBalanceSheetsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingBalanceSheetsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingBalanceSheetsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListAccountingBalanceSheetsResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingBalanceSheetsResponse$outboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponse$Outbound, + z.ZodTypeDef, + ListAccountingBalanceSheetsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingBalanceSheetsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingBalanceSheetsResponse$ { + /** @deprecated use `ListAccountingBalanceSheetsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingBalanceSheetsResponse$inboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingBalanceSheetsResponse$outboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponse$Outbound` instead. */ + export type Outbound = ListAccountingBalanceSheetsResponse$Outbound; } diff --git a/src/models/operations/listaccountingcashflowstatement.ts b/src/models/operations/listaccountingcashflowstatement.ts index 98c2e57e..95bf85ce 100644 --- a/src/models/operations/listaccountingcashflowstatement.ts +++ b/src/models/operations/listaccountingcashflowstatement.ts @@ -37,132 +37,167 @@ export type ListAccountingCashflowStatementResponse = { }; /** @internal */ -export namespace ListAccountingCashflowStatementRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingCashflowStatementRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< + ListAccountingCashflowStatementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCashflowStatementRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingCashflowStatementRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingCashflowStatementRequest$outboundSchema: z.ZodType< + ListAccountingCashflowStatementRequest$Outbound, + z.ZodTypeDef, + ListAccountingCashflowStatementRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCashflowStatementRequest$ { + /** @deprecated use `ListAccountingCashflowStatementRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCashflowStatementRequest$inboundSchema; + /** @deprecated use `ListAccountingCashflowStatementRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCashflowStatementRequest$outboundSchema; + /** @deprecated use `ListAccountingCashflowStatementRequest$Outbound` instead. */ + export type Outbound = ListAccountingCashflowStatementRequest$Outbound; } /** @internal */ -export namespace ListAccountingCashflowStatementResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingCashflowStatementResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingCashflowstatementOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingCashflowStatementResponseBody$inboundSchema: z.ZodType< + ListAccountingCashflowStatementResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingCashflowstatementOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingCashflowStatementResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCashflowStatementResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingCashflowstatementOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingCashflowStatementResponseBody$outboundSchema: z.ZodType< + ListAccountingCashflowStatementResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingCashflowStatementResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingCashflowstatementOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCashflowStatementResponseBody$ { + /** @deprecated use `ListAccountingCashflowStatementResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCashflowStatementResponseBody$inboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCashflowStatementResponseBody$outboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingCashflowStatementResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingCashflowStatementResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingCashflowStatementResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListAccountingCashflowStatementResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingCashflowStatementResponse$inboundSchema: z.ZodType< + ListAccountingCashflowStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingCashflowStatementResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingCashflowStatementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingCashflowStatementResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingCashflowStatementResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCashflowStatementResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListAccountingCashflowStatementResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingCashflowStatementResponse$outboundSchema: z.ZodType< + ListAccountingCashflowStatementResponse$Outbound, + z.ZodTypeDef, + ListAccountingCashflowStatementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingCashflowStatementResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCashflowStatementResponse$ { + /** @deprecated use `ListAccountingCashflowStatementResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCashflowStatementResponse$inboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCashflowStatementResponse$outboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponse$Outbound` instead. */ + export type Outbound = ListAccountingCashflowStatementResponse$Outbound; } diff --git a/src/models/operations/listaccountingcompanyinfos.ts b/src/models/operations/listaccountingcompanyinfos.ts index 94ea0ef6..ccde4f0c 100644 --- a/src/models/operations/listaccountingcompanyinfos.ts +++ b/src/models/operations/listaccountingcompanyinfos.ts @@ -37,128 +37,167 @@ export type ListAccountingCompanyInfosResponse = { }; /** @internal */ -export namespace ListAccountingCompanyInfosRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingCompanyInfosRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< + ListAccountingCompanyInfosRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCompanyInfosRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingCompanyInfosRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingCompanyInfosRequest$outboundSchema: z.ZodType< + ListAccountingCompanyInfosRequest$Outbound, + z.ZodTypeDef, + ListAccountingCompanyInfosRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCompanyInfosRequest$ { + /** @deprecated use `ListAccountingCompanyInfosRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCompanyInfosRequest$inboundSchema; + /** @deprecated use `ListAccountingCompanyInfosRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCompanyInfosRequest$outboundSchema; + /** @deprecated use `ListAccountingCompanyInfosRequest$Outbound` instead. */ + export type Outbound = ListAccountingCompanyInfosRequest$Outbound; } /** @internal */ -export namespace ListAccountingCompanyInfosResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingCompanyInfosResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingCompanyinfoOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingCompanyInfosResponseBody$inboundSchema: z.ZodType< + ListAccountingCompanyInfosResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingCompanyinfoOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingCompanyInfosResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCompanyInfosResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingCompanyinfoOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingCompanyInfosResponseBody$outboundSchema: z.ZodType< + ListAccountingCompanyInfosResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingCompanyInfosResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingCompanyinfoOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCompanyInfosResponseBody$ { + /** @deprecated use `ListAccountingCompanyInfosResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCompanyInfosResponseBody$inboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCompanyInfosResponseBody$outboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingCompanyInfosResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingCompanyInfosResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingCompanyInfosResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingCompanyInfosResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingCompanyInfosResponse$inboundSchema: z.ZodType< + ListAccountingCompanyInfosResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingCompanyInfosResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingCompanyInfosResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingCompanyInfosResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingCompanyInfosResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCompanyInfosResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingCompanyInfosResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingCompanyInfosResponse$outboundSchema: z.ZodType< + ListAccountingCompanyInfosResponse$Outbound, + z.ZodTypeDef, + ListAccountingCompanyInfosResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingCompanyInfosResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCompanyInfosResponse$ { + /** @deprecated use `ListAccountingCompanyInfosResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCompanyInfosResponse$inboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCompanyInfosResponse$outboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponse$Outbound` instead. */ + export type Outbound = ListAccountingCompanyInfosResponse$Outbound; } diff --git a/src/models/operations/listaccountingcontacts.ts b/src/models/operations/listaccountingcontacts.ts index 0dbded97..a6829cc5 100644 --- a/src/models/operations/listaccountingcontacts.ts +++ b/src/models/operations/listaccountingcontacts.ts @@ -37,114 +37,167 @@ export type ListAccountingContactsResponse = { }; /** @internal */ -export namespace ListAccountingContactsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingContactsRequest$inboundSchema: z.ZodType< + ListAccountingContactsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingContactsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingContactsRequest$outboundSchema: z.ZodType< + ListAccountingContactsRequest$Outbound, + z.ZodTypeDef, + ListAccountingContactsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingContactsRequest$ { + /** @deprecated use `ListAccountingContactsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingContactsRequest$inboundSchema; + /** @deprecated use `ListAccountingContactsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingContactsRequest$outboundSchema; + /** @deprecated use `ListAccountingContactsRequest$Outbound` instead. */ + export type Outbound = ListAccountingContactsRequest$Outbound; } /** @internal */ -export namespace ListAccountingContactsResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingContactsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingContactOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingContactsResponseBody$inboundSchema: z.ZodType< + ListAccountingContactsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingContactOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingContactsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingContactsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingContactOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingContactsResponseBody$outboundSchema: z.ZodType< + ListAccountingContactsResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingContactsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingContactOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingContactsResponseBody$ { + /** @deprecated use `ListAccountingContactsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingContactsResponseBody$inboundSchema; + /** @deprecated use `ListAccountingContactsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingContactsResponseBody$outboundSchema; + /** @deprecated use `ListAccountingContactsResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingContactsResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingContactsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingContactsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingContactsResponse$inboundSchema: z.ZodType< + ListAccountingContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingContactsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingContactsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingContactsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingContactsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingContactsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingContactsResponse$outboundSchema: z.ZodType< + ListAccountingContactsResponse$Outbound, + z.ZodTypeDef, + ListAccountingContactsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingContactsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingContactsResponse$ { + /** @deprecated use `ListAccountingContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingContactsResponse$inboundSchema; + /** @deprecated use `ListAccountingContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingContactsResponse$outboundSchema; + /** @deprecated use `ListAccountingContactsResponse$Outbound` instead. */ + export type Outbound = ListAccountingContactsResponse$Outbound; } diff --git a/src/models/operations/listaccountingcreditnote.ts b/src/models/operations/listaccountingcreditnote.ts index f9b3d442..1fc5a1d3 100644 --- a/src/models/operations/listaccountingcreditnote.ts +++ b/src/models/operations/listaccountingcreditnote.ts @@ -37,124 +37,167 @@ export type ListAccountingCreditNoteResponse = { }; /** @internal */ -export namespace ListAccountingCreditNoteRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCreditNoteRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< + ListAccountingCreditNoteRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingCreditNoteRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingCreditNoteRequest$outboundSchema: z.ZodType< + ListAccountingCreditNoteRequest$Outbound, + z.ZodTypeDef, + ListAccountingCreditNoteRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCreditNoteRequest$ { + /** @deprecated use `ListAccountingCreditNoteRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCreditNoteRequest$inboundSchema; + /** @deprecated use `ListAccountingCreditNoteRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCreditNoteRequest$outboundSchema; + /** @deprecated use `ListAccountingCreditNoteRequest$Outbound` instead. */ + export type Outbound = ListAccountingCreditNoteRequest$Outbound; } /** @internal */ -export namespace ListAccountingCreditNoteResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingCreditNoteResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingCreditnoteOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingCreditNoteResponseBody$inboundSchema: z.ZodType< + ListAccountingCreditNoteResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingCreditnoteOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingCreditNoteResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCreditNoteResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingCreditnoteOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingCreditNoteResponseBody$outboundSchema: z.ZodType< + ListAccountingCreditNoteResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingCreditNoteResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingCreditnoteOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCreditNoteResponseBody$ { + /** @deprecated use `ListAccountingCreditNoteResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCreditNoteResponseBody$inboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCreditNoteResponseBody$outboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingCreditNoteResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingCreditNoteResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListAccountingCreditNoteResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingCreditNoteResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingCreditNoteResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingCreditNoteResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const ListAccountingCreditNoteResponse$inboundSchema: z.ZodType< + ListAccountingCreditNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingCreditNoteResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListAccountingCreditNoteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingCreditNoteResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingCreditNoteResponse$outboundSchema: z.ZodType< + ListAccountingCreditNoteResponse$Outbound, + z.ZodTypeDef, + ListAccountingCreditNoteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingCreditNoteResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingCreditNoteResponse$ { + /** @deprecated use `ListAccountingCreditNoteResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCreditNoteResponse$inboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCreditNoteResponse$outboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponse$Outbound` instead. */ + export type Outbound = ListAccountingCreditNoteResponse$Outbound; } diff --git a/src/models/operations/listaccountingexpense.ts b/src/models/operations/listaccountingexpense.ts index a8f8bbef..8abc9488 100644 --- a/src/models/operations/listaccountingexpense.ts +++ b/src/models/operations/listaccountingexpense.ts @@ -37,113 +37,167 @@ export type ListAccountingExpenseResponse = { }; /** @internal */ -export namespace ListAccountingExpenseRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< + ListAccountingExpenseRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingExpenseRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingExpenseRequest$outboundSchema: z.ZodType< + ListAccountingExpenseRequest$Outbound, + z.ZodTypeDef, + ListAccountingExpenseRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingExpenseRequest$ { + /** @deprecated use `ListAccountingExpenseRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingExpenseRequest$inboundSchema; + /** @deprecated use `ListAccountingExpenseRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingExpenseRequest$outboundSchema; + /** @deprecated use `ListAccountingExpenseRequest$Outbound` instead. */ + export type Outbound = ListAccountingExpenseRequest$Outbound; } /** @internal */ -export namespace ListAccountingExpenseResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingExpenseResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingExpenseOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingExpenseResponseBody$inboundSchema: z.ZodType< + ListAccountingExpenseResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingExpenseOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingExpenseResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingExpenseResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingExpenseOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingExpenseResponseBody$outboundSchema: z.ZodType< + ListAccountingExpenseResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingExpenseResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingExpenseOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingExpenseResponseBody$ { + /** @deprecated use `ListAccountingExpenseResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingExpenseResponseBody$inboundSchema; + /** @deprecated use `ListAccountingExpenseResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingExpenseResponseBody$outboundSchema; + /** @deprecated use `ListAccountingExpenseResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingExpenseResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingExpenseResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingExpenseResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingExpenseResponse$inboundSchema: z.ZodType< + ListAccountingExpenseResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingExpenseResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingExpenseResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingExpenseResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingExpenseResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingExpenseResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingExpenseResponse$outboundSchema: z.ZodType< + ListAccountingExpenseResponse$Outbound, + z.ZodTypeDef, + ListAccountingExpenseResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingExpenseResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingExpenseResponse$ { + /** @deprecated use `ListAccountingExpenseResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingExpenseResponse$inboundSchema; + /** @deprecated use `ListAccountingExpenseResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingExpenseResponse$outboundSchema; + /** @deprecated use `ListAccountingExpenseResponse$Outbound` instead. */ + export type Outbound = ListAccountingExpenseResponse$Outbound; } diff --git a/src/models/operations/listaccountingincomestatement.ts b/src/models/operations/listaccountingincomestatement.ts index 9e286e8b..8d3fac03 100644 --- a/src/models/operations/listaccountingincomestatement.ts +++ b/src/models/operations/listaccountingincomestatement.ts @@ -37,132 +37,167 @@ export type ListAccountingIncomeStatementResponse = { }; /** @internal */ -export namespace ListAccountingIncomeStatementRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingIncomeStatementRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< + ListAccountingIncomeStatementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingIncomeStatementRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingIncomeStatementRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingIncomeStatementRequest$outboundSchema: z.ZodType< + ListAccountingIncomeStatementRequest$Outbound, + z.ZodTypeDef, + ListAccountingIncomeStatementRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingIncomeStatementRequest$ { + /** @deprecated use `ListAccountingIncomeStatementRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingIncomeStatementRequest$inboundSchema; + /** @deprecated use `ListAccountingIncomeStatementRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingIncomeStatementRequest$outboundSchema; + /** @deprecated use `ListAccountingIncomeStatementRequest$Outbound` instead. */ + export type Outbound = ListAccountingIncomeStatementRequest$Outbound; } /** @internal */ -export namespace ListAccountingIncomeStatementResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingIncomeStatementResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingIncomestatementOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingIncomeStatementResponseBody$inboundSchema: z.ZodType< + ListAccountingIncomeStatementResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingIncomestatementOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingIncomeStatementResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingIncomeStatementResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingIncomestatementOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingIncomeStatementResponseBody$outboundSchema: z.ZodType< + ListAccountingIncomeStatementResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingIncomeStatementResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingIncomestatementOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingIncomeStatementResponseBody$ { + /** @deprecated use `ListAccountingIncomeStatementResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingIncomeStatementResponseBody$inboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingIncomeStatementResponseBody$outboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingIncomeStatementResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingIncomeStatementResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingIncomeStatementResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListAccountingIncomeStatementResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingIncomeStatementResponse$inboundSchema: z.ZodType< + ListAccountingIncomeStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingIncomeStatementResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingIncomeStatementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingIncomeStatementResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingIncomeStatementResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingIncomeStatementResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListAccountingIncomeStatementResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingIncomeStatementResponse$outboundSchema: z.ZodType< + ListAccountingIncomeStatementResponse$Outbound, + z.ZodTypeDef, + ListAccountingIncomeStatementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingIncomeStatementResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingIncomeStatementResponse$ { + /** @deprecated use `ListAccountingIncomeStatementResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingIncomeStatementResponse$inboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingIncomeStatementResponse$outboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponse$Outbound` instead. */ + export type Outbound = ListAccountingIncomeStatementResponse$Outbound; } diff --git a/src/models/operations/listaccountinginvoice.ts b/src/models/operations/listaccountinginvoice.ts index 179d3cca..886b65a3 100644 --- a/src/models/operations/listaccountinginvoice.ts +++ b/src/models/operations/listaccountinginvoice.ts @@ -37,113 +37,167 @@ export type ListAccountingInvoiceResponse = { }; /** @internal */ -export namespace ListAccountingInvoiceRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< + ListAccountingInvoiceRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingInvoiceRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingInvoiceRequest$outboundSchema: z.ZodType< + ListAccountingInvoiceRequest$Outbound, + z.ZodTypeDef, + ListAccountingInvoiceRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingInvoiceRequest$ { + /** @deprecated use `ListAccountingInvoiceRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingInvoiceRequest$inboundSchema; + /** @deprecated use `ListAccountingInvoiceRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingInvoiceRequest$outboundSchema; + /** @deprecated use `ListAccountingInvoiceRequest$Outbound` instead. */ + export type Outbound = ListAccountingInvoiceRequest$Outbound; } /** @internal */ -export namespace ListAccountingInvoiceResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingInvoiceResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingInvoiceOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingInvoiceResponseBody$inboundSchema: z.ZodType< + ListAccountingInvoiceResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingInvoiceOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingInvoiceResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingInvoiceResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingInvoiceOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingInvoiceResponseBody$outboundSchema: z.ZodType< + ListAccountingInvoiceResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingInvoiceResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingInvoiceOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingInvoiceResponseBody$ { + /** @deprecated use `ListAccountingInvoiceResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingInvoiceResponseBody$inboundSchema; + /** @deprecated use `ListAccountingInvoiceResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingInvoiceResponseBody$outboundSchema; + /** @deprecated use `ListAccountingInvoiceResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingInvoiceResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingInvoiceResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingInvoiceResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingInvoiceResponse$inboundSchema: z.ZodType< + ListAccountingInvoiceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingInvoiceResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingInvoiceResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingInvoiceResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingInvoiceResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingInvoiceResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingInvoiceResponse$outboundSchema: z.ZodType< + ListAccountingInvoiceResponse$Outbound, + z.ZodTypeDef, + ListAccountingInvoiceResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingInvoiceResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingInvoiceResponse$ { + /** @deprecated use `ListAccountingInvoiceResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingInvoiceResponse$inboundSchema; + /** @deprecated use `ListAccountingInvoiceResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingInvoiceResponse$outboundSchema; + /** @deprecated use `ListAccountingInvoiceResponse$Outbound` instead. */ + export type Outbound = ListAccountingInvoiceResponse$Outbound; } diff --git a/src/models/operations/listaccountingitem.ts b/src/models/operations/listaccountingitem.ts index 2c9bcf8f..4ac4e889 100644 --- a/src/models/operations/listaccountingitem.ts +++ b/src/models/operations/listaccountingitem.ts @@ -37,105 +37,167 @@ export type ListAccountingItemResponse = { }; /** @internal */ -export namespace ListAccountingItemRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingItemRequest$inboundSchema: z.ZodType< + ListAccountingItemRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingItemRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingItemRequest$outboundSchema: z.ZodType< + ListAccountingItemRequest$Outbound, + z.ZodTypeDef, + ListAccountingItemRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingItemRequest$ { + /** @deprecated use `ListAccountingItemRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingItemRequest$inboundSchema; + /** @deprecated use `ListAccountingItemRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingItemRequest$outboundSchema; + /** @deprecated use `ListAccountingItemRequest$Outbound` instead. */ + export type Outbound = ListAccountingItemRequest$Outbound; } /** @internal */ -export namespace ListAccountingItemResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingItemOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingItemResponseBody$inboundSchema: z.ZodType< + ListAccountingItemResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingItemOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListAccountingItemResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAccountingItemResponseBody$outboundSchema: z.ZodType< + ListAccountingItemResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingItemResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingItemOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingItemOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingItemResponseBody$ { + /** @deprecated use `ListAccountingItemResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingItemResponseBody$inboundSchema; + /** @deprecated use `ListAccountingItemResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingItemResponseBody$outboundSchema; + /** @deprecated use `ListAccountingItemResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingItemResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingItemResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingItemResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingItemResponse$inboundSchema: z.ZodType< + ListAccountingItemResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingItemResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingItemResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingItemResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAccountingItemResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingItemResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingItemResponse$outboundSchema: z.ZodType< + ListAccountingItemResponse$Outbound, + z.ZodTypeDef, + ListAccountingItemResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingItemResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingItemResponse$ { + /** @deprecated use `ListAccountingItemResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingItemResponse$inboundSchema; + /** @deprecated use `ListAccountingItemResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingItemResponse$outboundSchema; + /** @deprecated use `ListAccountingItemResponse$Outbound` instead. */ + export type Outbound = ListAccountingItemResponse$Outbound; } diff --git a/src/models/operations/listaccountingjournalentry.ts b/src/models/operations/listaccountingjournalentry.ts index 957590f8..81536b27 100644 --- a/src/models/operations/listaccountingjournalentry.ts +++ b/src/models/operations/listaccountingjournalentry.ts @@ -37,128 +37,167 @@ export type ListAccountingJournalEntryResponse = { }; /** @internal */ -export namespace ListAccountingJournalEntryRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingJournalEntryRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< + ListAccountingJournalEntryRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingJournalEntryRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingJournalEntryRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingJournalEntryRequest$outboundSchema: z.ZodType< + ListAccountingJournalEntryRequest$Outbound, + z.ZodTypeDef, + ListAccountingJournalEntryRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingJournalEntryRequest$ { + /** @deprecated use `ListAccountingJournalEntryRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingJournalEntryRequest$inboundSchema; + /** @deprecated use `ListAccountingJournalEntryRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingJournalEntryRequest$outboundSchema; + /** @deprecated use `ListAccountingJournalEntryRequest$Outbound` instead. */ + export type Outbound = ListAccountingJournalEntryRequest$Outbound; } /** @internal */ -export namespace ListAccountingJournalEntryResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingJournalEntryResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingJournalentryOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingJournalEntryResponseBody$inboundSchema: z.ZodType< + ListAccountingJournalEntryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingJournalentryOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingJournalEntryResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingJournalEntryResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingJournalentryOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingJournalEntryResponseBody$outboundSchema: z.ZodType< + ListAccountingJournalEntryResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingJournalEntryResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingJournalentryOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingJournalEntryResponseBody$ { + /** @deprecated use `ListAccountingJournalEntryResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingJournalEntryResponseBody$inboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingJournalEntryResponseBody$outboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingJournalEntryResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingJournalEntryResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingJournalEntryResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingJournalEntryResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingJournalEntryResponse$inboundSchema: z.ZodType< + ListAccountingJournalEntryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingJournalEntryResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingJournalEntryResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingJournalEntryResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingJournalEntryResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingJournalEntryResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingJournalEntryResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingJournalEntryResponse$outboundSchema: z.ZodType< + ListAccountingJournalEntryResponse$Outbound, + z.ZodTypeDef, + ListAccountingJournalEntryResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingJournalEntryResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingJournalEntryResponse$ { + /** @deprecated use `ListAccountingJournalEntryResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingJournalEntryResponse$inboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingJournalEntryResponse$outboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponse$Outbound` instead. */ + export type Outbound = ListAccountingJournalEntryResponse$Outbound; } diff --git a/src/models/operations/listaccountingpayment.ts b/src/models/operations/listaccountingpayment.ts index 318495c6..a1e88e87 100644 --- a/src/models/operations/listaccountingpayment.ts +++ b/src/models/operations/listaccountingpayment.ts @@ -37,113 +37,167 @@ export type ListAccountingPaymentResponse = { }; /** @internal */ -export namespace ListAccountingPaymentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< + ListAccountingPaymentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingPaymentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingPaymentRequest$outboundSchema: z.ZodType< + ListAccountingPaymentRequest$Outbound, + z.ZodTypeDef, + ListAccountingPaymentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPaymentRequest$ { + /** @deprecated use `ListAccountingPaymentRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPaymentRequest$inboundSchema; + /** @deprecated use `ListAccountingPaymentRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPaymentRequest$outboundSchema; + /** @deprecated use `ListAccountingPaymentRequest$Outbound` instead. */ + export type Outbound = ListAccountingPaymentRequest$Outbound; } /** @internal */ -export namespace ListAccountingPaymentResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingPaymentResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingPaymentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingPaymentResponseBody$inboundSchema: z.ZodType< + ListAccountingPaymentResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingPaymentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingPaymentResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPaymentResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingPaymentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingPaymentResponseBody$outboundSchema: z.ZodType< + ListAccountingPaymentResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingPaymentResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingPaymentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPaymentResponseBody$ { + /** @deprecated use `ListAccountingPaymentResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPaymentResponseBody$inboundSchema; + /** @deprecated use `ListAccountingPaymentResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPaymentResponseBody$outboundSchema; + /** @deprecated use `ListAccountingPaymentResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingPaymentResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingPaymentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingPaymentResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingPaymentResponse$inboundSchema: z.ZodType< + ListAccountingPaymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingPaymentResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingPaymentResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingPaymentResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingPaymentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingPaymentResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingPaymentResponse$outboundSchema: z.ZodType< + ListAccountingPaymentResponse$Outbound, + z.ZodTypeDef, + ListAccountingPaymentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingPaymentResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPaymentResponse$ { + /** @deprecated use `ListAccountingPaymentResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPaymentResponse$inboundSchema; + /** @deprecated use `ListAccountingPaymentResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPaymentResponse$outboundSchema; + /** @deprecated use `ListAccountingPaymentResponse$Outbound` instead. */ + export type Outbound = ListAccountingPaymentResponse$Outbound; } diff --git a/src/models/operations/listaccountingphonenumber.ts b/src/models/operations/listaccountingphonenumber.ts index c76a6932..7adcaf73 100644 --- a/src/models/operations/listaccountingphonenumber.ts +++ b/src/models/operations/listaccountingphonenumber.ts @@ -37,125 +37,167 @@ export type ListAccountingPhonenumberResponse = { }; /** @internal */ -export namespace ListAccountingPhonenumberRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPhonenumberRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< + ListAccountingPhonenumberRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingPhonenumberRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingPhonenumberRequest$outboundSchema: z.ZodType< + ListAccountingPhonenumberRequest$Outbound, + z.ZodTypeDef, + ListAccountingPhonenumberRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPhonenumberRequest$ { + /** @deprecated use `ListAccountingPhonenumberRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPhonenumberRequest$inboundSchema; + /** @deprecated use `ListAccountingPhonenumberRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPhonenumberRequest$outboundSchema; + /** @deprecated use `ListAccountingPhonenumberRequest$Outbound` instead. */ + export type Outbound = ListAccountingPhonenumberRequest$Outbound; } /** @internal */ -export namespace ListAccountingPhonenumberResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingPhonenumberResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingPhonenumberOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingPhonenumberResponseBody$inboundSchema: z.ZodType< + ListAccountingPhonenumberResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingPhonenumberOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPhonenumberResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingPhonenumberOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export type ListAccountingPhonenumberResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAccountingPhonenumberResponseBody$outboundSchema: z.ZodType< + ListAccountingPhonenumberResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingPhonenumberResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingPhonenumberOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPhonenumberResponseBody$ { + /** @deprecated use `ListAccountingPhonenumberResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPhonenumberResponseBody$inboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPhonenumberResponseBody$outboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingPhonenumberResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingPhonenumberResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingPhonenumberResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingPhonenumberResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingPhonenumberResponse$inboundSchema: z.ZodType< + ListAccountingPhonenumberResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingPhonenumberResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingPhonenumberResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPhonenumberResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingPhonenumberResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAccountingPhonenumberResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingPhonenumberResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingPhonenumberResponse$outboundSchema: z.ZodType< + ListAccountingPhonenumberResponse$Outbound, + z.ZodTypeDef, + ListAccountingPhonenumberResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingPhonenumberResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPhonenumberResponse$ { + /** @deprecated use `ListAccountingPhonenumberResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPhonenumberResponse$inboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPhonenumberResponse$outboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponse$Outbound` instead. */ + export type Outbound = ListAccountingPhonenumberResponse$Outbound; } diff --git a/src/models/operations/listaccountingpurchaseorder.ts b/src/models/operations/listaccountingpurchaseorder.ts index ee102a10..afa42d28 100644 --- a/src/models/operations/listaccountingpurchaseorder.ts +++ b/src/models/operations/listaccountingpurchaseorder.ts @@ -37,130 +37,167 @@ export type ListAccountingPurchaseOrderResponse = { }; /** @internal */ -export namespace ListAccountingPurchaseOrderRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingPurchaseOrderRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< + ListAccountingPurchaseOrderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPurchaseOrderRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingPurchaseOrderRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingPurchaseOrderRequest$outboundSchema: z.ZodType< + ListAccountingPurchaseOrderRequest$Outbound, + z.ZodTypeDef, + ListAccountingPurchaseOrderRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPurchaseOrderRequest$ { + /** @deprecated use `ListAccountingPurchaseOrderRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPurchaseOrderRequest$inboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPurchaseOrderRequest$outboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderRequest$Outbound` instead. */ + export type Outbound = ListAccountingPurchaseOrderRequest$Outbound; } /** @internal */ -export namespace ListAccountingPurchaseOrderResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingPurchaseOrderResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingPurchaseorderOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingPurchaseOrderResponseBody$inboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingPurchaseorderOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingPurchaseOrderResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPurchaseOrderResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingPurchaseorderOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingPurchaseOrderResponseBody$outboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingPurchaseOrderResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingPurchaseorderOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPurchaseOrderResponseBody$ { + /** @deprecated use `ListAccountingPurchaseOrderResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPurchaseOrderResponseBody$inboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPurchaseOrderResponseBody$outboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingPurchaseOrderResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingPurchaseOrderResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingPurchaseOrderResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingPurchaseOrderResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingPurchaseOrderResponse$inboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingPurchaseOrderResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingPurchaseOrderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingPurchaseOrderResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingPurchaseOrderResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingPurchaseOrderResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListAccountingPurchaseOrderResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingPurchaseOrderResponse$outboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponse$Outbound, + z.ZodTypeDef, + ListAccountingPurchaseOrderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingPurchaseOrderResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingPurchaseOrderResponse$ { + /** @deprecated use `ListAccountingPurchaseOrderResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPurchaseOrderResponse$inboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPurchaseOrderResponse$outboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponse$Outbound` instead. */ + export type Outbound = ListAccountingPurchaseOrderResponse$Outbound; } diff --git a/src/models/operations/listaccountingtaxrate.ts b/src/models/operations/listaccountingtaxrate.ts index 965ac321..436ae0a9 100644 --- a/src/models/operations/listaccountingtaxrate.ts +++ b/src/models/operations/listaccountingtaxrate.ts @@ -37,113 +37,167 @@ export type ListAccountingTaxRateResponse = { }; /** @internal */ -export namespace ListAccountingTaxRateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< + ListAccountingTaxRateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingTaxRateRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingTaxRateRequest$outboundSchema: z.ZodType< + ListAccountingTaxRateRequest$Outbound, + z.ZodTypeDef, + ListAccountingTaxRateRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTaxRateRequest$ { + /** @deprecated use `ListAccountingTaxRateRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTaxRateRequest$inboundSchema; + /** @deprecated use `ListAccountingTaxRateRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTaxRateRequest$outboundSchema; + /** @deprecated use `ListAccountingTaxRateRequest$Outbound` instead. */ + export type Outbound = ListAccountingTaxRateRequest$Outbound; } /** @internal */ -export namespace ListAccountingTaxRateResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingTaxRateResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingTaxrateOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingTaxRateResponseBody$inboundSchema: z.ZodType< + ListAccountingTaxRateResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingTaxrateOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingTaxRateResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTaxRateResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingTaxrateOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingTaxRateResponseBody$outboundSchema: z.ZodType< + ListAccountingTaxRateResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingTaxRateResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingTaxrateOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTaxRateResponseBody$ { + /** @deprecated use `ListAccountingTaxRateResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTaxRateResponseBody$inboundSchema; + /** @deprecated use `ListAccountingTaxRateResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTaxRateResponseBody$outboundSchema; + /** @deprecated use `ListAccountingTaxRateResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingTaxRateResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingTaxRateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingTaxRateResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingTaxRateResponse$inboundSchema: z.ZodType< + ListAccountingTaxRateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingTaxRateResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingTaxRateResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingTaxRateResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListAccountingTaxRateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingTaxRateResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingTaxRateResponse$outboundSchema: z.ZodType< + ListAccountingTaxRateResponse$Outbound, + z.ZodTypeDef, + ListAccountingTaxRateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingTaxRateResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTaxRateResponse$ { + /** @deprecated use `ListAccountingTaxRateResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTaxRateResponse$inboundSchema; + /** @deprecated use `ListAccountingTaxRateResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTaxRateResponse$outboundSchema; + /** @deprecated use `ListAccountingTaxRateResponse$Outbound` instead. */ + export type Outbound = ListAccountingTaxRateResponse$Outbound; } diff --git a/src/models/operations/listaccountingtrackingcategorys.ts b/src/models/operations/listaccountingtrackingcategorys.ts index 2a2a1f4a..ce6d9835 100644 --- a/src/models/operations/listaccountingtrackingcategorys.ts +++ b/src/models/operations/listaccountingtrackingcategorys.ts @@ -37,132 +37,167 @@ export type ListAccountingTrackingCategorysResponse = { }; /** @internal */ -export namespace ListAccountingTrackingCategorysRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingTrackingCategorysRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< + ListAccountingTrackingCategorysRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTrackingCategorysRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingTrackingCategorysRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingTrackingCategorysRequest$outboundSchema: z.ZodType< + ListAccountingTrackingCategorysRequest$Outbound, + z.ZodTypeDef, + ListAccountingTrackingCategorysRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTrackingCategorysRequest$ { + /** @deprecated use `ListAccountingTrackingCategorysRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTrackingCategorysRequest$inboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTrackingCategorysRequest$outboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysRequest$Outbound` instead. */ + export type Outbound = ListAccountingTrackingCategorysRequest$Outbound; } /** @internal */ -export namespace ListAccountingTrackingCategorysResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingTrackingCategorysResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingTrackingcategoryOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingTrackingCategorysResponseBody$inboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingTrackingcategoryOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingTrackingCategorysResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTrackingCategorysResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingTrackingcategoryOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingTrackingCategorysResponseBody$outboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingTrackingCategorysResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingTrackingcategoryOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTrackingCategorysResponseBody$ { + /** @deprecated use `ListAccountingTrackingCategorysResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTrackingCategorysResponseBody$inboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTrackingCategorysResponseBody$outboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingTrackingCategorysResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingTrackingCategorysResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingTrackingCategorysResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListAccountingTrackingCategorysResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingTrackingCategorysResponse$inboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingTrackingCategorysResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingTrackingCategorysResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingTrackingCategorysResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingTrackingCategorysResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTrackingCategorysResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListAccountingTrackingCategorysResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingTrackingCategorysResponse$outboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponse$Outbound, + z.ZodTypeDef, + ListAccountingTrackingCategorysResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingTrackingCategorysResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTrackingCategorysResponse$ { + /** @deprecated use `ListAccountingTrackingCategorysResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTrackingCategorysResponse$inboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTrackingCategorysResponse$outboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponse$Outbound` instead. */ + export type Outbound = ListAccountingTrackingCategorysResponse$Outbound; } diff --git a/src/models/operations/listaccountingtransaction.ts b/src/models/operations/listaccountingtransaction.ts index 5b35adc7..409a1bcd 100644 --- a/src/models/operations/listaccountingtransaction.ts +++ b/src/models/operations/listaccountingtransaction.ts @@ -37,125 +37,167 @@ export type ListAccountingTransactionResponse = { }; /** @internal */ -export namespace ListAccountingTransactionRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTransactionRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< + ListAccountingTransactionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAccountingTransactionRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingTransactionRequest$outboundSchema: z.ZodType< + ListAccountingTransactionRequest$Outbound, + z.ZodTypeDef, + ListAccountingTransactionRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTransactionRequest$ { + /** @deprecated use `ListAccountingTransactionRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTransactionRequest$inboundSchema; + /** @deprecated use `ListAccountingTransactionRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTransactionRequest$outboundSchema; + /** @deprecated use `ListAccountingTransactionRequest$Outbound` instead. */ + export type Outbound = ListAccountingTransactionRequest$Outbound; } /** @internal */ -export namespace ListAccountingTransactionResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingTransactionResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingTransactionOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingTransactionResponseBody$inboundSchema: z.ZodType< + ListAccountingTransactionResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingTransactionOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTransactionResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingTransactionOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export type ListAccountingTransactionResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAccountingTransactionResponseBody$outboundSchema: z.ZodType< + ListAccountingTransactionResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingTransactionResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingTransactionOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTransactionResponseBody$ { + /** @deprecated use `ListAccountingTransactionResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTransactionResponseBody$inboundSchema; + /** @deprecated use `ListAccountingTransactionResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTransactionResponseBody$outboundSchema; + /** @deprecated use `ListAccountingTransactionResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingTransactionResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingTransactionResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingTransactionResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingTransactionResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingTransactionResponse$inboundSchema: z.ZodType< + ListAccountingTransactionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingTransactionResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingTransactionResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingTransactionResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingTransactionResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAccountingTransactionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingTransactionResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAccountingTransactionResponse$outboundSchema: z.ZodType< + ListAccountingTransactionResponse$Outbound, + z.ZodTypeDef, + ListAccountingTransactionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingTransactionResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingTransactionResponse$ { + /** @deprecated use `ListAccountingTransactionResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTransactionResponse$inboundSchema; + /** @deprecated use `ListAccountingTransactionResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTransactionResponse$outboundSchema; + /** @deprecated use `ListAccountingTransactionResponse$Outbound` instead. */ + export type Outbound = ListAccountingTransactionResponse$Outbound; } diff --git a/src/models/operations/listaccountingvendorcredit.ts b/src/models/operations/listaccountingvendorcredit.ts index 5f92533a..0735c297 100644 --- a/src/models/operations/listaccountingvendorcredit.ts +++ b/src/models/operations/listaccountingvendorcredit.ts @@ -37,128 +37,167 @@ export type ListAccountingVendorCreditResponse = { }; /** @internal */ -export namespace ListAccountingVendorCreditRequest$ { - export const inboundSchema: z.ZodType< - ListAccountingVendorCreditRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< + ListAccountingVendorCreditRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingVendorCreditRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAccountingVendorCreditRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAccountingVendorCreditRequest$outboundSchema: z.ZodType< + ListAccountingVendorCreditRequest$Outbound, + z.ZodTypeDef, + ListAccountingVendorCreditRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingVendorCreditRequest$ { + /** @deprecated use `ListAccountingVendorCreditRequest$inboundSchema` instead. */ + export const inboundSchema = ListAccountingVendorCreditRequest$inboundSchema; + /** @deprecated use `ListAccountingVendorCreditRequest$outboundSchema` instead. */ + export const outboundSchema = ListAccountingVendorCreditRequest$outboundSchema; + /** @deprecated use `ListAccountingVendorCreditRequest$Outbound` instead. */ + export type Outbound = ListAccountingVendorCreditRequest$Outbound; } /** @internal */ -export namespace ListAccountingVendorCreditResponseBody$ { - export const inboundSchema: z.ZodType< - ListAccountingVendorCreditResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAccountingVendorcreditOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAccountingVendorCreditResponseBody$inboundSchema: z.ZodType< + ListAccountingVendorCreditResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAccountingVendorcreditOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAccountingVendorCreditResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingVendorCreditResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAccountingVendorcreditOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAccountingVendorCreditResponseBody$outboundSchema: z.ZodType< + ListAccountingVendorCreditResponseBody$Outbound, + z.ZodTypeDef, + ListAccountingVendorCreditResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAccountingVendorcreditOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingVendorCreditResponseBody$ { + /** @deprecated use `ListAccountingVendorCreditResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAccountingVendorCreditResponseBody$inboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAccountingVendorCreditResponseBody$outboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponseBody$Outbound` instead. */ + export type Outbound = ListAccountingVendorCreditResponseBody$Outbound; } /** @internal */ -export namespace ListAccountingVendorCreditResponse$ { - export const inboundSchema: z.ZodType< - ListAccountingVendorCreditResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAccountingVendorCreditResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAccountingVendorCreditResponse$inboundSchema: z.ZodType< + ListAccountingVendorCreditResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAccountingVendorCreditResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAccountingVendorCreditResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAccountingVendorCreditResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAccountingVendorCreditResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAccountingVendorCreditResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAccountingVendorCreditResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAccountingVendorCreditResponse$outboundSchema: z.ZodType< + ListAccountingVendorCreditResponse$Outbound, + z.ZodTypeDef, + ListAccountingVendorCreditResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAccountingVendorCreditResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAccountingVendorCreditResponse$ { + /** @deprecated use `ListAccountingVendorCreditResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingVendorCreditResponse$inboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingVendorCreditResponse$outboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponse$Outbound` instead. */ + export type Outbound = ListAccountingVendorCreditResponse$Outbound; } diff --git a/src/models/operations/listatsactivity.ts b/src/models/operations/listatsactivity.ts index 8036b9b0..4f5d6a25 100644 --- a/src/models/operations/listatsactivity.ts +++ b/src/models/operations/listatsactivity.ts @@ -37,104 +37,167 @@ export type ListAtsActivityResponse = { }; /** @internal */ -export namespace ListAtsActivityRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsActivityRequest$inboundSchema: z.ZodType< + ListAtsActivityRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsActivityRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsActivityRequest$outboundSchema: z.ZodType< + ListAtsActivityRequest$Outbound, + z.ZodTypeDef, + ListAtsActivityRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsActivityRequest$ { + /** @deprecated use `ListAtsActivityRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsActivityRequest$inboundSchema; + /** @deprecated use `ListAtsActivityRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsActivityRequest$outboundSchema; + /** @deprecated use `ListAtsActivityRequest$Outbound` instead. */ + export type Outbound = ListAtsActivityRequest$Outbound; } /** @internal */ -export namespace ListAtsActivityResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsActivityOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsActivityResponseBody$inboundSchema: z.ZodType< + ListAtsActivityResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsActivityOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsActivityResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsActivityOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsActivityResponseBody$outboundSchema: z.ZodType< + ListAtsActivityResponseBody$Outbound, + z.ZodTypeDef, + ListAtsActivityResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsActivityOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsActivityResponseBody$ { + /** @deprecated use `ListAtsActivityResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsActivityResponseBody$inboundSchema; + /** @deprecated use `ListAtsActivityResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsActivityResponseBody$outboundSchema; + /** @deprecated use `ListAtsActivityResponseBody$Outbound` instead. */ + export type Outbound = ListAtsActivityResponseBody$Outbound; } /** @internal */ -export namespace ListAtsActivityResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsActivityResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsActivityResponse$inboundSchema: z.ZodType< + ListAtsActivityResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsActivityResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsActivityResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsActivityResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsActivityResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsActivityResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsActivityResponse$outboundSchema: z.ZodType< + ListAtsActivityResponse$Outbound, + z.ZodTypeDef, + ListAtsActivityResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsActivityResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsActivityResponse$ { + /** @deprecated use `ListAtsActivityResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsActivityResponse$inboundSchema; + /** @deprecated use `ListAtsActivityResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsActivityResponse$outboundSchema; + /** @deprecated use `ListAtsActivityResponse$Outbound` instead. */ + export type Outbound = ListAtsActivityResponse$Outbound; } diff --git a/src/models/operations/listatsapplication.ts b/src/models/operations/listatsapplication.ts index c28de1f1..93828562 100644 --- a/src/models/operations/listatsapplication.ts +++ b/src/models/operations/listatsapplication.ts @@ -37,105 +37,167 @@ export type ListAtsApplicationResponse = { }; /** @internal */ -export namespace ListAtsApplicationRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsApplicationRequest$inboundSchema: z.ZodType< + ListAtsApplicationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsApplicationRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsApplicationRequest$outboundSchema: z.ZodType< + ListAtsApplicationRequest$Outbound, + z.ZodTypeDef, + ListAtsApplicationRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsApplicationRequest$ { + /** @deprecated use `ListAtsApplicationRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsApplicationRequest$inboundSchema; + /** @deprecated use `ListAtsApplicationRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsApplicationRequest$outboundSchema; + /** @deprecated use `ListAtsApplicationRequest$Outbound` instead. */ + export type Outbound = ListAtsApplicationRequest$Outbound; } /** @internal */ -export namespace ListAtsApplicationResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsApplicationOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsApplicationResponseBody$inboundSchema: z.ZodType< + ListAtsApplicationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsApplicationOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListAtsApplicationResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAtsApplicationResponseBody$outboundSchema: z.ZodType< + ListAtsApplicationResponseBody$Outbound, + z.ZodTypeDef, + ListAtsApplicationResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsApplicationOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsApplicationOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsApplicationResponseBody$ { + /** @deprecated use `ListAtsApplicationResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsApplicationResponseBody$inboundSchema; + /** @deprecated use `ListAtsApplicationResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsApplicationResponseBody$outboundSchema; + /** @deprecated use `ListAtsApplicationResponseBody$Outbound` instead. */ + export type Outbound = ListAtsApplicationResponseBody$Outbound; } /** @internal */ -export namespace ListAtsApplicationResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsApplicationResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsApplicationResponse$inboundSchema: z.ZodType< + ListAtsApplicationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsApplicationResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsApplicationResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsApplicationResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAtsApplicationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsApplicationResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAtsApplicationResponse$outboundSchema: z.ZodType< + ListAtsApplicationResponse$Outbound, + z.ZodTypeDef, + ListAtsApplicationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsApplicationResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsApplicationResponse$ { + /** @deprecated use `ListAtsApplicationResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsApplicationResponse$inboundSchema; + /** @deprecated use `ListAtsApplicationResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsApplicationResponse$outboundSchema; + /** @deprecated use `ListAtsApplicationResponse$Outbound` instead. */ + export type Outbound = ListAtsApplicationResponse$Outbound; } diff --git a/src/models/operations/listatsattachment.ts b/src/models/operations/listatsattachment.ts index a39b493d..ba609028 100644 --- a/src/models/operations/listatsattachment.ts +++ b/src/models/operations/listatsattachment.ts @@ -37,105 +37,167 @@ export type ListAtsAttachmentResponse = { }; /** @internal */ -export namespace ListAtsAttachmentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsAttachmentRequest$inboundSchema: z.ZodType< + ListAtsAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsAttachmentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsAttachmentRequest$outboundSchema: z.ZodType< + ListAtsAttachmentRequest$Outbound, + z.ZodTypeDef, + ListAtsAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsAttachmentRequest$ { + /** @deprecated use `ListAtsAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsAttachmentRequest$inboundSchema; + /** @deprecated use `ListAtsAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsAttachmentRequest$outboundSchema; + /** @deprecated use `ListAtsAttachmentRequest$Outbound` instead. */ + export type Outbound = ListAtsAttachmentRequest$Outbound; } /** @internal */ -export namespace ListAtsAttachmentResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsAttachmentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsAttachmentResponseBody$inboundSchema: z.ZodType< + ListAtsAttachmentResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsAttachmentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListAtsAttachmentResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAtsAttachmentResponseBody$outboundSchema: z.ZodType< + ListAtsAttachmentResponseBody$Outbound, + z.ZodTypeDef, + ListAtsAttachmentResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsAttachmentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsAttachmentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsAttachmentResponseBody$ { + /** @deprecated use `ListAtsAttachmentResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsAttachmentResponseBody$inboundSchema; + /** @deprecated use `ListAtsAttachmentResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsAttachmentResponseBody$outboundSchema; + /** @deprecated use `ListAtsAttachmentResponseBody$Outbound` instead. */ + export type Outbound = ListAtsAttachmentResponseBody$Outbound; } /** @internal */ -export namespace ListAtsAttachmentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsAttachmentResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsAttachmentResponse$inboundSchema: z.ZodType< + ListAtsAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsAttachmentResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsAttachmentResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsAttachmentResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListAtsAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsAttachmentResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAtsAttachmentResponse$outboundSchema: z.ZodType< + ListAtsAttachmentResponse$Outbound, + z.ZodTypeDef, + ListAtsAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsAttachmentResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsAttachmentResponse$ { + /** @deprecated use `ListAtsAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsAttachmentResponse$inboundSchema; + /** @deprecated use `ListAtsAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsAttachmentResponse$outboundSchema; + /** @deprecated use `ListAtsAttachmentResponse$Outbound` instead. */ + export type Outbound = ListAtsAttachmentResponse$Outbound; } diff --git a/src/models/operations/listatscandidate.ts b/src/models/operations/listatscandidate.ts index 35805c38..f29c149c 100644 --- a/src/models/operations/listatscandidate.ts +++ b/src/models/operations/listatscandidate.ts @@ -37,104 +37,167 @@ export type ListAtsCandidateResponse = { }; /** @internal */ -export namespace ListAtsCandidateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsCandidateRequest$inboundSchema: z.ZodType< + ListAtsCandidateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsCandidateRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsCandidateRequest$outboundSchema: z.ZodType< + ListAtsCandidateRequest$Outbound, + z.ZodTypeDef, + ListAtsCandidateRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsCandidateRequest$ { + /** @deprecated use `ListAtsCandidateRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsCandidateRequest$inboundSchema; + /** @deprecated use `ListAtsCandidateRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsCandidateRequest$outboundSchema; + /** @deprecated use `ListAtsCandidateRequest$Outbound` instead. */ + export type Outbound = ListAtsCandidateRequest$Outbound; } /** @internal */ -export namespace ListAtsCandidateResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsCandidateOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsCandidateResponseBody$inboundSchema: z.ZodType< + ListAtsCandidateResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsCandidateOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsCandidateResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsCandidateOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsCandidateResponseBody$outboundSchema: z.ZodType< + ListAtsCandidateResponseBody$Outbound, + z.ZodTypeDef, + ListAtsCandidateResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsCandidateOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsCandidateResponseBody$ { + /** @deprecated use `ListAtsCandidateResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsCandidateResponseBody$inboundSchema; + /** @deprecated use `ListAtsCandidateResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsCandidateResponseBody$outboundSchema; + /** @deprecated use `ListAtsCandidateResponseBody$Outbound` instead. */ + export type Outbound = ListAtsCandidateResponseBody$Outbound; } /** @internal */ -export namespace ListAtsCandidateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsCandidateResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsCandidateResponse$inboundSchema: z.ZodType< + ListAtsCandidateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsCandidateResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsCandidateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsCandidateResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsCandidateResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsCandidateResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsCandidateResponse$outboundSchema: z.ZodType< + ListAtsCandidateResponse$Outbound, + z.ZodTypeDef, + ListAtsCandidateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsCandidateResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsCandidateResponse$ { + /** @deprecated use `ListAtsCandidateResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsCandidateResponse$inboundSchema; + /** @deprecated use `ListAtsCandidateResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsCandidateResponse$outboundSchema; + /** @deprecated use `ListAtsCandidateResponse$Outbound` instead. */ + export type Outbound = ListAtsCandidateResponse$Outbound; } diff --git a/src/models/operations/listatsdepartments.ts b/src/models/operations/listatsdepartments.ts new file mode 100644 index 00000000..a5eee136 --- /dev/null +++ b/src/models/operations/listatsdepartments.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListAtsDepartmentsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListAtsDepartmentsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListAtsDepartmentsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListAtsDepartmentsResponseBody | undefined; +}; + +/** @internal */ +export const ListAtsDepartmentsRequest$inboundSchema: z.ZodType< + ListAtsDepartmentsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAtsDepartmentsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsDepartmentsRequest$outboundSchema: z.ZodType< + ListAtsDepartmentsRequest$Outbound, + z.ZodTypeDef, + ListAtsDepartmentsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsDepartmentsRequest$ { + /** @deprecated use `ListAtsDepartmentsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsDepartmentsRequest$inboundSchema; + /** @deprecated use `ListAtsDepartmentsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsDepartmentsRequest$outboundSchema; + /** @deprecated use `ListAtsDepartmentsRequest$Outbound` instead. */ + export type Outbound = ListAtsDepartmentsRequest$Outbound; +} + +/** @internal */ +export const ListAtsDepartmentsResponseBody$inboundSchema: z.ZodType< + ListAtsDepartmentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsDepartmentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListAtsDepartmentsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAtsDepartmentsResponseBody$outboundSchema: z.ZodType< + ListAtsDepartmentsResponseBody$Outbound, + z.ZodTypeDef, + ListAtsDepartmentsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsDepartmentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsDepartmentsResponseBody$ { + /** @deprecated use `ListAtsDepartmentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsDepartmentsResponseBody$inboundSchema; + /** @deprecated use `ListAtsDepartmentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsDepartmentsResponseBody$outboundSchema; + /** @deprecated use `ListAtsDepartmentsResponseBody$Outbound` instead. */ + export type Outbound = ListAtsDepartmentsResponseBody$Outbound; +} + +/** @internal */ +export const ListAtsDepartmentsResponse$inboundSchema: z.ZodType< + ListAtsDepartmentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsDepartmentsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListAtsDepartmentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsDepartmentsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAtsDepartmentsResponse$outboundSchema: z.ZodType< + ListAtsDepartmentsResponse$Outbound, + z.ZodTypeDef, + ListAtsDepartmentsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsDepartmentsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsDepartmentsResponse$ { + /** @deprecated use `ListAtsDepartmentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsDepartmentsResponse$inboundSchema; + /** @deprecated use `ListAtsDepartmentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsDepartmentsResponse$outboundSchema; + /** @deprecated use `ListAtsDepartmentsResponse$Outbound` instead. */ + export type Outbound = ListAtsDepartmentsResponse$Outbound; +} diff --git a/src/models/operations/listatseeocs.ts b/src/models/operations/listatseeocs.ts index adf2220c..50e7f1d0 100644 --- a/src/models/operations/listatseeocs.ts +++ b/src/models/operations/listatseeocs.ts @@ -37,104 +37,167 @@ export type ListAtsEeocsResponse = { }; /** @internal */ -export namespace ListAtsEeocsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsEeocsRequest$inboundSchema: z.ZodType< + ListAtsEeocsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsEeocsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsEeocsRequest$outboundSchema: z.ZodType< + ListAtsEeocsRequest$Outbound, + z.ZodTypeDef, + ListAtsEeocsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsEeocsRequest$ { + /** @deprecated use `ListAtsEeocsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsEeocsRequest$inboundSchema; + /** @deprecated use `ListAtsEeocsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsEeocsRequest$outboundSchema; + /** @deprecated use `ListAtsEeocsRequest$Outbound` instead. */ + export type Outbound = ListAtsEeocsRequest$Outbound; } /** @internal */ -export namespace ListAtsEeocsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsEeocsOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsEeocsResponseBody$inboundSchema: z.ZodType< + ListAtsEeocsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsEeocsOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsEeocsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsEeocsOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsEeocsResponseBody$outboundSchema: z.ZodType< + ListAtsEeocsResponseBody$Outbound, + z.ZodTypeDef, + ListAtsEeocsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsEeocsOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsEeocsResponseBody$ { + /** @deprecated use `ListAtsEeocsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsEeocsResponseBody$inboundSchema; + /** @deprecated use `ListAtsEeocsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsEeocsResponseBody$outboundSchema; + /** @deprecated use `ListAtsEeocsResponseBody$Outbound` instead. */ + export type Outbound = ListAtsEeocsResponseBody$Outbound; } /** @internal */ -export namespace ListAtsEeocsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsEeocsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsEeocsResponse$inboundSchema: z.ZodType< + ListAtsEeocsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsEeocsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsEeocsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsEeocsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsEeocsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsEeocsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsEeocsResponse$outboundSchema: z.ZodType< + ListAtsEeocsResponse$Outbound, + z.ZodTypeDef, + ListAtsEeocsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsEeocsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsEeocsResponse$ { + /** @deprecated use `ListAtsEeocsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsEeocsResponse$inboundSchema; + /** @deprecated use `ListAtsEeocsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsEeocsResponse$outboundSchema; + /** @deprecated use `ListAtsEeocsResponse$Outbound` instead. */ + export type Outbound = ListAtsEeocsResponse$Outbound; } diff --git a/src/models/operations/listatsinterview.ts b/src/models/operations/listatsinterview.ts index 870f235c..88d8cc40 100644 --- a/src/models/operations/listatsinterview.ts +++ b/src/models/operations/listatsinterview.ts @@ -37,104 +37,167 @@ export type ListAtsInterviewResponse = { }; /** @internal */ -export namespace ListAtsInterviewRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsInterviewRequest$inboundSchema: z.ZodType< + ListAtsInterviewRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsInterviewRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsInterviewRequest$outboundSchema: z.ZodType< + ListAtsInterviewRequest$Outbound, + z.ZodTypeDef, + ListAtsInterviewRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsInterviewRequest$ { + /** @deprecated use `ListAtsInterviewRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsInterviewRequest$inboundSchema; + /** @deprecated use `ListAtsInterviewRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsInterviewRequest$outboundSchema; + /** @deprecated use `ListAtsInterviewRequest$Outbound` instead. */ + export type Outbound = ListAtsInterviewRequest$Outbound; } /** @internal */ -export namespace ListAtsInterviewResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsInterviewOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsInterviewResponseBody$inboundSchema: z.ZodType< + ListAtsInterviewResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsInterviewOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsInterviewResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsInterviewOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsInterviewResponseBody$outboundSchema: z.ZodType< + ListAtsInterviewResponseBody$Outbound, + z.ZodTypeDef, + ListAtsInterviewResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsInterviewOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsInterviewResponseBody$ { + /** @deprecated use `ListAtsInterviewResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsInterviewResponseBody$inboundSchema; + /** @deprecated use `ListAtsInterviewResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsInterviewResponseBody$outboundSchema; + /** @deprecated use `ListAtsInterviewResponseBody$Outbound` instead. */ + export type Outbound = ListAtsInterviewResponseBody$Outbound; } /** @internal */ -export namespace ListAtsInterviewResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsInterviewResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsInterviewResponse$inboundSchema: z.ZodType< + ListAtsInterviewResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsInterviewResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsInterviewResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsInterviewResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsInterviewResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsInterviewResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsInterviewResponse$outboundSchema: z.ZodType< + ListAtsInterviewResponse$Outbound, + z.ZodTypeDef, + ListAtsInterviewResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsInterviewResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsInterviewResponse$ { + /** @deprecated use `ListAtsInterviewResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsInterviewResponse$inboundSchema; + /** @deprecated use `ListAtsInterviewResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsInterviewResponse$outboundSchema; + /** @deprecated use `ListAtsInterviewResponse$Outbound` instead. */ + export type Outbound = ListAtsInterviewResponse$Outbound; } diff --git a/src/models/operations/listatsjob.ts b/src/models/operations/listatsjob.ts index 9addcb64..0147805e 100644 --- a/src/models/operations/listatsjob.ts +++ b/src/models/operations/listatsjob.ts @@ -37,8 +37,8 @@ export type ListAtsJobResponse = { }; /** @internal */ -export namespace ListAtsJobRequest$ { - export const inboundSchema: z.ZodType = z +export const ListAtsJobRequest$inboundSchema: z.ZodType = + z .object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), @@ -52,89 +52,149 @@ export namespace ListAtsJobRequest$ { }); }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; +/** @internal */ +export type ListAtsJobRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const ListAtsJobRequest$outboundSchema: z.ZodType< + ListAtsJobRequest$Outbound, + z.ZodTypeDef, + ListAtsJobRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobRequest$ { + /** @deprecated use `ListAtsJobRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobRequest$inboundSchema; + /** @deprecated use `ListAtsJobRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobRequest$outboundSchema; + /** @deprecated use `ListAtsJobRequest$Outbound` instead. */ + export type Outbound = ListAtsJobRequest$Outbound; } /** @internal */ -export namespace ListAtsJobResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsJobOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsJobResponseBody$inboundSchema: z.ZodType< + ListAtsJobResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsJobOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; +/** @internal */ +export type ListAtsJobResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsJobOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsJobResponseBody$outboundSchema: z.ZodType< + ListAtsJobResponseBody$Outbound, + z.ZodTypeDef, + ListAtsJobResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsJobOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobResponseBody$ { + /** @deprecated use `ListAtsJobResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobResponseBody$inboundSchema; + /** @deprecated use `ListAtsJobResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobResponseBody$outboundSchema; + /** @deprecated use `ListAtsJobResponseBody$Outbound` instead. */ + export type Outbound = ListAtsJobResponseBody$Outbound; } /** @internal */ -export namespace ListAtsJobResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsJobResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsJobResponse$inboundSchema: z.ZodType< + ListAtsJobResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsJobResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsJobResponseBody$.Outbound | undefined; - }; +/** @internal */ +export type ListAtsJobResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsJobResponseBody$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsJobResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsJobResponse$outboundSchema: z.ZodType< + ListAtsJobResponse$Outbound, + z.ZodTypeDef, + ListAtsJobResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsJobResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobResponse$ { + /** @deprecated use `ListAtsJobResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobResponse$inboundSchema; + /** @deprecated use `ListAtsJobResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobResponse$outboundSchema; + /** @deprecated use `ListAtsJobResponse$Outbound` instead. */ + export type Outbound = ListAtsJobResponse$Outbound; } diff --git a/src/models/operations/listatsjobinterviewstage.ts b/src/models/operations/listatsjobinterviewstage.ts index 7d2d00a7..3946b9ef 100644 --- a/src/models/operations/listatsjobinterviewstage.ts +++ b/src/models/operations/listatsjobinterviewstage.ts @@ -37,124 +37,167 @@ export type ListAtsJobInterviewStageResponse = { }; /** @internal */ -export namespace ListAtsJobInterviewStageRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAtsJobInterviewStageRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListAtsJobInterviewStageRequest$inboundSchema: z.ZodType< + ListAtsJobInterviewStageRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAtsJobInterviewStageRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsJobInterviewStageRequest$outboundSchema: z.ZodType< + ListAtsJobInterviewStageRequest$Outbound, + z.ZodTypeDef, + ListAtsJobInterviewStageRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobInterviewStageRequest$ { + /** @deprecated use `ListAtsJobInterviewStageRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobInterviewStageRequest$inboundSchema; + /** @deprecated use `ListAtsJobInterviewStageRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobInterviewStageRequest$outboundSchema; + /** @deprecated use `ListAtsJobInterviewStageRequest$Outbound` instead. */ + export type Outbound = ListAtsJobInterviewStageRequest$Outbound; } /** @internal */ -export namespace ListAtsJobInterviewStageResponseBody$ { - export const inboundSchema: z.ZodType< - ListAtsJobInterviewStageResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsJobinterviewstageOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsJobInterviewStageResponseBody$inboundSchema: z.ZodType< + ListAtsJobInterviewStageResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsJobinterviewstageOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsJobInterviewStageResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAtsJobInterviewStageResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsJobinterviewstageOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsJobInterviewStageResponseBody$outboundSchema: z.ZodType< + ListAtsJobInterviewStageResponseBody$Outbound, + z.ZodTypeDef, + ListAtsJobInterviewStageResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsJobinterviewstageOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobInterviewStageResponseBody$ { + /** @deprecated use `ListAtsJobInterviewStageResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobInterviewStageResponseBody$inboundSchema; + /** @deprecated use `ListAtsJobInterviewStageResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobInterviewStageResponseBody$outboundSchema; + /** @deprecated use `ListAtsJobInterviewStageResponseBody$Outbound` instead. */ + export type Outbound = ListAtsJobInterviewStageResponseBody$Outbound; } /** @internal */ -export namespace ListAtsJobInterviewStageResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListAtsJobInterviewStageResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsJobInterviewStageResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListAtsJobInterviewStageResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsJobInterviewStageResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const ListAtsJobInterviewStageResponse$inboundSchema: z.ZodType< + ListAtsJobInterviewStageResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsJobInterviewStageResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListAtsJobInterviewStageResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsJobInterviewStageResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAtsJobInterviewStageResponse$outboundSchema: z.ZodType< + ListAtsJobInterviewStageResponse$Outbound, + z.ZodTypeDef, + ListAtsJobInterviewStageResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsJobInterviewStageResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsJobInterviewStageResponse$ { + /** @deprecated use `ListAtsJobInterviewStageResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsJobInterviewStageResponse$inboundSchema; + /** @deprecated use `ListAtsJobInterviewStageResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsJobInterviewStageResponse$outboundSchema; + /** @deprecated use `ListAtsJobInterviewStageResponse$Outbound` instead. */ + export type Outbound = ListAtsJobInterviewStageResponse$Outbound; } diff --git a/src/models/operations/listatsoffer.ts b/src/models/operations/listatsoffer.ts index 968eb6bd..86fc51ae 100644 --- a/src/models/operations/listatsoffer.ts +++ b/src/models/operations/listatsoffer.ts @@ -37,104 +37,167 @@ export type ListAtsOfferResponse = { }; /** @internal */ -export namespace ListAtsOfferRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsOfferRequest$inboundSchema: z.ZodType< + ListAtsOfferRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsOfferRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsOfferRequest$outboundSchema: z.ZodType< + ListAtsOfferRequest$Outbound, + z.ZodTypeDef, + ListAtsOfferRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfferRequest$ { + /** @deprecated use `ListAtsOfferRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfferRequest$inboundSchema; + /** @deprecated use `ListAtsOfferRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfferRequest$outboundSchema; + /** @deprecated use `ListAtsOfferRequest$Outbound` instead. */ + export type Outbound = ListAtsOfferRequest$Outbound; } /** @internal */ -export namespace ListAtsOfferResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsOfferOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsOfferResponseBody$inboundSchema: z.ZodType< + ListAtsOfferResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsOfferOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsOfferResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsOfferOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsOfferResponseBody$outboundSchema: z.ZodType< + ListAtsOfferResponseBody$Outbound, + z.ZodTypeDef, + ListAtsOfferResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsOfferOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfferResponseBody$ { + /** @deprecated use `ListAtsOfferResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfferResponseBody$inboundSchema; + /** @deprecated use `ListAtsOfferResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfferResponseBody$outboundSchema; + /** @deprecated use `ListAtsOfferResponseBody$Outbound` instead. */ + export type Outbound = ListAtsOfferResponseBody$Outbound; } /** @internal */ -export namespace ListAtsOfferResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsOfferResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsOfferResponse$inboundSchema: z.ZodType< + ListAtsOfferResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsOfferResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsOfferResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsOfferResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsOfferResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsOfferResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsOfferResponse$outboundSchema: z.ZodType< + ListAtsOfferResponse$Outbound, + z.ZodTypeDef, + ListAtsOfferResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsOfferResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfferResponse$ { + /** @deprecated use `ListAtsOfferResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfferResponse$inboundSchema; + /** @deprecated use `ListAtsOfferResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfferResponse$outboundSchema; + /** @deprecated use `ListAtsOfferResponse$Outbound` instead. */ + export type Outbound = ListAtsOfferResponse$Outbound; } diff --git a/src/models/operations/listatsoffice.ts b/src/models/operations/listatsoffice.ts index 8e77e7da..049217f4 100644 --- a/src/models/operations/listatsoffice.ts +++ b/src/models/operations/listatsoffice.ts @@ -37,104 +37,167 @@ export type ListAtsOfficeResponse = { }; /** @internal */ -export namespace ListAtsOfficeRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsOfficeRequest$inboundSchema: z.ZodType< + ListAtsOfficeRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsOfficeRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsOfficeRequest$outboundSchema: z.ZodType< + ListAtsOfficeRequest$Outbound, + z.ZodTypeDef, + ListAtsOfficeRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfficeRequest$ { + /** @deprecated use `ListAtsOfficeRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfficeRequest$inboundSchema; + /** @deprecated use `ListAtsOfficeRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfficeRequest$outboundSchema; + /** @deprecated use `ListAtsOfficeRequest$Outbound` instead. */ + export type Outbound = ListAtsOfficeRequest$Outbound; } /** @internal */ -export namespace ListAtsOfficeResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsOfficeOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsOfficeResponseBody$inboundSchema: z.ZodType< + ListAtsOfficeResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsOfficeOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsOfficeResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsOfficeOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsOfficeResponseBody$outboundSchema: z.ZodType< + ListAtsOfficeResponseBody$Outbound, + z.ZodTypeDef, + ListAtsOfficeResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsOfficeOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfficeResponseBody$ { + /** @deprecated use `ListAtsOfficeResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfficeResponseBody$inboundSchema; + /** @deprecated use `ListAtsOfficeResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfficeResponseBody$outboundSchema; + /** @deprecated use `ListAtsOfficeResponseBody$Outbound` instead. */ + export type Outbound = ListAtsOfficeResponseBody$Outbound; } /** @internal */ -export namespace ListAtsOfficeResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsOfficeResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsOfficeResponse$inboundSchema: z.ZodType< + ListAtsOfficeResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsOfficeResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsOfficeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsOfficeResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsOfficeResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsOfficeResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsOfficeResponse$outboundSchema: z.ZodType< + ListAtsOfficeResponse$Outbound, + z.ZodTypeDef, + ListAtsOfficeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsOfficeResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsOfficeResponse$ { + /** @deprecated use `ListAtsOfficeResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsOfficeResponse$inboundSchema; + /** @deprecated use `ListAtsOfficeResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsOfficeResponse$outboundSchema; + /** @deprecated use `ListAtsOfficeResponse$Outbound` instead. */ + export type Outbound = ListAtsOfficeResponse$Outbound; } diff --git a/src/models/operations/listatsrejectreasons.ts b/src/models/operations/listatsrejectreasons.ts new file mode 100644 index 00000000..4b41565e --- /dev/null +++ b/src/models/operations/listatsrejectreasons.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListAtsRejectReasonsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListAtsRejectReasonsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListAtsRejectReasonsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListAtsRejectReasonsResponseBody | undefined; +}; + +/** @internal */ +export const ListAtsRejectReasonsRequest$inboundSchema: z.ZodType< + ListAtsRejectReasonsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListAtsRejectReasonsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsRejectReasonsRequest$outboundSchema: z.ZodType< + ListAtsRejectReasonsRequest$Outbound, + z.ZodTypeDef, + ListAtsRejectReasonsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsRejectReasonsRequest$ { + /** @deprecated use `ListAtsRejectReasonsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsRejectReasonsRequest$inboundSchema; + /** @deprecated use `ListAtsRejectReasonsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsRejectReasonsRequest$outboundSchema; + /** @deprecated use `ListAtsRejectReasonsRequest$Outbound` instead. */ + export type Outbound = ListAtsRejectReasonsRequest$Outbound; +} + +/** @internal */ +export const ListAtsRejectReasonsResponseBody$inboundSchema: z.ZodType< + ListAtsRejectReasonsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsRejectreasonOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListAtsRejectReasonsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListAtsRejectReasonsResponseBody$outboundSchema: z.ZodType< + ListAtsRejectReasonsResponseBody$Outbound, + z.ZodTypeDef, + ListAtsRejectReasonsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsRejectreasonOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsRejectReasonsResponseBody$ { + /** @deprecated use `ListAtsRejectReasonsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsRejectReasonsResponseBody$inboundSchema; + /** @deprecated use `ListAtsRejectReasonsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsRejectReasonsResponseBody$outboundSchema; + /** @deprecated use `ListAtsRejectReasonsResponseBody$Outbound` instead. */ + export type Outbound = ListAtsRejectReasonsResponseBody$Outbound; +} + +/** @internal */ +export const ListAtsRejectReasonsResponse$inboundSchema: z.ZodType< + ListAtsRejectReasonsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsRejectReasonsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListAtsRejectReasonsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsRejectReasonsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListAtsRejectReasonsResponse$outboundSchema: z.ZodType< + ListAtsRejectReasonsResponse$Outbound, + z.ZodTypeDef, + ListAtsRejectReasonsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsRejectReasonsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsRejectReasonsResponse$ { + /** @deprecated use `ListAtsRejectReasonsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsRejectReasonsResponse$inboundSchema; + /** @deprecated use `ListAtsRejectReasonsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsRejectReasonsResponse$outboundSchema; + /** @deprecated use `ListAtsRejectReasonsResponse$Outbound` instead. */ + export type Outbound = ListAtsRejectReasonsResponse$Outbound; +} diff --git a/src/models/operations/listatsscorecard.ts b/src/models/operations/listatsscorecard.ts index 93ec3f69..19103634 100644 --- a/src/models/operations/listatsscorecard.ts +++ b/src/models/operations/listatsscorecard.ts @@ -37,104 +37,167 @@ export type ListAtsScorecardResponse = { }; /** @internal */ -export namespace ListAtsScorecardRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsScorecardRequest$inboundSchema: z.ZodType< + ListAtsScorecardRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsScorecardRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsScorecardRequest$outboundSchema: z.ZodType< + ListAtsScorecardRequest$Outbound, + z.ZodTypeDef, + ListAtsScorecardRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsScorecardRequest$ { + /** @deprecated use `ListAtsScorecardRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsScorecardRequest$inboundSchema; + /** @deprecated use `ListAtsScorecardRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsScorecardRequest$outboundSchema; + /** @deprecated use `ListAtsScorecardRequest$Outbound` instead. */ + export type Outbound = ListAtsScorecardRequest$Outbound; } /** @internal */ -export namespace ListAtsScorecardResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsScorecardOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsScorecardResponseBody$inboundSchema: z.ZodType< + ListAtsScorecardResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsScorecardOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsScorecardResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsScorecardOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsScorecardResponseBody$outboundSchema: z.ZodType< + ListAtsScorecardResponseBody$Outbound, + z.ZodTypeDef, + ListAtsScorecardResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsScorecardOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsScorecardResponseBody$ { + /** @deprecated use `ListAtsScorecardResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsScorecardResponseBody$inboundSchema; + /** @deprecated use `ListAtsScorecardResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsScorecardResponseBody$outboundSchema; + /** @deprecated use `ListAtsScorecardResponseBody$Outbound` instead. */ + export type Outbound = ListAtsScorecardResponseBody$Outbound; } /** @internal */ -export namespace ListAtsScorecardResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsScorecardResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsScorecardResponse$inboundSchema: z.ZodType< + ListAtsScorecardResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsScorecardResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsScorecardResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsScorecardResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsScorecardResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsScorecardResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsScorecardResponse$outboundSchema: z.ZodType< + ListAtsScorecardResponse$Outbound, + z.ZodTypeDef, + ListAtsScorecardResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsScorecardResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsScorecardResponse$ { + /** @deprecated use `ListAtsScorecardResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsScorecardResponse$inboundSchema; + /** @deprecated use `ListAtsScorecardResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsScorecardResponse$outboundSchema; + /** @deprecated use `ListAtsScorecardResponse$Outbound` instead. */ + export type Outbound = ListAtsScorecardResponse$Outbound; } diff --git a/src/models/operations/listatstags.ts b/src/models/operations/listatstags.ts index 0dc89c41..42fe8b12 100644 --- a/src/models/operations/listatstags.ts +++ b/src/models/operations/listatstags.ts @@ -37,104 +37,167 @@ export type ListAtsTagsResponse = { }; /** @internal */ -export namespace ListAtsTagsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsTagsRequest$inboundSchema: z.ZodType< + ListAtsTagsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsTagsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsTagsRequest$outboundSchema: z.ZodType< + ListAtsTagsRequest$Outbound, + z.ZodTypeDef, + ListAtsTagsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsTagsRequest$ { + /** @deprecated use `ListAtsTagsRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsTagsRequest$inboundSchema; + /** @deprecated use `ListAtsTagsRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsTagsRequest$outboundSchema; + /** @deprecated use `ListAtsTagsRequest$Outbound` instead. */ + export type Outbound = ListAtsTagsRequest$Outbound; } /** @internal */ -export namespace ListAtsTagsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsTagOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsTagsResponseBody$inboundSchema: z.ZodType< + ListAtsTagsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsTagOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsTagsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsTagOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsTagsResponseBody$outboundSchema: z.ZodType< + ListAtsTagsResponseBody$Outbound, + z.ZodTypeDef, + ListAtsTagsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsTagOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsTagsResponseBody$ { + /** @deprecated use `ListAtsTagsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsTagsResponseBody$inboundSchema; + /** @deprecated use `ListAtsTagsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsTagsResponseBody$outboundSchema; + /** @deprecated use `ListAtsTagsResponseBody$Outbound` instead. */ + export type Outbound = ListAtsTagsResponseBody$Outbound; } /** @internal */ -export namespace ListAtsTagsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsTagsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsTagsResponse$inboundSchema: z.ZodType< + ListAtsTagsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsTagsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsTagsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsTagsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsTagsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsTagsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsTagsResponse$outboundSchema: z.ZodType< + ListAtsTagsResponse$Outbound, + z.ZodTypeDef, + ListAtsTagsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsTagsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsTagsResponse$ { + /** @deprecated use `ListAtsTagsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsTagsResponse$inboundSchema; + /** @deprecated use `ListAtsTagsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsTagsResponse$outboundSchema; + /** @deprecated use `ListAtsTagsResponse$Outbound` instead. */ + export type Outbound = ListAtsTagsResponse$Outbound; } diff --git a/src/models/operations/listatsusers.ts b/src/models/operations/listatsusers.ts index 1e1cfd0a..e65f939e 100644 --- a/src/models/operations/listatsusers.ts +++ b/src/models/operations/listatsusers.ts @@ -37,104 +37,167 @@ export type ListAtsUsersResponse = { }; /** @internal */ -export namespace ListAtsUsersRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListAtsUsersRequest$inboundSchema: z.ZodType< + ListAtsUsersRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListAtsUsersRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListAtsUsersRequest$outboundSchema: z.ZodType< + ListAtsUsersRequest$Outbound, + z.ZodTypeDef, + ListAtsUsersRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsUsersRequest$ { + /** @deprecated use `ListAtsUsersRequest$inboundSchema` instead. */ + export const inboundSchema = ListAtsUsersRequest$inboundSchema; + /** @deprecated use `ListAtsUsersRequest$outboundSchema` instead. */ + export const outboundSchema = ListAtsUsersRequest$outboundSchema; + /** @deprecated use `ListAtsUsersRequest$Outbound` instead. */ + export type Outbound = ListAtsUsersRequest$Outbound; } /** @internal */ -export namespace ListAtsUsersResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedAtsUserOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListAtsUsersResponseBody$inboundSchema: z.ZodType< + ListAtsUsersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedAtsUserOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListAtsUsersResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedAtsUserOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListAtsUsersResponseBody$outboundSchema: z.ZodType< + ListAtsUsersResponseBody$Outbound, + z.ZodTypeDef, + ListAtsUsersResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedAtsUserOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsUsersResponseBody$ { + /** @deprecated use `ListAtsUsersResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListAtsUsersResponseBody$inboundSchema; + /** @deprecated use `ListAtsUsersResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListAtsUsersResponseBody$outboundSchema; + /** @deprecated use `ListAtsUsersResponseBody$Outbound` instead. */ + export type Outbound = ListAtsUsersResponseBody$Outbound; } /** @internal */ -export namespace ListAtsUsersResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListAtsUsersResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListAtsUsersResponse$inboundSchema: z.ZodType< + ListAtsUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListAtsUsersResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListAtsUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListAtsUsersResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListAtsUsersResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListAtsUsersResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListAtsUsersResponse$outboundSchema: z.ZodType< + ListAtsUsersResponse$Outbound, + z.ZodTypeDef, + ListAtsUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListAtsUsersResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAtsUsersResponse$ { + /** @deprecated use `ListAtsUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListAtsUsersResponse$inboundSchema; + /** @deprecated use `ListAtsUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListAtsUsersResponse$outboundSchema; + /** @deprecated use `ListAtsUsersResponse$Outbound` instead. */ + export type Outbound = ListAtsUsersResponse$Outbound; } diff --git a/src/models/operations/listcrmcompany.ts b/src/models/operations/listcrmcompany.ts index ada71f0e..e232beb9 100644 --- a/src/models/operations/listcrmcompany.ts +++ b/src/models/operations/listcrmcompany.ts @@ -37,104 +37,167 @@ export type ListCrmCompanyResponse = { }; /** @internal */ -export namespace ListCrmCompanyRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmCompanyRequest$inboundSchema: z.ZodType< + ListCrmCompanyRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmCompanyRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmCompanyRequest$outboundSchema: z.ZodType< + ListCrmCompanyRequest$Outbound, + z.ZodTypeDef, + ListCrmCompanyRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmCompanyRequest$ { + /** @deprecated use `ListCrmCompanyRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmCompanyRequest$inboundSchema; + /** @deprecated use `ListCrmCompanyRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmCompanyRequest$outboundSchema; + /** @deprecated use `ListCrmCompanyRequest$Outbound` instead. */ + export type Outbound = ListCrmCompanyRequest$Outbound; } /** @internal */ -export namespace ListCrmCompanyResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmCompanyOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmCompanyResponseBody$inboundSchema: z.ZodType< + ListCrmCompanyResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmCompanyOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmCompanyResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmCompanyOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmCompanyResponseBody$outboundSchema: z.ZodType< + ListCrmCompanyResponseBody$Outbound, + z.ZodTypeDef, + ListCrmCompanyResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmCompanyOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmCompanyResponseBody$ { + /** @deprecated use `ListCrmCompanyResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmCompanyResponseBody$inboundSchema; + /** @deprecated use `ListCrmCompanyResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmCompanyResponseBody$outboundSchema; + /** @deprecated use `ListCrmCompanyResponseBody$Outbound` instead. */ + export type Outbound = ListCrmCompanyResponseBody$Outbound; } /** @internal */ -export namespace ListCrmCompanyResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmCompanyResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmCompanyResponse$inboundSchema: z.ZodType< + ListCrmCompanyResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmCompanyResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmCompanyResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmCompanyResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmCompanyResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmCompanyResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmCompanyResponse$outboundSchema: z.ZodType< + ListCrmCompanyResponse$Outbound, + z.ZodTypeDef, + ListCrmCompanyResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmCompanyResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmCompanyResponse$ { + /** @deprecated use `ListCrmCompanyResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmCompanyResponse$inboundSchema; + /** @deprecated use `ListCrmCompanyResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmCompanyResponse$outboundSchema; + /** @deprecated use `ListCrmCompanyResponse$Outbound` instead. */ + export type Outbound = ListCrmCompanyResponse$Outbound; } diff --git a/src/models/operations/listcrmcontacts.ts b/src/models/operations/listcrmcontacts.ts index 2bae07ef..3f3462d4 100644 --- a/src/models/operations/listcrmcontacts.ts +++ b/src/models/operations/listcrmcontacts.ts @@ -37,104 +37,167 @@ export type ListCrmContactsResponse = { }; /** @internal */ -export namespace ListCrmContactsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmContactsRequest$inboundSchema: z.ZodType< + ListCrmContactsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmContactsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmContactsRequest$outboundSchema: z.ZodType< + ListCrmContactsRequest$Outbound, + z.ZodTypeDef, + ListCrmContactsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmContactsRequest$ { + /** @deprecated use `ListCrmContactsRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmContactsRequest$inboundSchema; + /** @deprecated use `ListCrmContactsRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmContactsRequest$outboundSchema; + /** @deprecated use `ListCrmContactsRequest$Outbound` instead. */ + export type Outbound = ListCrmContactsRequest$Outbound; } /** @internal */ -export namespace ListCrmContactsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmContactOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmContactsResponseBody$inboundSchema: z.ZodType< + ListCrmContactsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmContactOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmContactsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmContactOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmContactsResponseBody$outboundSchema: z.ZodType< + ListCrmContactsResponseBody$Outbound, + z.ZodTypeDef, + ListCrmContactsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmContactOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmContactsResponseBody$ { + /** @deprecated use `ListCrmContactsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmContactsResponseBody$inboundSchema; + /** @deprecated use `ListCrmContactsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmContactsResponseBody$outboundSchema; + /** @deprecated use `ListCrmContactsResponseBody$Outbound` instead. */ + export type Outbound = ListCrmContactsResponseBody$Outbound; } /** @internal */ -export namespace ListCrmContactsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmContactsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmContactsResponse$inboundSchema: z.ZodType< + ListCrmContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmContactsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmContactsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmContactsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmContactsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmContactsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmContactsResponse$outboundSchema: z.ZodType< + ListCrmContactsResponse$Outbound, + z.ZodTypeDef, + ListCrmContactsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmContactsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmContactsResponse$ { + /** @deprecated use `ListCrmContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmContactsResponse$inboundSchema; + /** @deprecated use `ListCrmContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmContactsResponse$outboundSchema; + /** @deprecated use `ListCrmContactsResponse$Outbound` instead. */ + export type Outbound = ListCrmContactsResponse$Outbound; } diff --git a/src/models/operations/listcrmdeals.ts b/src/models/operations/listcrmdeals.ts index dd6f0fc6..e713deff 100644 --- a/src/models/operations/listcrmdeals.ts +++ b/src/models/operations/listcrmdeals.ts @@ -37,104 +37,167 @@ export type ListCrmDealsResponse = { }; /** @internal */ -export namespace ListCrmDealsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmDealsRequest$inboundSchema: z.ZodType< + ListCrmDealsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmDealsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmDealsRequest$outboundSchema: z.ZodType< + ListCrmDealsRequest$Outbound, + z.ZodTypeDef, + ListCrmDealsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmDealsRequest$ { + /** @deprecated use `ListCrmDealsRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmDealsRequest$inboundSchema; + /** @deprecated use `ListCrmDealsRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmDealsRequest$outboundSchema; + /** @deprecated use `ListCrmDealsRequest$Outbound` instead. */ + export type Outbound = ListCrmDealsRequest$Outbound; } /** @internal */ -export namespace ListCrmDealsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmDealOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmDealsResponseBody$inboundSchema: z.ZodType< + ListCrmDealsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmDealOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmDealsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmDealOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmDealsResponseBody$outboundSchema: z.ZodType< + ListCrmDealsResponseBody$Outbound, + z.ZodTypeDef, + ListCrmDealsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmDealOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmDealsResponseBody$ { + /** @deprecated use `ListCrmDealsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmDealsResponseBody$inboundSchema; + /** @deprecated use `ListCrmDealsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmDealsResponseBody$outboundSchema; + /** @deprecated use `ListCrmDealsResponseBody$Outbound` instead. */ + export type Outbound = ListCrmDealsResponseBody$Outbound; } /** @internal */ -export namespace ListCrmDealsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmDealsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmDealsResponse$inboundSchema: z.ZodType< + ListCrmDealsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmDealsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmDealsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmDealsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmDealsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmDealsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmDealsResponse$outboundSchema: z.ZodType< + ListCrmDealsResponse$Outbound, + z.ZodTypeDef, + ListCrmDealsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmDealsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmDealsResponse$ { + /** @deprecated use `ListCrmDealsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmDealsResponse$inboundSchema; + /** @deprecated use `ListCrmDealsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmDealsResponse$outboundSchema; + /** @deprecated use `ListCrmDealsResponse$Outbound` instead. */ + export type Outbound = ListCrmDealsResponse$Outbound; } diff --git a/src/models/operations/listcrmengagements.ts b/src/models/operations/listcrmengagements.ts index 9151be85..b03ef8fc 100644 --- a/src/models/operations/listcrmengagements.ts +++ b/src/models/operations/listcrmengagements.ts @@ -37,105 +37,167 @@ export type ListCrmEngagementsResponse = { }; /** @internal */ -export namespace ListCrmEngagementsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< + ListCrmEngagementsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmEngagementsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmEngagementsRequest$outboundSchema: z.ZodType< + ListCrmEngagementsRequest$Outbound, + z.ZodTypeDef, + ListCrmEngagementsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmEngagementsRequest$ { + /** @deprecated use `ListCrmEngagementsRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmEngagementsRequest$inboundSchema; + /** @deprecated use `ListCrmEngagementsRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmEngagementsRequest$outboundSchema; + /** @deprecated use `ListCrmEngagementsRequest$Outbound` instead. */ + export type Outbound = ListCrmEngagementsRequest$Outbound; } /** @internal */ -export namespace ListCrmEngagementsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmEngagementOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmEngagementsResponseBody$inboundSchema: z.ZodType< + ListCrmEngagementsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmEngagementOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListCrmEngagementsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListCrmEngagementsResponseBody$outboundSchema: z.ZodType< + ListCrmEngagementsResponseBody$Outbound, + z.ZodTypeDef, + ListCrmEngagementsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmEngagementOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmEngagementOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmEngagementsResponseBody$ { + /** @deprecated use `ListCrmEngagementsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmEngagementsResponseBody$inboundSchema; + /** @deprecated use `ListCrmEngagementsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmEngagementsResponseBody$outboundSchema; + /** @deprecated use `ListCrmEngagementsResponseBody$Outbound` instead. */ + export type Outbound = ListCrmEngagementsResponseBody$Outbound; } /** @internal */ -export namespace ListCrmEngagementsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmEngagementsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmEngagementsResponse$inboundSchema: z.ZodType< + ListCrmEngagementsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmEngagementsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmEngagementsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmEngagementsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListCrmEngagementsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmEngagementsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListCrmEngagementsResponse$outboundSchema: z.ZodType< + ListCrmEngagementsResponse$Outbound, + z.ZodTypeDef, + ListCrmEngagementsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmEngagementsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmEngagementsResponse$ { + /** @deprecated use `ListCrmEngagementsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmEngagementsResponse$inboundSchema; + /** @deprecated use `ListCrmEngagementsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmEngagementsResponse$outboundSchema; + /** @deprecated use `ListCrmEngagementsResponse$Outbound` instead. */ + export type Outbound = ListCrmEngagementsResponse$Outbound; } diff --git a/src/models/operations/listcrmnote.ts b/src/models/operations/listcrmnote.ts index ce53909a..f2f61be5 100644 --- a/src/models/operations/listcrmnote.ts +++ b/src/models/operations/listcrmnote.ts @@ -37,104 +37,167 @@ export type ListCrmNoteResponse = { }; /** @internal */ -export namespace ListCrmNoteRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmNoteRequest$inboundSchema: z.ZodType< + ListCrmNoteRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmNoteRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmNoteRequest$outboundSchema: z.ZodType< + ListCrmNoteRequest$Outbound, + z.ZodTypeDef, + ListCrmNoteRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmNoteRequest$ { + /** @deprecated use `ListCrmNoteRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmNoteRequest$inboundSchema; + /** @deprecated use `ListCrmNoteRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmNoteRequest$outboundSchema; + /** @deprecated use `ListCrmNoteRequest$Outbound` instead. */ + export type Outbound = ListCrmNoteRequest$Outbound; } /** @internal */ -export namespace ListCrmNoteResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmNoteOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmNoteResponseBody$inboundSchema: z.ZodType< + ListCrmNoteResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmNoteOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmNoteResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmNoteOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmNoteResponseBody$outboundSchema: z.ZodType< + ListCrmNoteResponseBody$Outbound, + z.ZodTypeDef, + ListCrmNoteResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmNoteOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmNoteResponseBody$ { + /** @deprecated use `ListCrmNoteResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmNoteResponseBody$inboundSchema; + /** @deprecated use `ListCrmNoteResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmNoteResponseBody$outboundSchema; + /** @deprecated use `ListCrmNoteResponseBody$Outbound` instead. */ + export type Outbound = ListCrmNoteResponseBody$Outbound; } /** @internal */ -export namespace ListCrmNoteResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmNoteResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmNoteResponse$inboundSchema: z.ZodType< + ListCrmNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmNoteResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmNoteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmNoteResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmNoteResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmNoteResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmNoteResponse$outboundSchema: z.ZodType< + ListCrmNoteResponse$Outbound, + z.ZodTypeDef, + ListCrmNoteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmNoteResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmNoteResponse$ { + /** @deprecated use `ListCrmNoteResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmNoteResponse$inboundSchema; + /** @deprecated use `ListCrmNoteResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmNoteResponse$outboundSchema; + /** @deprecated use `ListCrmNoteResponse$Outbound` instead. */ + export type Outbound = ListCrmNoteResponse$Outbound; } diff --git a/src/models/operations/listcrmstages.ts b/src/models/operations/listcrmstages.ts index db6b8b39..af49e91c 100644 --- a/src/models/operations/listcrmstages.ts +++ b/src/models/operations/listcrmstages.ts @@ -37,104 +37,167 @@ export type ListCrmStagesResponse = { }; /** @internal */ -export namespace ListCrmStagesRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmStagesRequest$inboundSchema: z.ZodType< + ListCrmStagesRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmStagesRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmStagesRequest$outboundSchema: z.ZodType< + ListCrmStagesRequest$Outbound, + z.ZodTypeDef, + ListCrmStagesRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmStagesRequest$ { + /** @deprecated use `ListCrmStagesRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmStagesRequest$inboundSchema; + /** @deprecated use `ListCrmStagesRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmStagesRequest$outboundSchema; + /** @deprecated use `ListCrmStagesRequest$Outbound` instead. */ + export type Outbound = ListCrmStagesRequest$Outbound; } /** @internal */ -export namespace ListCrmStagesResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmStageOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmStagesResponseBody$inboundSchema: z.ZodType< + ListCrmStagesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmStageOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmStagesResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmStageOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmStagesResponseBody$outboundSchema: z.ZodType< + ListCrmStagesResponseBody$Outbound, + z.ZodTypeDef, + ListCrmStagesResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmStageOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmStagesResponseBody$ { + /** @deprecated use `ListCrmStagesResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmStagesResponseBody$inboundSchema; + /** @deprecated use `ListCrmStagesResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmStagesResponseBody$outboundSchema; + /** @deprecated use `ListCrmStagesResponseBody$Outbound` instead. */ + export type Outbound = ListCrmStagesResponseBody$Outbound; } /** @internal */ -export namespace ListCrmStagesResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmStagesResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmStagesResponse$inboundSchema: z.ZodType< + ListCrmStagesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmStagesResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmStagesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmStagesResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmStagesResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmStagesResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmStagesResponse$outboundSchema: z.ZodType< + ListCrmStagesResponse$Outbound, + z.ZodTypeDef, + ListCrmStagesResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmStagesResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmStagesResponse$ { + /** @deprecated use `ListCrmStagesResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmStagesResponse$inboundSchema; + /** @deprecated use `ListCrmStagesResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmStagesResponse$outboundSchema; + /** @deprecated use `ListCrmStagesResponse$Outbound` instead. */ + export type Outbound = ListCrmStagesResponse$Outbound; } diff --git a/src/models/operations/listcrmtask.ts b/src/models/operations/listcrmtask.ts index 6b6e9751..10a68655 100644 --- a/src/models/operations/listcrmtask.ts +++ b/src/models/operations/listcrmtask.ts @@ -37,104 +37,167 @@ export type ListCrmTaskResponse = { }; /** @internal */ -export namespace ListCrmTaskRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmTaskRequest$inboundSchema: z.ZodType< + ListCrmTaskRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmTaskRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmTaskRequest$outboundSchema: z.ZodType< + ListCrmTaskRequest$Outbound, + z.ZodTypeDef, + ListCrmTaskRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmTaskRequest$ { + /** @deprecated use `ListCrmTaskRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmTaskRequest$inboundSchema; + /** @deprecated use `ListCrmTaskRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmTaskRequest$outboundSchema; + /** @deprecated use `ListCrmTaskRequest$Outbound` instead. */ + export type Outbound = ListCrmTaskRequest$Outbound; } /** @internal */ -export namespace ListCrmTaskResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmTaskOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmTaskResponseBody$inboundSchema: z.ZodType< + ListCrmTaskResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmTaskOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmTaskResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmTaskOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmTaskResponseBody$outboundSchema: z.ZodType< + ListCrmTaskResponseBody$Outbound, + z.ZodTypeDef, + ListCrmTaskResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmTaskOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmTaskResponseBody$ { + /** @deprecated use `ListCrmTaskResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmTaskResponseBody$inboundSchema; + /** @deprecated use `ListCrmTaskResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmTaskResponseBody$outboundSchema; + /** @deprecated use `ListCrmTaskResponseBody$Outbound` instead. */ + export type Outbound = ListCrmTaskResponseBody$Outbound; } /** @internal */ -export namespace ListCrmTaskResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmTaskResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmTaskResponse$inboundSchema: z.ZodType< + ListCrmTaskResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmTaskResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmTaskResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmTaskResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmTaskResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmTaskResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmTaskResponse$outboundSchema: z.ZodType< + ListCrmTaskResponse$Outbound, + z.ZodTypeDef, + ListCrmTaskResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmTaskResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmTaskResponse$ { + /** @deprecated use `ListCrmTaskResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmTaskResponse$inboundSchema; + /** @deprecated use `ListCrmTaskResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmTaskResponse$outboundSchema; + /** @deprecated use `ListCrmTaskResponse$Outbound` instead. */ + export type Outbound = ListCrmTaskResponse$Outbound; } diff --git a/src/models/operations/listcrmusers.ts b/src/models/operations/listcrmusers.ts index 65003342..0d32a77c 100644 --- a/src/models/operations/listcrmusers.ts +++ b/src/models/operations/listcrmusers.ts @@ -37,104 +37,167 @@ export type ListCrmUsersResponse = { }; /** @internal */ -export namespace ListCrmUsersRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListCrmUsersRequest$inboundSchema: z.ZodType< + ListCrmUsersRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListCrmUsersRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListCrmUsersRequest$outboundSchema: z.ZodType< + ListCrmUsersRequest$Outbound, + z.ZodTypeDef, + ListCrmUsersRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmUsersRequest$ { + /** @deprecated use `ListCrmUsersRequest$inboundSchema` instead. */ + export const inboundSchema = ListCrmUsersRequest$inboundSchema; + /** @deprecated use `ListCrmUsersRequest$outboundSchema` instead. */ + export const outboundSchema = ListCrmUsersRequest$outboundSchema; + /** @deprecated use `ListCrmUsersRequest$Outbound` instead. */ + export type Outbound = ListCrmUsersRequest$Outbound; } /** @internal */ -export namespace ListCrmUsersResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCrmUserOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListCrmUsersResponseBody$inboundSchema: z.ZodType< + ListCrmUsersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCrmUserOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListCrmUsersResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCrmUserOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListCrmUsersResponseBody$outboundSchema: z.ZodType< + ListCrmUsersResponseBody$Outbound, + z.ZodTypeDef, + ListCrmUsersResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCrmUserOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmUsersResponseBody$ { + /** @deprecated use `ListCrmUsersResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListCrmUsersResponseBody$inboundSchema; + /** @deprecated use `ListCrmUsersResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListCrmUsersResponseBody$outboundSchema; + /** @deprecated use `ListCrmUsersResponseBody$Outbound` instead. */ + export type Outbound = ListCrmUsersResponseBody$Outbound; } /** @internal */ -export namespace ListCrmUsersResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListCrmUsersResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListCrmUsersResponse$inboundSchema: z.ZodType< + ListCrmUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListCrmUsersResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListCrmUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListCrmUsersResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListCrmUsersResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListCrmUsersResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListCrmUsersResponse$outboundSchema: z.ZodType< + ListCrmUsersResponse$Outbound, + z.ZodTypeDef, + ListCrmUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListCrmUsersResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListCrmUsersResponse$ { + /** @deprecated use `ListCrmUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmUsersResponse$inboundSchema; + /** @deprecated use `ListCrmUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmUsersResponse$outboundSchema; + /** @deprecated use `ListCrmUsersResponse$Outbound` instead. */ + export type Outbound = ListCrmUsersResponse$Outbound; } diff --git a/src/models/operations/listfilestoragedrives.ts b/src/models/operations/listfilestoragedrives.ts index 6809ab82..e212f383 100644 --- a/src/models/operations/listfilestoragedrives.ts +++ b/src/models/operations/listfilestoragedrives.ts @@ -37,113 +37,167 @@ export type ListFilestorageDrivesResponse = { }; /** @internal */ -export namespace ListFilestorageDrivesRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListFilestorageDrivesRequest$inboundSchema: z.ZodType< + ListFilestorageDrivesRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListFilestorageDrivesRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListFilestorageDrivesRequest$outboundSchema: z.ZodType< + ListFilestorageDrivesRequest$Outbound, + z.ZodTypeDef, + ListFilestorageDrivesRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageDrivesRequest$ { + /** @deprecated use `ListFilestorageDrivesRequest$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageDrivesRequest$inboundSchema; + /** @deprecated use `ListFilestorageDrivesRequest$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageDrivesRequest$outboundSchema; + /** @deprecated use `ListFilestorageDrivesRequest$Outbound` instead. */ + export type Outbound = ListFilestorageDrivesRequest$Outbound; } /** @internal */ -export namespace ListFilestorageDrivesResponseBody$ { - export const inboundSchema: z.ZodType< - ListFilestorageDrivesResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedFilestorageDriveOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListFilestorageDrivesResponseBody$inboundSchema: z.ZodType< + ListFilestorageDrivesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedFilestorageDriveOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListFilestorageDrivesResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListFilestorageDrivesResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedFilestorageDriveOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListFilestorageDrivesResponseBody$outboundSchema: z.ZodType< + ListFilestorageDrivesResponseBody$Outbound, + z.ZodTypeDef, + ListFilestorageDrivesResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedFilestorageDriveOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageDrivesResponseBody$ { + /** @deprecated use `ListFilestorageDrivesResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageDrivesResponseBody$inboundSchema; + /** @deprecated use `ListFilestorageDrivesResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageDrivesResponseBody$outboundSchema; + /** @deprecated use `ListFilestorageDrivesResponseBody$Outbound` instead. */ + export type Outbound = ListFilestorageDrivesResponseBody$Outbound; } /** @internal */ -export namespace ListFilestorageDrivesResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListFilestorageDrivesResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListFilestorageDrivesResponse$inboundSchema: z.ZodType< + ListFilestorageDrivesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListFilestorageDrivesResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListFilestorageDrivesResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListFilestorageDrivesResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListFilestorageDrivesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListFilestorageDrivesResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListFilestorageDrivesResponse$outboundSchema: z.ZodType< + ListFilestorageDrivesResponse$Outbound, + z.ZodTypeDef, + ListFilestorageDrivesResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListFilestorageDrivesResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageDrivesResponse$ { + /** @deprecated use `ListFilestorageDrivesResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageDrivesResponse$inboundSchema; + /** @deprecated use `ListFilestorageDrivesResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageDrivesResponse$outboundSchema; + /** @deprecated use `ListFilestorageDrivesResponse$Outbound` instead. */ + export type Outbound = ListFilestorageDrivesResponse$Outbound; } diff --git a/src/models/operations/listfilestoragefile.ts b/src/models/operations/listfilestoragefile.ts index a0f48fb1..68709dc6 100644 --- a/src/models/operations/listfilestoragefile.ts +++ b/src/models/operations/listfilestoragefile.ts @@ -37,109 +37,167 @@ export type ListFilestorageFileResponse = { }; /** @internal */ -export namespace ListFilestorageFileRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListFilestorageFileRequest$inboundSchema: z.ZodType< + ListFilestorageFileRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListFilestorageFileRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListFilestorageFileRequest$outboundSchema: z.ZodType< + ListFilestorageFileRequest$Outbound, + z.ZodTypeDef, + ListFilestorageFileRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFileRequest$ { + /** @deprecated use `ListFilestorageFileRequest$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFileRequest$inboundSchema; + /** @deprecated use `ListFilestorageFileRequest$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFileRequest$outboundSchema; + /** @deprecated use `ListFilestorageFileRequest$Outbound` instead. */ + export type Outbound = ListFilestorageFileRequest$Outbound; } /** @internal */ -export namespace ListFilestorageFileResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedFilestorageFileOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListFilestorageFileResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedFilestorageFileOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +export const ListFilestorageFileResponseBody$inboundSchema: z.ZodType< + ListFilestorageFileResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedFilestorageFileOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListFilestorageFileResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListFilestorageFileResponseBody$outboundSchema: z.ZodType< + ListFilestorageFileResponseBody$Outbound, + z.ZodTypeDef, + ListFilestorageFileResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedFilestorageFileOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFileResponseBody$ { + /** @deprecated use `ListFilestorageFileResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFileResponseBody$inboundSchema; + /** @deprecated use `ListFilestorageFileResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFileResponseBody$outboundSchema; + /** @deprecated use `ListFilestorageFileResponseBody$Outbound` instead. */ + export type Outbound = ListFilestorageFileResponseBody$Outbound; } /** @internal */ -export namespace ListFilestorageFileResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListFilestorageFileResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListFilestorageFileResponse$inboundSchema: z.ZodType< + ListFilestorageFileResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListFilestorageFileResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListFilestorageFileResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListFilestorageFileResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListFilestorageFileResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListFilestorageFileResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListFilestorageFileResponse$outboundSchema: z.ZodType< + ListFilestorageFileResponse$Outbound, + z.ZodTypeDef, + ListFilestorageFileResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListFilestorageFileResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFileResponse$ { + /** @deprecated use `ListFilestorageFileResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFileResponse$inboundSchema; + /** @deprecated use `ListFilestorageFileResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFileResponse$outboundSchema; + /** @deprecated use `ListFilestorageFileResponse$Outbound` instead. */ + export type Outbound = ListFilestorageFileResponse$Outbound; } diff --git a/src/models/operations/listfilestoragefolder.ts b/src/models/operations/listfilestoragefolder.ts index 7620d8ad..aabde573 100644 --- a/src/models/operations/listfilestoragefolder.ts +++ b/src/models/operations/listfilestoragefolder.ts @@ -37,113 +37,167 @@ export type ListFilestorageFolderResponse = { }; /** @internal */ -export namespace ListFilestorageFolderRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< + ListFilestorageFolderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListFilestorageFolderRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListFilestorageFolderRequest$outboundSchema: z.ZodType< + ListFilestorageFolderRequest$Outbound, + z.ZodTypeDef, + ListFilestorageFolderRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFolderRequest$ { + /** @deprecated use `ListFilestorageFolderRequest$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFolderRequest$inboundSchema; + /** @deprecated use `ListFilestorageFolderRequest$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFolderRequest$outboundSchema; + /** @deprecated use `ListFilestorageFolderRequest$Outbound` instead. */ + export type Outbound = ListFilestorageFolderRequest$Outbound; } /** @internal */ -export namespace ListFilestorageFolderResponseBody$ { - export const inboundSchema: z.ZodType< - ListFilestorageFolderResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedFilestorageFolderOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListFilestorageFolderResponseBody$inboundSchema: z.ZodType< + ListFilestorageFolderResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedFilestorageFolderOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListFilestorageFolderResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListFilestorageFolderResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedFilestorageFolderOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListFilestorageFolderResponseBody$outboundSchema: z.ZodType< + ListFilestorageFolderResponseBody$Outbound, + z.ZodTypeDef, + ListFilestorageFolderResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedFilestorageFolderOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFolderResponseBody$ { + /** @deprecated use `ListFilestorageFolderResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFolderResponseBody$inboundSchema; + /** @deprecated use `ListFilestorageFolderResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFolderResponseBody$outboundSchema; + /** @deprecated use `ListFilestorageFolderResponseBody$Outbound` instead. */ + export type Outbound = ListFilestorageFolderResponseBody$Outbound; } /** @internal */ -export namespace ListFilestorageFolderResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListFilestorageFolderResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListFilestorageFolderResponse$inboundSchema: z.ZodType< + ListFilestorageFolderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListFilestorageFolderResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListFilestorageFolderResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListFilestorageFolderResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListFilestorageFolderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListFilestorageFolderResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListFilestorageFolderResponse$outboundSchema: z.ZodType< + ListFilestorageFolderResponse$Outbound, + z.ZodTypeDef, + ListFilestorageFolderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListFilestorageFolderResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageFolderResponse$ { + /** @deprecated use `ListFilestorageFolderResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFolderResponse$inboundSchema; + /** @deprecated use `ListFilestorageFolderResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFolderResponse$outboundSchema; + /** @deprecated use `ListFilestorageFolderResponse$Outbound` instead. */ + export type Outbound = ListFilestorageFolderResponse$Outbound; } diff --git a/src/models/operations/listfilestoragegroup.ts b/src/models/operations/listfilestoragegroup.ts index 3ee194fa..9e74ada5 100644 --- a/src/models/operations/listfilestoragegroup.ts +++ b/src/models/operations/listfilestoragegroup.ts @@ -37,109 +37,167 @@ export type ListFilestorageGroupResponse = { }; /** @internal */ -export namespace ListFilestorageGroupRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< + ListFilestorageGroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListFilestorageGroupRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListFilestorageGroupRequest$outboundSchema: z.ZodType< + ListFilestorageGroupRequest$Outbound, + z.ZodTypeDef, + ListFilestorageGroupRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageGroupRequest$ { + /** @deprecated use `ListFilestorageGroupRequest$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageGroupRequest$inboundSchema; + /** @deprecated use `ListFilestorageGroupRequest$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageGroupRequest$outboundSchema; + /** @deprecated use `ListFilestorageGroupRequest$Outbound` instead. */ + export type Outbound = ListFilestorageGroupRequest$Outbound; } /** @internal */ -export namespace ListFilestorageGroupResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedFilestorageGroupOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListFilestorageGroupResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedFilestorageGroupOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +export const ListFilestorageGroupResponseBody$inboundSchema: z.ZodType< + ListFilestorageGroupResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedFilestorageGroupOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListFilestorageGroupResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListFilestorageGroupResponseBody$outboundSchema: z.ZodType< + ListFilestorageGroupResponseBody$Outbound, + z.ZodTypeDef, + ListFilestorageGroupResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedFilestorageGroupOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageGroupResponseBody$ { + /** @deprecated use `ListFilestorageGroupResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageGroupResponseBody$inboundSchema; + /** @deprecated use `ListFilestorageGroupResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageGroupResponseBody$outboundSchema; + /** @deprecated use `ListFilestorageGroupResponseBody$Outbound` instead. */ + export type Outbound = ListFilestorageGroupResponseBody$Outbound; } /** @internal */ -export namespace ListFilestorageGroupResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListFilestorageGroupResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListFilestorageGroupResponse$inboundSchema: z.ZodType< + ListFilestorageGroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListFilestorageGroupResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListFilestorageGroupResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListFilestorageGroupResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListFilestorageGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListFilestorageGroupResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListFilestorageGroupResponse$outboundSchema: z.ZodType< + ListFilestorageGroupResponse$Outbound, + z.ZodTypeDef, + ListFilestorageGroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListFilestorageGroupResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageGroupResponse$ { + /** @deprecated use `ListFilestorageGroupResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageGroupResponse$inboundSchema; + /** @deprecated use `ListFilestorageGroupResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageGroupResponse$outboundSchema; + /** @deprecated use `ListFilestorageGroupResponse$Outbound` instead. */ + export type Outbound = ListFilestorageGroupResponse$Outbound; } diff --git a/src/models/operations/listfilestorageusers.ts b/src/models/operations/listfilestorageusers.ts new file mode 100644 index 00000000..a7b7f459 --- /dev/null +++ b/src/models/operations/listfilestorageusers.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListFilestorageUsersRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListFilestorageUsersResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListFilestorageUsersResponse = { + httpMeta: components.HTTPMetadata; + object?: ListFilestorageUsersResponseBody | undefined; +}; + +/** @internal */ +export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< + ListFilestorageUsersRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListFilestorageUsersRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListFilestorageUsersRequest$outboundSchema: z.ZodType< + ListFilestorageUsersRequest$Outbound, + z.ZodTypeDef, + ListFilestorageUsersRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageUsersRequest$ { + /** @deprecated use `ListFilestorageUsersRequest$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageUsersRequest$inboundSchema; + /** @deprecated use `ListFilestorageUsersRequest$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageUsersRequest$outboundSchema; + /** @deprecated use `ListFilestorageUsersRequest$Outbound` instead. */ + export type Outbound = ListFilestorageUsersRequest$Outbound; +} + +/** @internal */ +export const ListFilestorageUsersResponseBody$inboundSchema: z.ZodType< + ListFilestorageUsersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedUserOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListFilestorageUsersResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListFilestorageUsersResponseBody$outboundSchema: z.ZodType< + ListFilestorageUsersResponseBody$Outbound, + z.ZodTypeDef, + ListFilestorageUsersResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedUserOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageUsersResponseBody$ { + /** @deprecated use `ListFilestorageUsersResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageUsersResponseBody$inboundSchema; + /** @deprecated use `ListFilestorageUsersResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageUsersResponseBody$outboundSchema; + /** @deprecated use `ListFilestorageUsersResponseBody$Outbound` instead. */ + export type Outbound = ListFilestorageUsersResponseBody$Outbound; +} + +/** @internal */ +export const ListFilestorageUsersResponse$inboundSchema: z.ZodType< + ListFilestorageUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListFilestorageUsersResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListFilestorageUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListFilestorageUsersResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListFilestorageUsersResponse$outboundSchema: z.ZodType< + ListFilestorageUsersResponse$Outbound, + z.ZodTypeDef, + ListFilestorageUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListFilestorageUsersResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListFilestorageUsersResponse$ { + /** @deprecated use `ListFilestorageUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageUsersResponse$inboundSchema; + /** @deprecated use `ListFilestorageUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageUsersResponse$outboundSchema; + /** @deprecated use `ListFilestorageUsersResponse$Outbound` instead. */ + export type Outbound = ListFilestorageUsersResponse$Outbound; +} diff --git a/src/models/operations/listhrisbankinfo.ts b/src/models/operations/listhrisbankinfo.ts index d1b71ce9..fab71c12 100644 --- a/src/models/operations/listhrisbankinfo.ts +++ b/src/models/operations/listhrisbankinfo.ts @@ -37,104 +37,167 @@ export type ListHrisBankinfoResponse = { }; /** @internal */ -export namespace ListHrisBankinfoRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisBankinfoRequest$inboundSchema: z.ZodType< + ListHrisBankinfoRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisBankinfoRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisBankinfoRequest$outboundSchema: z.ZodType< + ListHrisBankinfoRequest$Outbound, + z.ZodTypeDef, + ListHrisBankinfoRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBankinfoRequest$ { + /** @deprecated use `ListHrisBankinfoRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisBankinfoRequest$inboundSchema; + /** @deprecated use `ListHrisBankinfoRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisBankinfoRequest$outboundSchema; + /** @deprecated use `ListHrisBankinfoRequest$Outbound` instead. */ + export type Outbound = ListHrisBankinfoRequest$Outbound; } /** @internal */ -export namespace ListHrisBankinfoResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisBankinfoOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisBankinfoResponseBody$inboundSchema: z.ZodType< + ListHrisBankinfoResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisBankinfoOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisBankinfoResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisBankinfoOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisBankinfoResponseBody$outboundSchema: z.ZodType< + ListHrisBankinfoResponseBody$Outbound, + z.ZodTypeDef, + ListHrisBankinfoResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisBankinfoOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBankinfoResponseBody$ { + /** @deprecated use `ListHrisBankinfoResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisBankinfoResponseBody$inboundSchema; + /** @deprecated use `ListHrisBankinfoResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisBankinfoResponseBody$outboundSchema; + /** @deprecated use `ListHrisBankinfoResponseBody$Outbound` instead. */ + export type Outbound = ListHrisBankinfoResponseBody$Outbound; } /** @internal */ -export namespace ListHrisBankinfoResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisBankinfoResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisBankinfoResponse$inboundSchema: z.ZodType< + ListHrisBankinfoResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisBankinfoResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisBankinfoResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisBankinfoResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisBankinfoResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisBankinfoResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisBankinfoResponse$outboundSchema: z.ZodType< + ListHrisBankinfoResponse$Outbound, + z.ZodTypeDef, + ListHrisBankinfoResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisBankinfoResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBankinfoResponse$ { + /** @deprecated use `ListHrisBankinfoResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisBankinfoResponse$inboundSchema; + /** @deprecated use `ListHrisBankinfoResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisBankinfoResponse$outboundSchema; + /** @deprecated use `ListHrisBankinfoResponse$Outbound` instead. */ + export type Outbound = ListHrisBankinfoResponse$Outbound; } diff --git a/src/models/operations/listhrisbenefit.ts b/src/models/operations/listhrisbenefit.ts index 046add65..7edf8165 100644 --- a/src/models/operations/listhrisbenefit.ts +++ b/src/models/operations/listhrisbenefit.ts @@ -37,104 +37,167 @@ export type ListHrisBenefitResponse = { }; /** @internal */ -export namespace ListHrisBenefitRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisBenefitRequest$inboundSchema: z.ZodType< + ListHrisBenefitRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisBenefitRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisBenefitRequest$outboundSchema: z.ZodType< + ListHrisBenefitRequest$Outbound, + z.ZodTypeDef, + ListHrisBenefitRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBenefitRequest$ { + /** @deprecated use `ListHrisBenefitRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisBenefitRequest$inboundSchema; + /** @deprecated use `ListHrisBenefitRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisBenefitRequest$outboundSchema; + /** @deprecated use `ListHrisBenefitRequest$Outbound` instead. */ + export type Outbound = ListHrisBenefitRequest$Outbound; } /** @internal */ -export namespace ListHrisBenefitResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisBenefitOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisBenefitResponseBody$inboundSchema: z.ZodType< + ListHrisBenefitResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisBenefitOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisBenefitResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisBenefitOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisBenefitResponseBody$outboundSchema: z.ZodType< + ListHrisBenefitResponseBody$Outbound, + z.ZodTypeDef, + ListHrisBenefitResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisBenefitOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBenefitResponseBody$ { + /** @deprecated use `ListHrisBenefitResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisBenefitResponseBody$inboundSchema; + /** @deprecated use `ListHrisBenefitResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisBenefitResponseBody$outboundSchema; + /** @deprecated use `ListHrisBenefitResponseBody$Outbound` instead. */ + export type Outbound = ListHrisBenefitResponseBody$Outbound; } /** @internal */ -export namespace ListHrisBenefitResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisBenefitResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisBenefitResponse$inboundSchema: z.ZodType< + ListHrisBenefitResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisBenefitResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisBenefitResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisBenefitResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisBenefitResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisBenefitResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisBenefitResponse$outboundSchema: z.ZodType< + ListHrisBenefitResponse$Outbound, + z.ZodTypeDef, + ListHrisBenefitResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisBenefitResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisBenefitResponse$ { + /** @deprecated use `ListHrisBenefitResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisBenefitResponse$inboundSchema; + /** @deprecated use `ListHrisBenefitResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisBenefitResponse$outboundSchema; + /** @deprecated use `ListHrisBenefitResponse$Outbound` instead. */ + export type Outbound = ListHrisBenefitResponse$Outbound; } diff --git a/src/models/operations/listhriscompanys.ts b/src/models/operations/listhriscompanys.ts index 1e391523..bf5dc006 100644 --- a/src/models/operations/listhriscompanys.ts +++ b/src/models/operations/listhriscompanys.ts @@ -37,104 +37,167 @@ export type ListHrisCompanysResponse = { }; /** @internal */ -export namespace ListHrisCompanysRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisCompanysRequest$inboundSchema: z.ZodType< + ListHrisCompanysRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisCompanysRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisCompanysRequest$outboundSchema: z.ZodType< + ListHrisCompanysRequest$Outbound, + z.ZodTypeDef, + ListHrisCompanysRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisCompanysRequest$ { + /** @deprecated use `ListHrisCompanysRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisCompanysRequest$inboundSchema; + /** @deprecated use `ListHrisCompanysRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisCompanysRequest$outboundSchema; + /** @deprecated use `ListHrisCompanysRequest$Outbound` instead. */ + export type Outbound = ListHrisCompanysRequest$Outbound; } /** @internal */ -export namespace ListHrisCompanysResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisCompanyOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisCompanysResponseBody$inboundSchema: z.ZodType< + ListHrisCompanysResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisCompanyOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisCompanysResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisCompanyOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisCompanysResponseBody$outboundSchema: z.ZodType< + ListHrisCompanysResponseBody$Outbound, + z.ZodTypeDef, + ListHrisCompanysResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisCompanyOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisCompanysResponseBody$ { + /** @deprecated use `ListHrisCompanysResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisCompanysResponseBody$inboundSchema; + /** @deprecated use `ListHrisCompanysResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisCompanysResponseBody$outboundSchema; + /** @deprecated use `ListHrisCompanysResponseBody$Outbound` instead. */ + export type Outbound = ListHrisCompanysResponseBody$Outbound; } /** @internal */ -export namespace ListHrisCompanysResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisCompanysResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisCompanysResponse$inboundSchema: z.ZodType< + ListHrisCompanysResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisCompanysResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisCompanysResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisCompanysResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisCompanysResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisCompanysResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisCompanysResponse$outboundSchema: z.ZodType< + ListHrisCompanysResponse$Outbound, + z.ZodTypeDef, + ListHrisCompanysResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisCompanysResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisCompanysResponse$ { + /** @deprecated use `ListHrisCompanysResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisCompanysResponse$inboundSchema; + /** @deprecated use `ListHrisCompanysResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisCompanysResponse$outboundSchema; + /** @deprecated use `ListHrisCompanysResponse$Outbound` instead. */ + export type Outbound = ListHrisCompanysResponse$Outbound; } diff --git a/src/models/operations/listhrisdependents.ts b/src/models/operations/listhrisdependents.ts index 113f544a..b84cf6c4 100644 --- a/src/models/operations/listhrisdependents.ts +++ b/src/models/operations/listhrisdependents.ts @@ -37,105 +37,167 @@ export type ListHrisDependentsResponse = { }; /** @internal */ -export namespace ListHrisDependentsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisDependentsRequest$inboundSchema: z.ZodType< + ListHrisDependentsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisDependentsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisDependentsRequest$outboundSchema: z.ZodType< + ListHrisDependentsRequest$Outbound, + z.ZodTypeDef, + ListHrisDependentsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisDependentsRequest$ { + /** @deprecated use `ListHrisDependentsRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisDependentsRequest$inboundSchema; + /** @deprecated use `ListHrisDependentsRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisDependentsRequest$outboundSchema; + /** @deprecated use `ListHrisDependentsRequest$Outbound` instead. */ + export type Outbound = ListHrisDependentsRequest$Outbound; } /** @internal */ -export namespace ListHrisDependentsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisDependentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisDependentsResponseBody$inboundSchema: z.ZodType< + ListHrisDependentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisDependentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListHrisDependentsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListHrisDependentsResponseBody$outboundSchema: z.ZodType< + ListHrisDependentsResponseBody$Outbound, + z.ZodTypeDef, + ListHrisDependentsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisDependentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisDependentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisDependentsResponseBody$ { + /** @deprecated use `ListHrisDependentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisDependentsResponseBody$inboundSchema; + /** @deprecated use `ListHrisDependentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisDependentsResponseBody$outboundSchema; + /** @deprecated use `ListHrisDependentsResponseBody$Outbound` instead. */ + export type Outbound = ListHrisDependentsResponseBody$Outbound; } /** @internal */ -export namespace ListHrisDependentsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisDependentsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisDependentsResponse$inboundSchema: z.ZodType< + ListHrisDependentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisDependentsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisDependentsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisDependentsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListHrisDependentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisDependentsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListHrisDependentsResponse$outboundSchema: z.ZodType< + ListHrisDependentsResponse$Outbound, + z.ZodTypeDef, + ListHrisDependentsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisDependentsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisDependentsResponse$ { + /** @deprecated use `ListHrisDependentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisDependentsResponse$inboundSchema; + /** @deprecated use `ListHrisDependentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisDependentsResponse$outboundSchema; + /** @deprecated use `ListHrisDependentsResponse$Outbound` instead. */ + export type Outbound = ListHrisDependentsResponse$Outbound; } diff --git a/src/models/operations/listhrisemployee.ts b/src/models/operations/listhrisemployee.ts index 9e101f90..4c9d5e39 100644 --- a/src/models/operations/listhrisemployee.ts +++ b/src/models/operations/listhrisemployee.ts @@ -37,104 +37,167 @@ export type ListHrisEmployeeResponse = { }; /** @internal */ -export namespace ListHrisEmployeeRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisEmployeeRequest$inboundSchema: z.ZodType< + ListHrisEmployeeRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisEmployeeRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisEmployeeRequest$outboundSchema: z.ZodType< + ListHrisEmployeeRequest$Outbound, + z.ZodTypeDef, + ListHrisEmployeeRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeeRequest$ { + /** @deprecated use `ListHrisEmployeeRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeeRequest$inboundSchema; + /** @deprecated use `ListHrisEmployeeRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeeRequest$outboundSchema; + /** @deprecated use `ListHrisEmployeeRequest$Outbound` instead. */ + export type Outbound = ListHrisEmployeeRequest$Outbound; } /** @internal */ -export namespace ListHrisEmployeeResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisEmployeeOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisEmployeeResponseBody$inboundSchema: z.ZodType< + ListHrisEmployeeResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisEmployeeOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisEmployeeResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisEmployeeOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisEmployeeResponseBody$outboundSchema: z.ZodType< + ListHrisEmployeeResponseBody$Outbound, + z.ZodTypeDef, + ListHrisEmployeeResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisEmployeeOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeeResponseBody$ { + /** @deprecated use `ListHrisEmployeeResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeeResponseBody$inboundSchema; + /** @deprecated use `ListHrisEmployeeResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeeResponseBody$outboundSchema; + /** @deprecated use `ListHrisEmployeeResponseBody$Outbound` instead. */ + export type Outbound = ListHrisEmployeeResponseBody$Outbound; } /** @internal */ -export namespace ListHrisEmployeeResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisEmployeeResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisEmployeeResponse$inboundSchema: z.ZodType< + ListHrisEmployeeResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisEmployeeResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisEmployeeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisEmployeeResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisEmployeeResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisEmployeeResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisEmployeeResponse$outboundSchema: z.ZodType< + ListHrisEmployeeResponse$Outbound, + z.ZodTypeDef, + ListHrisEmployeeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisEmployeeResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeeResponse$ { + /** @deprecated use `ListHrisEmployeeResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeeResponse$inboundSchema; + /** @deprecated use `ListHrisEmployeeResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeeResponse$outboundSchema; + /** @deprecated use `ListHrisEmployeeResponse$Outbound` instead. */ + export type Outbound = ListHrisEmployeeResponse$Outbound; } diff --git a/src/models/operations/listhrisemployeepayrollrun.ts b/src/models/operations/listhrisemployeepayrollrun.ts index 4edabb67..29a27dae 100644 --- a/src/models/operations/listhrisemployeepayrollrun.ts +++ b/src/models/operations/listhrisemployeepayrollrun.ts @@ -37,128 +37,167 @@ export type ListHrisEmployeePayrollRunResponse = { }; /** @internal */ -export namespace ListHrisEmployeePayrollRunRequest$ { - export const inboundSchema: z.ZodType< - ListHrisEmployeePayrollRunRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisEmployeePayrollRunRequest$inboundSchema: z.ZodType< + ListHrisEmployeePayrollRunRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisEmployeePayrollRunRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisEmployeePayrollRunRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisEmployeePayrollRunRequest$outboundSchema: z.ZodType< + ListHrisEmployeePayrollRunRequest$Outbound, + z.ZodTypeDef, + ListHrisEmployeePayrollRunRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeePayrollRunRequest$ { + /** @deprecated use `ListHrisEmployeePayrollRunRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeePayrollRunRequest$inboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeePayrollRunRequest$outboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunRequest$Outbound` instead. */ + export type Outbound = ListHrisEmployeePayrollRunRequest$Outbound; } /** @internal */ -export namespace ListHrisEmployeePayrollRunResponseBody$ { - export const inboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisEmployeepayrollrunOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisEmployeePayrollRunResponseBody$inboundSchema: z.ZodType< + ListHrisEmployeePayrollRunResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisEmployeepayrollrunOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisEmployeePayrollRunResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisEmployeePayrollRunResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisEmployeepayrollrunOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisEmployeePayrollRunResponseBody$outboundSchema: z.ZodType< + ListHrisEmployeePayrollRunResponseBody$Outbound, + z.ZodTypeDef, + ListHrisEmployeePayrollRunResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisEmployeepayrollrunOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeePayrollRunResponseBody$ { + /** @deprecated use `ListHrisEmployeePayrollRunResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeePayrollRunResponseBody$inboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeePayrollRunResponseBody$outboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunResponseBody$Outbound` instead. */ + export type Outbound = ListHrisEmployeePayrollRunResponseBody$Outbound; } /** @internal */ -export namespace ListHrisEmployeePayrollRunResponse$ { - export const inboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisEmployeePayrollRunResponse$inboundSchema: z.ZodType< + ListHrisEmployeePayrollRunResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisEmployeePayrollRunResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisEmployeePayrollRunResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisEmployeePayrollRunResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisEmployeePayrollRunResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisEmployeePayrollRunResponse$outboundSchema: z.ZodType< + ListHrisEmployeePayrollRunResponse$Outbound, + z.ZodTypeDef, + ListHrisEmployeePayrollRunResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployeePayrollRunResponse$ { + /** @deprecated use `ListHrisEmployeePayrollRunResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployeePayrollRunResponse$inboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployeePayrollRunResponse$outboundSchema; + /** @deprecated use `ListHrisEmployeePayrollRunResponse$Outbound` instead. */ + export type Outbound = ListHrisEmployeePayrollRunResponse$Outbound; } diff --git a/src/models/operations/listhrisemployerbenefit.ts b/src/models/operations/listhrisemployerbenefit.ts index eb822b3b..2e0355be 100644 --- a/src/models/operations/listhrisemployerbenefit.ts +++ b/src/models/operations/listhrisemployerbenefit.ts @@ -37,118 +37,167 @@ export type ListHrisEmployerBenefitResponse = { }; /** @internal */ -export namespace ListHrisEmployerBenefitRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisEmployerBenefitRequest$inboundSchema: z.ZodType< + ListHrisEmployerBenefitRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListHrisEmployerBenefitRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisEmployerBenefitRequest$outboundSchema: z.ZodType< + ListHrisEmployerBenefitRequest$Outbound, + z.ZodTypeDef, + ListHrisEmployerBenefitRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployerBenefitRequest$ { + /** @deprecated use `ListHrisEmployerBenefitRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployerBenefitRequest$inboundSchema; + /** @deprecated use `ListHrisEmployerBenefitRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployerBenefitRequest$outboundSchema; + /** @deprecated use `ListHrisEmployerBenefitRequest$Outbound` instead. */ + export type Outbound = ListHrisEmployerBenefitRequest$Outbound; } /** @internal */ -export namespace ListHrisEmployerBenefitResponseBody$ { - export const inboundSchema: z.ZodType< - ListHrisEmployerBenefitResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisEmployerbenefitOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisEmployerBenefitResponseBody$inboundSchema: z.ZodType< + ListHrisEmployerBenefitResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisEmployerbenefitOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisEmployerBenefitResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisEmployerBenefitResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisEmployerbenefitOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisEmployerBenefitResponseBody$outboundSchema: z.ZodType< + ListHrisEmployerBenefitResponseBody$Outbound, + z.ZodTypeDef, + ListHrisEmployerBenefitResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisEmployerbenefitOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployerBenefitResponseBody$ { + /** @deprecated use `ListHrisEmployerBenefitResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployerBenefitResponseBody$inboundSchema; + /** @deprecated use `ListHrisEmployerBenefitResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployerBenefitResponseBody$outboundSchema; + /** @deprecated use `ListHrisEmployerBenefitResponseBody$Outbound` instead. */ + export type Outbound = ListHrisEmployerBenefitResponseBody$Outbound; } /** @internal */ -export namespace ListHrisEmployerBenefitResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisEmployerBenefitResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisEmployerBenefitResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisEmployerBenefitResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisEmployerBenefitResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const ListHrisEmployerBenefitResponse$inboundSchema: z.ZodType< + ListHrisEmployerBenefitResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisEmployerBenefitResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListHrisEmployerBenefitResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisEmployerBenefitResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListHrisEmployerBenefitResponse$outboundSchema: z.ZodType< + ListHrisEmployerBenefitResponse$Outbound, + z.ZodTypeDef, + ListHrisEmployerBenefitResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisEmployerBenefitResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmployerBenefitResponse$ { + /** @deprecated use `ListHrisEmployerBenefitResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmployerBenefitResponse$inboundSchema; + /** @deprecated use `ListHrisEmployerBenefitResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmployerBenefitResponse$outboundSchema; + /** @deprecated use `ListHrisEmployerBenefitResponse$Outbound` instead. */ + export type Outbound = ListHrisEmployerBenefitResponse$Outbound; } diff --git a/src/models/operations/listhrisemployment.ts b/src/models/operations/listhrisemployment.ts index 76121940..32ec4e20 100644 --- a/src/models/operations/listhrisemployment.ts +++ b/src/models/operations/listhrisemployment.ts @@ -37,105 +37,167 @@ export type ListHrisEmploymentResponse = { }; /** @internal */ -export namespace ListHrisEmploymentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisEmploymentRequest$inboundSchema: z.ZodType< + ListHrisEmploymentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisEmploymentRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisEmploymentRequest$outboundSchema: z.ZodType< + ListHrisEmploymentRequest$Outbound, + z.ZodTypeDef, + ListHrisEmploymentRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmploymentRequest$ { + /** @deprecated use `ListHrisEmploymentRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmploymentRequest$inboundSchema; + /** @deprecated use `ListHrisEmploymentRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmploymentRequest$outboundSchema; + /** @deprecated use `ListHrisEmploymentRequest$Outbound` instead. */ + export type Outbound = ListHrisEmploymentRequest$Outbound; } /** @internal */ -export namespace ListHrisEmploymentResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisEmploymentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisEmploymentResponseBody$inboundSchema: z.ZodType< + ListHrisEmploymentResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisEmploymentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListHrisEmploymentResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListHrisEmploymentResponseBody$outboundSchema: z.ZodType< + ListHrisEmploymentResponseBody$Outbound, + z.ZodTypeDef, + ListHrisEmploymentResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisEmploymentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisEmploymentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmploymentResponseBody$ { + /** @deprecated use `ListHrisEmploymentResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmploymentResponseBody$inboundSchema; + /** @deprecated use `ListHrisEmploymentResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmploymentResponseBody$outboundSchema; + /** @deprecated use `ListHrisEmploymentResponseBody$Outbound` instead. */ + export type Outbound = ListHrisEmploymentResponseBody$Outbound; } /** @internal */ -export namespace ListHrisEmploymentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisEmploymentResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisEmploymentResponse$inboundSchema: z.ZodType< + ListHrisEmploymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisEmploymentResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisEmploymentResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisEmploymentResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListHrisEmploymentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisEmploymentResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListHrisEmploymentResponse$outboundSchema: z.ZodType< + ListHrisEmploymentResponse$Outbound, + z.ZodTypeDef, + ListHrisEmploymentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisEmploymentResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisEmploymentResponse$ { + /** @deprecated use `ListHrisEmploymentResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisEmploymentResponse$inboundSchema; + /** @deprecated use `ListHrisEmploymentResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisEmploymentResponse$outboundSchema; + /** @deprecated use `ListHrisEmploymentResponse$Outbound` instead. */ + export type Outbound = ListHrisEmploymentResponse$Outbound; } diff --git a/src/models/operations/listhrisgroup.ts b/src/models/operations/listhrisgroup.ts index 51c4bd86..d992793c 100644 --- a/src/models/operations/listhrisgroup.ts +++ b/src/models/operations/listhrisgroup.ts @@ -37,104 +37,167 @@ export type ListHrisGroupResponse = { }; /** @internal */ -export namespace ListHrisGroupRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisGroupRequest$inboundSchema: z.ZodType< + ListHrisGroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisGroupRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisGroupRequest$outboundSchema: z.ZodType< + ListHrisGroupRequest$Outbound, + z.ZodTypeDef, + ListHrisGroupRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisGroupRequest$ { + /** @deprecated use `ListHrisGroupRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisGroupRequest$inboundSchema; + /** @deprecated use `ListHrisGroupRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisGroupRequest$outboundSchema; + /** @deprecated use `ListHrisGroupRequest$Outbound` instead. */ + export type Outbound = ListHrisGroupRequest$Outbound; } /** @internal */ -export namespace ListHrisGroupResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisGroupOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisGroupResponseBody$inboundSchema: z.ZodType< + ListHrisGroupResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisGroupOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisGroupResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisGroupOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisGroupResponseBody$outboundSchema: z.ZodType< + ListHrisGroupResponseBody$Outbound, + z.ZodTypeDef, + ListHrisGroupResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisGroupOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisGroupResponseBody$ { + /** @deprecated use `ListHrisGroupResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisGroupResponseBody$inboundSchema; + /** @deprecated use `ListHrisGroupResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisGroupResponseBody$outboundSchema; + /** @deprecated use `ListHrisGroupResponseBody$Outbound` instead. */ + export type Outbound = ListHrisGroupResponseBody$Outbound; } /** @internal */ -export namespace ListHrisGroupResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisGroupResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisGroupResponse$inboundSchema: z.ZodType< + ListHrisGroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisGroupResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisGroupResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisGroupResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisGroupResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisGroupResponse$outboundSchema: z.ZodType< + ListHrisGroupResponse$Outbound, + z.ZodTypeDef, + ListHrisGroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisGroupResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisGroupResponse$ { + /** @deprecated use `ListHrisGroupResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisGroupResponse$inboundSchema; + /** @deprecated use `ListHrisGroupResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisGroupResponse$outboundSchema; + /** @deprecated use `ListHrisGroupResponse$Outbound` instead. */ + export type Outbound = ListHrisGroupResponse$Outbound; } diff --git a/src/models/operations/listhrislocation.ts b/src/models/operations/listhrislocation.ts index fb2d0631..c27f206e 100644 --- a/src/models/operations/listhrislocation.ts +++ b/src/models/operations/listhrislocation.ts @@ -37,104 +37,167 @@ export type ListHrisLocationResponse = { }; /** @internal */ -export namespace ListHrisLocationRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisLocationRequest$inboundSchema: z.ZodType< + ListHrisLocationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisLocationRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisLocationRequest$outboundSchema: z.ZodType< + ListHrisLocationRequest$Outbound, + z.ZodTypeDef, + ListHrisLocationRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisLocationRequest$ { + /** @deprecated use `ListHrisLocationRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisLocationRequest$inboundSchema; + /** @deprecated use `ListHrisLocationRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisLocationRequest$outboundSchema; + /** @deprecated use `ListHrisLocationRequest$Outbound` instead. */ + export type Outbound = ListHrisLocationRequest$Outbound; } /** @internal */ -export namespace ListHrisLocationResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisLocationOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisLocationResponseBody$inboundSchema: z.ZodType< + ListHrisLocationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisLocationOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisLocationResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisLocationOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisLocationResponseBody$outboundSchema: z.ZodType< + ListHrisLocationResponseBody$Outbound, + z.ZodTypeDef, + ListHrisLocationResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisLocationOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisLocationResponseBody$ { + /** @deprecated use `ListHrisLocationResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisLocationResponseBody$inboundSchema; + /** @deprecated use `ListHrisLocationResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisLocationResponseBody$outboundSchema; + /** @deprecated use `ListHrisLocationResponseBody$Outbound` instead. */ + export type Outbound = ListHrisLocationResponseBody$Outbound; } /** @internal */ -export namespace ListHrisLocationResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisLocationResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisLocationResponse$inboundSchema: z.ZodType< + ListHrisLocationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisLocationResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisLocationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisLocationResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisLocationResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisLocationResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisLocationResponse$outboundSchema: z.ZodType< + ListHrisLocationResponse$Outbound, + z.ZodTypeDef, + ListHrisLocationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisLocationResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisLocationResponse$ { + /** @deprecated use `ListHrisLocationResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisLocationResponse$inboundSchema; + /** @deprecated use `ListHrisLocationResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisLocationResponse$outboundSchema; + /** @deprecated use `ListHrisLocationResponse$Outbound` instead. */ + export type Outbound = ListHrisLocationResponse$Outbound; } diff --git a/src/models/operations/listhrispaygroup.ts b/src/models/operations/listhrispaygroup.ts index 7700eac7..1986f0f6 100644 --- a/src/models/operations/listhrispaygroup.ts +++ b/src/models/operations/listhrispaygroup.ts @@ -37,104 +37,167 @@ export type ListHrisPaygroupResponse = { }; /** @internal */ -export namespace ListHrisPaygroupRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisPaygroupRequest$inboundSchema: z.ZodType< + ListHrisPaygroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisPaygroupRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisPaygroupRequest$outboundSchema: z.ZodType< + ListHrisPaygroupRequest$Outbound, + z.ZodTypeDef, + ListHrisPaygroupRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPaygroupRequest$ { + /** @deprecated use `ListHrisPaygroupRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisPaygroupRequest$inboundSchema; + /** @deprecated use `ListHrisPaygroupRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisPaygroupRequest$outboundSchema; + /** @deprecated use `ListHrisPaygroupRequest$Outbound` instead. */ + export type Outbound = ListHrisPaygroupRequest$Outbound; } /** @internal */ -export namespace ListHrisPaygroupResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisPaygroupOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisPaygroupResponseBody$inboundSchema: z.ZodType< + ListHrisPaygroupResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisPaygroupOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisPaygroupResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisPaygroupOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisPaygroupResponseBody$outboundSchema: z.ZodType< + ListHrisPaygroupResponseBody$Outbound, + z.ZodTypeDef, + ListHrisPaygroupResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisPaygroupOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPaygroupResponseBody$ { + /** @deprecated use `ListHrisPaygroupResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisPaygroupResponseBody$inboundSchema; + /** @deprecated use `ListHrisPaygroupResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisPaygroupResponseBody$outboundSchema; + /** @deprecated use `ListHrisPaygroupResponseBody$Outbound` instead. */ + export type Outbound = ListHrisPaygroupResponseBody$Outbound; } /** @internal */ -export namespace ListHrisPaygroupResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisPaygroupResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisPaygroupResponse$inboundSchema: z.ZodType< + ListHrisPaygroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisPaygroupResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisPaygroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisPaygroupResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisPaygroupResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisPaygroupResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisPaygroupResponse$outboundSchema: z.ZodType< + ListHrisPaygroupResponse$Outbound, + z.ZodTypeDef, + ListHrisPaygroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisPaygroupResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPaygroupResponse$ { + /** @deprecated use `ListHrisPaygroupResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisPaygroupResponse$inboundSchema; + /** @deprecated use `ListHrisPaygroupResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisPaygroupResponse$outboundSchema; + /** @deprecated use `ListHrisPaygroupResponse$Outbound` instead. */ + export type Outbound = ListHrisPaygroupResponse$Outbound; } diff --git a/src/models/operations/listhrispayrollruns.ts b/src/models/operations/listhrispayrollruns.ts index bc67a203..1439bc23 100644 --- a/src/models/operations/listhrispayrollruns.ts +++ b/src/models/operations/listhrispayrollruns.ts @@ -37,109 +37,167 @@ export type ListHrisPayrollRunsResponse = { }; /** @internal */ -export namespace ListHrisPayrollRunsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisPayrollRunsRequest$inboundSchema: z.ZodType< + ListHrisPayrollRunsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisPayrollRunsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisPayrollRunsRequest$outboundSchema: z.ZodType< + ListHrisPayrollRunsRequest$Outbound, + z.ZodTypeDef, + ListHrisPayrollRunsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPayrollRunsRequest$ { + /** @deprecated use `ListHrisPayrollRunsRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisPayrollRunsRequest$inboundSchema; + /** @deprecated use `ListHrisPayrollRunsRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisPayrollRunsRequest$outboundSchema; + /** @deprecated use `ListHrisPayrollRunsRequest$Outbound` instead. */ + export type Outbound = ListHrisPayrollRunsRequest$Outbound; } /** @internal */ -export namespace ListHrisPayrollRunsResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisPayrollrunOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisPayrollRunsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisPayrollrunOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +export const ListHrisPayrollRunsResponseBody$inboundSchema: z.ZodType< + ListHrisPayrollRunsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisPayrollrunOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisPayrollRunsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListHrisPayrollRunsResponseBody$outboundSchema: z.ZodType< + ListHrisPayrollRunsResponseBody$Outbound, + z.ZodTypeDef, + ListHrisPayrollRunsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisPayrollrunOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPayrollRunsResponseBody$ { + /** @deprecated use `ListHrisPayrollRunsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisPayrollRunsResponseBody$inboundSchema; + /** @deprecated use `ListHrisPayrollRunsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisPayrollRunsResponseBody$outboundSchema; + /** @deprecated use `ListHrisPayrollRunsResponseBody$Outbound` instead. */ + export type Outbound = ListHrisPayrollRunsResponseBody$Outbound; } /** @internal */ -export namespace ListHrisPayrollRunsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisPayrollRunsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisPayrollRunsResponse$inboundSchema: z.ZodType< + ListHrisPayrollRunsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisPayrollRunsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisPayrollRunsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisPayrollRunsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListHrisPayrollRunsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisPayrollRunsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListHrisPayrollRunsResponse$outboundSchema: z.ZodType< + ListHrisPayrollRunsResponse$Outbound, + z.ZodTypeDef, + ListHrisPayrollRunsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisPayrollRunsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisPayrollRunsResponse$ { + /** @deprecated use `ListHrisPayrollRunsResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisPayrollRunsResponse$inboundSchema; + /** @deprecated use `ListHrisPayrollRunsResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisPayrollRunsResponse$outboundSchema; + /** @deprecated use `ListHrisPayrollRunsResponse$Outbound` instead. */ + export type Outbound = ListHrisPayrollRunsResponse$Outbound; } diff --git a/src/models/operations/listhristimeoffbalance.ts b/src/models/operations/listhristimeoffbalance.ts index b3784901..f4474260 100644 --- a/src/models/operations/listhristimeoffbalance.ts +++ b/src/models/operations/listhristimeoffbalance.ts @@ -37,114 +37,167 @@ export type ListHrisTimeoffbalanceResponse = { }; /** @internal */ -export namespace ListHrisTimeoffbalanceRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisTimeoffbalanceRequest$inboundSchema: z.ZodType< + ListHrisTimeoffbalanceRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListHrisTimeoffbalanceRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisTimeoffbalanceRequest$outboundSchema: z.ZodType< + ListHrisTimeoffbalanceRequest$Outbound, + z.ZodTypeDef, + ListHrisTimeoffbalanceRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffbalanceRequest$ { + /** @deprecated use `ListHrisTimeoffbalanceRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffbalanceRequest$inboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffbalanceRequest$outboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceRequest$Outbound` instead. */ + export type Outbound = ListHrisTimeoffbalanceRequest$Outbound; } /** @internal */ -export namespace ListHrisTimeoffbalanceResponseBody$ { - export const inboundSchema: z.ZodType< - ListHrisTimeoffbalanceResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisTimeoffbalanceOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisTimeoffbalanceResponseBody$inboundSchema: z.ZodType< + ListHrisTimeoffbalanceResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisTimeoffbalanceOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisTimeoffbalanceResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListHrisTimeoffbalanceResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisTimeoffbalanceOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisTimeoffbalanceResponseBody$outboundSchema: z.ZodType< + ListHrisTimeoffbalanceResponseBody$Outbound, + z.ZodTypeDef, + ListHrisTimeoffbalanceResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisTimeoffbalanceOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffbalanceResponseBody$ { + /** @deprecated use `ListHrisTimeoffbalanceResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffbalanceResponseBody$inboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffbalanceResponseBody$outboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceResponseBody$Outbound` instead. */ + export type Outbound = ListHrisTimeoffbalanceResponseBody$Outbound; } /** @internal */ -export namespace ListHrisTimeoffbalanceResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisTimeoffbalanceResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisTimeoffbalanceResponse$inboundSchema: z.ZodType< + ListHrisTimeoffbalanceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisTimeoffbalanceResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisTimeoffbalanceResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisTimeoffbalanceResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListHrisTimeoffbalanceResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisTimeoffbalanceResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListHrisTimeoffbalanceResponse$outboundSchema: z.ZodType< + ListHrisTimeoffbalanceResponse$Outbound, + z.ZodTypeDef, + ListHrisTimeoffbalanceResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisTimeoffbalanceResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffbalanceResponse$ { + /** @deprecated use `ListHrisTimeoffbalanceResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffbalanceResponse$inboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffbalanceResponse$outboundSchema; + /** @deprecated use `ListHrisTimeoffbalanceResponse$Outbound` instead. */ + export type Outbound = ListHrisTimeoffbalanceResponse$Outbound; } diff --git a/src/models/operations/listhristimeoffs.ts b/src/models/operations/listhristimeoffs.ts index 36efa2a1..effecf24 100644 --- a/src/models/operations/listhristimeoffs.ts +++ b/src/models/operations/listhristimeoffs.ts @@ -37,104 +37,167 @@ export type ListHrisTimeoffsResponse = { }; /** @internal */ -export namespace ListHrisTimeoffsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType< + ListHrisTimeoffsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListHrisTimeoffsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListHrisTimeoffsRequest$outboundSchema: z.ZodType< + ListHrisTimeoffsRequest$Outbound, + z.ZodTypeDef, + ListHrisTimeoffsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffsRequest$ { + /** @deprecated use `ListHrisTimeoffsRequest$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffsRequest$inboundSchema; + /** @deprecated use `ListHrisTimeoffsRequest$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffsRequest$outboundSchema; + /** @deprecated use `ListHrisTimeoffsRequest$Outbound` instead. */ + export type Outbound = ListHrisTimeoffsRequest$Outbound; } /** @internal */ -export namespace ListHrisTimeoffsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedHrisTimeoffOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListHrisTimeoffsResponseBody$inboundSchema: z.ZodType< + ListHrisTimeoffsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedHrisTimeoffOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListHrisTimeoffsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedHrisTimeoffOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListHrisTimeoffsResponseBody$outboundSchema: z.ZodType< + ListHrisTimeoffsResponseBody$Outbound, + z.ZodTypeDef, + ListHrisTimeoffsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedHrisTimeoffOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffsResponseBody$ { + /** @deprecated use `ListHrisTimeoffsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffsResponseBody$inboundSchema; + /** @deprecated use `ListHrisTimeoffsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffsResponseBody$outboundSchema; + /** @deprecated use `ListHrisTimeoffsResponseBody$Outbound` instead. */ + export type Outbound = ListHrisTimeoffsResponseBody$Outbound; } /** @internal */ -export namespace ListHrisTimeoffsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListHrisTimeoffsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListHrisTimeoffsResponse$inboundSchema: z.ZodType< + ListHrisTimeoffsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListHrisTimeoffsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListHrisTimeoffsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListHrisTimeoffsResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListHrisTimeoffsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListHrisTimeoffsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListHrisTimeoffsResponse$outboundSchema: z.ZodType< + ListHrisTimeoffsResponse$Outbound, + z.ZodTypeDef, + ListHrisTimeoffsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListHrisTimeoffsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListHrisTimeoffsResponse$ { + /** @deprecated use `ListHrisTimeoffsResponse$inboundSchema` instead. */ + export const inboundSchema = ListHrisTimeoffsResponse$inboundSchema; + /** @deprecated use `ListHrisTimeoffsResponse$outboundSchema` instead. */ + export const outboundSchema = ListHrisTimeoffsResponse$outboundSchema; + /** @deprecated use `ListHrisTimeoffsResponse$Outbound` instead. */ + export type Outbound = ListHrisTimeoffsResponse$Outbound; } diff --git a/src/models/operations/listlinkedusers.ts b/src/models/operations/listlinkedusers.ts index a1ba2f38..a322138e 100644 --- a/src/models/operations/listlinkedusers.ts +++ b/src/models/operations/listlinkedusers.ts @@ -11,28 +11,49 @@ export type ListLinkedUsersResponse = { }; /** @internal */ -export namespace ListLinkedUsersResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListLinkedUsersResponse$inboundSchema: z.ZodType< + ListLinkedUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type ListLinkedUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListLinkedUsersResponse$outboundSchema: z.ZodType< + ListLinkedUsersResponse$Outbound, + z.ZodTypeDef, + ListLinkedUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListLinkedUsersResponse$ { + /** @deprecated use `ListLinkedUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListLinkedUsersResponse$inboundSchema; + /** @deprecated use `ListLinkedUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListLinkedUsersResponse$outboundSchema; + /** @deprecated use `ListLinkedUsersResponse$Outbound` instead. */ + export type Outbound = ListLinkedUsersResponse$Outbound; } diff --git a/src/models/operations/listmarketingautomationaction.ts b/src/models/operations/listmarketingautomationaction.ts index 79242c64..91240060 100644 --- a/src/models/operations/listmarketingautomationaction.ts +++ b/src/models/operations/listmarketingautomationaction.ts @@ -37,132 +37,167 @@ export type ListMarketingautomationActionResponse = { }; /** @internal */ -export namespace ListMarketingautomationActionRequest$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationActionRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< + ListMarketingautomationActionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationActionRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListMarketingautomationActionRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationActionRequest$outboundSchema: z.ZodType< + ListMarketingautomationActionRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationActionRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationActionRequest$ { + /** @deprecated use `ListMarketingautomationActionRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationActionRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationActionRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationActionRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationActionRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationActionRequest$Outbound; } /** @internal */ -export namespace ListMarketingautomationActionResponseBody$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationActionResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationActionOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListMarketingautomationActionResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationActionResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationActionOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListMarketingautomationActionResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationActionResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationActionOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListMarketingautomationActionResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationActionResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationActionResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationActionOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationActionResponseBody$ { + /** @deprecated use `ListMarketingautomationActionResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationActionResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationActionResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationActionResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationActionResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationActionResponseBody$Outbound; } /** @internal */ -export namespace ListMarketingautomationActionResponse$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationActionResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListMarketingautomationActionResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListMarketingautomationActionResponse$inboundSchema: z.ZodType< + ListMarketingautomationActionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationActionResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListMarketingautomationActionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationActionResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListMarketingautomationActionResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationActionResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListMarketingautomationActionResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListMarketingautomationActionResponse$outboundSchema: z.ZodType< + ListMarketingautomationActionResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationActionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingautomationActionResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationActionResponse$ { + /** @deprecated use `ListMarketingautomationActionResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationActionResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationActionResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationActionResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationActionResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationActionResponse$Outbound; } diff --git a/src/models/operations/listmarketingautomationautomation.ts b/src/models/operations/listmarketingautomationautomation.ts index e5544b72..d8546541 100644 --- a/src/models/operations/listmarketingautomationautomation.ts +++ b/src/models/operations/listmarketingautomationautomation.ts @@ -37,132 +37,171 @@ export type ListMarketingautomationAutomationResponse = { }; /** @internal */ -export namespace ListMarketingautomationAutomationRequest$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationAutomationRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListMarketingautomationAutomationRequest$inboundSchema: z.ZodType< + ListMarketingautomationAutomationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationAutomationRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListMarketingautomationAutomationRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationAutomationRequest$outboundSchema: z.ZodType< + ListMarketingautomationAutomationRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationAutomationRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationAutomationRequest$ { + /** @deprecated use `ListMarketingautomationAutomationRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationAutomationRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationAutomationRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationAutomationRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationAutomationRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationAutomationRequest$Outbound; } /** @internal */ -export namespace ListMarketingautomationAutomationResponseBody$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationAutomationResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedMarketingautomationAutomationOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListMarketingautomationAutomationResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationAutomationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationAutomationOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListMarketingautomationAutomationResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationAutomationResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedMarketingautomationAutomationOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListMarketingautomationAutomationResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationAutomationResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationAutomationResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationAutomationOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationAutomationResponseBody$ { + /** @deprecated use `ListMarketingautomationAutomationResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationAutomationResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationAutomationResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationAutomationResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationAutomationResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationAutomationResponseBody$Outbound; } /** @internal */ -export namespace ListMarketingautomationAutomationResponse$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationAutomationResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListMarketingautomationAutomationResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListMarketingautomationAutomationResponse$inboundSchema: z.ZodType< + ListMarketingautomationAutomationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z + .lazy(() => ListMarketingautomationAutomationResponseBody$inboundSchema) + .optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListMarketingautomationAutomationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationAutomationResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListMarketingautomationAutomationResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationAutomationResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListMarketingautomationAutomationResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListMarketingautomationAutomationResponse$outboundSchema: z.ZodType< + ListMarketingautomationAutomationResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationAutomationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z + .lazy(() => ListMarketingautomationAutomationResponseBody$outboundSchema) + .optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationAutomationResponse$ { + /** @deprecated use `ListMarketingautomationAutomationResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationAutomationResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationAutomationResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationAutomationResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationAutomationResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationAutomationResponse$Outbound; } diff --git a/src/models/operations/listmarketingautomationcampaign.ts b/src/models/operations/listmarketingautomationcampaign.ts index 7fafae30..8038887f 100644 --- a/src/models/operations/listmarketingautomationcampaign.ts +++ b/src/models/operations/listmarketingautomationcampaign.ts @@ -37,132 +37,167 @@ export type ListMarketingautomationCampaignResponse = { }; /** @internal */ -export namespace ListMarketingautomationCampaignRequest$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationCampaignRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListMarketingautomationCampaignRequest$inboundSchema: z.ZodType< + ListMarketingautomationCampaignRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationCampaignRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListMarketingautomationCampaignRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationCampaignRequest$outboundSchema: z.ZodType< + ListMarketingautomationCampaignRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationCampaignRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationCampaignRequest$ { + /** @deprecated use `ListMarketingautomationCampaignRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationCampaignRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationCampaignRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationCampaignRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationCampaignRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationCampaignRequest$Outbound; } /** @internal */ -export namespace ListMarketingautomationCampaignResponseBody$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationCampaignResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedCampaignOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListMarketingautomationCampaignResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationCampaignResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedCampaignOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListMarketingautomationCampaignResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationCampaignResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedCampaignOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListMarketingautomationCampaignResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationCampaignResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationCampaignResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedCampaignOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationCampaignResponseBody$ { + /** @deprecated use `ListMarketingautomationCampaignResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationCampaignResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationCampaignResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationCampaignResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationCampaignResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationCampaignResponseBody$Outbound; } /** @internal */ -export namespace ListMarketingautomationCampaignResponse$ { - export const inboundSchema: z.ZodType< - ListMarketingautomationCampaignResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListMarketingautomationCampaignResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListMarketingautomationCampaignResponse$inboundSchema: z.ZodType< + ListMarketingautomationCampaignResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationCampaignResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type ListMarketingautomationCampaignResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationCampaignResponseBody$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListMarketingautomationCampaignResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListMarketingautomationCampaignResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z - .lazy(() => ListMarketingautomationCampaignResponseBody$.outboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ListMarketingautomationCampaignResponse$outboundSchema: z.ZodType< + ListMarketingautomationCampaignResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationCampaignResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingautomationCampaignResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationCampaignResponse$ { + /** @deprecated use `ListMarketingautomationCampaignResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationCampaignResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationCampaignResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationCampaignResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationCampaignResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationCampaignResponse$Outbound; } diff --git a/src/models/operations/listmarketingautomationcontacts.ts b/src/models/operations/listmarketingautomationcontacts.ts new file mode 100644 index 00000000..d1a74dbd --- /dev/null +++ b/src/models/operations/listmarketingautomationcontacts.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingAutomationContactsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingAutomationContactsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingAutomationContactsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingAutomationContactsResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< + ListMarketingAutomationContactsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingAutomationContactsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationContactsRequest$outboundSchema: z.ZodType< + ListMarketingAutomationContactsRequest$Outbound, + z.ZodTypeDef, + ListMarketingAutomationContactsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationContactsRequest$ { + /** @deprecated use `ListMarketingAutomationContactsRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationContactsRequest$inboundSchema; + /** @deprecated use `ListMarketingAutomationContactsRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationContactsRequest$outboundSchema; + /** @deprecated use `ListMarketingAutomationContactsRequest$Outbound` instead. */ + export type Outbound = ListMarketingAutomationContactsRequest$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationContactsResponseBody$inboundSchema: z.ZodType< + ListMarketingAutomationContactsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationContactOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingAutomationContactsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingAutomationContactsResponseBody$outboundSchema: z.ZodType< + ListMarketingAutomationContactsResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingAutomationContactsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationContactOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationContactsResponseBody$ { + /** @deprecated use `ListMarketingAutomationContactsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationContactsResponseBody$inboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationContactsResponseBody$outboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingAutomationContactsResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationContactsResponse$inboundSchema: z.ZodType< + ListMarketingAutomationContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingAutomationContactsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingAutomationContactsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingAutomationContactsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationContactsResponse$outboundSchema: z.ZodType< + ListMarketingAutomationContactsResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationContactsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingAutomationContactsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationContactsResponse$ { + /** @deprecated use `ListMarketingAutomationContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationContactsResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationContactsResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationContactsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationemails.ts b/src/models/operations/listmarketingautomationemails.ts new file mode 100644 index 00000000..19f84eff --- /dev/null +++ b/src/models/operations/listmarketingautomationemails.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingautomationEmailsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingautomationEmailsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingautomationEmailsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingautomationEmailsResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< + ListMarketingautomationEmailsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingautomationEmailsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationEmailsRequest$outboundSchema: z.ZodType< + ListMarketingautomationEmailsRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationEmailsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationEmailsRequest$ { + /** @deprecated use `ListMarketingautomationEmailsRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationEmailsRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationEmailsRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationEmailsRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationEmailsRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationEmailsRequest$Outbound; +} + +/** @internal */ +export const ListMarketingautomationEmailsResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationEmailsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationEmailOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingautomationEmailsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingautomationEmailsResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationEmailsResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationEmailsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationEmailOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationEmailsResponseBody$ { + /** @deprecated use `ListMarketingautomationEmailsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationEmailsResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationEmailsResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationEmailsResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingautomationEmailsResponse$inboundSchema: z.ZodType< + ListMarketingautomationEmailsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationEmailsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingautomationEmailsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationEmailsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingautomationEmailsResponse$outboundSchema: z.ZodType< + ListMarketingautomationEmailsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationEmailsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingautomationEmailsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationEmailsResponse$ { + /** @deprecated use `ListMarketingautomationEmailsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationEmailsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationEmailsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationEmailsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationevents.ts b/src/models/operations/listmarketingautomationevents.ts new file mode 100644 index 00000000..6c2e16f7 --- /dev/null +++ b/src/models/operations/listmarketingautomationevents.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingAutomationEventsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingAutomationEventsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingAutomationEventsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingAutomationEventsResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< + ListMarketingAutomationEventsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingAutomationEventsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationEventsRequest$outboundSchema: z.ZodType< + ListMarketingAutomationEventsRequest$Outbound, + z.ZodTypeDef, + ListMarketingAutomationEventsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationEventsRequest$ { + /** @deprecated use `ListMarketingAutomationEventsRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationEventsRequest$inboundSchema; + /** @deprecated use `ListMarketingAutomationEventsRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationEventsRequest$outboundSchema; + /** @deprecated use `ListMarketingAutomationEventsRequest$Outbound` instead. */ + export type Outbound = ListMarketingAutomationEventsRequest$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationEventsResponseBody$inboundSchema: z.ZodType< + ListMarketingAutomationEventsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationEventOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingAutomationEventsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingAutomationEventsResponseBody$outboundSchema: z.ZodType< + ListMarketingAutomationEventsResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingAutomationEventsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationEventOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationEventsResponseBody$ { + /** @deprecated use `ListMarketingAutomationEventsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationEventsResponseBody$inboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationEventsResponseBody$outboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingAutomationEventsResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationEventsResponse$inboundSchema: z.ZodType< + ListMarketingAutomationEventsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingAutomationEventsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingAutomationEventsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingAutomationEventsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationEventsResponse$outboundSchema: z.ZodType< + ListMarketingAutomationEventsResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationEventsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingAutomationEventsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationEventsResponse$ { + /** @deprecated use `ListMarketingAutomationEventsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationEventsResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationEventsResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationEventsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationlists.ts b/src/models/operations/listmarketingautomationlists.ts new file mode 100644 index 00000000..1a613cdc --- /dev/null +++ b/src/models/operations/listmarketingautomationlists.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingautomationListsRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingautomationListsResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingautomationListsResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingautomationListsResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< + ListMarketingautomationListsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingautomationListsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationListsRequest$outboundSchema: z.ZodType< + ListMarketingautomationListsRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationListsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationListsRequest$ { + /** @deprecated use `ListMarketingautomationListsRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationListsRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationListsRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationListsRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationListsRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationListsRequest$Outbound; +} + +/** @internal */ +export const ListMarketingautomationListsResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationListsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationListOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingautomationListsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingautomationListsResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationListsResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationListsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationListOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationListsResponseBody$ { + /** @deprecated use `ListMarketingautomationListsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationListsResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationListsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationListsResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationListsResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationListsResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingautomationListsResponse$inboundSchema: z.ZodType< + ListMarketingautomationListsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationListsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingautomationListsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationListsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingautomationListsResponse$outboundSchema: z.ZodType< + ListMarketingautomationListsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationListsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingautomationListsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationListsResponse$ { + /** @deprecated use `ListMarketingautomationListsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationListsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationListsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationListsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationListsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationListsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationmessages.ts b/src/models/operations/listmarketingautomationmessages.ts new file mode 100644 index 00000000..f068edc1 --- /dev/null +++ b/src/models/operations/listmarketingautomationmessages.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingautomationMessagesRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingautomationMessagesResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingautomationMessagesResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingautomationMessagesResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< + ListMarketingautomationMessagesRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingautomationMessagesRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationMessagesRequest$outboundSchema: z.ZodType< + ListMarketingautomationMessagesRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationMessagesRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationMessagesRequest$ { + /** @deprecated use `ListMarketingautomationMessagesRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationMessagesRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationMessagesRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationMessagesRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationMessagesRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationMessagesRequest$Outbound; +} + +/** @internal */ +export const ListMarketingautomationMessagesResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationMessagesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationMessageOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingautomationMessagesResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingautomationMessagesResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationMessagesResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationMessagesResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationMessageOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationMessagesResponseBody$ { + /** @deprecated use `ListMarketingautomationMessagesResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationMessagesResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationMessagesResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationMessagesResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingautomationMessagesResponse$inboundSchema: z.ZodType< + ListMarketingautomationMessagesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationMessagesResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingautomationMessagesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationMessagesResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingautomationMessagesResponse$outboundSchema: z.ZodType< + ListMarketingautomationMessagesResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationMessagesResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingautomationMessagesResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationMessagesResponse$ { + /** @deprecated use `ListMarketingautomationMessagesResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationMessagesResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationMessagesResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationMessagesResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationtemplates.ts b/src/models/operations/listmarketingautomationtemplates.ts new file mode 100644 index 00000000..c5037c03 --- /dev/null +++ b/src/models/operations/listmarketingautomationtemplates.ts @@ -0,0 +1,205 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingautomationTemplatesRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingautomationTemplatesResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingautomationTemplatesResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingautomationTemplatesResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< + ListMarketingautomationTemplatesRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingautomationTemplatesRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingautomationTemplatesRequest$outboundSchema: z.ZodType< + ListMarketingautomationTemplatesRequest$Outbound, + z.ZodTypeDef, + ListMarketingautomationTemplatesRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationTemplatesRequest$ { + /** @deprecated use `ListMarketingautomationTemplatesRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationTemplatesRequest$inboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationTemplatesRequest$outboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesRequest$Outbound` instead. */ + export type Outbound = ListMarketingautomationTemplatesRequest$Outbound; +} + +/** @internal */ +export const ListMarketingautomationTemplatesResponseBody$inboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationTemplateOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingautomationTemplatesResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingautomationTemplatesResponseBody$outboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingautomationTemplatesResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationTemplateOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationTemplatesResponseBody$ { + /** @deprecated use `ListMarketingautomationTemplatesResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationTemplatesResponseBody$inboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationTemplatesResponseBody$outboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingautomationTemplatesResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingautomationTemplatesResponse$inboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingautomationTemplatesResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingautomationTemplatesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingautomationTemplatesResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingautomationTemplatesResponse$outboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationTemplatesResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z + .lazy(() => ListMarketingautomationTemplatesResponseBody$outboundSchema) + .optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingautomationTemplatesResponse$ { + /** @deprecated use `ListMarketingautomationTemplatesResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationTemplatesResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationTemplatesResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationTemplatesResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationusers.ts b/src/models/operations/listmarketingautomationusers.ts new file mode 100644 index 00000000..c0f52f54 --- /dev/null +++ b/src/models/operations/listmarketingautomationusers.ts @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type ListMarketingAutomationUsersRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * Set to true to include data from the original software. + */ + remoteData?: boolean | undefined; + /** + * Set to get the number of records. + */ + limit?: number | undefined; + /** + * Set to get the number of records after this cursor. + */ + cursor?: string | undefined; +}; + +export type ListMarketingAutomationUsersResponseBody = { + prevCursor: string; + nextCursor: string; + data: Array; +}; + +export type ListMarketingAutomationUsersResponse = { + httpMeta: components.HTTPMetadata; + object?: ListMarketingAutomationUsersResponseBody | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< + ListMarketingAutomationUsersRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListMarketingAutomationUsersRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationUsersRequest$outboundSchema: z.ZodType< + ListMarketingAutomationUsersRequest$Outbound, + z.ZodTypeDef, + ListMarketingAutomationUsersRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationUsersRequest$ { + /** @deprecated use `ListMarketingAutomationUsersRequest$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationUsersRequest$inboundSchema; + /** @deprecated use `ListMarketingAutomationUsersRequest$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationUsersRequest$outboundSchema; + /** @deprecated use `ListMarketingAutomationUsersRequest$Outbound` instead. */ + export type Outbound = ListMarketingAutomationUsersRequest$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationUsersResponseBody$inboundSchema: z.ZodType< + ListMarketingAutomationUsersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedMarketingautomationUserOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListMarketingAutomationUsersResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListMarketingAutomationUsersResponseBody$outboundSchema: z.ZodType< + ListMarketingAutomationUsersResponseBody$Outbound, + z.ZodTypeDef, + ListMarketingAutomationUsersResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedMarketingautomationUserOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationUsersResponseBody$ { + /** @deprecated use `ListMarketingAutomationUsersResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationUsersResponseBody$inboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationUsersResponseBody$outboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponseBody$Outbound` instead. */ + export type Outbound = ListMarketingAutomationUsersResponseBody$Outbound; +} + +/** @internal */ +export const ListMarketingAutomationUsersResponse$inboundSchema: z.ZodType< + ListMarketingAutomationUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListMarketingAutomationUsersResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListMarketingAutomationUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListMarketingAutomationUsersResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListMarketingAutomationUsersResponse$outboundSchema: z.ZodType< + ListMarketingAutomationUsersResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListMarketingAutomationUsersResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListMarketingAutomationUsersResponse$ { + /** @deprecated use `ListMarketingAutomationUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationUsersResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationUsersResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationUsersResponse$Outbound; +} diff --git a/src/models/operations/listticketingaccount.ts b/src/models/operations/listticketingaccount.ts index 6bc3d8b6..218e7bc9 100644 --- a/src/models/operations/listticketingaccount.ts +++ b/src/models/operations/listticketingaccount.ts @@ -37,109 +37,167 @@ export type ListTicketingAccountResponse = { }; /** @internal */ -export namespace ListTicketingAccountRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingAccountRequest$inboundSchema: z.ZodType< + ListTicketingAccountRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingAccountRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingAccountRequest$outboundSchema: z.ZodType< + ListTicketingAccountRequest$Outbound, + z.ZodTypeDef, + ListTicketingAccountRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAccountRequest$ { + /** @deprecated use `ListTicketingAccountRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAccountRequest$inboundSchema; + /** @deprecated use `ListTicketingAccountRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAccountRequest$outboundSchema; + /** @deprecated use `ListTicketingAccountRequest$Outbound` instead. */ + export type Outbound = ListTicketingAccountRequest$Outbound; } /** @internal */ -export namespace ListTicketingAccountResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingAccountOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingAccountResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingAccountOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +export const ListTicketingAccountResponseBody$inboundSchema: z.ZodType< + ListTicketingAccountResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingAccountOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingAccountResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListTicketingAccountResponseBody$outboundSchema: z.ZodType< + ListTicketingAccountResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingAccountResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingAccountOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAccountResponseBody$ { + /** @deprecated use `ListTicketingAccountResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAccountResponseBody$inboundSchema; + /** @deprecated use `ListTicketingAccountResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAccountResponseBody$outboundSchema; + /** @deprecated use `ListTicketingAccountResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingAccountResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingAccountResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingAccountResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingAccountResponse$inboundSchema: z.ZodType< + ListTicketingAccountResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingAccountResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingAccountResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingAccountResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListTicketingAccountResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingAccountResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingAccountResponse$outboundSchema: z.ZodType< + ListTicketingAccountResponse$Outbound, + z.ZodTypeDef, + ListTicketingAccountResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingAccountResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAccountResponse$ { + /** @deprecated use `ListTicketingAccountResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAccountResponse$inboundSchema; + /** @deprecated use `ListTicketingAccountResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAccountResponse$outboundSchema; + /** @deprecated use `ListTicketingAccountResponse$Outbound` instead. */ + export type Outbound = ListTicketingAccountResponse$Outbound; } diff --git a/src/models/operations/listticketingattachments.ts b/src/models/operations/listticketingattachments.ts index bbd15ebb..5ecba5a3 100644 --- a/src/models/operations/listticketingattachments.ts +++ b/src/models/operations/listticketingattachments.ts @@ -37,124 +37,167 @@ export type ListTicketingAttachmentsResponse = { }; /** @internal */ -export namespace ListTicketingAttachmentsRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingAttachmentsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< + ListTicketingAttachmentsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListTicketingAttachmentsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingAttachmentsRequest$outboundSchema: z.ZodType< + ListTicketingAttachmentsRequest$Outbound, + z.ZodTypeDef, + ListTicketingAttachmentsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAttachmentsRequest$ { + /** @deprecated use `ListTicketingAttachmentsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAttachmentsRequest$inboundSchema; + /** @deprecated use `ListTicketingAttachmentsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAttachmentsRequest$outboundSchema; + /** @deprecated use `ListTicketingAttachmentsRequest$Outbound` instead. */ + export type Outbound = ListTicketingAttachmentsRequest$Outbound; } /** @internal */ -export namespace ListTicketingAttachmentsResponseBody$ { - export const inboundSchema: z.ZodType< - ListTicketingAttachmentsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingAttachmentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingAttachmentsResponseBody$inboundSchema: z.ZodType< + ListTicketingAttachmentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingAttachmentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingAttachmentsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingAttachmentsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingAttachmentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListTicketingAttachmentsResponseBody$outboundSchema: z.ZodType< + ListTicketingAttachmentsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingAttachmentsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingAttachmentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAttachmentsResponseBody$ { + /** @deprecated use `ListTicketingAttachmentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAttachmentsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAttachmentsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingAttachmentsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingAttachmentsResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListTicketingAttachmentsResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingAttachmentsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingAttachmentsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingAttachmentsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const ListTicketingAttachmentsResponse$inboundSchema: z.ZodType< + ListTicketingAttachmentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingAttachmentsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListTicketingAttachmentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingAttachmentsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingAttachmentsResponse$outboundSchema: z.ZodType< + ListTicketingAttachmentsResponse$Outbound, + z.ZodTypeDef, + ListTicketingAttachmentsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingAttachmentsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingAttachmentsResponse$ { + /** @deprecated use `ListTicketingAttachmentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAttachmentsResponse$inboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAttachmentsResponse$outboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponse$Outbound` instead. */ + export type Outbound = ListTicketingAttachmentsResponse$Outbound; } diff --git a/src/models/operations/listticketingcollections.ts b/src/models/operations/listticketingcollections.ts index e3b62339..7375c127 100644 --- a/src/models/operations/listticketingcollections.ts +++ b/src/models/operations/listticketingcollections.ts @@ -37,124 +37,167 @@ export type ListTicketingCollectionsResponse = { }; /** @internal */ -export namespace ListTicketingCollectionsRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingCollectionsRequest - > = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< + ListTicketingCollectionsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type ListTicketingCollectionsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingCollectionsRequest$outboundSchema: z.ZodType< + ListTicketingCollectionsRequest$Outbound, + z.ZodTypeDef, + ListTicketingCollectionsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCollectionsRequest$ { + /** @deprecated use `ListTicketingCollectionsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCollectionsRequest$inboundSchema; + /** @deprecated use `ListTicketingCollectionsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCollectionsRequest$outboundSchema; + /** @deprecated use `ListTicketingCollectionsRequest$Outbound` instead. */ + export type Outbound = ListTicketingCollectionsRequest$Outbound; } /** @internal */ -export namespace ListTicketingCollectionsResponseBody$ { - export const inboundSchema: z.ZodType< - ListTicketingCollectionsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingCollectionOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingCollectionsResponseBody$inboundSchema: z.ZodType< + ListTicketingCollectionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingCollectionOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingCollectionsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingCollectionsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingCollectionOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListTicketingCollectionsResponseBody$outboundSchema: z.ZodType< + ListTicketingCollectionsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingCollectionsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingCollectionOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCollectionsResponseBody$ { + /** @deprecated use `ListTicketingCollectionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCollectionsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingCollectionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCollectionsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingCollectionsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingCollectionsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingCollectionsResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => ListTicketingCollectionsResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingCollectionsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingCollectionsResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingCollectionsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const ListTicketingCollectionsResponse$inboundSchema: z.ZodType< + ListTicketingCollectionsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingCollectionsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type ListTicketingCollectionsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingCollectionsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingCollectionsResponse$outboundSchema: z.ZodType< + ListTicketingCollectionsResponse$Outbound, + z.ZodTypeDef, + ListTicketingCollectionsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingCollectionsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCollectionsResponse$ { + /** @deprecated use `ListTicketingCollectionsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCollectionsResponse$inboundSchema; + /** @deprecated use `ListTicketingCollectionsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCollectionsResponse$outboundSchema; + /** @deprecated use `ListTicketingCollectionsResponse$Outbound` instead. */ + export type Outbound = ListTicketingCollectionsResponse$Outbound; } diff --git a/src/models/operations/listticketingcomments.ts b/src/models/operations/listticketingcomments.ts index 205d5121..36123fcf 100644 --- a/src/models/operations/listticketingcomments.ts +++ b/src/models/operations/listticketingcomments.ts @@ -37,113 +37,167 @@ export type ListTicketingCommentsResponse = { }; /** @internal */ -export namespace ListTicketingCommentsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< + ListTicketingCommentsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingCommentsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingCommentsRequest$outboundSchema: z.ZodType< + ListTicketingCommentsRequest$Outbound, + z.ZodTypeDef, + ListTicketingCommentsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCommentsRequest$ { + /** @deprecated use `ListTicketingCommentsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCommentsRequest$inboundSchema; + /** @deprecated use `ListTicketingCommentsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCommentsRequest$outboundSchema; + /** @deprecated use `ListTicketingCommentsRequest$Outbound` instead. */ + export type Outbound = ListTicketingCommentsRequest$Outbound; } /** @internal */ -export namespace ListTicketingCommentsResponseBody$ { - export const inboundSchema: z.ZodType< - ListTicketingCommentsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingCommentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingCommentsResponseBody$inboundSchema: z.ZodType< + ListTicketingCommentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingCommentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingCommentsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingCommentsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingCommentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListTicketingCommentsResponseBody$outboundSchema: z.ZodType< + ListTicketingCommentsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingCommentsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingCommentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCommentsResponseBody$ { + /** @deprecated use `ListTicketingCommentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCommentsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingCommentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCommentsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingCommentsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingCommentsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingCommentsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingCommentsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingCommentsResponse$inboundSchema: z.ZodType< + ListTicketingCommentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingCommentsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingCommentsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingCommentsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListTicketingCommentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingCommentsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingCommentsResponse$outboundSchema: z.ZodType< + ListTicketingCommentsResponse$Outbound, + z.ZodTypeDef, + ListTicketingCommentsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingCommentsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingCommentsResponse$ { + /** @deprecated use `ListTicketingCommentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCommentsResponse$inboundSchema; + /** @deprecated use `ListTicketingCommentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCommentsResponse$outboundSchema; + /** @deprecated use `ListTicketingCommentsResponse$Outbound` instead. */ + export type Outbound = ListTicketingCommentsResponse$Outbound; } diff --git a/src/models/operations/listticketingcontacts.ts b/src/models/operations/listticketingcontacts.ts index 1319afbb..25804fd1 100644 --- a/src/models/operations/listticketingcontacts.ts +++ b/src/models/operations/listticketingcontacts.ts @@ -37,113 +37,167 @@ export type ListTicketingContactsResponse = { }; /** @internal */ -export namespace ListTicketingContactsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingContactsRequest$inboundSchema: z.ZodType< + ListTicketingContactsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingContactsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingContactsRequest$outboundSchema: z.ZodType< + ListTicketingContactsRequest$Outbound, + z.ZodTypeDef, + ListTicketingContactsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingContactsRequest$ { + /** @deprecated use `ListTicketingContactsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingContactsRequest$inboundSchema; + /** @deprecated use `ListTicketingContactsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingContactsRequest$outboundSchema; + /** @deprecated use `ListTicketingContactsRequest$Outbound` instead. */ + export type Outbound = ListTicketingContactsRequest$Outbound; } /** @internal */ -export namespace ListTicketingContactsResponseBody$ { - export const inboundSchema: z.ZodType< - ListTicketingContactsResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingContactOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingContactsResponseBody$inboundSchema: z.ZodType< + ListTicketingContactsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingContactOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingContactsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingContactsResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingContactOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const ListTicketingContactsResponseBody$outboundSchema: z.ZodType< + ListTicketingContactsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingContactsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingContactOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingContactsResponseBody$ { + /** @deprecated use `ListTicketingContactsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingContactsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingContactsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingContactsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingContactsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingContactsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingContactsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingContactsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingContactsResponse$inboundSchema: z.ZodType< + ListTicketingContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingContactsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingContactsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingContactsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); - }); +/** @internal */ +export type ListTicketingContactsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingContactsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingContactsResponse$outboundSchema: z.ZodType< + ListTicketingContactsResponse$Outbound, + z.ZodTypeDef, + ListTicketingContactsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingContactsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingContactsResponse$ { + /** @deprecated use `ListTicketingContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingContactsResponse$inboundSchema; + /** @deprecated use `ListTicketingContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingContactsResponse$outboundSchema; + /** @deprecated use `ListTicketingContactsResponse$Outbound` instead. */ + export type Outbound = ListTicketingContactsResponse$Outbound; } diff --git a/src/models/operations/listticketingtags.ts b/src/models/operations/listticketingtags.ts index 778a66d1..e4182b6c 100644 --- a/src/models/operations/listticketingtags.ts +++ b/src/models/operations/listticketingtags.ts @@ -37,105 +37,167 @@ export type ListTicketingTagsResponse = { }; /** @internal */ -export namespace ListTicketingTagsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingTagsRequest$inboundSchema: z.ZodType< + ListTicketingTagsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingTagsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingTagsRequest$outboundSchema: z.ZodType< + ListTicketingTagsRequest$Outbound, + z.ZodTypeDef, + ListTicketingTagsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTagsRequest$ { + /** @deprecated use `ListTicketingTagsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTagsRequest$inboundSchema; + /** @deprecated use `ListTicketingTagsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTagsRequest$outboundSchema; + /** @deprecated use `ListTicketingTagsRequest$Outbound` instead. */ + export type Outbound = ListTicketingTagsRequest$Outbound; } /** @internal */ -export namespace ListTicketingTagsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingTagOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingTagsResponseBody$inboundSchema: z.ZodType< + ListTicketingTagsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingTagOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListTicketingTagsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListTicketingTagsResponseBody$outboundSchema: z.ZodType< + ListTicketingTagsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingTagsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingTagOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingTagOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTagsResponseBody$ { + /** @deprecated use `ListTicketingTagsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTagsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingTagsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTagsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingTagsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingTagsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingTagsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingTagsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingTagsResponse$inboundSchema: z.ZodType< + ListTicketingTagsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingTagsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingTagsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingTagsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListTicketingTagsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingTagsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingTagsResponse$outboundSchema: z.ZodType< + ListTicketingTagsResponse$Outbound, + z.ZodTypeDef, + ListTicketingTagsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingTagsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTagsResponse$ { + /** @deprecated use `ListTicketingTagsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTagsResponse$inboundSchema; + /** @deprecated use `ListTicketingTagsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTagsResponse$outboundSchema; + /** @deprecated use `ListTicketingTagsResponse$Outbound` instead. */ + export type Outbound = ListTicketingTagsResponse$Outbound; } diff --git a/src/models/operations/listticketingteams.ts b/src/models/operations/listticketingteams.ts index 8e4378e0..6b20bbbd 100644 --- a/src/models/operations/listticketingteams.ts +++ b/src/models/operations/listticketingteams.ts @@ -37,105 +37,167 @@ export type ListTicketingTeamsResponse = { }; /** @internal */ -export namespace ListTicketingTeamsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< + ListTicketingTeamsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingTeamsRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingTeamsRequest$outboundSchema: z.ZodType< + ListTicketingTeamsRequest$Outbound, + z.ZodTypeDef, + ListTicketingTeamsRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTeamsRequest$ { + /** @deprecated use `ListTicketingTeamsRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTeamsRequest$inboundSchema; + /** @deprecated use `ListTicketingTeamsRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTeamsRequest$outboundSchema; + /** @deprecated use `ListTicketingTeamsRequest$Outbound` instead. */ + export type Outbound = ListTicketingTeamsRequest$Outbound; } /** @internal */ -export namespace ListTicketingTeamsResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingTeamOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingTeamsResponseBody$inboundSchema: z.ZodType< + ListTicketingTeamsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingTeamOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListTicketingTeamsResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListTicketingTeamsResponseBody$outboundSchema: z.ZodType< + ListTicketingTeamsResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingTeamsResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingTeamOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingTeamOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTeamsResponseBody$ { + /** @deprecated use `ListTicketingTeamsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTeamsResponseBody$inboundSchema; + /** @deprecated use `ListTicketingTeamsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTeamsResponseBody$outboundSchema; + /** @deprecated use `ListTicketingTeamsResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingTeamsResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingTeamsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingTeamsResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingTeamsResponse$inboundSchema: z.ZodType< + ListTicketingTeamsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingTeamsResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingTeamsResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingTeamsResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListTicketingTeamsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingTeamsResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingTeamsResponse$outboundSchema: z.ZodType< + ListTicketingTeamsResponse$Outbound, + z.ZodTypeDef, + ListTicketingTeamsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingTeamsResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTeamsResponse$ { + /** @deprecated use `ListTicketingTeamsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTeamsResponse$inboundSchema; + /** @deprecated use `ListTicketingTeamsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTeamsResponse$outboundSchema; + /** @deprecated use `ListTicketingTeamsResponse$Outbound` instead. */ + export type Outbound = ListTicketingTeamsResponse$Outbound; } diff --git a/src/models/operations/listticketingticket.ts b/src/models/operations/listticketingticket.ts index d6e84a10..4de50f14 100644 --- a/src/models/operations/listticketingticket.ts +++ b/src/models/operations/listticketingticket.ts @@ -37,109 +37,167 @@ export type ListTicketingTicketResponse = { }; /** @internal */ -export namespace ListTicketingTicketRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingTicketRequest$inboundSchema: z.ZodType< + ListTicketingTicketRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingTicketRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingTicketRequest$outboundSchema: z.ZodType< + ListTicketingTicketRequest$Outbound, + z.ZodTypeDef, + ListTicketingTicketRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTicketRequest$ { + /** @deprecated use `ListTicketingTicketRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTicketRequest$inboundSchema; + /** @deprecated use `ListTicketingTicketRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTicketRequest$outboundSchema; + /** @deprecated use `ListTicketingTicketRequest$Outbound` instead. */ + export type Outbound = ListTicketingTicketRequest$Outbound; } /** @internal */ -export namespace ListTicketingTicketResponseBody$ { - export const inboundSchema: z.ZodType = - z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingTicketOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); - }); - - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - ListTicketingTicketResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingTicketOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +export const ListTicketingTicketResponseBody$inboundSchema: z.ZodType< + ListTicketingTicketResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingTicketOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type ListTicketingTicketResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListTicketingTicketResponseBody$outboundSchema: z.ZodType< + ListTicketingTicketResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingTicketResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingTicketOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTicketResponseBody$ { + /** @deprecated use `ListTicketingTicketResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTicketResponseBody$inboundSchema; + /** @deprecated use `ListTicketingTicketResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTicketResponseBody$outboundSchema; + /** @deprecated use `ListTicketingTicketResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingTicketResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingTicketResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingTicketResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingTicketResponse$inboundSchema: z.ZodType< + ListTicketingTicketResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingTicketResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingTicketResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingTicketResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListTicketingTicketResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingTicketResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingTicketResponse$outboundSchema: z.ZodType< + ListTicketingTicketResponse$Outbound, + z.ZodTypeDef, + ListTicketingTicketResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingTicketResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingTicketResponse$ { + /** @deprecated use `ListTicketingTicketResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTicketResponse$inboundSchema; + /** @deprecated use `ListTicketingTicketResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTicketResponse$outboundSchema; + /** @deprecated use `ListTicketingTicketResponse$Outbound` instead. */ + export type Outbound = ListTicketingTicketResponse$Outbound; } diff --git a/src/models/operations/listticketingusers.ts b/src/models/operations/listticketingusers.ts index 54b7b5f7..8baae634 100644 --- a/src/models/operations/listticketingusers.ts +++ b/src/models/operations/listticketingusers.ts @@ -37,105 +37,167 @@ export type ListTicketingUsersResponse = { }; /** @internal */ -export namespace ListTicketingUsersRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const ListTicketingUsersRequest$inboundSchema: z.ZodType< + ListTicketingUsersRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + remote_data: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - limit: z.number().default(50), - cursor: z.string().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export type ListTicketingUsersRequest$Outbound = { + "x-connection-token": string; + remote_data?: boolean | undefined; + limit: number; + cursor?: string | undefined; +}; + +/** @internal */ +export const ListTicketingUsersRequest$outboundSchema: z.ZodType< + ListTicketingUsersRequest$Outbound, + z.ZodTypeDef, + ListTicketingUsersRequest +> = z + .object({ + xConnectionToken: z.string(), + remoteData: z.boolean().optional(), + limit: z.number().default(50), + cursor: z.string().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingUsersRequest$ { + /** @deprecated use `ListTicketingUsersRequest$inboundSchema` instead. */ + export const inboundSchema = ListTicketingUsersRequest$inboundSchema; + /** @deprecated use `ListTicketingUsersRequest$outboundSchema` instead. */ + export const outboundSchema = ListTicketingUsersRequest$outboundSchema; + /** @deprecated use `ListTicketingUsersRequest$Outbound` instead. */ + export type Outbound = ListTicketingUsersRequest$Outbound; } /** @internal */ -export namespace ListTicketingUsersResponseBody$ { - export const inboundSchema: z.ZodType = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingUserOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const ListTicketingUsersResponseBody$inboundSchema: z.ZodType< + ListTicketingUsersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingUserOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", + }); + }); + +/** @internal */ +export type ListTicketingUsersResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; + +/** @internal */ +export const ListTicketingUsersResponseBody$outboundSchema: z.ZodType< + ListTicketingUsersResponseBody$Outbound, + z.ZodTypeDef, + ListTicketingUsersResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingUserOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType = - z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingUserOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingUsersResponseBody$ { + /** @deprecated use `ListTicketingUsersResponseBody$inboundSchema` instead. */ + export const inboundSchema = ListTicketingUsersResponseBody$inboundSchema; + /** @deprecated use `ListTicketingUsersResponseBody$outboundSchema` instead. */ + export const outboundSchema = ListTicketingUsersResponseBody$outboundSchema; + /** @deprecated use `ListTicketingUsersResponseBody$Outbound` instead. */ + export type Outbound = ListTicketingUsersResponseBody$Outbound; } /** @internal */ -export namespace ListTicketingUsersResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z.lazy(() => ListTicketingUsersResponseBody$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ListTicketingUsersResponse$inboundSchema: z.ZodType< + ListTicketingUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ListTicketingUsersResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: ListTicketingUsersResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => ListTicketingUsersResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export type ListTicketingUsersResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ListTicketingUsersResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ListTicketingUsersResponse$outboundSchema: z.ZodType< + ListTicketingUsersResponse$Outbound, + z.ZodTypeDef, + ListTicketingUsersResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ListTicketingUsersResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTicketingUsersResponse$ { + /** @deprecated use `ListTicketingUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingUsersResponse$inboundSchema; + /** @deprecated use `ListTicketingUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingUsersResponse$outboundSchema; + /** @deprecated use `ListTicketingUsersResponse$Outbound` instead. */ + export type Outbound = ListTicketingUsersResponse$Outbound; } diff --git a/src/models/operations/listwebhooks.ts b/src/models/operations/listwebhooks.ts index 1dd6cfda..2ede0a9f 100644 --- a/src/models/operations/listwebhooks.ts +++ b/src/models/operations/listwebhooks.ts @@ -12,33 +12,54 @@ export type ListWebhooksResponse = { }; /** @internal */ -export namespace ListWebhooksResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - WebhookResponses: z.array(components.WebhookResponse$.inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - WebhookResponses: "webhookResponses", - }); +export const ListWebhooksResponse$inboundSchema: z.ZodType< + ListWebhooksResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + WebhookResponses: z.array(components.WebhookResponse$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + WebhookResponses: "webhookResponses", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - WebhookResponses?: Array | undefined; - }; +/** @internal */ +export type ListWebhooksResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + WebhookResponses?: Array | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - webhookResponses: z.array(components.WebhookResponse$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - webhookResponses: "WebhookResponses", - }); +/** @internal */ +export const ListWebhooksResponse$outboundSchema: z.ZodType< + ListWebhooksResponse$Outbound, + z.ZodTypeDef, + ListWebhooksResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + webhookResponses: z.array(components.WebhookResponse$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + webhookResponses: "WebhookResponses", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListWebhooksResponse$ { + /** @deprecated use `ListWebhooksResponse$inboundSchema` instead. */ + export const inboundSchema = ListWebhooksResponse$inboundSchema; + /** @deprecated use `ListWebhooksResponse$outboundSchema` instead. */ + export const outboundSchema = ListWebhooksResponse$outboundSchema; + /** @deprecated use `ListWebhooksResponse$Outbound` instead. */ + export type Outbound = ListWebhooksResponse$Outbound; } diff --git a/src/models/operations/map.ts b/src/models/operations/map.ts index 1105e9eb..35a6047f 100644 --- a/src/models/operations/map.ts +++ b/src/models/operations/map.ts @@ -11,28 +11,45 @@ export type MapResponse = { }; /** @internal */ -export namespace MapResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const MapResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type MapResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const MapResponse$outboundSchema: z.ZodType< + MapResponse$Outbound, + z.ZodTypeDef, + MapResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MapResponse$ { + /** @deprecated use `MapResponse$inboundSchema` instead. */ + export const inboundSchema = MapResponse$inboundSchema; + /** @deprecated use `MapResponse$outboundSchema` instead. */ + export const outboundSchema = MapResponse$outboundSchema; + /** @deprecated use `MapResponse$Outbound` instead. */ + export type Outbound = MapResponse$Outbound; } diff --git a/src/models/operations/remoteid.ts b/src/models/operations/remoteid.ts index d3be349a..4f1b2d58 100644 --- a/src/models/operations/remoteid.ts +++ b/src/models/operations/remoteid.ts @@ -15,43 +15,78 @@ export type RemoteIdResponse = { }; /** @internal */ -export namespace RemoteIdRequest$ { - export const inboundSchema: z.ZodType = z.object({ +export const RemoteIdRequest$inboundSchema: z.ZodType = + z.object({ remoteId: z.string(), }); - export type Outbound = { - remoteId: string; - }; +/** @internal */ +export type RemoteIdRequest$Outbound = { + remoteId: string; +}; - export const outboundSchema: z.ZodType = z.object({ - remoteId: z.string(), - }); +/** @internal */ +export const RemoteIdRequest$outboundSchema: z.ZodType< + RemoteIdRequest$Outbound, + z.ZodTypeDef, + RemoteIdRequest +> = z.object({ + remoteId: 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 RemoteIdRequest$ { + /** @deprecated use `RemoteIdRequest$inboundSchema` instead. */ + export const inboundSchema = RemoteIdRequest$inboundSchema; + /** @deprecated use `RemoteIdRequest$outboundSchema` instead. */ + export const outboundSchema = RemoteIdRequest$outboundSchema; + /** @deprecated use `RemoteIdRequest$Outbound` instead. */ + export type Outbound = RemoteIdRequest$Outbound; } /** @internal */ -export namespace RemoteIdResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const RemoteIdResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type RemoteIdResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const RemoteIdResponse$outboundSchema: z.ZodType< + RemoteIdResponse$Outbound, + z.ZodTypeDef, + RemoteIdResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RemoteIdResponse$ { + /** @deprecated use `RemoteIdResponse$inboundSchema` instead. */ + export const inboundSchema = RemoteIdResponse$inboundSchema; + /** @deprecated use `RemoteIdResponse$outboundSchema` instead. */ + export const outboundSchema = RemoteIdResponse$outboundSchema; + /** @deprecated use `RemoteIdResponse$Outbound` instead. */ + export type Outbound = RemoteIdResponse$Outbound; } diff --git a/src/models/operations/request.ts b/src/models/operations/request.ts index 6085cced..8583abed 100644 --- a/src/models/operations/request.ts +++ b/src/models/operations/request.ts @@ -19,69 +19,103 @@ export type RequestResponse = { }; /** @internal */ -export namespace RequestRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - integrationId: z.string(), - linkedUserId: z.string(), - vertical: z.string(), - PassThroughRequestDto: components.PassThroughRequestDto$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - PassThroughRequestDto: "passThroughRequestDto", - }); +export const RequestRequest$inboundSchema: z.ZodType = z + .object({ + integrationId: z.string(), + linkedUserId: z.string(), + vertical: z.string(), + PassThroughRequestDto: components.PassThroughRequestDto$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + PassThroughRequestDto: "passThroughRequestDto", }); + }); - export type Outbound = { - integrationId: string; - linkedUserId: string; - vertical: string; - PassThroughRequestDto: components.PassThroughRequestDto$.Outbound; - }; +/** @internal */ +export type RequestRequest$Outbound = { + integrationId: string; + linkedUserId: string; + vertical: string; + PassThroughRequestDto: components.PassThroughRequestDto$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - integrationId: z.string(), - linkedUserId: z.string(), - vertical: z.string(), - passThroughRequestDto: components.PassThroughRequestDto$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - passThroughRequestDto: "PassThroughRequestDto", - }); +/** @internal */ +export const RequestRequest$outboundSchema: z.ZodType< + RequestRequest$Outbound, + z.ZodTypeDef, + RequestRequest +> = z + .object({ + integrationId: z.string(), + linkedUserId: z.string(), + vertical: z.string(), + passThroughRequestDto: components.PassThroughRequestDto$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + passThroughRequestDto: "PassThroughRequestDto", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RequestRequest$ { + /** @deprecated use `RequestRequest$inboundSchema` instead. */ + export const inboundSchema = RequestRequest$inboundSchema; + /** @deprecated use `RequestRequest$outboundSchema` instead. */ + export const outboundSchema = RequestRequest$outboundSchema; + /** @deprecated use `RequestRequest$Outbound` instead. */ + export type Outbound = RequestRequest$Outbound; } /** @internal */ -export namespace RequestResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - PassThroughResponse: components.PassThroughResponse$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - PassThroughResponse: "passThroughResponse", - }); +export const RequestResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + PassThroughResponse: components.PassThroughResponse$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + PassThroughResponse: "passThroughResponse", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - PassThroughResponse?: components.PassThroughResponse$.Outbound | undefined; - }; +/** @internal */ +export type RequestResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + PassThroughResponse?: components.PassThroughResponse$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - passThroughResponse: components.PassThroughResponse$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - passThroughResponse: "PassThroughResponse", - }); +/** @internal */ +export const RequestResponse$outboundSchema: z.ZodType< + RequestResponse$Outbound, + z.ZodTypeDef, + RequestResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + passThroughResponse: components.PassThroughResponse$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + passThroughResponse: "PassThroughResponse", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RequestResponse$ { + /** @deprecated use `RequestResponse$inboundSchema` instead. */ + export const inboundSchema = RequestResponse$inboundSchema; + /** @deprecated use `RequestResponse$outboundSchema` instead. */ + export const outboundSchema = RequestResponse$outboundSchema; + /** @deprecated use `RequestResponse$Outbound` instead. */ + export type Outbound = RequestResponse$Outbound; } diff --git a/src/models/operations/resync.ts b/src/models/operations/resync.ts index 544bd161..43346b5e 100644 --- a/src/models/operations/resync.ts +++ b/src/models/operations/resync.ts @@ -11,28 +11,45 @@ export type ResyncResponse = { }; /** @internal */ -export namespace ResyncResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const ResyncResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; +/** @internal */ +export type ResyncResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const ResyncResponse$outboundSchema: z.ZodType< + ResyncResponse$Outbound, + z.ZodTypeDef, + ResyncResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ResyncResponse$ { + /** @deprecated use `ResyncResponse$inboundSchema` instead. */ + export const inboundSchema = ResyncResponse$inboundSchema; + /** @deprecated use `ResyncResponse$outboundSchema` instead. */ + export const outboundSchema = ResyncResponse$outboundSchema; + /** @deprecated use `ResyncResponse$Outbound` instead. */ + export type Outbound = ResyncResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingaccount.ts b/src/models/operations/retrieveaccountingaccount.ts index 39e9c6cd..2f25a520 100644 --- a/src/models/operations/retrieveaccountingaccount.ts +++ b/src/models/operations/retrieveaccountingaccount.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingAccountResponse = { }; /** @internal */ -export namespace RetrieveAccountingAccountRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingAccountRequest$inboundSchema: z.ZodType< + RetrieveAccountingAccountRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingAccountRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAccountRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingAccountRequest$outboundSchema: z.ZodType< + RetrieveAccountingAccountRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingAccountRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAccountRequest$ { + /** @deprecated use `RetrieveAccountingAccountRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAccountRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingAccountRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAccountRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingAccountRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingAccountRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingAccountResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingAccountResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingAccountOutput: - components.UnifiedAccountingAccountOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingAccountOutput: "unifiedAccountingAccountOutput", - }); +export const RetrieveAccountingAccountResponse$inboundSchema: z.ZodType< + RetrieveAccountingAccountResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingAccountOutput: + components.UnifiedAccountingAccountOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingAccountOutput: "unifiedAccountingAccountOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingAccountOutput?: - | components.UnifiedAccountingAccountOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingAccountResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingAccountOutput?: components.UnifiedAccountingAccountOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAccountResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingAccountOutput: - components.UnifiedAccountingAccountOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingAccountOutput: "UnifiedAccountingAccountOutput", - }); +/** @internal */ +export const RetrieveAccountingAccountResponse$outboundSchema: z.ZodType< + RetrieveAccountingAccountResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingAccountResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingAccountOutput: + components.UnifiedAccountingAccountOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingAccountOutput: "UnifiedAccountingAccountOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAccountResponse$ { + /** @deprecated use `RetrieveAccountingAccountResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAccountResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingAccountResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAccountResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingAccountResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingAccountResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingaddress.ts b/src/models/operations/retrieveaccountingaddress.ts index 5af42382..26bafbff 100644 --- a/src/models/operations/retrieveaccountingaddress.ts +++ b/src/models/operations/retrieveaccountingaddress.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingAddressResponse = { }; /** @internal */ -export namespace RetrieveAccountingAddressRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingAddressRequest$inboundSchema: z.ZodType< + RetrieveAccountingAddressRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingAddressRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAddressRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingAddressRequest$outboundSchema: z.ZodType< + RetrieveAccountingAddressRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingAddressRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAddressRequest$ { + /** @deprecated use `RetrieveAccountingAddressRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAddressRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingAddressRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAddressRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingAddressRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingAddressRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingAddressResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingAddressResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingAddressOutput: - components.UnifiedAccountingAddressOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingAddressOutput: "unifiedAccountingAddressOutput", - }); +export const RetrieveAccountingAddressResponse$inboundSchema: z.ZodType< + RetrieveAccountingAddressResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingAddressOutput: + components.UnifiedAccountingAddressOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingAddressOutput: "unifiedAccountingAddressOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingAddressOutput?: - | components.UnifiedAccountingAddressOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingAddressResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingAddressOutput?: components.UnifiedAccountingAddressOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAddressResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingAddressOutput: - components.UnifiedAccountingAddressOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingAddressOutput: "UnifiedAccountingAddressOutput", - }); +/** @internal */ +export const RetrieveAccountingAddressResponse$outboundSchema: z.ZodType< + RetrieveAccountingAddressResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingAddressResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingAddressOutput: + components.UnifiedAccountingAddressOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingAddressOutput: "UnifiedAccountingAddressOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAddressResponse$ { + /** @deprecated use `RetrieveAccountingAddressResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAddressResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingAddressResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAddressResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingAddressResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingAddressResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingattachment.ts b/src/models/operations/retrieveaccountingattachment.ts index c35c4fda..5baaf254 100644 --- a/src/models/operations/retrieveaccountingattachment.ts +++ b/src/models/operations/retrieveaccountingattachment.ts @@ -27,88 +27,114 @@ export type RetrieveAccountingAttachmentResponse = { }; /** @internal */ -export namespace RetrieveAccountingAttachmentRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingAttachmentRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingAttachmentRequest$inboundSchema: z.ZodType< + RetrieveAccountingAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingAttachmentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAttachmentRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingAttachmentRequest$outboundSchema: z.ZodType< + RetrieveAccountingAttachmentRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAttachmentRequest$ { + /** @deprecated use `RetrieveAccountingAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAttachmentRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAttachmentRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingAttachmentRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingAttachmentRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingAttachmentResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingAttachmentResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingAttachmentOutput: - components.UnifiedAccountingAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingAttachmentOutput: "unifiedAccountingAttachmentOutput", - }); +export const RetrieveAccountingAttachmentResponse$inboundSchema: z.ZodType< + RetrieveAccountingAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingAttachmentOutput: + components.UnifiedAccountingAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingAttachmentOutput: "unifiedAccountingAttachmentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingAttachmentOutput?: - | components.UnifiedAccountingAttachmentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingAttachmentOutput?: + | components.UnifiedAccountingAttachmentOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingAttachmentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingAttachmentOutput: - components.UnifiedAccountingAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingAttachmentOutput: "UnifiedAccountingAttachmentOutput", - }); +/** @internal */ +export const RetrieveAccountingAttachmentResponse$outboundSchema: z.ZodType< + RetrieveAccountingAttachmentResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingAttachmentOutput: + components.UnifiedAccountingAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingAttachmentOutput: "UnifiedAccountingAttachmentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingAttachmentResponse$ { + /** @deprecated use `RetrieveAccountingAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingAttachmentResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingAttachmentResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingAttachmentResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingAttachmentResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingbalancesheet.ts b/src/models/operations/retrieveaccountingbalancesheet.ts index 1c45e185..413a9a50 100644 --- a/src/models/operations/retrieveaccountingbalancesheet.ts +++ b/src/models/operations/retrieveaccountingbalancesheet.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingBalanceSheetResponse = { }; /** @internal */ -export namespace RetrieveAccountingBalanceSheetRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingBalanceSheetRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingBalanceSheetRequest$inboundSchema: z.ZodType< + RetrieveAccountingBalanceSheetRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingBalanceSheetRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingBalanceSheetRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingBalanceSheetRequest$outboundSchema: z.ZodType< + RetrieveAccountingBalanceSheetRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingBalanceSheetRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingBalanceSheetRequest$ { + /** @deprecated use `RetrieveAccountingBalanceSheetRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingBalanceSheetRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingBalanceSheetRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingBalanceSheetRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingBalanceSheetRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingBalanceSheetRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingBalanceSheetResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingBalanceSheetResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingBalancesheetOutput: - components.UnifiedAccountingBalancesheetOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingBalancesheetOutput: "unifiedAccountingBalancesheetOutput", - }); +export const RetrieveAccountingBalanceSheetResponse$inboundSchema: z.ZodType< + RetrieveAccountingBalanceSheetResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingBalancesheetOutput: + components.UnifiedAccountingBalancesheetOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingBalancesheetOutput: "unifiedAccountingBalancesheetOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingBalancesheetOutput?: - | components.UnifiedAccountingBalancesheetOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingBalanceSheetResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingBalancesheetOutput?: + | components.UnifiedAccountingBalancesheetOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingBalanceSheetResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingBalancesheetOutput: - components.UnifiedAccountingBalancesheetOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingBalancesheetOutput: "UnifiedAccountingBalancesheetOutput", - }); +/** @internal */ +export const RetrieveAccountingBalanceSheetResponse$outboundSchema: z.ZodType< + RetrieveAccountingBalanceSheetResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingBalanceSheetResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingBalancesheetOutput: + components.UnifiedAccountingBalancesheetOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingBalancesheetOutput: "UnifiedAccountingBalancesheetOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingBalanceSheetResponse$ { + /** @deprecated use `RetrieveAccountingBalanceSheetResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingBalanceSheetResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingBalanceSheetResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingBalanceSheetResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingBalanceSheetResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingBalanceSheetResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingcashflowstatement.ts b/src/models/operations/retrieveaccountingcashflowstatement.ts index cc4b934c..b7cb1d73 100644 --- a/src/models/operations/retrieveaccountingcashflowstatement.ts +++ b/src/models/operations/retrieveaccountingcashflowstatement.ts @@ -29,90 +29,114 @@ export type RetrieveAccountingCashflowStatementResponse = { }; /** @internal */ -export namespace RetrieveAccountingCashflowStatementRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCashflowStatementRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingCashflowStatementRequest$inboundSchema: z.ZodType< + RetrieveAccountingCashflowStatementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingCashflowStatementRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCashflowStatementRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingCashflowStatementRequest$outboundSchema: z.ZodType< + RetrieveAccountingCashflowStatementRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingCashflowStatementRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCashflowStatementRequest$ { + /** @deprecated use `RetrieveAccountingCashflowStatementRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCashflowStatementRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingCashflowStatementRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCashflowStatementRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingCashflowStatementRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingCashflowStatementRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingCashflowStatementResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCashflowStatementResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingCashflowstatementOutput: - components.UnifiedAccountingCashflowstatementOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingCashflowstatementOutput: - "unifiedAccountingCashflowstatementOutput", - }); +export const RetrieveAccountingCashflowStatementResponse$inboundSchema: z.ZodType< + RetrieveAccountingCashflowStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingCashflowstatementOutput: + components.UnifiedAccountingCashflowstatementOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingCashflowstatementOutput: "unifiedAccountingCashflowstatementOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingCashflowstatementOutput?: - | components.UnifiedAccountingCashflowstatementOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingCashflowStatementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingCashflowstatementOutput?: + | components.UnifiedAccountingCashflowstatementOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCashflowStatementResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingCashflowstatementOutput: - components.UnifiedAccountingCashflowstatementOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingCashflowstatementOutput: - "UnifiedAccountingCashflowstatementOutput", - }); +/** @internal */ +export const RetrieveAccountingCashflowStatementResponse$outboundSchema: z.ZodType< + RetrieveAccountingCashflowStatementResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingCashflowStatementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingCashflowstatementOutput: + components.UnifiedAccountingCashflowstatementOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingCashflowstatementOutput: "UnifiedAccountingCashflowstatementOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCashflowStatementResponse$ { + /** @deprecated use `RetrieveAccountingCashflowStatementResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCashflowStatementResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingCashflowStatementResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCashflowStatementResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingCashflowStatementResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingCashflowStatementResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingcompanyinfo.ts b/src/models/operations/retrieveaccountingcompanyinfo.ts index 8aa18529..8756481b 100644 --- a/src/models/operations/retrieveaccountingcompanyinfo.ts +++ b/src/models/operations/retrieveaccountingcompanyinfo.ts @@ -27,88 +27,114 @@ export type RetrieveAccountingCompanyInfoResponse = { }; /** @internal */ -export namespace RetrieveAccountingCompanyInfoRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCompanyInfoRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingCompanyInfoRequest$inboundSchema: z.ZodType< + RetrieveAccountingCompanyInfoRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingCompanyInfoRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCompanyInfoRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingCompanyInfoRequest$outboundSchema: z.ZodType< + RetrieveAccountingCompanyInfoRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingCompanyInfoRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCompanyInfoRequest$ { + /** @deprecated use `RetrieveAccountingCompanyInfoRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCompanyInfoRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingCompanyInfoRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCompanyInfoRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingCompanyInfoRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingCompanyInfoRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingCompanyInfoResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCompanyInfoResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingCompanyinfoOutput: - components.UnifiedAccountingCompanyinfoOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingCompanyinfoOutput: "unifiedAccountingCompanyinfoOutput", - }); +export const RetrieveAccountingCompanyInfoResponse$inboundSchema: z.ZodType< + RetrieveAccountingCompanyInfoResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingCompanyinfoOutput: + components.UnifiedAccountingCompanyinfoOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingCompanyinfoOutput: "unifiedAccountingCompanyinfoOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingCompanyinfoOutput?: - | components.UnifiedAccountingCompanyinfoOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingCompanyInfoResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingCompanyinfoOutput?: + | components.UnifiedAccountingCompanyinfoOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCompanyInfoResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingCompanyinfoOutput: - components.UnifiedAccountingCompanyinfoOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingCompanyinfoOutput: "UnifiedAccountingCompanyinfoOutput", - }); +/** @internal */ +export const RetrieveAccountingCompanyInfoResponse$outboundSchema: z.ZodType< + RetrieveAccountingCompanyInfoResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingCompanyInfoResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingCompanyinfoOutput: + components.UnifiedAccountingCompanyinfoOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingCompanyinfoOutput: "UnifiedAccountingCompanyinfoOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCompanyInfoResponse$ { + /** @deprecated use `RetrieveAccountingCompanyInfoResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCompanyInfoResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingCompanyInfoResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCompanyInfoResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingCompanyInfoResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingCompanyInfoResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingcontact.ts b/src/models/operations/retrieveaccountingcontact.ts index b9e0f0d2..85cba985 100644 --- a/src/models/operations/retrieveaccountingcontact.ts +++ b/src/models/operations/retrieveaccountingcontact.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingContactResponse = { }; /** @internal */ -export namespace RetrieveAccountingContactRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingContactRequest$inboundSchema: z.ZodType< + RetrieveAccountingContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingContactRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingContactRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingContactRequest$outboundSchema: z.ZodType< + RetrieveAccountingContactRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingContactRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingContactRequest$ { + /** @deprecated use `RetrieveAccountingContactRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingContactRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingContactRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingContactRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingContactRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingContactRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingContactResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingContactResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingContactOutput: - components.UnifiedAccountingContactOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingContactOutput: "unifiedAccountingContactOutput", - }); +export const RetrieveAccountingContactResponse$inboundSchema: z.ZodType< + RetrieveAccountingContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingContactOutput: + components.UnifiedAccountingContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingContactOutput: "unifiedAccountingContactOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingContactOutput?: - | components.UnifiedAccountingContactOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingContactOutput?: components.UnifiedAccountingContactOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingContactResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingContactOutput: - components.UnifiedAccountingContactOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingContactOutput: "UnifiedAccountingContactOutput", - }); +/** @internal */ +export const RetrieveAccountingContactResponse$outboundSchema: z.ZodType< + RetrieveAccountingContactResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingContactOutput: + components.UnifiedAccountingContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingContactOutput: "UnifiedAccountingContactOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingContactResponse$ { + /** @deprecated use `RetrieveAccountingContactResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingContactResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingContactResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingContactResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingContactResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingContactResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingcreditnote.ts b/src/models/operations/retrieveaccountingcreditnote.ts index b49ee547..dfd6aa0a 100644 --- a/src/models/operations/retrieveaccountingcreditnote.ts +++ b/src/models/operations/retrieveaccountingcreditnote.ts @@ -27,88 +27,114 @@ export type RetrieveAccountingCreditNoteResponse = { }; /** @internal */ -export namespace RetrieveAccountingCreditNoteRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCreditNoteRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingCreditNoteRequest$inboundSchema: z.ZodType< + RetrieveAccountingCreditNoteRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingCreditNoteRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCreditNoteRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingCreditNoteRequest$outboundSchema: z.ZodType< + RetrieveAccountingCreditNoteRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingCreditNoteRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCreditNoteRequest$ { + /** @deprecated use `RetrieveAccountingCreditNoteRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCreditNoteRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingCreditNoteRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCreditNoteRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingCreditNoteRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingCreditNoteRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingCreditNoteResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingCreditNoteResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingCreditnoteOutput: - components.UnifiedAccountingCreditnoteOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingCreditnoteOutput: "unifiedAccountingCreditnoteOutput", - }); +export const RetrieveAccountingCreditNoteResponse$inboundSchema: z.ZodType< + RetrieveAccountingCreditNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingCreditnoteOutput: + components.UnifiedAccountingCreditnoteOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingCreditnoteOutput: "unifiedAccountingCreditnoteOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingCreditnoteOutput?: - | components.UnifiedAccountingCreditnoteOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingCreditNoteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingCreditnoteOutput?: + | components.UnifiedAccountingCreditnoteOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingCreditNoteResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingCreditnoteOutput: - components.UnifiedAccountingCreditnoteOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingCreditnoteOutput: "UnifiedAccountingCreditnoteOutput", - }); +/** @internal */ +export const RetrieveAccountingCreditNoteResponse$outboundSchema: z.ZodType< + RetrieveAccountingCreditNoteResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingCreditNoteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingCreditnoteOutput: + components.UnifiedAccountingCreditnoteOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingCreditnoteOutput: "UnifiedAccountingCreditnoteOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingCreditNoteResponse$ { + /** @deprecated use `RetrieveAccountingCreditNoteResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingCreditNoteResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingCreditNoteResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingCreditNoteResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingCreditNoteResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingCreditNoteResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingexpense.ts b/src/models/operations/retrieveaccountingexpense.ts index d8008bc8..e0c29725 100644 --- a/src/models/operations/retrieveaccountingexpense.ts +++ b/src/models/operations/retrieveaccountingexpense.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingExpenseResponse = { }; /** @internal */ -export namespace RetrieveAccountingExpenseRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingExpenseRequest$inboundSchema: z.ZodType< + RetrieveAccountingExpenseRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingExpenseRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingExpenseRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingExpenseRequest$outboundSchema: z.ZodType< + RetrieveAccountingExpenseRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingExpenseRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingExpenseRequest$ { + /** @deprecated use `RetrieveAccountingExpenseRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingExpenseRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingExpenseRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingExpenseRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingExpenseRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingExpenseRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingExpenseResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingExpenseResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingExpenseOutput: - components.UnifiedAccountingExpenseOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingExpenseOutput: "unifiedAccountingExpenseOutput", - }); +export const RetrieveAccountingExpenseResponse$inboundSchema: z.ZodType< + RetrieveAccountingExpenseResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingExpenseOutput: + components.UnifiedAccountingExpenseOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingExpenseOutput: "unifiedAccountingExpenseOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingExpenseOutput?: - | components.UnifiedAccountingExpenseOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingExpenseResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingExpenseOutput?: components.UnifiedAccountingExpenseOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingExpenseResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingExpenseOutput: - components.UnifiedAccountingExpenseOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingExpenseOutput: "UnifiedAccountingExpenseOutput", - }); +/** @internal */ +export const RetrieveAccountingExpenseResponse$outboundSchema: z.ZodType< + RetrieveAccountingExpenseResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingExpenseResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingExpenseOutput: + components.UnifiedAccountingExpenseOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingExpenseOutput: "UnifiedAccountingExpenseOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingExpenseResponse$ { + /** @deprecated use `RetrieveAccountingExpenseResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingExpenseResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingExpenseResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingExpenseResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingExpenseResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingExpenseResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingincomestatement.ts b/src/models/operations/retrieveaccountingincomestatement.ts index 51ca5eb3..cd73bc7f 100644 --- a/src/models/operations/retrieveaccountingincomestatement.ts +++ b/src/models/operations/retrieveaccountingincomestatement.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingIncomeStatementResponse = { }; /** @internal */ -export namespace RetrieveAccountingIncomeStatementRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingIncomeStatementRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingIncomeStatementRequest$inboundSchema: z.ZodType< + RetrieveAccountingIncomeStatementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingIncomeStatementRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingIncomeStatementRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingIncomeStatementRequest$outboundSchema: z.ZodType< + RetrieveAccountingIncomeStatementRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingIncomeStatementRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingIncomeStatementRequest$ { + /** @deprecated use `RetrieveAccountingIncomeStatementRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingIncomeStatementRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingIncomeStatementRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingIncomeStatementRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingIncomeStatementRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingIncomeStatementRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingIncomeStatementResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingIncomeStatementResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingIncomestatementOutput: - components.UnifiedAccountingIncomestatementOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingIncomestatementOutput: "unifiedAccountingIncomestatementOutput", - }); +export const RetrieveAccountingIncomeStatementResponse$inboundSchema: z.ZodType< + RetrieveAccountingIncomeStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingIncomestatementOutput: + components.UnifiedAccountingIncomestatementOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingIncomestatementOutput: "unifiedAccountingIncomestatementOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingIncomestatementOutput?: - | components.UnifiedAccountingIncomestatementOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingIncomeStatementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingIncomestatementOutput?: + | components.UnifiedAccountingIncomestatementOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingIncomeStatementResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingIncomestatementOutput: - components.UnifiedAccountingIncomestatementOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingIncomestatementOutput: "UnifiedAccountingIncomestatementOutput", - }); +/** @internal */ +export const RetrieveAccountingIncomeStatementResponse$outboundSchema: z.ZodType< + RetrieveAccountingIncomeStatementResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingIncomeStatementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingIncomestatementOutput: + components.UnifiedAccountingIncomestatementOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingIncomestatementOutput: "UnifiedAccountingIncomestatementOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingIncomeStatementResponse$ { + /** @deprecated use `RetrieveAccountingIncomeStatementResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingIncomeStatementResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingIncomeStatementResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingIncomeStatementResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingIncomeStatementResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingIncomeStatementResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountinginvoice.ts b/src/models/operations/retrieveaccountinginvoice.ts index e095accc..8c14c45c 100644 --- a/src/models/operations/retrieveaccountinginvoice.ts +++ b/src/models/operations/retrieveaccountinginvoice.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingInvoiceResponse = { }; /** @internal */ -export namespace RetrieveAccountingInvoiceRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingInvoiceRequest$inboundSchema: z.ZodType< + RetrieveAccountingInvoiceRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingInvoiceRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingInvoiceRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingInvoiceRequest$outboundSchema: z.ZodType< + RetrieveAccountingInvoiceRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingInvoiceRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingInvoiceRequest$ { + /** @deprecated use `RetrieveAccountingInvoiceRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingInvoiceRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingInvoiceRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingInvoiceRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingInvoiceRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingInvoiceRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingInvoiceResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingInvoiceResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingInvoiceOutput: - components.UnifiedAccountingInvoiceOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingInvoiceOutput: "unifiedAccountingInvoiceOutput", - }); +export const RetrieveAccountingInvoiceResponse$inboundSchema: z.ZodType< + RetrieveAccountingInvoiceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingInvoiceOutput: + components.UnifiedAccountingInvoiceOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingInvoiceOutput: "unifiedAccountingInvoiceOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingInvoiceOutput?: - | components.UnifiedAccountingInvoiceOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingInvoiceResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingInvoiceOutput?: components.UnifiedAccountingInvoiceOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingInvoiceResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingInvoiceOutput: - components.UnifiedAccountingInvoiceOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingInvoiceOutput: "UnifiedAccountingInvoiceOutput", - }); +/** @internal */ +export const RetrieveAccountingInvoiceResponse$outboundSchema: z.ZodType< + RetrieveAccountingInvoiceResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingInvoiceResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingInvoiceOutput: + components.UnifiedAccountingInvoiceOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingInvoiceOutput: "UnifiedAccountingInvoiceOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingInvoiceResponse$ { + /** @deprecated use `RetrieveAccountingInvoiceResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingInvoiceResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingInvoiceResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingInvoiceResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingInvoiceResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingInvoiceResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingitem.ts b/src/models/operations/retrieveaccountingitem.ts index 5a156407..6879b198 100644 --- a/src/models/operations/retrieveaccountingitem.ts +++ b/src/models/operations/retrieveaccountingitem.ts @@ -27,72 +27,112 @@ export type RetrieveAccountingItemResponse = { }; /** @internal */ -export namespace RetrieveAccountingItemRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingItemRequest$inboundSchema: z.ZodType< + RetrieveAccountingItemRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingItemRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** @internal */ +export const RetrieveAccountingItemRequest$outboundSchema: z.ZodType< + RetrieveAccountingItemRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingItemRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingItemRequest$ { + /** @deprecated use `RetrieveAccountingItemRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingItemRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingItemRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingItemRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingItemRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingItemRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingItemResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingItemOutput: - components.UnifiedAccountingItemOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingItemOutput: "unifiedAccountingItemOutput", - }); +export const RetrieveAccountingItemResponse$inboundSchema: z.ZodType< + RetrieveAccountingItemResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingItemOutput: + components.UnifiedAccountingItemOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingItemOutput: "unifiedAccountingItemOutput", }); + }); + +/** @internal */ +export type RetrieveAccountingItemResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingItemOutput?: components.UnifiedAccountingItemOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingItemOutput?: components.UnifiedAccountingItemOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveAccountingItemResponse$outboundSchema: z.ZodType< + RetrieveAccountingItemResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingItemResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingItemOutput: + components.UnifiedAccountingItemOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingItemOutput: "UnifiedAccountingItemOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingItemOutput: - components.UnifiedAccountingItemOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingItemOutput: "UnifiedAccountingItemOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingItemResponse$ { + /** @deprecated use `RetrieveAccountingItemResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingItemResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingItemResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingItemResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingItemResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingItemResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingjournalentry.ts b/src/models/operations/retrieveaccountingjournalentry.ts index 846ee213..c2618bbc 100644 --- a/src/models/operations/retrieveaccountingjournalentry.ts +++ b/src/models/operations/retrieveaccountingjournalentry.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingJournalEntryResponse = { }; /** @internal */ -export namespace RetrieveAccountingJournalEntryRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingJournalEntryRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingJournalEntryRequest$inboundSchema: z.ZodType< + RetrieveAccountingJournalEntryRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingJournalEntryRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingJournalEntryRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingJournalEntryRequest$outboundSchema: z.ZodType< + RetrieveAccountingJournalEntryRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingJournalEntryRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingJournalEntryRequest$ { + /** @deprecated use `RetrieveAccountingJournalEntryRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingJournalEntryRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingJournalEntryRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingJournalEntryRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingJournalEntryRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingJournalEntryRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingJournalEntryResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingJournalEntryResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingJournalentryOutput: - components.UnifiedAccountingJournalentryOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingJournalentryOutput: "unifiedAccountingJournalentryOutput", - }); +export const RetrieveAccountingJournalEntryResponse$inboundSchema: z.ZodType< + RetrieveAccountingJournalEntryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingJournalentryOutput: + components.UnifiedAccountingJournalentryOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingJournalentryOutput: "unifiedAccountingJournalentryOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingJournalentryOutput?: - | components.UnifiedAccountingJournalentryOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingJournalEntryResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingJournalentryOutput?: + | components.UnifiedAccountingJournalentryOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingJournalEntryResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingJournalentryOutput: - components.UnifiedAccountingJournalentryOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingJournalentryOutput: "UnifiedAccountingJournalentryOutput", - }); +/** @internal */ +export const RetrieveAccountingJournalEntryResponse$outboundSchema: z.ZodType< + RetrieveAccountingJournalEntryResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingJournalEntryResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingJournalentryOutput: + components.UnifiedAccountingJournalentryOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingJournalentryOutput: "UnifiedAccountingJournalentryOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingJournalEntryResponse$ { + /** @deprecated use `RetrieveAccountingJournalEntryResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingJournalEntryResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingJournalEntryResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingJournalEntryResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingJournalEntryResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingJournalEntryResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingpayment.ts b/src/models/operations/retrieveaccountingpayment.ts index c965c52b..58fd86f2 100644 --- a/src/models/operations/retrieveaccountingpayment.ts +++ b/src/models/operations/retrieveaccountingpayment.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingPaymentResponse = { }; /** @internal */ -export namespace RetrieveAccountingPaymentRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingPaymentRequest$inboundSchema: z.ZodType< + RetrieveAccountingPaymentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingPaymentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPaymentRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingPaymentRequest$outboundSchema: z.ZodType< + RetrieveAccountingPaymentRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingPaymentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPaymentRequest$ { + /** @deprecated use `RetrieveAccountingPaymentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPaymentRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingPaymentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPaymentRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingPaymentRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingPaymentRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingPaymentResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingPaymentResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingPaymentOutput: - components.UnifiedAccountingPaymentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingPaymentOutput: "unifiedAccountingPaymentOutput", - }); +export const RetrieveAccountingPaymentResponse$inboundSchema: z.ZodType< + RetrieveAccountingPaymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingPaymentOutput: + components.UnifiedAccountingPaymentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingPaymentOutput: "unifiedAccountingPaymentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingPaymentOutput?: - | components.UnifiedAccountingPaymentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingPaymentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingPaymentOutput?: components.UnifiedAccountingPaymentOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPaymentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingPaymentOutput: - components.UnifiedAccountingPaymentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingPaymentOutput: "UnifiedAccountingPaymentOutput", - }); +/** @internal */ +export const RetrieveAccountingPaymentResponse$outboundSchema: z.ZodType< + RetrieveAccountingPaymentResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingPaymentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingPaymentOutput: + components.UnifiedAccountingPaymentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingPaymentOutput: "UnifiedAccountingPaymentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPaymentResponse$ { + /** @deprecated use `RetrieveAccountingPaymentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPaymentResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingPaymentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPaymentResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingPaymentResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingPaymentResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingphonenumber.ts b/src/models/operations/retrieveaccountingphonenumber.ts index 0d3046c3..2df07cba 100644 --- a/src/models/operations/retrieveaccountingphonenumber.ts +++ b/src/models/operations/retrieveaccountingphonenumber.ts @@ -27,88 +27,114 @@ export type RetrieveAccountingPhonenumberResponse = { }; /** @internal */ -export namespace RetrieveAccountingPhonenumberRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingPhonenumberRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingPhonenumberRequest$inboundSchema: z.ZodType< + RetrieveAccountingPhonenumberRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingPhonenumberRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPhonenumberRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingPhonenumberRequest$outboundSchema: z.ZodType< + RetrieveAccountingPhonenumberRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingPhonenumberRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPhonenumberRequest$ { + /** @deprecated use `RetrieveAccountingPhonenumberRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPhonenumberRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingPhonenumberRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPhonenumberRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingPhonenumberRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingPhonenumberRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingPhonenumberResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingPhonenumberResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingPhonenumberOutput: - components.UnifiedAccountingPhonenumberOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingPhonenumberOutput: "unifiedAccountingPhonenumberOutput", - }); +export const RetrieveAccountingPhonenumberResponse$inboundSchema: z.ZodType< + RetrieveAccountingPhonenumberResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingPhonenumberOutput: + components.UnifiedAccountingPhonenumberOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingPhonenumberOutput: "unifiedAccountingPhonenumberOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingPhonenumberOutput?: - | components.UnifiedAccountingPhonenumberOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingPhonenumberResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingPhonenumberOutput?: + | components.UnifiedAccountingPhonenumberOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPhonenumberResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingPhonenumberOutput: - components.UnifiedAccountingPhonenumberOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingPhonenumberOutput: "UnifiedAccountingPhonenumberOutput", - }); +/** @internal */ +export const RetrieveAccountingPhonenumberResponse$outboundSchema: z.ZodType< + RetrieveAccountingPhonenumberResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingPhonenumberResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingPhonenumberOutput: + components.UnifiedAccountingPhonenumberOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingPhonenumberOutput: "UnifiedAccountingPhonenumberOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPhonenumberResponse$ { + /** @deprecated use `RetrieveAccountingPhonenumberResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPhonenumberResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingPhonenumberResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPhonenumberResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingPhonenumberResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingPhonenumberResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingpurchaseorder.ts b/src/models/operations/retrieveaccountingpurchaseorder.ts index 3c663790..83f90dec 100644 --- a/src/models/operations/retrieveaccountingpurchaseorder.ts +++ b/src/models/operations/retrieveaccountingpurchaseorder.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingPurchaseOrderResponse = { }; /** @internal */ -export namespace RetrieveAccountingPurchaseOrderRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingPurchaseOrderRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< + RetrieveAccountingPurchaseOrderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingPurchaseOrderRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPurchaseOrderRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingPurchaseOrderRequest$outboundSchema: z.ZodType< + RetrieveAccountingPurchaseOrderRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingPurchaseOrderRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPurchaseOrderRequest$ { + /** @deprecated use `RetrieveAccountingPurchaseOrderRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPurchaseOrderRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingPurchaseOrderRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPurchaseOrderRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingPurchaseOrderRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingPurchaseOrderRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingPurchaseOrderResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingPurchaseOrderResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingPurchaseorderOutput: - components.UnifiedAccountingPurchaseorderOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingPurchaseorderOutput: "unifiedAccountingPurchaseorderOutput", - }); +export const RetrieveAccountingPurchaseOrderResponse$inboundSchema: z.ZodType< + RetrieveAccountingPurchaseOrderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingPurchaseorderOutput: + components.UnifiedAccountingPurchaseorderOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingPurchaseorderOutput: "unifiedAccountingPurchaseorderOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingPurchaseorderOutput?: - | components.UnifiedAccountingPurchaseorderOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingPurchaseOrderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingPurchaseorderOutput?: + | components.UnifiedAccountingPurchaseorderOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingPurchaseOrderResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingPurchaseorderOutput: - components.UnifiedAccountingPurchaseorderOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingPurchaseorderOutput: "UnifiedAccountingPurchaseorderOutput", - }); +/** @internal */ +export const RetrieveAccountingPurchaseOrderResponse$outboundSchema: z.ZodType< + RetrieveAccountingPurchaseOrderResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingPurchaseOrderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingPurchaseorderOutput: + components.UnifiedAccountingPurchaseorderOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingPurchaseorderOutput: "UnifiedAccountingPurchaseorderOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingPurchaseOrderResponse$ { + /** @deprecated use `RetrieveAccountingPurchaseOrderResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingPurchaseOrderResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingPurchaseOrderResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingPurchaseOrderResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingPurchaseOrderResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingPurchaseOrderResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingtaxrate.ts b/src/models/operations/retrieveaccountingtaxrate.ts index fb5683e0..26be2aa7 100644 --- a/src/models/operations/retrieveaccountingtaxrate.ts +++ b/src/models/operations/retrieveaccountingtaxrate.ts @@ -27,85 +27,112 @@ export type RetrieveAccountingTaxRateResponse = { }; /** @internal */ -export namespace RetrieveAccountingTaxRateRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveAccountingTaxRateRequest$inboundSchema: z.ZodType< + RetrieveAccountingTaxRateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingTaxRateRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTaxRateRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingTaxRateRequest$outboundSchema: z.ZodType< + RetrieveAccountingTaxRateRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingTaxRateRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTaxRateRequest$ { + /** @deprecated use `RetrieveAccountingTaxRateRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTaxRateRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingTaxRateRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTaxRateRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingTaxRateRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingTaxRateRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingTaxRateResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingTaxRateResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingTaxrateOutput: - components.UnifiedAccountingTaxrateOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingTaxrateOutput: "unifiedAccountingTaxrateOutput", - }); +export const RetrieveAccountingTaxRateResponse$inboundSchema: z.ZodType< + RetrieveAccountingTaxRateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingTaxrateOutput: + components.UnifiedAccountingTaxrateOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingTaxrateOutput: "unifiedAccountingTaxrateOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingTaxrateOutput?: - | components.UnifiedAccountingTaxrateOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingTaxRateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingTaxrateOutput?: components.UnifiedAccountingTaxrateOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTaxRateResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingTaxrateOutput: - components.UnifiedAccountingTaxrateOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingTaxrateOutput: "UnifiedAccountingTaxrateOutput", - }); +/** @internal */ +export const RetrieveAccountingTaxRateResponse$outboundSchema: z.ZodType< + RetrieveAccountingTaxRateResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingTaxRateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingTaxrateOutput: + components.UnifiedAccountingTaxrateOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingTaxrateOutput: "UnifiedAccountingTaxrateOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTaxRateResponse$ { + /** @deprecated use `RetrieveAccountingTaxRateResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTaxRateResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingTaxRateResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTaxRateResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingTaxRateResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingTaxRateResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingtrackingcategory.ts b/src/models/operations/retrieveaccountingtrackingcategory.ts index b3659db9..bb44ab00 100644 --- a/src/models/operations/retrieveaccountingtrackingcategory.ts +++ b/src/models/operations/retrieveaccountingtrackingcategory.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingTrackingCategoryResponse = { }; /** @internal */ -export namespace RetrieveAccountingTrackingCategoryRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingTrackingCategoryRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingTrackingCategoryRequest$inboundSchema: z.ZodType< + RetrieveAccountingTrackingCategoryRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingTrackingCategoryRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTrackingCategoryRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingTrackingCategoryRequest$outboundSchema: z.ZodType< + RetrieveAccountingTrackingCategoryRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingTrackingCategoryRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTrackingCategoryRequest$ { + /** @deprecated use `RetrieveAccountingTrackingCategoryRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTrackingCategoryRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingTrackingCategoryRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTrackingCategoryRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingTrackingCategoryRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingTrackingCategoryRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingTrackingCategoryResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingTrackingCategoryResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingTrackingcategoryOutput: - components.UnifiedAccountingTrackingcategoryOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingTrackingcategoryOutput: "unifiedAccountingTrackingcategoryOutput", - }); +export const RetrieveAccountingTrackingCategoryResponse$inboundSchema: z.ZodType< + RetrieveAccountingTrackingCategoryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingTrackingcategoryOutput: + components.UnifiedAccountingTrackingcategoryOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingTrackingcategoryOutput: "unifiedAccountingTrackingcategoryOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingTrackingcategoryOutput?: - | components.UnifiedAccountingTrackingcategoryOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingTrackingCategoryResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingTrackingcategoryOutput?: + | components.UnifiedAccountingTrackingcategoryOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTrackingCategoryResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingTrackingcategoryOutput: - components.UnifiedAccountingTrackingcategoryOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingTrackingcategoryOutput: "UnifiedAccountingTrackingcategoryOutput", - }); +/** @internal */ +export const RetrieveAccountingTrackingCategoryResponse$outboundSchema: z.ZodType< + RetrieveAccountingTrackingCategoryResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingTrackingCategoryResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingTrackingcategoryOutput: + components.UnifiedAccountingTrackingcategoryOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingTrackingcategoryOutput: "UnifiedAccountingTrackingcategoryOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTrackingCategoryResponse$ { + /** @deprecated use `RetrieveAccountingTrackingCategoryResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTrackingCategoryResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingTrackingCategoryResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTrackingCategoryResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingTrackingCategoryResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingTrackingCategoryResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingtransaction.ts b/src/models/operations/retrieveaccountingtransaction.ts index 046e2766..3fada276 100644 --- a/src/models/operations/retrieveaccountingtransaction.ts +++ b/src/models/operations/retrieveaccountingtransaction.ts @@ -27,88 +27,114 @@ export type RetrieveAccountingTransactionResponse = { }; /** @internal */ -export namespace RetrieveAccountingTransactionRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingTransactionRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingTransactionRequest$inboundSchema: z.ZodType< + RetrieveAccountingTransactionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingTransactionRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTransactionRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingTransactionRequest$outboundSchema: z.ZodType< + RetrieveAccountingTransactionRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingTransactionRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTransactionRequest$ { + /** @deprecated use `RetrieveAccountingTransactionRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTransactionRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingTransactionRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTransactionRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingTransactionRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingTransactionRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingTransactionResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingTransactionResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingTransactionOutput: - components.UnifiedAccountingTransactionOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingTransactionOutput: "unifiedAccountingTransactionOutput", - }); +export const RetrieveAccountingTransactionResponse$inboundSchema: z.ZodType< + RetrieveAccountingTransactionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingTransactionOutput: + components.UnifiedAccountingTransactionOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingTransactionOutput: "unifiedAccountingTransactionOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingTransactionOutput?: - | components.UnifiedAccountingTransactionOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingTransactionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingTransactionOutput?: + | components.UnifiedAccountingTransactionOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingTransactionResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingTransactionOutput: - components.UnifiedAccountingTransactionOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingTransactionOutput: "UnifiedAccountingTransactionOutput", - }); +/** @internal */ +export const RetrieveAccountingTransactionResponse$outboundSchema: z.ZodType< + RetrieveAccountingTransactionResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingTransactionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingTransactionOutput: + components.UnifiedAccountingTransactionOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingTransactionOutput: "UnifiedAccountingTransactionOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingTransactionResponse$ { + /** @deprecated use `RetrieveAccountingTransactionResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingTransactionResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingTransactionResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingTransactionResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingTransactionResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingTransactionResponse$Outbound; } diff --git a/src/models/operations/retrieveaccountingvendorcredit.ts b/src/models/operations/retrieveaccountingvendorcredit.ts index ba1ab486..af3fefe4 100644 --- a/src/models/operations/retrieveaccountingvendorcredit.ts +++ b/src/models/operations/retrieveaccountingvendorcredit.ts @@ -29,88 +29,114 @@ export type RetrieveAccountingVendorCreditResponse = { }; /** @internal */ -export namespace RetrieveAccountingVendorCreditRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingVendorCreditRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAccountingVendorCreditRequest$inboundSchema: z.ZodType< + RetrieveAccountingVendorCreditRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAccountingVendorCreditRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingVendorCreditRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAccountingVendorCreditRequest$outboundSchema: z.ZodType< + RetrieveAccountingVendorCreditRequest$Outbound, + z.ZodTypeDef, + RetrieveAccountingVendorCreditRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingVendorCreditRequest$ { + /** @deprecated use `RetrieveAccountingVendorCreditRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingVendorCreditRequest$inboundSchema; + /** @deprecated use `RetrieveAccountingVendorCreditRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingVendorCreditRequest$outboundSchema; + /** @deprecated use `RetrieveAccountingVendorCreditRequest$Outbound` instead. */ + export type Outbound = RetrieveAccountingVendorCreditRequest$Outbound; } /** @internal */ -export namespace RetrieveAccountingVendorCreditResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAccountingVendorCreditResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAccountingVendorcreditOutput: - components.UnifiedAccountingVendorcreditOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAccountingVendorcreditOutput: "unifiedAccountingVendorcreditOutput", - }); +export const RetrieveAccountingVendorCreditResponse$inboundSchema: z.ZodType< + RetrieveAccountingVendorCreditResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAccountingVendorcreditOutput: + components.UnifiedAccountingVendorcreditOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAccountingVendorcreditOutput: "unifiedAccountingVendorcreditOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAccountingVendorcreditOutput?: - | components.UnifiedAccountingVendorcreditOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAccountingVendorCreditResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAccountingVendorcreditOutput?: + | components.UnifiedAccountingVendorcreditOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAccountingVendorCreditResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAccountingVendorcreditOutput: - components.UnifiedAccountingVendorcreditOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAccountingVendorcreditOutput: "UnifiedAccountingVendorcreditOutput", - }); +/** @internal */ +export const RetrieveAccountingVendorCreditResponse$outboundSchema: z.ZodType< + RetrieveAccountingVendorCreditResponse$Outbound, + z.ZodTypeDef, + RetrieveAccountingVendorCreditResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAccountingVendorcreditOutput: + components.UnifiedAccountingVendorcreditOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAccountingVendorcreditOutput: "UnifiedAccountingVendorcreditOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAccountingVendorCreditResponse$ { + /** @deprecated use `RetrieveAccountingVendorCreditResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAccountingVendorCreditResponse$inboundSchema; + /** @deprecated use `RetrieveAccountingVendorCreditResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAccountingVendorCreditResponse$outboundSchema; + /** @deprecated use `RetrieveAccountingVendorCreditResponse$Outbound` instead. */ + export type Outbound = RetrieveAccountingVendorCreditResponse$Outbound; } diff --git a/src/models/operations/retrieveatsactivity.ts b/src/models/operations/retrieveatsactivity.ts index 6a365c66..370dcc1b 100644 --- a/src/models/operations/retrieveatsactivity.ts +++ b/src/models/operations/retrieveatsactivity.ts @@ -27,69 +27,110 @@ export type RetrieveAtsActivityResponse = { }; /** @internal */ -export namespace RetrieveAtsActivityRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsActivityRequest$inboundSchema: z.ZodType< + RetrieveAtsActivityRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsActivityRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsActivityRequest$outboundSchema: z.ZodType< + RetrieveAtsActivityRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsActivityRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsActivityRequest$ { + /** @deprecated use `RetrieveAtsActivityRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsActivityRequest$inboundSchema; + /** @deprecated use `RetrieveAtsActivityRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsActivityRequest$outboundSchema; + /** @deprecated use `RetrieveAtsActivityRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsActivityRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsActivityResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsActivityOutput: "unifiedAtsActivityOutput", - }); +export const RetrieveAtsActivityResponse$inboundSchema: z.ZodType< + RetrieveAtsActivityResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsActivityOutput: "unifiedAtsActivityOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsActivityOutput?: components.UnifiedAtsActivityOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsActivityResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsActivityOutput?: components.UnifiedAtsActivityOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsActivityOutput: - components.UnifiedAtsActivityOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsActivityOutput: "UnifiedAtsActivityOutput", - }); +/** @internal */ +export const RetrieveAtsActivityResponse$outboundSchema: z.ZodType< + RetrieveAtsActivityResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsActivityResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsActivityOutput: components.UnifiedAtsActivityOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsActivityOutput: "UnifiedAtsActivityOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsActivityResponse$ { + /** @deprecated use `RetrieveAtsActivityResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsActivityResponse$inboundSchema; + /** @deprecated use `RetrieveAtsActivityResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsActivityResponse$outboundSchema; + /** @deprecated use `RetrieveAtsActivityResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsActivityResponse$Outbound; } diff --git a/src/models/operations/retrieveatsapplication.ts b/src/models/operations/retrieveatsapplication.ts index 3794f128..958f9986 100644 --- a/src/models/operations/retrieveatsapplication.ts +++ b/src/models/operations/retrieveatsapplication.ts @@ -27,72 +27,112 @@ export type RetrieveAtsApplicationResponse = { }; /** @internal */ -export namespace RetrieveAtsApplicationRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsApplicationRequest$inboundSchema: z.ZodType< + RetrieveAtsApplicationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsApplicationRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** @internal */ +export const RetrieveAtsApplicationRequest$outboundSchema: z.ZodType< + RetrieveAtsApplicationRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsApplicationRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsApplicationRequest$ { + /** @deprecated use `RetrieveAtsApplicationRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsApplicationRequest$inboundSchema; + /** @deprecated use `RetrieveAtsApplicationRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsApplicationRequest$outboundSchema; + /** @deprecated use `RetrieveAtsApplicationRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsApplicationRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsApplicationResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsApplicationOutput: - components.UnifiedAtsApplicationOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsApplicationOutput: "unifiedAtsApplicationOutput", - }); +export const RetrieveAtsApplicationResponse$inboundSchema: z.ZodType< + RetrieveAtsApplicationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsApplicationOutput: + components.UnifiedAtsApplicationOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsApplicationOutput: "unifiedAtsApplicationOutput", }); + }); + +/** @internal */ +export type RetrieveAtsApplicationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsApplicationOutput?: components.UnifiedAtsApplicationOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsApplicationOutput?: components.UnifiedAtsApplicationOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveAtsApplicationResponse$outboundSchema: z.ZodType< + RetrieveAtsApplicationResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsApplicationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsApplicationOutput: + components.UnifiedAtsApplicationOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsApplicationOutput: "UnifiedAtsApplicationOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsApplicationOutput: - components.UnifiedAtsApplicationOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsApplicationOutput: "UnifiedAtsApplicationOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsApplicationResponse$ { + /** @deprecated use `RetrieveAtsApplicationResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsApplicationResponse$inboundSchema; + /** @deprecated use `RetrieveAtsApplicationResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsApplicationResponse$outboundSchema; + /** @deprecated use `RetrieveAtsApplicationResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsApplicationResponse$Outbound; } diff --git a/src/models/operations/retrieveatsattachment.ts b/src/models/operations/retrieveatsattachment.ts index cc88f7fe..cf22cca5 100644 --- a/src/models/operations/retrieveatsattachment.ts +++ b/src/models/operations/retrieveatsattachment.ts @@ -27,71 +27,110 @@ export type RetrieveAtsAttachmentResponse = { }; /** @internal */ -export namespace RetrieveAtsAttachmentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsAttachmentRequest$inboundSchema: z.ZodType< + RetrieveAtsAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsAttachmentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsAttachmentRequest$outboundSchema: z.ZodType< + RetrieveAtsAttachmentRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsAttachmentRequest$ { + /** @deprecated use `RetrieveAtsAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsAttachmentRequest$inboundSchema; + /** @deprecated use `RetrieveAtsAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsAttachmentRequest$outboundSchema; + /** @deprecated use `RetrieveAtsAttachmentRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsAttachmentRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsAttachmentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsAttachmentOutput: - components.UnifiedAtsAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsAttachmentOutput: "unifiedAtsAttachmentOutput", - }); +export const RetrieveAtsAttachmentResponse$inboundSchema: z.ZodType< + RetrieveAtsAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsAttachmentOutput: components.UnifiedAtsAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsAttachmentOutput: "unifiedAtsAttachmentOutput", }); + }); + +/** @internal */ +export type RetrieveAtsAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsAttachmentOutput?: components.UnifiedAtsAttachmentOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsAttachmentOutput?: components.UnifiedAtsAttachmentOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveAtsAttachmentResponse$outboundSchema: z.ZodType< + RetrieveAtsAttachmentResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsAttachmentOutput: components.UnifiedAtsAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsAttachmentOutput: "UnifiedAtsAttachmentOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsAttachmentOutput: - components.UnifiedAtsAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsAttachmentOutput: "UnifiedAtsAttachmentOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsAttachmentResponse$ { + /** @deprecated use `RetrieveAtsAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsAttachmentResponse$inboundSchema; + /** @deprecated use `RetrieveAtsAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsAttachmentResponse$outboundSchema; + /** @deprecated use `RetrieveAtsAttachmentResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsAttachmentResponse$Outbound; } diff --git a/src/models/operations/retrieveatscandidate.ts b/src/models/operations/retrieveatscandidate.ts index 6938a7e6..13aac835 100644 --- a/src/models/operations/retrieveatscandidate.ts +++ b/src/models/operations/retrieveatscandidate.ts @@ -27,70 +27,110 @@ export type RetrieveAtsCandidateResponse = { }; /** @internal */ -export namespace RetrieveAtsCandidateRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsCandidateRequest$inboundSchema: z.ZodType< + RetrieveAtsCandidateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsCandidateRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsCandidateRequest$outboundSchema: z.ZodType< + RetrieveAtsCandidateRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsCandidateRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsCandidateRequest$ { + /** @deprecated use `RetrieveAtsCandidateRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsCandidateRequest$inboundSchema; + /** @deprecated use `RetrieveAtsCandidateRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsCandidateRequest$outboundSchema; + /** @deprecated use `RetrieveAtsCandidateRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsCandidateRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsCandidateResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsCandidateOutput: - components.UnifiedAtsCandidateOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsCandidateOutput: "unifiedAtsCandidateOutput", - }); +export const RetrieveAtsCandidateResponse$inboundSchema: z.ZodType< + RetrieveAtsCandidateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsCandidateOutput: components.UnifiedAtsCandidateOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsCandidateOutput: "unifiedAtsCandidateOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsCandidateOutput?: components.UnifiedAtsCandidateOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsCandidateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsCandidateOutput?: components.UnifiedAtsCandidateOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsCandidateOutput: - components.UnifiedAtsCandidateOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsCandidateOutput: "UnifiedAtsCandidateOutput", - }); +/** @internal */ +export const RetrieveAtsCandidateResponse$outboundSchema: z.ZodType< + RetrieveAtsCandidateResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsCandidateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsCandidateOutput: components.UnifiedAtsCandidateOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsCandidateOutput: "UnifiedAtsCandidateOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsCandidateResponse$ { + /** @deprecated use `RetrieveAtsCandidateResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsCandidateResponse$inboundSchema; + /** @deprecated use `RetrieveAtsCandidateResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsCandidateResponse$outboundSchema; + /** @deprecated use `RetrieveAtsCandidateResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsCandidateResponse$Outbound; } diff --git a/src/models/operations/retrieveatsdepartment.ts b/src/models/operations/retrieveatsdepartment.ts new file mode 100644 index 00000000..f9f2b992 --- /dev/null +++ b/src/models/operations/retrieveatsdepartment.ts @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveAtsDepartmentRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the department you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Ats software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveAtsDepartmentResponse = { + httpMeta: components.HTTPMetadata; + unifiedAtsDepartmentOutput?: components.UnifiedAtsDepartmentOutput | undefined; +}; + +/** @internal */ +export const RetrieveAtsDepartmentRequest$inboundSchema: z.ZodType< + RetrieveAtsDepartmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveAtsDepartmentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveAtsDepartmentRequest$outboundSchema: z.ZodType< + RetrieveAtsDepartmentRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsDepartmentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsDepartmentRequest$ { + /** @deprecated use `RetrieveAtsDepartmentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsDepartmentRequest$inboundSchema; + /** @deprecated use `RetrieveAtsDepartmentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsDepartmentRequest$outboundSchema; + /** @deprecated use `RetrieveAtsDepartmentRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsDepartmentRequest$Outbound; +} + +/** @internal */ +export const RetrieveAtsDepartmentResponse$inboundSchema: z.ZodType< + RetrieveAtsDepartmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsDepartmentOutput: components.UnifiedAtsDepartmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsDepartmentOutput: "unifiedAtsDepartmentOutput", + }); + }); + +/** @internal */ +export type RetrieveAtsDepartmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsDepartmentOutput?: components.UnifiedAtsDepartmentOutput$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveAtsDepartmentResponse$outboundSchema: z.ZodType< + RetrieveAtsDepartmentResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsDepartmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsDepartmentOutput: components.UnifiedAtsDepartmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsDepartmentOutput: "UnifiedAtsDepartmentOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsDepartmentResponse$ { + /** @deprecated use `RetrieveAtsDepartmentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsDepartmentResponse$inboundSchema; + /** @deprecated use `RetrieveAtsDepartmentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsDepartmentResponse$outboundSchema; + /** @deprecated use `RetrieveAtsDepartmentResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsDepartmentResponse$Outbound; +} diff --git a/src/models/operations/retrieveatseeocs.ts b/src/models/operations/retrieveatseeocs.ts index f8fd08a9..2656fff6 100644 --- a/src/models/operations/retrieveatseeocs.ts +++ b/src/models/operations/retrieveatseeocs.ts @@ -27,68 +27,110 @@ export type RetrieveAtsEeocsResponse = { }; /** @internal */ -export namespace RetrieveAtsEeocsRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsEeocsRequest$inboundSchema: z.ZodType< + RetrieveAtsEeocsRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsEeocsRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsEeocsRequest$outboundSchema: z.ZodType< + RetrieveAtsEeocsRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsEeocsRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsEeocsRequest$ { + /** @deprecated use `RetrieveAtsEeocsRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsEeocsRequest$inboundSchema; + /** @deprecated use `RetrieveAtsEeocsRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsEeocsRequest$outboundSchema; + /** @deprecated use `RetrieveAtsEeocsRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsEeocsRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsEeocsResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsEeocsOutput: components.UnifiedAtsEeocsOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsEeocsOutput: "unifiedAtsEeocsOutput", - }); +export const RetrieveAtsEeocsResponse$inboundSchema: z.ZodType< + RetrieveAtsEeocsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsEeocsOutput: components.UnifiedAtsEeocsOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsEeocsOutput: "unifiedAtsEeocsOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsEeocsOutput?: components.UnifiedAtsEeocsOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsEeocsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsEeocsOutput?: components.UnifiedAtsEeocsOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsEeocsOutput: components.UnifiedAtsEeocsOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsEeocsOutput: "UnifiedAtsEeocsOutput", - }); +/** @internal */ +export const RetrieveAtsEeocsResponse$outboundSchema: z.ZodType< + RetrieveAtsEeocsResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsEeocsResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsEeocsOutput: components.UnifiedAtsEeocsOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsEeocsOutput: "UnifiedAtsEeocsOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsEeocsResponse$ { + /** @deprecated use `RetrieveAtsEeocsResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsEeocsResponse$inboundSchema; + /** @deprecated use `RetrieveAtsEeocsResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsEeocsResponse$outboundSchema; + /** @deprecated use `RetrieveAtsEeocsResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsEeocsResponse$Outbound; } diff --git a/src/models/operations/retrieveatsinterview.ts b/src/models/operations/retrieveatsinterview.ts index 94a59cac..865b70e2 100644 --- a/src/models/operations/retrieveatsinterview.ts +++ b/src/models/operations/retrieveatsinterview.ts @@ -27,70 +27,110 @@ export type RetrieveAtsInterviewResponse = { }; /** @internal */ -export namespace RetrieveAtsInterviewRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsInterviewRequest$inboundSchema: z.ZodType< + RetrieveAtsInterviewRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsInterviewRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsInterviewRequest$outboundSchema: z.ZodType< + RetrieveAtsInterviewRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsInterviewRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsInterviewRequest$ { + /** @deprecated use `RetrieveAtsInterviewRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsInterviewRequest$inboundSchema; + /** @deprecated use `RetrieveAtsInterviewRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsInterviewRequest$outboundSchema; + /** @deprecated use `RetrieveAtsInterviewRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsInterviewRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsInterviewResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsInterviewOutput: - components.UnifiedAtsInterviewOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsInterviewOutput: "unifiedAtsInterviewOutput", - }); +export const RetrieveAtsInterviewResponse$inboundSchema: z.ZodType< + RetrieveAtsInterviewResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsInterviewOutput: components.UnifiedAtsInterviewOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsInterviewOutput: "unifiedAtsInterviewOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsInterviewOutput?: components.UnifiedAtsInterviewOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsInterviewResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsInterviewOutput?: components.UnifiedAtsInterviewOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsInterviewOutput: - components.UnifiedAtsInterviewOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsInterviewOutput: "UnifiedAtsInterviewOutput", - }); +/** @internal */ +export const RetrieveAtsInterviewResponse$outboundSchema: z.ZodType< + RetrieveAtsInterviewResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsInterviewResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsInterviewOutput: components.UnifiedAtsInterviewOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsInterviewOutput: "UnifiedAtsInterviewOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsInterviewResponse$ { + /** @deprecated use `RetrieveAtsInterviewResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsInterviewResponse$inboundSchema; + /** @deprecated use `RetrieveAtsInterviewResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsInterviewResponse$outboundSchema; + /** @deprecated use `RetrieveAtsInterviewResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsInterviewResponse$Outbound; } diff --git a/src/models/operations/retrieveatsjob.ts b/src/models/operations/retrieveatsjob.ts index fa2131f5..bb7cadd0 100644 --- a/src/models/operations/retrieveatsjob.ts +++ b/src/models/operations/retrieveatsjob.ts @@ -27,68 +27,110 @@ export type RetrieveAtsJobResponse = { }; /** @internal */ -export namespace RetrieveAtsJobRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsJobRequest$inboundSchema: z.ZodType< + RetrieveAtsJobRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsJobRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsJobRequest$outboundSchema: z.ZodType< + RetrieveAtsJobRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsJobRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsJobRequest$ { + /** @deprecated use `RetrieveAtsJobRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsJobRequest$inboundSchema; + /** @deprecated use `RetrieveAtsJobRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsJobRequest$outboundSchema; + /** @deprecated use `RetrieveAtsJobRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsJobRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsJobResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsJobOutput: components.UnifiedAtsJobOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsJobOutput: "unifiedAtsJobOutput", - }); +export const RetrieveAtsJobResponse$inboundSchema: z.ZodType< + RetrieveAtsJobResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsJobOutput: components.UnifiedAtsJobOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsJobOutput: "unifiedAtsJobOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsJobOutput?: components.UnifiedAtsJobOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsJobResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsJobOutput?: components.UnifiedAtsJobOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsJobOutput: components.UnifiedAtsJobOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsJobOutput: "UnifiedAtsJobOutput", - }); +/** @internal */ +export const RetrieveAtsJobResponse$outboundSchema: z.ZodType< + RetrieveAtsJobResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsJobResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsJobOutput: components.UnifiedAtsJobOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsJobOutput: "UnifiedAtsJobOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsJobResponse$ { + /** @deprecated use `RetrieveAtsJobResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsJobResponse$inboundSchema; + /** @deprecated use `RetrieveAtsJobResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsJobResponse$outboundSchema; + /** @deprecated use `RetrieveAtsJobResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsJobResponse$Outbound; } diff --git a/src/models/operations/retrieveatsjobinterviewstage.ts b/src/models/operations/retrieveatsjobinterviewstage.ts index e0493aeb..031941a5 100644 --- a/src/models/operations/retrieveatsjobinterviewstage.ts +++ b/src/models/operations/retrieveatsjobinterviewstage.ts @@ -27,88 +27,114 @@ export type RetrieveAtsJobInterviewStageResponse = { }; /** @internal */ -export namespace RetrieveAtsJobInterviewStageRequest$ { - export const inboundSchema: z.ZodType< - RetrieveAtsJobInterviewStageRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsJobInterviewStageRequest$inboundSchema: z.ZodType< + RetrieveAtsJobInterviewStageRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsJobInterviewStageRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAtsJobInterviewStageRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsJobInterviewStageRequest$outboundSchema: z.ZodType< + RetrieveAtsJobInterviewStageRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsJobInterviewStageRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsJobInterviewStageRequest$ { + /** @deprecated use `RetrieveAtsJobInterviewStageRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsJobInterviewStageRequest$inboundSchema; + /** @deprecated use `RetrieveAtsJobInterviewStageRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsJobInterviewStageRequest$outboundSchema; + /** @deprecated use `RetrieveAtsJobInterviewStageRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsJobInterviewStageRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsJobInterviewStageResponse$ { - export const inboundSchema: z.ZodType< - RetrieveAtsJobInterviewStageResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsJobinterviewstageOutput: - components.UnifiedAtsJobinterviewstageOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsJobinterviewstageOutput: "unifiedAtsJobinterviewstageOutput", - }); +export const RetrieveAtsJobInterviewStageResponse$inboundSchema: z.ZodType< + RetrieveAtsJobInterviewStageResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsJobinterviewstageOutput: + components.UnifiedAtsJobinterviewstageOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsJobinterviewstageOutput: "unifiedAtsJobinterviewstageOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsJobinterviewstageOutput?: - | components.UnifiedAtsJobinterviewstageOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveAtsJobInterviewStageResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsJobinterviewstageOutput?: + | components.UnifiedAtsJobinterviewstageOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveAtsJobInterviewStageResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsJobinterviewstageOutput: - components.UnifiedAtsJobinterviewstageOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsJobinterviewstageOutput: "UnifiedAtsJobinterviewstageOutput", - }); +/** @internal */ +export const RetrieveAtsJobInterviewStageResponse$outboundSchema: z.ZodType< + RetrieveAtsJobInterviewStageResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsJobInterviewStageResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsJobinterviewstageOutput: + components.UnifiedAtsJobinterviewstageOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsJobinterviewstageOutput: "UnifiedAtsJobinterviewstageOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsJobInterviewStageResponse$ { + /** @deprecated use `RetrieveAtsJobInterviewStageResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsJobInterviewStageResponse$inboundSchema; + /** @deprecated use `RetrieveAtsJobInterviewStageResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsJobInterviewStageResponse$outboundSchema; + /** @deprecated use `RetrieveAtsJobInterviewStageResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsJobInterviewStageResponse$Outbound; } diff --git a/src/models/operations/retrieveatsoffer.ts b/src/models/operations/retrieveatsoffer.ts index 85b67831..5b86352d 100644 --- a/src/models/operations/retrieveatsoffer.ts +++ b/src/models/operations/retrieveatsoffer.ts @@ -27,68 +27,110 @@ export type RetrieveAtsOfferResponse = { }; /** @internal */ -export namespace RetrieveAtsOfferRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsOfferRequest$inboundSchema: z.ZodType< + RetrieveAtsOfferRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsOfferRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsOfferRequest$outboundSchema: z.ZodType< + RetrieveAtsOfferRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsOfferRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsOfferRequest$ { + /** @deprecated use `RetrieveAtsOfferRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsOfferRequest$inboundSchema; + /** @deprecated use `RetrieveAtsOfferRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsOfferRequest$outboundSchema; + /** @deprecated use `RetrieveAtsOfferRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsOfferRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsOfferResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsOfferOutput: components.UnifiedAtsOfferOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsOfferOutput: "unifiedAtsOfferOutput", - }); +export const RetrieveAtsOfferResponse$inboundSchema: z.ZodType< + RetrieveAtsOfferResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsOfferOutput: components.UnifiedAtsOfferOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsOfferOutput: "unifiedAtsOfferOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsOfferOutput?: components.UnifiedAtsOfferOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsOfferResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsOfferOutput?: components.UnifiedAtsOfferOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsOfferOutput: components.UnifiedAtsOfferOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsOfferOutput: "UnifiedAtsOfferOutput", - }); +/** @internal */ +export const RetrieveAtsOfferResponse$outboundSchema: z.ZodType< + RetrieveAtsOfferResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsOfferResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsOfferOutput: components.UnifiedAtsOfferOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsOfferOutput: "UnifiedAtsOfferOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsOfferResponse$ { + /** @deprecated use `RetrieveAtsOfferResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsOfferResponse$inboundSchema; + /** @deprecated use `RetrieveAtsOfferResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsOfferResponse$outboundSchema; + /** @deprecated use `RetrieveAtsOfferResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsOfferResponse$Outbound; } diff --git a/src/models/operations/retrieveatsoffice.ts b/src/models/operations/retrieveatsoffice.ts index eb74c354..fdbd8adf 100644 --- a/src/models/operations/retrieveatsoffice.ts +++ b/src/models/operations/retrieveatsoffice.ts @@ -27,68 +27,110 @@ export type RetrieveAtsOfficeResponse = { }; /** @internal */ -export namespace RetrieveAtsOfficeRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsOfficeRequest$inboundSchema: z.ZodType< + RetrieveAtsOfficeRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsOfficeRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsOfficeRequest$outboundSchema: z.ZodType< + RetrieveAtsOfficeRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsOfficeRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsOfficeRequest$ { + /** @deprecated use `RetrieveAtsOfficeRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsOfficeRequest$inboundSchema; + /** @deprecated use `RetrieveAtsOfficeRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsOfficeRequest$outboundSchema; + /** @deprecated use `RetrieveAtsOfficeRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsOfficeRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsOfficeResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsOfficeOutput: components.UnifiedAtsOfficeOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsOfficeOutput: "unifiedAtsOfficeOutput", - }); +export const RetrieveAtsOfficeResponse$inboundSchema: z.ZodType< + RetrieveAtsOfficeResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsOfficeOutput: components.UnifiedAtsOfficeOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsOfficeOutput: "unifiedAtsOfficeOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsOfficeOutput?: components.UnifiedAtsOfficeOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsOfficeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsOfficeOutput?: components.UnifiedAtsOfficeOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsOfficeOutput: components.UnifiedAtsOfficeOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsOfficeOutput: "UnifiedAtsOfficeOutput", - }); +/** @internal */ +export const RetrieveAtsOfficeResponse$outboundSchema: z.ZodType< + RetrieveAtsOfficeResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsOfficeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsOfficeOutput: components.UnifiedAtsOfficeOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsOfficeOutput: "UnifiedAtsOfficeOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsOfficeResponse$ { + /** @deprecated use `RetrieveAtsOfficeResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsOfficeResponse$inboundSchema; + /** @deprecated use `RetrieveAtsOfficeResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsOfficeResponse$outboundSchema; + /** @deprecated use `RetrieveAtsOfficeResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsOfficeResponse$Outbound; } diff --git a/src/models/operations/retrieveatsrejectreason.ts b/src/models/operations/retrieveatsrejectreason.ts new file mode 100644 index 00000000..790a38c6 --- /dev/null +++ b/src/models/operations/retrieveatsrejectreason.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveAtsRejectReasonRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the rejectreason you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Ats software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveAtsRejectReasonResponse = { + httpMeta: components.HTTPMetadata; + unifiedAtsRejectreasonOutput?: components.UnifiedAtsRejectreasonOutput | undefined; +}; + +/** @internal */ +export const RetrieveAtsRejectReasonRequest$inboundSchema: z.ZodType< + RetrieveAtsRejectReasonRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveAtsRejectReasonRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveAtsRejectReasonRequest$outboundSchema: z.ZodType< + RetrieveAtsRejectReasonRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsRejectReasonRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsRejectReasonRequest$ { + /** @deprecated use `RetrieveAtsRejectReasonRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsRejectReasonRequest$inboundSchema; + /** @deprecated use `RetrieveAtsRejectReasonRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsRejectReasonRequest$outboundSchema; + /** @deprecated use `RetrieveAtsRejectReasonRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsRejectReasonRequest$Outbound; +} + +/** @internal */ +export const RetrieveAtsRejectReasonResponse$inboundSchema: z.ZodType< + RetrieveAtsRejectReasonResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsRejectreasonOutput: + components.UnifiedAtsRejectreasonOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsRejectreasonOutput: "unifiedAtsRejectreasonOutput", + }); + }); + +/** @internal */ +export type RetrieveAtsRejectReasonResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsRejectreasonOutput?: components.UnifiedAtsRejectreasonOutput$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveAtsRejectReasonResponse$outboundSchema: z.ZodType< + RetrieveAtsRejectReasonResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsRejectReasonResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsRejectreasonOutput: + components.UnifiedAtsRejectreasonOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsRejectreasonOutput: "UnifiedAtsRejectreasonOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsRejectReasonResponse$ { + /** @deprecated use `RetrieveAtsRejectReasonResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsRejectReasonResponse$inboundSchema; + /** @deprecated use `RetrieveAtsRejectReasonResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsRejectReasonResponse$outboundSchema; + /** @deprecated use `RetrieveAtsRejectReasonResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsRejectReasonResponse$Outbound; +} diff --git a/src/models/operations/retrieveatsscorecard.ts b/src/models/operations/retrieveatsscorecard.ts index 28df38e5..f1a929ab 100644 --- a/src/models/operations/retrieveatsscorecard.ts +++ b/src/models/operations/retrieveatsscorecard.ts @@ -27,70 +27,110 @@ export type RetrieveAtsScorecardResponse = { }; /** @internal */ -export namespace RetrieveAtsScorecardRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsScorecardRequest$inboundSchema: z.ZodType< + RetrieveAtsScorecardRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsScorecardRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsScorecardRequest$outboundSchema: z.ZodType< + RetrieveAtsScorecardRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsScorecardRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsScorecardRequest$ { + /** @deprecated use `RetrieveAtsScorecardRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsScorecardRequest$inboundSchema; + /** @deprecated use `RetrieveAtsScorecardRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsScorecardRequest$outboundSchema; + /** @deprecated use `RetrieveAtsScorecardRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsScorecardRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsScorecardResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsScorecardOutput: - components.UnifiedAtsScorecardOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsScorecardOutput: "unifiedAtsScorecardOutput", - }); +export const RetrieveAtsScorecardResponse$inboundSchema: z.ZodType< + RetrieveAtsScorecardResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsScorecardOutput: components.UnifiedAtsScorecardOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsScorecardOutput: "unifiedAtsScorecardOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsScorecardOutput?: components.UnifiedAtsScorecardOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsScorecardResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsScorecardOutput?: components.UnifiedAtsScorecardOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsScorecardOutput: - components.UnifiedAtsScorecardOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsScorecardOutput: "UnifiedAtsScorecardOutput", - }); +/** @internal */ +export const RetrieveAtsScorecardResponse$outboundSchema: z.ZodType< + RetrieveAtsScorecardResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsScorecardResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsScorecardOutput: components.UnifiedAtsScorecardOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsScorecardOutput: "UnifiedAtsScorecardOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsScorecardResponse$ { + /** @deprecated use `RetrieveAtsScorecardResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsScorecardResponse$inboundSchema; + /** @deprecated use `RetrieveAtsScorecardResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsScorecardResponse$outboundSchema; + /** @deprecated use `RetrieveAtsScorecardResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsScorecardResponse$Outbound; } diff --git a/src/models/operations/retrieveatstag.ts b/src/models/operations/retrieveatstag.ts index eb9d574b..b5349281 100644 --- a/src/models/operations/retrieveatstag.ts +++ b/src/models/operations/retrieveatstag.ts @@ -27,68 +27,110 @@ export type RetrieveAtsTagResponse = { }; /** @internal */ -export namespace RetrieveAtsTagRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsTagRequest$inboundSchema: z.ZodType< + RetrieveAtsTagRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsTagRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsTagRequest$outboundSchema: z.ZodType< + RetrieveAtsTagRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsTagRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsTagRequest$ { + /** @deprecated use `RetrieveAtsTagRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsTagRequest$inboundSchema; + /** @deprecated use `RetrieveAtsTagRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsTagRequest$outboundSchema; + /** @deprecated use `RetrieveAtsTagRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsTagRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsTagResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsTagOutput: components.UnifiedAtsTagOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsTagOutput: "unifiedAtsTagOutput", - }); +export const RetrieveAtsTagResponse$inboundSchema: z.ZodType< + RetrieveAtsTagResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsTagOutput: components.UnifiedAtsTagOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsTagOutput: "unifiedAtsTagOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsTagOutput?: components.UnifiedAtsTagOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsTagResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsTagOutput?: components.UnifiedAtsTagOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsTagOutput: components.UnifiedAtsTagOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsTagOutput: "UnifiedAtsTagOutput", - }); +/** @internal */ +export const RetrieveAtsTagResponse$outboundSchema: z.ZodType< + RetrieveAtsTagResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsTagResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsTagOutput: components.UnifiedAtsTagOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsTagOutput: "UnifiedAtsTagOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsTagResponse$ { + /** @deprecated use `RetrieveAtsTagResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsTagResponse$inboundSchema; + /** @deprecated use `RetrieveAtsTagResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsTagResponse$outboundSchema; + /** @deprecated use `RetrieveAtsTagResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsTagResponse$Outbound; } diff --git a/src/models/operations/retrieveatsuser.ts b/src/models/operations/retrieveatsuser.ts index ce3a58ef..bf1e52ea 100644 --- a/src/models/operations/retrieveatsuser.ts +++ b/src/models/operations/retrieveatsuser.ts @@ -27,68 +27,110 @@ export type RetrieveAtsUserResponse = { }; /** @internal */ -export namespace RetrieveAtsUserRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveAtsUserRequest$inboundSchema: z.ZodType< + RetrieveAtsUserRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveAtsUserRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveAtsUserRequest$outboundSchema: z.ZodType< + RetrieveAtsUserRequest$Outbound, + z.ZodTypeDef, + RetrieveAtsUserRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsUserRequest$ { + /** @deprecated use `RetrieveAtsUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsUserRequest$inboundSchema; + /** @deprecated use `RetrieveAtsUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsUserRequest$outboundSchema; + /** @deprecated use `RetrieveAtsUserRequest$Outbound` instead. */ + export type Outbound = RetrieveAtsUserRequest$Outbound; } /** @internal */ -export namespace RetrieveAtsUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedAtsUserOutput: components.UnifiedAtsUserOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedAtsUserOutput: "unifiedAtsUserOutput", - }); +export const RetrieveAtsUserResponse$inboundSchema: z.ZodType< + RetrieveAtsUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedAtsUserOutput: components.UnifiedAtsUserOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedAtsUserOutput: "unifiedAtsUserOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedAtsUserOutput?: components.UnifiedAtsUserOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveAtsUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedAtsUserOutput?: components.UnifiedAtsUserOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedAtsUserOutput: components.UnifiedAtsUserOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedAtsUserOutput: "UnifiedAtsUserOutput", - }); +/** @internal */ +export const RetrieveAtsUserResponse$outboundSchema: z.ZodType< + RetrieveAtsUserResponse$Outbound, + z.ZodTypeDef, + RetrieveAtsUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedAtsUserOutput: components.UnifiedAtsUserOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedAtsUserOutput: "UnifiedAtsUserOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveAtsUserResponse$ { + /** @deprecated use `RetrieveAtsUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveAtsUserResponse$inboundSchema; + /** @deprecated use `RetrieveAtsUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveAtsUserResponse$outboundSchema; + /** @deprecated use `RetrieveAtsUserResponse$Outbound` instead. */ + export type Outbound = RetrieveAtsUserResponse$Outbound; } diff --git a/src/models/operations/retrievecollection.ts b/src/models/operations/retrievecollection.ts index a84c55af..e5bddaf5 100644 --- a/src/models/operations/retrievecollection.ts +++ b/src/models/operations/retrievecollection.ts @@ -27,72 +27,114 @@ export type RetrieveCollectionResponse = { }; /** @internal */ -export namespace RetrieveCollectionRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCollectionRequest$inboundSchema: z.ZodType< + RetrieveCollectionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCollectionRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCollectionRequest$outboundSchema: z.ZodType< + RetrieveCollectionRequest$Outbound, + z.ZodTypeDef, + RetrieveCollectionRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCollectionRequest$ { + /** @deprecated use `RetrieveCollectionRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCollectionRequest$inboundSchema; + /** @deprecated use `RetrieveCollectionRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCollectionRequest$outboundSchema; + /** @deprecated use `RetrieveCollectionRequest$Outbound` instead. */ + export type Outbound = RetrieveCollectionRequest$Outbound; } /** @internal */ -export namespace RetrieveCollectionResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingCollectionOutput: - components.UnifiedTicketingCollectionOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingCollectionOutput: "unifiedTicketingCollectionOutput", - }); +export const RetrieveCollectionResponse$inboundSchema: z.ZodType< + RetrieveCollectionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingCollectionOutput: + components.UnifiedTicketingCollectionOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingCollectionOutput: "unifiedTicketingCollectionOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingCollectionOutput?: - | components.UnifiedTicketingCollectionOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveCollectionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingCollectionOutput?: + | components.UnifiedTicketingCollectionOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingCollectionOutput: - components.UnifiedTicketingCollectionOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingCollectionOutput: "UnifiedTicketingCollectionOutput", - }); +/** @internal */ +export const RetrieveCollectionResponse$outboundSchema: z.ZodType< + RetrieveCollectionResponse$Outbound, + z.ZodTypeDef, + RetrieveCollectionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingCollectionOutput: + components.UnifiedTicketingCollectionOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingCollectionOutput: "UnifiedTicketingCollectionOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCollectionResponse$ { + /** @deprecated use `RetrieveCollectionResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCollectionResponse$inboundSchema; + /** @deprecated use `RetrieveCollectionResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCollectionResponse$outboundSchema; + /** @deprecated use `RetrieveCollectionResponse$Outbound` instead. */ + export type Outbound = RetrieveCollectionResponse$Outbound; } diff --git a/src/models/operations/retrievecrmcompany.ts b/src/models/operations/retrievecrmcompany.ts index f4ba3aba..2a0d6eb6 100644 --- a/src/models/operations/retrievecrmcompany.ts +++ b/src/models/operations/retrievecrmcompany.ts @@ -27,68 +27,110 @@ export type RetrieveCrmCompanyResponse = { }; /** @internal */ -export namespace RetrieveCrmCompanyRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmCompanyRequest$inboundSchema: z.ZodType< + RetrieveCrmCompanyRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmCompanyRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmCompanyRequest$outboundSchema: z.ZodType< + RetrieveCrmCompanyRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmCompanyRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmCompanyRequest$ { + /** @deprecated use `RetrieveCrmCompanyRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmCompanyRequest$inboundSchema; + /** @deprecated use `RetrieveCrmCompanyRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmCompanyRequest$outboundSchema; + /** @deprecated use `RetrieveCrmCompanyRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmCompanyRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmCompanyResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmCompanyOutput: "unifiedCrmCompanyOutput", - }); +export const RetrieveCrmCompanyResponse$inboundSchema: z.ZodType< + RetrieveCrmCompanyResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmCompanyOutput: "unifiedCrmCompanyOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmCompanyOutput?: components.UnifiedCrmCompanyOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmCompanyResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmCompanyOutput?: components.UnifiedCrmCompanyOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmCompanyOutput: "UnifiedCrmCompanyOutput", - }); +/** @internal */ +export const RetrieveCrmCompanyResponse$outboundSchema: z.ZodType< + RetrieveCrmCompanyResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmCompanyResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmCompanyOutput: components.UnifiedCrmCompanyOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmCompanyOutput: "UnifiedCrmCompanyOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmCompanyResponse$ { + /** @deprecated use `RetrieveCrmCompanyResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmCompanyResponse$inboundSchema; + /** @deprecated use `RetrieveCrmCompanyResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmCompanyResponse$outboundSchema; + /** @deprecated use `RetrieveCrmCompanyResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmCompanyResponse$Outbound; } diff --git a/src/models/operations/retrievecrmcontact.ts b/src/models/operations/retrievecrmcontact.ts new file mode 100644 index 00000000..b42fc1fe --- /dev/null +++ b/src/models/operations/retrievecrmcontact.ts @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveCrmContactRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the `contact` you want to retrive. + */ + id: string; + /** + * Set to true to include data from the original CRM software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveCrmContactResponse = { + httpMeta: components.HTTPMetadata; + unifiedCrmContactOutput?: components.UnifiedCrmContactOutput | undefined; +}; + +/** @internal */ +export const RetrieveCrmContactRequest$inboundSchema: z.ZodType< + RetrieveCrmContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveCrmContactRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveCrmContactRequest$outboundSchema: z.ZodType< + RetrieveCrmContactRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmContactRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmContactRequest$ { + /** @deprecated use `RetrieveCrmContactRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmContactRequest$inboundSchema; + /** @deprecated use `RetrieveCrmContactRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmContactRequest$outboundSchema; + /** @deprecated use `RetrieveCrmContactRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmContactRequest$Outbound; +} + +/** @internal */ +export const RetrieveCrmContactResponse$inboundSchema: z.ZodType< + RetrieveCrmContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmContactOutput: components.UnifiedCrmContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmContactOutput: "unifiedCrmContactOutput", + }); + }); + +/** @internal */ +export type RetrieveCrmContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmContactOutput?: components.UnifiedCrmContactOutput$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveCrmContactResponse$outboundSchema: z.ZodType< + RetrieveCrmContactResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmContactOutput: components.UnifiedCrmContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmContactOutput: "UnifiedCrmContactOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmContactResponse$ { + /** @deprecated use `RetrieveCrmContactResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmContactResponse$inboundSchema; + /** @deprecated use `RetrieveCrmContactResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmContactResponse$outboundSchema; + /** @deprecated use `RetrieveCrmContactResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmContactResponse$Outbound; +} diff --git a/src/models/operations/retrievecrmdeal.ts b/src/models/operations/retrievecrmdeal.ts index af227326..e77eea99 100644 --- a/src/models/operations/retrievecrmdeal.ts +++ b/src/models/operations/retrievecrmdeal.ts @@ -27,68 +27,110 @@ export type RetrieveCrmDealResponse = { }; /** @internal */ -export namespace RetrieveCrmDealRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmDealRequest$inboundSchema: z.ZodType< + RetrieveCrmDealRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmDealRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmDealRequest$outboundSchema: z.ZodType< + RetrieveCrmDealRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmDealRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmDealRequest$ { + /** @deprecated use `RetrieveCrmDealRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmDealRequest$inboundSchema; + /** @deprecated use `RetrieveCrmDealRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmDealRequest$outboundSchema; + /** @deprecated use `RetrieveCrmDealRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmDealRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmDealResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmDealOutput: components.UnifiedCrmDealOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmDealOutput: "unifiedCrmDealOutput", - }); +export const RetrieveCrmDealResponse$inboundSchema: z.ZodType< + RetrieveCrmDealResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmDealOutput: components.UnifiedCrmDealOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmDealOutput: "unifiedCrmDealOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmDealOutput?: components.UnifiedCrmDealOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmDealResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmDealOutput?: components.UnifiedCrmDealOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmDealOutput: components.UnifiedCrmDealOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmDealOutput: "UnifiedCrmDealOutput", - }); +/** @internal */ +export const RetrieveCrmDealResponse$outboundSchema: z.ZodType< + RetrieveCrmDealResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmDealResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmDealOutput: components.UnifiedCrmDealOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmDealOutput: "UnifiedCrmDealOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmDealResponse$ { + /** @deprecated use `RetrieveCrmDealResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmDealResponse$inboundSchema; + /** @deprecated use `RetrieveCrmDealResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmDealResponse$outboundSchema; + /** @deprecated use `RetrieveCrmDealResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmDealResponse$Outbound; } diff --git a/src/models/operations/retrievecrmengagement.ts b/src/models/operations/retrievecrmengagement.ts index b3877863..d008b854 100644 --- a/src/models/operations/retrievecrmengagement.ts +++ b/src/models/operations/retrievecrmengagement.ts @@ -27,71 +27,110 @@ export type RetrieveCrmEngagementResponse = { }; /** @internal */ -export namespace RetrieveCrmEngagementRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmEngagementRequest$inboundSchema: z.ZodType< + RetrieveCrmEngagementRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmEngagementRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmEngagementRequest$outboundSchema: z.ZodType< + RetrieveCrmEngagementRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmEngagementRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmEngagementRequest$ { + /** @deprecated use `RetrieveCrmEngagementRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmEngagementRequest$inboundSchema; + /** @deprecated use `RetrieveCrmEngagementRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmEngagementRequest$outboundSchema; + /** @deprecated use `RetrieveCrmEngagementRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmEngagementRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmEngagementResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmEngagementOutput: - components.UnifiedCrmEngagementOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmEngagementOutput: "unifiedCrmEngagementOutput", - }); +export const RetrieveCrmEngagementResponse$inboundSchema: z.ZodType< + RetrieveCrmEngagementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmEngagementOutput: components.UnifiedCrmEngagementOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmEngagementOutput: "unifiedCrmEngagementOutput", }); + }); + +/** @internal */ +export type RetrieveCrmEngagementResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmEngagementOutput?: components.UnifiedCrmEngagementOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmEngagementOutput?: components.UnifiedCrmEngagementOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveCrmEngagementResponse$outboundSchema: z.ZodType< + RetrieveCrmEngagementResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmEngagementResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmEngagementOutput: components.UnifiedCrmEngagementOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmEngagementOutput: "UnifiedCrmEngagementOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmEngagementOutput: - components.UnifiedCrmEngagementOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmEngagementOutput: "UnifiedCrmEngagementOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmEngagementResponse$ { + /** @deprecated use `RetrieveCrmEngagementResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmEngagementResponse$inboundSchema; + /** @deprecated use `RetrieveCrmEngagementResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmEngagementResponse$outboundSchema; + /** @deprecated use `RetrieveCrmEngagementResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmEngagementResponse$Outbound; } diff --git a/src/models/operations/retrievecrmnote.ts b/src/models/operations/retrievecrmnote.ts index 06679f3c..9a2f3c63 100644 --- a/src/models/operations/retrievecrmnote.ts +++ b/src/models/operations/retrievecrmnote.ts @@ -27,68 +27,110 @@ export type RetrieveCrmNoteResponse = { }; /** @internal */ -export namespace RetrieveCrmNoteRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmNoteRequest$inboundSchema: z.ZodType< + RetrieveCrmNoteRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmNoteRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmNoteRequest$outboundSchema: z.ZodType< + RetrieveCrmNoteRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmNoteRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmNoteRequest$ { + /** @deprecated use `RetrieveCrmNoteRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmNoteRequest$inboundSchema; + /** @deprecated use `RetrieveCrmNoteRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmNoteRequest$outboundSchema; + /** @deprecated use `RetrieveCrmNoteRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmNoteRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmNoteResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmNoteOutput: "unifiedCrmNoteOutput", - }); +export const RetrieveCrmNoteResponse$inboundSchema: z.ZodType< + RetrieveCrmNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmNoteOutput: "unifiedCrmNoteOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmNoteOutput?: components.UnifiedCrmNoteOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmNoteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmNoteOutput?: components.UnifiedCrmNoteOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmNoteOutput: "UnifiedCrmNoteOutput", - }); +/** @internal */ +export const RetrieveCrmNoteResponse$outboundSchema: z.ZodType< + RetrieveCrmNoteResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmNoteResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmNoteOutput: components.UnifiedCrmNoteOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmNoteOutput: "UnifiedCrmNoteOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmNoteResponse$ { + /** @deprecated use `RetrieveCrmNoteResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmNoteResponse$inboundSchema; + /** @deprecated use `RetrieveCrmNoteResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmNoteResponse$outboundSchema; + /** @deprecated use `RetrieveCrmNoteResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmNoteResponse$Outbound; } diff --git a/src/models/operations/retrievecrmstage.ts b/src/models/operations/retrievecrmstage.ts index 60703deb..3e512a67 100644 --- a/src/models/operations/retrievecrmstage.ts +++ b/src/models/operations/retrievecrmstage.ts @@ -27,68 +27,110 @@ export type RetrieveCrmStageResponse = { }; /** @internal */ -export namespace RetrieveCrmStageRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmStageRequest$inboundSchema: z.ZodType< + RetrieveCrmStageRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmStageRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmStageRequest$outboundSchema: z.ZodType< + RetrieveCrmStageRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmStageRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmStageRequest$ { + /** @deprecated use `RetrieveCrmStageRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmStageRequest$inboundSchema; + /** @deprecated use `RetrieveCrmStageRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmStageRequest$outboundSchema; + /** @deprecated use `RetrieveCrmStageRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmStageRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmStageResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmStageOutput: components.UnifiedCrmStageOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmStageOutput: "unifiedCrmStageOutput", - }); +export const RetrieveCrmStageResponse$inboundSchema: z.ZodType< + RetrieveCrmStageResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmStageOutput: components.UnifiedCrmStageOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmStageOutput: "unifiedCrmStageOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmStageOutput?: components.UnifiedCrmStageOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmStageResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmStageOutput?: components.UnifiedCrmStageOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmStageOutput: components.UnifiedCrmStageOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmStageOutput: "UnifiedCrmStageOutput", - }); +/** @internal */ +export const RetrieveCrmStageResponse$outboundSchema: z.ZodType< + RetrieveCrmStageResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmStageResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmStageOutput: components.UnifiedCrmStageOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmStageOutput: "UnifiedCrmStageOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmStageResponse$ { + /** @deprecated use `RetrieveCrmStageResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmStageResponse$inboundSchema; + /** @deprecated use `RetrieveCrmStageResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmStageResponse$outboundSchema; + /** @deprecated use `RetrieveCrmStageResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmStageResponse$Outbound; } diff --git a/src/models/operations/retrievecrmtask.ts b/src/models/operations/retrievecrmtask.ts index ddab7837..4a630fa3 100644 --- a/src/models/operations/retrievecrmtask.ts +++ b/src/models/operations/retrievecrmtask.ts @@ -27,68 +27,110 @@ export type RetrieveCrmTaskResponse = { }; /** @internal */ -export namespace RetrieveCrmTaskRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmTaskRequest$inboundSchema: z.ZodType< + RetrieveCrmTaskRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmTaskRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmTaskRequest$outboundSchema: z.ZodType< + RetrieveCrmTaskRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmTaskRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmTaskRequest$ { + /** @deprecated use `RetrieveCrmTaskRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmTaskRequest$inboundSchema; + /** @deprecated use `RetrieveCrmTaskRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmTaskRequest$outboundSchema; + /** @deprecated use `RetrieveCrmTaskRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmTaskRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmTaskResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmTaskOutput: "unifiedCrmTaskOutput", - }); +export const RetrieveCrmTaskResponse$inboundSchema: z.ZodType< + RetrieveCrmTaskResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmTaskOutput: "unifiedCrmTaskOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmTaskOutput?: components.UnifiedCrmTaskOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmTaskResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmTaskOutput?: components.UnifiedCrmTaskOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmTaskOutput: "UnifiedCrmTaskOutput", - }); +/** @internal */ +export const RetrieveCrmTaskResponse$outboundSchema: z.ZodType< + RetrieveCrmTaskResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmTaskResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmTaskOutput: components.UnifiedCrmTaskOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmTaskOutput: "UnifiedCrmTaskOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmTaskResponse$ { + /** @deprecated use `RetrieveCrmTaskResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmTaskResponse$inboundSchema; + /** @deprecated use `RetrieveCrmTaskResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmTaskResponse$outboundSchema; + /** @deprecated use `RetrieveCrmTaskResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmTaskResponse$Outbound; } diff --git a/src/models/operations/retrievecrmuser.ts b/src/models/operations/retrievecrmuser.ts index a8850fc4..42d5e0c7 100644 --- a/src/models/operations/retrievecrmuser.ts +++ b/src/models/operations/retrievecrmuser.ts @@ -27,68 +27,110 @@ export type RetrieveCrmUserResponse = { }; /** @internal */ -export namespace RetrieveCrmUserRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveCrmUserRequest$inboundSchema: z.ZodType< + RetrieveCrmUserRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveCrmUserRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveCrmUserRequest$outboundSchema: z.ZodType< + RetrieveCrmUserRequest$Outbound, + z.ZodTypeDef, + RetrieveCrmUserRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmUserRequest$ { + /** @deprecated use `RetrieveCrmUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmUserRequest$inboundSchema; + /** @deprecated use `RetrieveCrmUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmUserRequest$outboundSchema; + /** @deprecated use `RetrieveCrmUserRequest$Outbound` instead. */ + export type Outbound = RetrieveCrmUserRequest$Outbound; } /** @internal */ -export namespace RetrieveCrmUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCrmUserOutput: components.UnifiedCrmUserOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCrmUserOutput: "unifiedCrmUserOutput", - }); +export const RetrieveCrmUserResponse$inboundSchema: z.ZodType< + RetrieveCrmUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCrmUserOutput: components.UnifiedCrmUserOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCrmUserOutput: "unifiedCrmUserOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCrmUserOutput?: components.UnifiedCrmUserOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveCrmUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCrmUserOutput?: components.UnifiedCrmUserOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCrmUserOutput: components.UnifiedCrmUserOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCrmUserOutput: "UnifiedCrmUserOutput", - }); +/** @internal */ +export const RetrieveCrmUserResponse$outboundSchema: z.ZodType< + RetrieveCrmUserResponse$Outbound, + z.ZodTypeDef, + RetrieveCrmUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCrmUserOutput: components.UnifiedCrmUserOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCrmUserOutput: "UnifiedCrmUserOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveCrmUserResponse$ { + /** @deprecated use `RetrieveCrmUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveCrmUserResponse$inboundSchema; + /** @deprecated use `RetrieveCrmUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveCrmUserResponse$outboundSchema; + /** @deprecated use `RetrieveCrmUserResponse$Outbound` instead. */ + export type Outbound = RetrieveCrmUserResponse$Outbound; } diff --git a/src/models/operations/retrievefilestoragedrive.ts b/src/models/operations/retrievefilestoragedrive.ts index 1fd2c6a7..406483be 100644 --- a/src/models/operations/retrievefilestoragedrive.ts +++ b/src/models/operations/retrievefilestoragedrive.ts @@ -27,82 +27,112 @@ export type RetrieveFilestorageDriveResponse = { }; /** @internal */ -export namespace RetrieveFilestorageDriveRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveFilestorageDriveRequest$inboundSchema: z.ZodType< + RetrieveFilestorageDriveRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveFilestorageDriveRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageDriveRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveFilestorageDriveRequest$outboundSchema: z.ZodType< + RetrieveFilestorageDriveRequest$Outbound, + z.ZodTypeDef, + RetrieveFilestorageDriveRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageDriveRequest$ { + /** @deprecated use `RetrieveFilestorageDriveRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageDriveRequest$inboundSchema; + /** @deprecated use `RetrieveFilestorageDriveRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageDriveRequest$outboundSchema; + /** @deprecated use `RetrieveFilestorageDriveRequest$Outbound` instead. */ + export type Outbound = RetrieveFilestorageDriveRequest$Outbound; } /** @internal */ -export namespace RetrieveFilestorageDriveResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageDriveOutput: - components.UnifiedFilestorageDriveOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageDriveOutput: "unifiedFilestorageDriveOutput", - }); - }); +export const RetrieveFilestorageDriveResponse$inboundSchema: z.ZodType< + RetrieveFilestorageDriveResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageDriveOutput: + components.UnifiedFilestorageDriveOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageDriveOutput: "unifiedFilestorageDriveOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageDriveOutput?: - | components.UnifiedFilestorageDriveOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveFilestorageDriveResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageDriveOutput?: components.UnifiedFilestorageDriveOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageDriveResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageDriveOutput: - components.UnifiedFilestorageDriveOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageDriveOutput: "UnifiedFilestorageDriveOutput", - }); +/** @internal */ +export const RetrieveFilestorageDriveResponse$outboundSchema: z.ZodType< + RetrieveFilestorageDriveResponse$Outbound, + z.ZodTypeDef, + RetrieveFilestorageDriveResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageDriveOutput: + components.UnifiedFilestorageDriveOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageDriveOutput: "UnifiedFilestorageDriveOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageDriveResponse$ { + /** @deprecated use `RetrieveFilestorageDriveResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageDriveResponse$inboundSchema; + /** @deprecated use `RetrieveFilestorageDriveResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageDriveResponse$outboundSchema; + /** @deprecated use `RetrieveFilestorageDriveResponse$Outbound` instead. */ + export type Outbound = RetrieveFilestorageDriveResponse$Outbound; } diff --git a/src/models/operations/retrievefilestoragefile.ts b/src/models/operations/retrievefilestoragefile.ts index 204617b4..dc845192 100644 --- a/src/models/operations/retrievefilestoragefile.ts +++ b/src/models/operations/retrievefilestoragefile.ts @@ -27,78 +27,112 @@ export type RetrieveFilestorageFileResponse = { }; /** @internal */ -export namespace RetrieveFilestorageFileRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveFilestorageFileRequest$inboundSchema: z.ZodType< + RetrieveFilestorageFileRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveFilestorageFileRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** @internal */ +export const RetrieveFilestorageFileRequest$outboundSchema: z.ZodType< + RetrieveFilestorageFileRequest$Outbound, + z.ZodTypeDef, + RetrieveFilestorageFileRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageFileRequest$ { + /** @deprecated use `RetrieveFilestorageFileRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageFileRequest$inboundSchema; + /** @deprecated use `RetrieveFilestorageFileRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageFileRequest$outboundSchema; + /** @deprecated use `RetrieveFilestorageFileRequest$Outbound` instead. */ + export type Outbound = RetrieveFilestorageFileRequest$Outbound; } /** @internal */ -export namespace RetrieveFilestorageFileResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageFileOutput: - components.UnifiedFilestorageFileOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageFileOutput: "unifiedFilestorageFileOutput", - }); - }); +export const RetrieveFilestorageFileResponse$inboundSchema: z.ZodType< + RetrieveFilestorageFileResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageFileOutput: + components.UnifiedFilestorageFileOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageFileOutput: "unifiedFilestorageFileOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageFileOutput?: - | components.UnifiedFilestorageFileOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveFilestorageFileResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageFileOutput?: components.UnifiedFilestorageFileOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageFileResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageFileOutput: - components.UnifiedFilestorageFileOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageFileOutput: "UnifiedFilestorageFileOutput", - }); +/** @internal */ +export const RetrieveFilestorageFileResponse$outboundSchema: z.ZodType< + RetrieveFilestorageFileResponse$Outbound, + z.ZodTypeDef, + RetrieveFilestorageFileResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageFileOutput: + components.UnifiedFilestorageFileOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageFileOutput: "UnifiedFilestorageFileOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageFileResponse$ { + /** @deprecated use `RetrieveFilestorageFileResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageFileResponse$inboundSchema; + /** @deprecated use `RetrieveFilestorageFileResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageFileResponse$outboundSchema; + /** @deprecated use `RetrieveFilestorageFileResponse$Outbound` instead. */ + export type Outbound = RetrieveFilestorageFileResponse$Outbound; } diff --git a/src/models/operations/retrievefilestoragefolder.ts b/src/models/operations/retrievefilestoragefolder.ts index 89c43b9e..05b0ba51 100644 --- a/src/models/operations/retrievefilestoragefolder.ts +++ b/src/models/operations/retrievefilestoragefolder.ts @@ -27,85 +27,112 @@ export type RetrieveFilestorageFolderResponse = { }; /** @internal */ -export namespace RetrieveFilestorageFolderRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveFilestorageFolderRequest$inboundSchema: z.ZodType< + RetrieveFilestorageFolderRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveFilestorageFolderRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageFolderRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveFilestorageFolderRequest$outboundSchema: z.ZodType< + RetrieveFilestorageFolderRequest$Outbound, + z.ZodTypeDef, + RetrieveFilestorageFolderRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageFolderRequest$ { + /** @deprecated use `RetrieveFilestorageFolderRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageFolderRequest$inboundSchema; + /** @deprecated use `RetrieveFilestorageFolderRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageFolderRequest$outboundSchema; + /** @deprecated use `RetrieveFilestorageFolderRequest$Outbound` instead. */ + export type Outbound = RetrieveFilestorageFolderRequest$Outbound; } /** @internal */ -export namespace RetrieveFilestorageFolderResponse$ { - export const inboundSchema: z.ZodType< - RetrieveFilestorageFolderResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageFolderOutput: - components.UnifiedFilestorageFolderOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageFolderOutput: "unifiedFilestorageFolderOutput", - }); +export const RetrieveFilestorageFolderResponse$inboundSchema: z.ZodType< + RetrieveFilestorageFolderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageFolderOutput: + components.UnifiedFilestorageFolderOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageFolderOutput: "unifiedFilestorageFolderOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageFolderOutput?: - | components.UnifiedFilestorageFolderOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveFilestorageFolderResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageFolderOutput?: components.UnifiedFilestorageFolderOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageFolderResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageFolderOutput: - components.UnifiedFilestorageFolderOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageFolderOutput: "UnifiedFilestorageFolderOutput", - }); +/** @internal */ +export const RetrieveFilestorageFolderResponse$outboundSchema: z.ZodType< + RetrieveFilestorageFolderResponse$Outbound, + z.ZodTypeDef, + RetrieveFilestorageFolderResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageFolderOutput: + components.UnifiedFilestorageFolderOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageFolderOutput: "UnifiedFilestorageFolderOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageFolderResponse$ { + /** @deprecated use `RetrieveFilestorageFolderResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageFolderResponse$inboundSchema; + /** @deprecated use `RetrieveFilestorageFolderResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageFolderResponse$outboundSchema; + /** @deprecated use `RetrieveFilestorageFolderResponse$Outbound` instead. */ + export type Outbound = RetrieveFilestorageFolderResponse$Outbound; } diff --git a/src/models/operations/retrievefilestoragegroup.ts b/src/models/operations/retrievefilestoragegroup.ts index d6d46986..87e8497e 100644 --- a/src/models/operations/retrievefilestoragegroup.ts +++ b/src/models/operations/retrievefilestoragegroup.ts @@ -27,82 +27,112 @@ export type RetrieveFilestorageGroupResponse = { }; /** @internal */ -export namespace RetrieveFilestorageGroupRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveFilestorageGroupRequest$inboundSchema: z.ZodType< + RetrieveFilestorageGroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveFilestorageGroupRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageGroupRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveFilestorageGroupRequest$outboundSchema: z.ZodType< + RetrieveFilestorageGroupRequest$Outbound, + z.ZodTypeDef, + RetrieveFilestorageGroupRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageGroupRequest$ { + /** @deprecated use `RetrieveFilestorageGroupRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageGroupRequest$inboundSchema; + /** @deprecated use `RetrieveFilestorageGroupRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageGroupRequest$outboundSchema; + /** @deprecated use `RetrieveFilestorageGroupRequest$Outbound` instead. */ + export type Outbound = RetrieveFilestorageGroupRequest$Outbound; } /** @internal */ -export namespace RetrieveFilestorageGroupResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedFilestorageGroupOutput: - components.UnifiedFilestorageGroupOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedFilestorageGroupOutput: "unifiedFilestorageGroupOutput", - }); - }); +export const RetrieveFilestorageGroupResponse$inboundSchema: z.ZodType< + RetrieveFilestorageGroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedFilestorageGroupOutput: + components.UnifiedFilestorageGroupOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedFilestorageGroupOutput: "unifiedFilestorageGroupOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedFilestorageGroupOutput?: - | components.UnifiedFilestorageGroupOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveFilestorageGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedFilestorageGroupOutput?: components.UnifiedFilestorageGroupOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveFilestorageGroupResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedFilestorageGroupOutput: - components.UnifiedFilestorageGroupOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedFilestorageGroupOutput: "UnifiedFilestorageGroupOutput", - }); +/** @internal */ +export const RetrieveFilestorageGroupResponse$outboundSchema: z.ZodType< + RetrieveFilestorageGroupResponse$Outbound, + z.ZodTypeDef, + RetrieveFilestorageGroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedFilestorageGroupOutput: + components.UnifiedFilestorageGroupOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedFilestorageGroupOutput: "UnifiedFilestorageGroupOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageGroupResponse$ { + /** @deprecated use `RetrieveFilestorageGroupResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageGroupResponse$inboundSchema; + /** @deprecated use `RetrieveFilestorageGroupResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageGroupResponse$outboundSchema; + /** @deprecated use `RetrieveFilestorageGroupResponse$Outbound` instead. */ + export type Outbound = RetrieveFilestorageGroupResponse$Outbound; } diff --git a/src/models/operations/retrievefilestorageuser.ts b/src/models/operations/retrievefilestorageuser.ts new file mode 100644 index 00000000..6d5fa86f --- /dev/null +++ b/src/models/operations/retrievefilestorageuser.ts @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveFilestorageUserRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the permission you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original File Storage software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveFilestorageUserResponse = { + httpMeta: components.HTTPMetadata; + unifiedUserOutput?: components.UnifiedUserOutput | undefined; +}; + +/** @internal */ +export const RetrieveFilestorageUserRequest$inboundSchema: z.ZodType< + RetrieveFilestorageUserRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveFilestorageUserRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveFilestorageUserRequest$outboundSchema: z.ZodType< + RetrieveFilestorageUserRequest$Outbound, + z.ZodTypeDef, + RetrieveFilestorageUserRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageUserRequest$ { + /** @deprecated use `RetrieveFilestorageUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageUserRequest$inboundSchema; + /** @deprecated use `RetrieveFilestorageUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageUserRequest$outboundSchema; + /** @deprecated use `RetrieveFilestorageUserRequest$Outbound` instead. */ + export type Outbound = RetrieveFilestorageUserRequest$Outbound; +} + +/** @internal */ +export const RetrieveFilestorageUserResponse$inboundSchema: z.ZodType< + RetrieveFilestorageUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedUserOutput: components.UnifiedUserOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedUserOutput: "unifiedUserOutput", + }); + }); + +/** @internal */ +export type RetrieveFilestorageUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedUserOutput?: components.UnifiedUserOutput$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveFilestorageUserResponse$outboundSchema: z.ZodType< + RetrieveFilestorageUserResponse$Outbound, + z.ZodTypeDef, + RetrieveFilestorageUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedUserOutput: components.UnifiedUserOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedUserOutput: "UnifiedUserOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveFilestorageUserResponse$ { + /** @deprecated use `RetrieveFilestorageUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveFilestorageUserResponse$inboundSchema; + /** @deprecated use `RetrieveFilestorageUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveFilestorageUserResponse$outboundSchema; + /** @deprecated use `RetrieveFilestorageUserResponse$Outbound` instead. */ + export type Outbound = RetrieveFilestorageUserResponse$Outbound; +} diff --git a/src/models/operations/retrievehrisbankinfo.ts b/src/models/operations/retrievehrisbankinfo.ts index fd1b2536..94b29b0c 100644 --- a/src/models/operations/retrievehrisbankinfo.ts +++ b/src/models/operations/retrievehrisbankinfo.ts @@ -27,70 +27,110 @@ export type RetrieveHrisBankinfoResponse = { }; /** @internal */ -export namespace RetrieveHrisBankinfoRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisBankinfoRequest$inboundSchema: z.ZodType< + RetrieveHrisBankinfoRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisBankinfoRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisBankinfoRequest$outboundSchema: z.ZodType< + RetrieveHrisBankinfoRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisBankinfoRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisBankinfoRequest$ { + /** @deprecated use `RetrieveHrisBankinfoRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisBankinfoRequest$inboundSchema; + /** @deprecated use `RetrieveHrisBankinfoRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisBankinfoRequest$outboundSchema; + /** @deprecated use `RetrieveHrisBankinfoRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisBankinfoRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisBankinfoResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisBankinfoOutput: - components.UnifiedHrisBankinfoOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisBankinfoOutput: "unifiedHrisBankinfoOutput", - }); +export const RetrieveHrisBankinfoResponse$inboundSchema: z.ZodType< + RetrieveHrisBankinfoResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisBankinfoOutput: components.UnifiedHrisBankinfoOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisBankinfoOutput: "unifiedHrisBankinfoOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisBankinfoOutput?: components.UnifiedHrisBankinfoOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisBankinfoResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisBankinfoOutput?: components.UnifiedHrisBankinfoOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisBankinfoOutput: - components.UnifiedHrisBankinfoOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisBankinfoOutput: "UnifiedHrisBankinfoOutput", - }); +/** @internal */ +export const RetrieveHrisBankinfoResponse$outboundSchema: z.ZodType< + RetrieveHrisBankinfoResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisBankinfoResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisBankinfoOutput: components.UnifiedHrisBankinfoOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisBankinfoOutput: "UnifiedHrisBankinfoOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisBankinfoResponse$ { + /** @deprecated use `RetrieveHrisBankinfoResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisBankinfoResponse$inboundSchema; + /** @deprecated use `RetrieveHrisBankinfoResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisBankinfoResponse$outboundSchema; + /** @deprecated use `RetrieveHrisBankinfoResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisBankinfoResponse$Outbound; } diff --git a/src/models/operations/retrievehrisbenefit.ts b/src/models/operations/retrievehrisbenefit.ts index 1b7d679b..6c3b8b63 100644 --- a/src/models/operations/retrievehrisbenefit.ts +++ b/src/models/operations/retrievehrisbenefit.ts @@ -27,69 +27,110 @@ export type RetrieveHrisBenefitResponse = { }; /** @internal */ -export namespace RetrieveHrisBenefitRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisBenefitRequest$inboundSchema: z.ZodType< + RetrieveHrisBenefitRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisBenefitRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisBenefitRequest$outboundSchema: z.ZodType< + RetrieveHrisBenefitRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisBenefitRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisBenefitRequest$ { + /** @deprecated use `RetrieveHrisBenefitRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisBenefitRequest$inboundSchema; + /** @deprecated use `RetrieveHrisBenefitRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisBenefitRequest$outboundSchema; + /** @deprecated use `RetrieveHrisBenefitRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisBenefitRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisBenefitResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisBenefitOutput: components.UnifiedHrisBenefitOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisBenefitOutput: "unifiedHrisBenefitOutput", - }); +export const RetrieveHrisBenefitResponse$inboundSchema: z.ZodType< + RetrieveHrisBenefitResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisBenefitOutput: components.UnifiedHrisBenefitOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisBenefitOutput: "unifiedHrisBenefitOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisBenefitOutput?: components.UnifiedHrisBenefitOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisBenefitResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisBenefitOutput?: components.UnifiedHrisBenefitOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisBenefitOutput: - components.UnifiedHrisBenefitOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisBenefitOutput: "UnifiedHrisBenefitOutput", - }); +/** @internal */ +export const RetrieveHrisBenefitResponse$outboundSchema: z.ZodType< + RetrieveHrisBenefitResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisBenefitResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisBenefitOutput: components.UnifiedHrisBenefitOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisBenefitOutput: "UnifiedHrisBenefitOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisBenefitResponse$ { + /** @deprecated use `RetrieveHrisBenefitResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisBenefitResponse$inboundSchema; + /** @deprecated use `RetrieveHrisBenefitResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisBenefitResponse$outboundSchema; + /** @deprecated use `RetrieveHrisBenefitResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisBenefitResponse$Outbound; } diff --git a/src/models/operations/retrievehrisdependent.ts b/src/models/operations/retrievehrisdependent.ts index ac35c9d0..325e1528 100644 --- a/src/models/operations/retrievehrisdependent.ts +++ b/src/models/operations/retrievehrisdependent.ts @@ -27,71 +27,110 @@ export type RetrieveHrisDependentResponse = { }; /** @internal */ -export namespace RetrieveHrisDependentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisDependentRequest$inboundSchema: z.ZodType< + RetrieveHrisDependentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisDependentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisDependentRequest$outboundSchema: z.ZodType< + RetrieveHrisDependentRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisDependentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisDependentRequest$ { + /** @deprecated use `RetrieveHrisDependentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisDependentRequest$inboundSchema; + /** @deprecated use `RetrieveHrisDependentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisDependentRequest$outboundSchema; + /** @deprecated use `RetrieveHrisDependentRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisDependentRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisDependentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisDependentOutput: - components.UnifiedHrisDependentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisDependentOutput: "unifiedHrisDependentOutput", - }); +export const RetrieveHrisDependentResponse$inboundSchema: z.ZodType< + RetrieveHrisDependentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisDependentOutput: components.UnifiedHrisDependentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisDependentOutput: "unifiedHrisDependentOutput", }); + }); + +/** @internal */ +export type RetrieveHrisDependentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisDependentOutput?: components.UnifiedHrisDependentOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisDependentOutput?: components.UnifiedHrisDependentOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveHrisDependentResponse$outboundSchema: z.ZodType< + RetrieveHrisDependentResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisDependentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisDependentOutput: components.UnifiedHrisDependentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisDependentOutput: "UnifiedHrisDependentOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisDependentOutput: - components.UnifiedHrisDependentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisDependentOutput: "UnifiedHrisDependentOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisDependentResponse$ { + /** @deprecated use `RetrieveHrisDependentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisDependentResponse$inboundSchema; + /** @deprecated use `RetrieveHrisDependentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisDependentResponse$outboundSchema; + /** @deprecated use `RetrieveHrisDependentResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisDependentResponse$Outbound; } diff --git a/src/models/operations/retrievehrisemployee.ts b/src/models/operations/retrievehrisemployee.ts index ee1c2273..cf5ec56b 100644 --- a/src/models/operations/retrievehrisemployee.ts +++ b/src/models/operations/retrievehrisemployee.ts @@ -27,70 +27,110 @@ export type RetrieveHrisEmployeeResponse = { }; /** @internal */ -export namespace RetrieveHrisEmployeeRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisEmployeeRequest$inboundSchema: z.ZodType< + RetrieveHrisEmployeeRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployeeRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisEmployeeRequest$outboundSchema: z.ZodType< + RetrieveHrisEmployeeRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployeeRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployeeRequest$ { + /** @deprecated use `RetrieveHrisEmployeeRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployeeRequest$inboundSchema; + /** @deprecated use `RetrieveHrisEmployeeRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployeeRequest$outboundSchema; + /** @deprecated use `RetrieveHrisEmployeeRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployeeRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisEmployeeResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisEmployeeOutput: - components.UnifiedHrisEmployeeOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisEmployeeOutput: "unifiedHrisEmployeeOutput", - }); +export const RetrieveHrisEmployeeResponse$inboundSchema: z.ZodType< + RetrieveHrisEmployeeResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisEmployeeOutput: components.UnifiedHrisEmployeeOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisEmployeeOutput: "unifiedHrisEmployeeOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisEmployeeOutput?: components.UnifiedHrisEmployeeOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployeeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisEmployeeOutput?: components.UnifiedHrisEmployeeOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisEmployeeOutput: - components.UnifiedHrisEmployeeOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisEmployeeOutput: "UnifiedHrisEmployeeOutput", - }); +/** @internal */ +export const RetrieveHrisEmployeeResponse$outboundSchema: z.ZodType< + RetrieveHrisEmployeeResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployeeResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisEmployeeOutput: components.UnifiedHrisEmployeeOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisEmployeeOutput: "UnifiedHrisEmployeeOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployeeResponse$ { + /** @deprecated use `RetrieveHrisEmployeeResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployeeResponse$inboundSchema; + /** @deprecated use `RetrieveHrisEmployeeResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployeeResponse$outboundSchema; + /** @deprecated use `RetrieveHrisEmployeeResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployeeResponse$Outbound; } diff --git a/src/models/operations/retrievehrisemployeepayrollrun.ts b/src/models/operations/retrievehrisemployeepayrollrun.ts index 6a3433d9..e5a5c65b 100644 --- a/src/models/operations/retrievehrisemployeepayrollrun.ts +++ b/src/models/operations/retrievehrisemployeepayrollrun.ts @@ -29,88 +29,114 @@ export type RetrieveHrisEmployeePayrollRunResponse = { }; /** @internal */ -export namespace RetrieveHrisEmployeePayrollRunRequest$ { - export const inboundSchema: z.ZodType< - RetrieveHrisEmployeePayrollRunRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisEmployeePayrollRunRequest$inboundSchema: z.ZodType< + RetrieveHrisEmployeePayrollRunRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployeePayrollRunRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisEmployeePayrollRunRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisEmployeePayrollRunRequest$outboundSchema: z.ZodType< + RetrieveHrisEmployeePayrollRunRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployeePayrollRunRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployeePayrollRunRequest$ { + /** @deprecated use `RetrieveHrisEmployeePayrollRunRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployeePayrollRunRequest$inboundSchema; + /** @deprecated use `RetrieveHrisEmployeePayrollRunRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployeePayrollRunRequest$outboundSchema; + /** @deprecated use `RetrieveHrisEmployeePayrollRunRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployeePayrollRunRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisEmployeePayrollRunResponse$ { - export const inboundSchema: z.ZodType< - RetrieveHrisEmployeePayrollRunResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisEmployeepayrollrunOutput: - components.UnifiedHrisEmployeepayrollrunOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisEmployeepayrollrunOutput: "unifiedHrisEmployeepayrollrunOutput", - }); +export const RetrieveHrisEmployeePayrollRunResponse$inboundSchema: z.ZodType< + RetrieveHrisEmployeePayrollRunResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisEmployeepayrollrunOutput: + components.UnifiedHrisEmployeepayrollrunOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisEmployeepayrollrunOutput: "unifiedHrisEmployeepayrollrunOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisEmployeepayrollrunOutput?: - | components.UnifiedHrisEmployeepayrollrunOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployeePayrollRunResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisEmployeepayrollrunOutput?: + | components.UnifiedHrisEmployeepayrollrunOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisEmployeePayrollRunResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisEmployeepayrollrunOutput: - components.UnifiedHrisEmployeepayrollrunOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisEmployeepayrollrunOutput: "UnifiedHrisEmployeepayrollrunOutput", - }); +/** @internal */ +export const RetrieveHrisEmployeePayrollRunResponse$outboundSchema: z.ZodType< + RetrieveHrisEmployeePayrollRunResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployeePayrollRunResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisEmployeepayrollrunOutput: + components.UnifiedHrisEmployeepayrollrunOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisEmployeepayrollrunOutput: "UnifiedHrisEmployeepayrollrunOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployeePayrollRunResponse$ { + /** @deprecated use `RetrieveHrisEmployeePayrollRunResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployeePayrollRunResponse$inboundSchema; + /** @deprecated use `RetrieveHrisEmployeePayrollRunResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployeePayrollRunResponse$outboundSchema; + /** @deprecated use `RetrieveHrisEmployeePayrollRunResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployeePayrollRunResponse$Outbound; } diff --git a/src/models/operations/retrievehrisemployerbenefit.ts b/src/models/operations/retrievehrisemployerbenefit.ts index 54340785..865a4f5a 100644 --- a/src/models/operations/retrievehrisemployerbenefit.ts +++ b/src/models/operations/retrievehrisemployerbenefit.ts @@ -27,88 +27,114 @@ export type RetrieveHrisEmployerBenefitResponse = { }; /** @internal */ -export namespace RetrieveHrisEmployerBenefitRequest$ { - export const inboundSchema: z.ZodType< - RetrieveHrisEmployerBenefitRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisEmployerBenefitRequest$inboundSchema: z.ZodType< + RetrieveHrisEmployerBenefitRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployerBenefitRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisEmployerBenefitRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisEmployerBenefitRequest$outboundSchema: z.ZodType< + RetrieveHrisEmployerBenefitRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployerBenefitRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployerBenefitRequest$ { + /** @deprecated use `RetrieveHrisEmployerBenefitRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployerBenefitRequest$inboundSchema; + /** @deprecated use `RetrieveHrisEmployerBenefitRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployerBenefitRequest$outboundSchema; + /** @deprecated use `RetrieveHrisEmployerBenefitRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployerBenefitRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisEmployerBenefitResponse$ { - export const inboundSchema: z.ZodType< - RetrieveHrisEmployerBenefitResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisEmployerbenefitOutput: - components.UnifiedHrisEmployerbenefitOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisEmployerbenefitOutput: "unifiedHrisEmployerbenefitOutput", - }); +export const RetrieveHrisEmployerBenefitResponse$inboundSchema: z.ZodType< + RetrieveHrisEmployerBenefitResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisEmployerbenefitOutput: + components.UnifiedHrisEmployerbenefitOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisEmployerbenefitOutput: "unifiedHrisEmployerbenefitOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisEmployerbenefitOutput?: - | components.UnifiedHrisEmployerbenefitOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveHrisEmployerBenefitResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisEmployerbenefitOutput?: + | components.UnifiedHrisEmployerbenefitOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisEmployerBenefitResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisEmployerbenefitOutput: - components.UnifiedHrisEmployerbenefitOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisEmployerbenefitOutput: "UnifiedHrisEmployerbenefitOutput", - }); +/** @internal */ +export const RetrieveHrisEmployerBenefitResponse$outboundSchema: z.ZodType< + RetrieveHrisEmployerBenefitResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisEmployerBenefitResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisEmployerbenefitOutput: + components.UnifiedHrisEmployerbenefitOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisEmployerbenefitOutput: "UnifiedHrisEmployerbenefitOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmployerBenefitResponse$ { + /** @deprecated use `RetrieveHrisEmployerBenefitResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmployerBenefitResponse$inboundSchema; + /** @deprecated use `RetrieveHrisEmployerBenefitResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmployerBenefitResponse$outboundSchema; + /** @deprecated use `RetrieveHrisEmployerBenefitResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisEmployerBenefitResponse$Outbound; } diff --git a/src/models/operations/retrievehrisemployment.ts b/src/models/operations/retrievehrisemployment.ts index ab4e03b0..c79132f8 100644 --- a/src/models/operations/retrievehrisemployment.ts +++ b/src/models/operations/retrievehrisemployment.ts @@ -27,72 +27,112 @@ export type RetrieveHrisEmploymentResponse = { }; /** @internal */ -export namespace RetrieveHrisEmploymentRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisEmploymentRequest$inboundSchema: z.ZodType< + RetrieveHrisEmploymentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisEmploymentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** @internal */ +export const RetrieveHrisEmploymentRequest$outboundSchema: z.ZodType< + RetrieveHrisEmploymentRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisEmploymentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmploymentRequest$ { + /** @deprecated use `RetrieveHrisEmploymentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmploymentRequest$inboundSchema; + /** @deprecated use `RetrieveHrisEmploymentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmploymentRequest$outboundSchema; + /** @deprecated use `RetrieveHrisEmploymentRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisEmploymentRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisEmploymentResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisEmploymentOutput: - components.UnifiedHrisEmploymentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisEmploymentOutput: "unifiedHrisEmploymentOutput", - }); +export const RetrieveHrisEmploymentResponse$inboundSchema: z.ZodType< + RetrieveHrisEmploymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisEmploymentOutput: + components.UnifiedHrisEmploymentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisEmploymentOutput: "unifiedHrisEmploymentOutput", }); + }); + +/** @internal */ +export type RetrieveHrisEmploymentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisEmploymentOutput?: components.UnifiedHrisEmploymentOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisEmploymentOutput?: components.UnifiedHrisEmploymentOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveHrisEmploymentResponse$outboundSchema: z.ZodType< + RetrieveHrisEmploymentResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisEmploymentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisEmploymentOutput: + components.UnifiedHrisEmploymentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisEmploymentOutput: "UnifiedHrisEmploymentOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisEmploymentOutput: - components.UnifiedHrisEmploymentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisEmploymentOutput: "UnifiedHrisEmploymentOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisEmploymentResponse$ { + /** @deprecated use `RetrieveHrisEmploymentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisEmploymentResponse$inboundSchema; + /** @deprecated use `RetrieveHrisEmploymentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisEmploymentResponse$outboundSchema; + /** @deprecated use `RetrieveHrisEmploymentResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisEmploymentResponse$Outbound; } diff --git a/src/models/operations/retrievehrisgroup.ts b/src/models/operations/retrievehrisgroup.ts index c7eb3760..8682270e 100644 --- a/src/models/operations/retrievehrisgroup.ts +++ b/src/models/operations/retrievehrisgroup.ts @@ -27,68 +27,110 @@ export type RetrieveHrisGroupResponse = { }; /** @internal */ -export namespace RetrieveHrisGroupRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisGroupRequest$inboundSchema: z.ZodType< + RetrieveHrisGroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisGroupRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisGroupRequest$outboundSchema: z.ZodType< + RetrieveHrisGroupRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisGroupRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisGroupRequest$ { + /** @deprecated use `RetrieveHrisGroupRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisGroupRequest$inboundSchema; + /** @deprecated use `RetrieveHrisGroupRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisGroupRequest$outboundSchema; + /** @deprecated use `RetrieveHrisGroupRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisGroupRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisGroupResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisGroupOutput: components.UnifiedHrisGroupOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisGroupOutput: "unifiedHrisGroupOutput", - }); +export const RetrieveHrisGroupResponse$inboundSchema: z.ZodType< + RetrieveHrisGroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisGroupOutput: components.UnifiedHrisGroupOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisGroupOutput: "unifiedHrisGroupOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisGroupOutput?: components.UnifiedHrisGroupOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisGroupOutput?: components.UnifiedHrisGroupOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisGroupOutput: components.UnifiedHrisGroupOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisGroupOutput: "UnifiedHrisGroupOutput", - }); +/** @internal */ +export const RetrieveHrisGroupResponse$outboundSchema: z.ZodType< + RetrieveHrisGroupResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisGroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisGroupOutput: components.UnifiedHrisGroupOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisGroupOutput: "UnifiedHrisGroupOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisGroupResponse$ { + /** @deprecated use `RetrieveHrisGroupResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisGroupResponse$inboundSchema; + /** @deprecated use `RetrieveHrisGroupResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisGroupResponse$outboundSchema; + /** @deprecated use `RetrieveHrisGroupResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisGroupResponse$Outbound; } diff --git a/src/models/operations/retrievehrislocation.ts b/src/models/operations/retrievehrislocation.ts index 42173118..efb1e8c1 100644 --- a/src/models/operations/retrievehrislocation.ts +++ b/src/models/operations/retrievehrislocation.ts @@ -27,70 +27,110 @@ export type RetrieveHrisLocationResponse = { }; /** @internal */ -export namespace RetrieveHrisLocationRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisLocationRequest$inboundSchema: z.ZodType< + RetrieveHrisLocationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisLocationRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisLocationRequest$outboundSchema: z.ZodType< + RetrieveHrisLocationRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisLocationRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisLocationRequest$ { + /** @deprecated use `RetrieveHrisLocationRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisLocationRequest$inboundSchema; + /** @deprecated use `RetrieveHrisLocationRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisLocationRequest$outboundSchema; + /** @deprecated use `RetrieveHrisLocationRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisLocationRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisLocationResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisLocationOutput: - components.UnifiedHrisLocationOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisLocationOutput: "unifiedHrisLocationOutput", - }); +export const RetrieveHrisLocationResponse$inboundSchema: z.ZodType< + RetrieveHrisLocationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisLocationOutput: components.UnifiedHrisLocationOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisLocationOutput: "unifiedHrisLocationOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisLocationOutput?: components.UnifiedHrisLocationOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisLocationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisLocationOutput?: components.UnifiedHrisLocationOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisLocationOutput: - components.UnifiedHrisLocationOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisLocationOutput: "UnifiedHrisLocationOutput", - }); +/** @internal */ +export const RetrieveHrisLocationResponse$outboundSchema: z.ZodType< + RetrieveHrisLocationResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisLocationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisLocationOutput: components.UnifiedHrisLocationOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisLocationOutput: "UnifiedHrisLocationOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisLocationResponse$ { + /** @deprecated use `RetrieveHrisLocationResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisLocationResponse$inboundSchema; + /** @deprecated use `RetrieveHrisLocationResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisLocationResponse$outboundSchema; + /** @deprecated use `RetrieveHrisLocationResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisLocationResponse$Outbound; } diff --git a/src/models/operations/retrievehrispaygroup.ts b/src/models/operations/retrievehrispaygroup.ts index c292a763..a7107166 100644 --- a/src/models/operations/retrievehrispaygroup.ts +++ b/src/models/operations/retrievehrispaygroup.ts @@ -27,70 +27,110 @@ export type RetrieveHrisPaygroupResponse = { }; /** @internal */ -export namespace RetrieveHrisPaygroupRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisPaygroupRequest$inboundSchema: z.ZodType< + RetrieveHrisPaygroupRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisPaygroupRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisPaygroupRequest$outboundSchema: z.ZodType< + RetrieveHrisPaygroupRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisPaygroupRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisPaygroupRequest$ { + /** @deprecated use `RetrieveHrisPaygroupRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisPaygroupRequest$inboundSchema; + /** @deprecated use `RetrieveHrisPaygroupRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisPaygroupRequest$outboundSchema; + /** @deprecated use `RetrieveHrisPaygroupRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisPaygroupRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisPaygroupResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisPaygroupOutput: - components.UnifiedHrisPaygroupOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisPaygroupOutput: "unifiedHrisPaygroupOutput", - }); +export const RetrieveHrisPaygroupResponse$inboundSchema: z.ZodType< + RetrieveHrisPaygroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisPaygroupOutput: components.UnifiedHrisPaygroupOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisPaygroupOutput: "unifiedHrisPaygroupOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisPaygroupOutput?: components.UnifiedHrisPaygroupOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisPaygroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisPaygroupOutput?: components.UnifiedHrisPaygroupOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisPaygroupOutput: - components.UnifiedHrisPaygroupOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisPaygroupOutput: "UnifiedHrisPaygroupOutput", - }); +/** @internal */ +export const RetrieveHrisPaygroupResponse$outboundSchema: z.ZodType< + RetrieveHrisPaygroupResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisPaygroupResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisPaygroupOutput: components.UnifiedHrisPaygroupOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisPaygroupOutput: "UnifiedHrisPaygroupOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisPaygroupResponse$ { + /** @deprecated use `RetrieveHrisPaygroupResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisPaygroupResponse$inboundSchema; + /** @deprecated use `RetrieveHrisPaygroupResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisPaygroupResponse$outboundSchema; + /** @deprecated use `RetrieveHrisPaygroupResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisPaygroupResponse$Outbound; } diff --git a/src/models/operations/retrievehristimeoff.ts b/src/models/operations/retrievehristimeoff.ts index ffef2539..e8db205d 100644 --- a/src/models/operations/retrievehristimeoff.ts +++ b/src/models/operations/retrievehristimeoff.ts @@ -27,69 +27,110 @@ export type RetrieveHrisTimeoffResponse = { }; /** @internal */ -export namespace RetrieveHrisTimeoffRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisTimeoffRequest$inboundSchema: z.ZodType< + RetrieveHrisTimeoffRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisTimeoffRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisTimeoffRequest$outboundSchema: z.ZodType< + RetrieveHrisTimeoffRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisTimeoffRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisTimeoffRequest$ { + /** @deprecated use `RetrieveHrisTimeoffRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisTimeoffRequest$inboundSchema; + /** @deprecated use `RetrieveHrisTimeoffRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisTimeoffRequest$outboundSchema; + /** @deprecated use `RetrieveHrisTimeoffRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisTimeoffRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisTimeoffResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisTimeoffOutput: "unifiedHrisTimeoffOutput", - }); +export const RetrieveHrisTimeoffResponse$inboundSchema: z.ZodType< + RetrieveHrisTimeoffResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisTimeoffOutput: "unifiedHrisTimeoffOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisTimeoffOutput?: components.UnifiedHrisTimeoffOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveHrisTimeoffResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisTimeoffOutput?: components.UnifiedHrisTimeoffOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisTimeoffOutput: - components.UnifiedHrisTimeoffOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisTimeoffOutput: "UnifiedHrisTimeoffOutput", - }); +/** @internal */ +export const RetrieveHrisTimeoffResponse$outboundSchema: z.ZodType< + RetrieveHrisTimeoffResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisTimeoffResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisTimeoffOutput: components.UnifiedHrisTimeoffOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisTimeoffOutput: "UnifiedHrisTimeoffOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisTimeoffResponse$ { + /** @deprecated use `RetrieveHrisTimeoffResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisTimeoffResponse$inboundSchema; + /** @deprecated use `RetrieveHrisTimeoffResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisTimeoffResponse$outboundSchema; + /** @deprecated use `RetrieveHrisTimeoffResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisTimeoffResponse$Outbound; } diff --git a/src/models/operations/retrievehristimeoffbalance.ts b/src/models/operations/retrievehristimeoffbalance.ts index b5a41019..1ed6c003 100644 --- a/src/models/operations/retrievehristimeoffbalance.ts +++ b/src/models/operations/retrievehristimeoffbalance.ts @@ -27,88 +27,114 @@ export type RetrieveHrisTimeoffbalanceResponse = { }; /** @internal */ -export namespace RetrieveHrisTimeoffbalanceRequest$ { - export const inboundSchema: z.ZodType< - RetrieveHrisTimeoffbalanceRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveHrisTimeoffbalanceRequest$inboundSchema: z.ZodType< + RetrieveHrisTimeoffbalanceRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveHrisTimeoffbalanceRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisTimeoffbalanceRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveHrisTimeoffbalanceRequest$outboundSchema: z.ZodType< + RetrieveHrisTimeoffbalanceRequest$Outbound, + z.ZodTypeDef, + RetrieveHrisTimeoffbalanceRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisTimeoffbalanceRequest$ { + /** @deprecated use `RetrieveHrisTimeoffbalanceRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisTimeoffbalanceRequest$inboundSchema; + /** @deprecated use `RetrieveHrisTimeoffbalanceRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisTimeoffbalanceRequest$outboundSchema; + /** @deprecated use `RetrieveHrisTimeoffbalanceRequest$Outbound` instead. */ + export type Outbound = RetrieveHrisTimeoffbalanceRequest$Outbound; } /** @internal */ -export namespace RetrieveHrisTimeoffbalanceResponse$ { - export const inboundSchema: z.ZodType< - RetrieveHrisTimeoffbalanceResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedHrisTimeoffbalanceOutput: - components.UnifiedHrisTimeoffbalanceOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedHrisTimeoffbalanceOutput: "unifiedHrisTimeoffbalanceOutput", - }); +export const RetrieveHrisTimeoffbalanceResponse$inboundSchema: z.ZodType< + RetrieveHrisTimeoffbalanceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedHrisTimeoffbalanceOutput: + components.UnifiedHrisTimeoffbalanceOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedHrisTimeoffbalanceOutput: "unifiedHrisTimeoffbalanceOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedHrisTimeoffbalanceOutput?: - | components.UnifiedHrisTimeoffbalanceOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveHrisTimeoffbalanceResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedHrisTimeoffbalanceOutput?: + | components.UnifiedHrisTimeoffbalanceOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveHrisTimeoffbalanceResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedHrisTimeoffbalanceOutput: - components.UnifiedHrisTimeoffbalanceOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedHrisTimeoffbalanceOutput: "UnifiedHrisTimeoffbalanceOutput", - }); +/** @internal */ +export const RetrieveHrisTimeoffbalanceResponse$outboundSchema: z.ZodType< + RetrieveHrisTimeoffbalanceResponse$Outbound, + z.ZodTypeDef, + RetrieveHrisTimeoffbalanceResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedHrisTimeoffbalanceOutput: + components.UnifiedHrisTimeoffbalanceOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedHrisTimeoffbalanceOutput: "UnifiedHrisTimeoffbalanceOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveHrisTimeoffbalanceResponse$ { + /** @deprecated use `RetrieveHrisTimeoffbalanceResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveHrisTimeoffbalanceResponse$inboundSchema; + /** @deprecated use `RetrieveHrisTimeoffbalanceResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveHrisTimeoffbalanceResponse$outboundSchema; + /** @deprecated use `RetrieveHrisTimeoffbalanceResponse$Outbound` instead. */ + export type Outbound = RetrieveHrisTimeoffbalanceResponse$Outbound; } diff --git a/src/models/operations/retrievelinkeduser.ts b/src/models/operations/retrievelinkeduser.ts index deb81ae5..cb205599 100644 --- a/src/models/operations/retrievelinkeduser.ts +++ b/src/models/operations/retrievelinkeduser.ts @@ -15,45 +15,85 @@ export type RetrieveLinkedUserResponse = { }; /** @internal */ -export namespace RetrieveLinkedUserRequest$ { - export const inboundSchema: z.ZodType = - z.object({ - id: z.string(), - }); +export const RetrieveLinkedUserRequest$inboundSchema: z.ZodType< + RetrieveLinkedUserRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); - export type Outbound = { - id: string; - }; +/** @internal */ +export type RetrieveLinkedUserRequest$Outbound = { + id: string; +}; - export const outboundSchema: z.ZodType = - z.object({ - id: z.string(), - }); +/** @internal */ +export const RetrieveLinkedUserRequest$outboundSchema: z.ZodType< + RetrieveLinkedUserRequest$Outbound, + z.ZodTypeDef, + RetrieveLinkedUserRequest +> = 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 RetrieveLinkedUserRequest$ { + /** @deprecated use `RetrieveLinkedUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveLinkedUserRequest$inboundSchema; + /** @deprecated use `RetrieveLinkedUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveLinkedUserRequest$outboundSchema; + /** @deprecated use `RetrieveLinkedUserRequest$Outbound` instead. */ + export type Outbound = RetrieveLinkedUserRequest$Outbound; } /** @internal */ -export namespace RetrieveLinkedUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); +export const RetrieveLinkedUserResponse$inboundSchema: z.ZodType< + RetrieveLinkedUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", }); + }); + +/** @internal */ +export type RetrieveLinkedUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +/** @internal */ +export const RetrieveLinkedUserResponse$outboundSchema: z.ZodType< + RetrieveLinkedUserResponse$Outbound, + z.ZodTypeDef, + RetrieveLinkedUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveLinkedUserResponse$ { + /** @deprecated use `RetrieveLinkedUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveLinkedUserResponse$inboundSchema; + /** @deprecated use `RetrieveLinkedUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveLinkedUserResponse$outboundSchema; + /** @deprecated use `RetrieveLinkedUserResponse$Outbound` instead. */ + export type Outbound = RetrieveLinkedUserResponse$Outbound; } diff --git a/src/models/operations/retrievemarketingautomationaction.ts b/src/models/operations/retrievemarketingautomationaction.ts index d0b6c9cf..0ffe1d43 100644 --- a/src/models/operations/retrievemarketingautomationaction.ts +++ b/src/models/operations/retrievemarketingautomationaction.ts @@ -29,88 +29,114 @@ export type RetrieveMarketingautomationActionResponse = { }; /** @internal */ -export namespace RetrieveMarketingautomationActionRequest$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationActionRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveMarketingautomationActionRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationActionRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationActionRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationActionRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveMarketingautomationActionRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationActionRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationActionRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationActionRequest$ { + /** @deprecated use `RetrieveMarketingautomationActionRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationActionRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationActionRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationActionRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationActionRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationActionRequest$Outbound; } /** @internal */ -export namespace RetrieveMarketingautomationActionResponse$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationActionResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedMarketingautomationActionOutput: - components.UnifiedMarketingautomationActionOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationActionOutput: "unifiedMarketingautomationActionOutput", - }); +export const RetrieveMarketingautomationActionResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationActionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationActionOutput: + components.UnifiedMarketingautomationActionOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationActionOutput: "unifiedMarketingautomationActionOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationActionOutput?: - | components.UnifiedMarketingautomationActionOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationActionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationActionOutput?: + | components.UnifiedMarketingautomationActionOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationActionResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedMarketingautomationActionOutput: - components.UnifiedMarketingautomationActionOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationActionOutput: "UnifiedMarketingautomationActionOutput", - }); +/** @internal */ +export const RetrieveMarketingautomationActionResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationActionResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationActionResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationActionOutput: + components.UnifiedMarketingautomationActionOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationActionOutput: "UnifiedMarketingautomationActionOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationActionResponse$ { + /** @deprecated use `RetrieveMarketingautomationActionResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationActionResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationActionResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationActionResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationActionResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationActionResponse$Outbound; } diff --git a/src/models/operations/retrievemarketingautomationautomation.ts b/src/models/operations/retrievemarketingautomationautomation.ts index 6ead9bf3..73722f59 100644 --- a/src/models/operations/retrievemarketingautomationautomation.ts +++ b/src/models/operations/retrievemarketingautomationautomation.ts @@ -29,90 +29,116 @@ export type RetrieveMarketingautomationAutomationResponse = { }; /** @internal */ -export namespace RetrieveMarketingautomationAutomationRequest$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationAutomationRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveMarketingautomationAutomationRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationAutomationRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationAutomationRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationAutomationRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveMarketingautomationAutomationRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationAutomationRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationAutomationRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationAutomationRequest$ { + /** @deprecated use `RetrieveMarketingautomationAutomationRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationAutomationRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationAutomationRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationAutomationRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationAutomationRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationAutomationRequest$Outbound; } /** @internal */ -export namespace RetrieveMarketingautomationAutomationResponse$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationAutomationResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, +export const RetrieveMarketingautomationAutomationResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationAutomationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationAutomationOutput: + components.UnifiedMarketingautomationAutomationOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", UnifiedMarketingautomationAutomationOutput: - components.UnifiedMarketingautomationAutomationOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedMarketingautomationAutomationOutput: - "unifiedMarketingautomationAutomationOutput", - }); + "unifiedMarketingautomationAutomationOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedMarketingautomationAutomationOutput?: - | components.UnifiedMarketingautomationAutomationOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationAutomationResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationAutomationOutput?: + | components.UnifiedMarketingautomationAutomationOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationAutomationResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, +/** @internal */ +export const RetrieveMarketingautomationAutomationResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationAutomationResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationAutomationResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationAutomationOutput: + components.UnifiedMarketingautomationAutomationOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", unifiedMarketingautomationAutomationOutput: - components.UnifiedMarketingautomationAutomationOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedMarketingautomationAutomationOutput: - "UnifiedMarketingautomationAutomationOutput", - }); + "UnifiedMarketingautomationAutomationOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationAutomationResponse$ { + /** @deprecated use `RetrieveMarketingautomationAutomationResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationAutomationResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationAutomationResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationAutomationResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationAutomationResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationAutomationResponse$Outbound; } diff --git a/src/models/operations/retrievemarketingautomationcampaign.ts b/src/models/operations/retrievemarketingautomationcampaign.ts index 80e94215..f26b9e17 100644 --- a/src/models/operations/retrievemarketingautomationcampaign.ts +++ b/src/models/operations/retrievemarketingautomationcampaign.ts @@ -27,84 +27,110 @@ export type RetrieveMarketingautomationCampaignResponse = { }; /** @internal */ -export namespace RetrieveMarketingautomationCampaignRequest$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationCampaignRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveMarketingautomationCampaignRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationCampaignRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationCampaignRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationCampaignRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveMarketingautomationCampaignRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationCampaignRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationCampaignRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationCampaignRequest$ { + /** @deprecated use `RetrieveMarketingautomationCampaignRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationCampaignRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationCampaignRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationCampaignRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationCampaignRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationCampaignRequest$Outbound; } /** @internal */ -export namespace RetrieveMarketingautomationCampaignResponse$ { - export const inboundSchema: z.ZodType< - RetrieveMarketingautomationCampaignResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedCampaignOutput: components.UnifiedCampaignOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedCampaignOutput: "unifiedCampaignOutput", - }); +export const RetrieveMarketingautomationCampaignResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationCampaignResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedCampaignOutput: components.UnifiedCampaignOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedCampaignOutput: "unifiedCampaignOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedCampaignOutput?: components.UnifiedCampaignOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveMarketingautomationCampaignResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedCampaignOutput?: components.UnifiedCampaignOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveMarketingautomationCampaignResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedCampaignOutput: components.UnifiedCampaignOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedCampaignOutput: "UnifiedCampaignOutput", - }); +/** @internal */ +export const RetrieveMarketingautomationCampaignResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationCampaignResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationCampaignResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedCampaignOutput: components.UnifiedCampaignOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedCampaignOutput: "UnifiedCampaignOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationCampaignResponse$ { + /** @deprecated use `RetrieveMarketingautomationCampaignResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationCampaignResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationCampaignResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationCampaignResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationCampaignResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationCampaignResponse$Outbound; } diff --git a/src/models/operations/retrievemarketingautomationcontact.ts b/src/models/operations/retrievemarketingautomationcontact.ts new file mode 100644 index 00000000..a6769ea5 --- /dev/null +++ b/src/models/operations/retrievemarketingautomationcontact.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingAutomationContactRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the contact you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingAutomationContactResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationContactOutput?: + | components.UnifiedMarketingautomationContactOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationContactRequest$inboundSchema: z.ZodType< + RetrieveMarketingAutomationContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingAutomationContactRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationContactRequest$outboundSchema: z.ZodType< + RetrieveMarketingAutomationContactRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingAutomationContactRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingAutomationContactRequest$ { + /** @deprecated use `RetrieveMarketingAutomationContactRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingAutomationContactRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingAutomationContactRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingAutomationContactRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingAutomationContactRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingAutomationContactRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingAutomationContactResponse$inboundSchema: z.ZodType< + RetrieveMarketingAutomationContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationContactOutput: + components.UnifiedMarketingautomationContactOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationContactOutput: "unifiedMarketingautomationContactOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingAutomationContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationContactOutput?: + | components.UnifiedMarketingautomationContactOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationContactResponse$outboundSchema: z.ZodType< + RetrieveMarketingAutomationContactResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingAutomationContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationContactOutput: + components.UnifiedMarketingautomationContactOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationContactOutput: "UnifiedMarketingautomationContactOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingAutomationContactResponse$ { + /** @deprecated use `RetrieveMarketingAutomationContactResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingAutomationContactResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingAutomationContactResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingAutomationContactResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingAutomationContactResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingAutomationContactResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationemail.ts b/src/models/operations/retrievemarketingautomationemail.ts new file mode 100644 index 00000000..93c8272f --- /dev/null +++ b/src/models/operations/retrievemarketingautomationemail.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingautomationEmailRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the email you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingautomationEmailResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationEmailOutput?: + | components.UnifiedMarketingautomationEmailOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEmailRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationEmailRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationEmailRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEmailRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationEmailRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationEmailRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationEmailRequest$ { + /** @deprecated use `RetrieveMarketingautomationEmailRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationEmailRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationEmailRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationEmailRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationEmailRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationEmailRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingautomationEmailResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationEmailResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationEmailOutput: + components.UnifiedMarketingautomationEmailOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationEmailOutput: "unifiedMarketingautomationEmailOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationEmailResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationEmailOutput?: + | components.UnifiedMarketingautomationEmailOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEmailResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationEmailResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationEmailResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationEmailOutput: + components.UnifiedMarketingautomationEmailOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationEmailOutput: "UnifiedMarketingautomationEmailOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationEmailResponse$ { + /** @deprecated use `RetrieveMarketingautomationEmailResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationEmailResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationEmailResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationEmailResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationEmailResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationEmailResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationevent.ts b/src/models/operations/retrievemarketingautomationevent.ts new file mode 100644 index 00000000..4c146ba8 --- /dev/null +++ b/src/models/operations/retrievemarketingautomationevent.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingautomationEventRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the event you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingautomationEventResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationEventOutput?: + | components.UnifiedMarketingautomationEventOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEventRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationEventRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationEventRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEventRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationEventRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationEventRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationEventRequest$ { + /** @deprecated use `RetrieveMarketingautomationEventRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationEventRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationEventRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationEventRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationEventRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationEventRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingautomationEventResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationEventResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationEventOutput: + components.UnifiedMarketingautomationEventOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationEventOutput: "unifiedMarketingautomationEventOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationEventResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationEventOutput?: + | components.UnifiedMarketingautomationEventOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationEventResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationEventResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationEventResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationEventOutput: + components.UnifiedMarketingautomationEventOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationEventOutput: "UnifiedMarketingautomationEventOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationEventResponse$ { + /** @deprecated use `RetrieveMarketingautomationEventResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationEventResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationEventResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationEventResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationEventResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationEventResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationlist.ts b/src/models/operations/retrievemarketingautomationlist.ts new file mode 100644 index 00000000..b35aab0d --- /dev/null +++ b/src/models/operations/retrievemarketingautomationlist.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingautomationListRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the list you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingautomationListResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationListOutput?: + | components.UnifiedMarketingautomationListOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationListRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationListRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationListRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationListRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationListRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationListRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationListRequest$ { + /** @deprecated use `RetrieveMarketingautomationListRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationListRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationListRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationListRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationListRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationListRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingautomationListResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationListResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationListOutput: + components.UnifiedMarketingautomationListOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationListOutput: "unifiedMarketingautomationListOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationListResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationListOutput?: + | components.UnifiedMarketingautomationListOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationListResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationListResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationListResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationListOutput: + components.UnifiedMarketingautomationListOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationListOutput: "UnifiedMarketingautomationListOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationListResponse$ { + /** @deprecated use `RetrieveMarketingautomationListResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationListResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationListResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationListResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationListResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationListResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationmessage.ts b/src/models/operations/retrievemarketingautomationmessage.ts new file mode 100644 index 00000000..83cc3f16 --- /dev/null +++ b/src/models/operations/retrievemarketingautomationmessage.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingautomationMessageRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the message you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingautomationMessageResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationMessageOutput?: + | components.UnifiedMarketingautomationMessageOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationMessageRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationMessageRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationMessageRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationMessageRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationMessageRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationMessageRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationMessageRequest$ { + /** @deprecated use `RetrieveMarketingautomationMessageRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationMessageRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationMessageRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationMessageRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationMessageRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationMessageRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingautomationMessageResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationMessageResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationMessageOutput: + components.UnifiedMarketingautomationMessageOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationMessageOutput: "unifiedMarketingautomationMessageOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationMessageResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationMessageOutput?: + | components.UnifiedMarketingautomationMessageOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationMessageResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationMessageResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationMessageResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationMessageOutput: + components.UnifiedMarketingautomationMessageOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationMessageOutput: "UnifiedMarketingautomationMessageOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationMessageResponse$ { + /** @deprecated use `RetrieveMarketingautomationMessageResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationMessageResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationMessageResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationMessageResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationMessageResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationMessageResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationtemplate.ts b/src/models/operations/retrievemarketingautomationtemplate.ts new file mode 100644 index 00000000..88b162de --- /dev/null +++ b/src/models/operations/retrievemarketingautomationtemplate.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingautomationTemplateRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the template you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingautomationTemplateResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationTemplateOutput?: + | components.UnifiedMarketingautomationTemplateOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationTemplateRequest$inboundSchema: z.ZodType< + RetrieveMarketingautomationTemplateRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationTemplateRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationTemplateRequest$outboundSchema: z.ZodType< + RetrieveMarketingautomationTemplateRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationTemplateRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationTemplateRequest$ { + /** @deprecated use `RetrieveMarketingautomationTemplateRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationTemplateRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationTemplateRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationTemplateRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationTemplateRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationTemplateRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingautomationTemplateResponse$inboundSchema: z.ZodType< + RetrieveMarketingautomationTemplateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationTemplateOutput: + components.UnifiedMarketingautomationTemplateOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationTemplateOutput: "unifiedMarketingautomationTemplateOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingautomationTemplateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationTemplateOutput?: + | components.UnifiedMarketingautomationTemplateOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingautomationTemplateResponse$outboundSchema: z.ZodType< + RetrieveMarketingautomationTemplateResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingautomationTemplateResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationTemplateOutput: + components.UnifiedMarketingautomationTemplateOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationTemplateOutput: "UnifiedMarketingautomationTemplateOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingautomationTemplateResponse$ { + /** @deprecated use `RetrieveMarketingautomationTemplateResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingautomationTemplateResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingautomationTemplateResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingautomationTemplateResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingautomationTemplateResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingautomationTemplateResponse$Outbound; +} diff --git a/src/models/operations/retrievemarketingautomationuser.ts b/src/models/operations/retrievemarketingautomationuser.ts new file mode 100644 index 00000000..05018e08 --- /dev/null +++ b/src/models/operations/retrievemarketingautomationuser.ts @@ -0,0 +1,142 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type RetrieveMarketingAutomationUserRequest = { + /** + * The connection token + */ + xConnectionToken: string; + /** + * id of the user you want to retrieve. + */ + id: string; + /** + * Set to true to include data from the original Marketingautomation software. + */ + remoteData?: boolean | undefined; +}; + +export type RetrieveMarketingAutomationUserResponse = { + httpMeta: components.HTTPMetadata; + unifiedMarketingautomationUserOutput?: + | components.UnifiedMarketingautomationUserOutput + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationUserRequest$inboundSchema: z.ZodType< + RetrieveMarketingAutomationUserRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveMarketingAutomationUserRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationUserRequest$outboundSchema: z.ZodType< + RetrieveMarketingAutomationUserRequest$Outbound, + z.ZodTypeDef, + RetrieveMarketingAutomationUserRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingAutomationUserRequest$ { + /** @deprecated use `RetrieveMarketingAutomationUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingAutomationUserRequest$inboundSchema; + /** @deprecated use `RetrieveMarketingAutomationUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingAutomationUserRequest$outboundSchema; + /** @deprecated use `RetrieveMarketingAutomationUserRequest$Outbound` instead. */ + export type Outbound = RetrieveMarketingAutomationUserRequest$Outbound; +} + +/** @internal */ +export const RetrieveMarketingAutomationUserResponse$inboundSchema: z.ZodType< + RetrieveMarketingAutomationUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedMarketingautomationUserOutput: + components.UnifiedMarketingautomationUserOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedMarketingautomationUserOutput: "unifiedMarketingautomationUserOutput", + }); + }); + +/** @internal */ +export type RetrieveMarketingAutomationUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedMarketingautomationUserOutput?: + | components.UnifiedMarketingautomationUserOutput$Outbound + | undefined; +}; + +/** @internal */ +export const RetrieveMarketingAutomationUserResponse$outboundSchema: z.ZodType< + RetrieveMarketingAutomationUserResponse$Outbound, + z.ZodTypeDef, + RetrieveMarketingAutomationUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedMarketingautomationUserOutput: + components.UnifiedMarketingautomationUserOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedMarketingautomationUserOutput: "UnifiedMarketingautomationUserOutput", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveMarketingAutomationUserResponse$ { + /** @deprecated use `RetrieveMarketingAutomationUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveMarketingAutomationUserResponse$inboundSchema; + /** @deprecated use `RetrieveMarketingAutomationUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveMarketingAutomationUserResponse$outboundSchema; + /** @deprecated use `RetrieveMarketingAutomationUserResponse$Outbound` instead. */ + export type Outbound = RetrieveMarketingAutomationUserResponse$Outbound; +} diff --git a/src/models/operations/retrieveticketingaccount.ts b/src/models/operations/retrieveticketingaccount.ts index 0913cfb0..346efe66 100644 --- a/src/models/operations/retrieveticketingaccount.ts +++ b/src/models/operations/retrieveticketingaccount.ts @@ -27,82 +27,112 @@ export type RetrieveTicketingAccountResponse = { }; /** @internal */ -export namespace RetrieveTicketingAccountRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); +export const RetrieveTicketingAccountRequest$inboundSchema: z.ZodType< + RetrieveTicketingAccountRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingAccountRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingAccountRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveTicketingAccountRequest$outboundSchema: z.ZodType< + RetrieveTicketingAccountRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingAccountRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingAccountRequest$ { + /** @deprecated use `RetrieveTicketingAccountRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingAccountRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingAccountRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingAccountRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingAccountRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingAccountRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingAccountResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingAccountOutput: - components.UnifiedTicketingAccountOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingAccountOutput: "unifiedTicketingAccountOutput", - }); - }); +export const RetrieveTicketingAccountResponse$inboundSchema: z.ZodType< + RetrieveTicketingAccountResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingAccountOutput: + components.UnifiedTicketingAccountOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingAccountOutput: "unifiedTicketingAccountOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingAccountOutput?: - | components.UnifiedTicketingAccountOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveTicketingAccountResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingAccountOutput?: components.UnifiedTicketingAccountOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingAccountResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingAccountOutput: - components.UnifiedTicketingAccountOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingAccountOutput: "UnifiedTicketingAccountOutput", - }); +/** @internal */ +export const RetrieveTicketingAccountResponse$outboundSchema: z.ZodType< + RetrieveTicketingAccountResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingAccountResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingAccountOutput: + components.UnifiedTicketingAccountOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingAccountOutput: "UnifiedTicketingAccountOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingAccountResponse$ { + /** @deprecated use `RetrieveTicketingAccountResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingAccountResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingAccountResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingAccountResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingAccountResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingAccountResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingattachment.ts b/src/models/operations/retrieveticketingattachment.ts index b41c9a19..4177bddb 100644 --- a/src/models/operations/retrieveticketingattachment.ts +++ b/src/models/operations/retrieveticketingattachment.ts @@ -27,88 +27,114 @@ export type RetrieveTicketingAttachmentResponse = { }; /** @internal */ -export namespace RetrieveTicketingAttachmentRequest$ { - export const inboundSchema: z.ZodType< - RetrieveTicketingAttachmentRequest, - z.ZodTypeDef, - unknown - > = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveTicketingAttachmentRequest$inboundSchema: z.ZodType< + RetrieveTicketingAttachmentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingAttachmentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingAttachmentRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveTicketingAttachmentRequest$outboundSchema: z.ZodType< + RetrieveTicketingAttachmentRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingAttachmentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingAttachmentRequest$ { + /** @deprecated use `RetrieveTicketingAttachmentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingAttachmentRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingAttachmentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingAttachmentRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingAttachmentRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingAttachmentRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingAttachmentResponse$ { - export const inboundSchema: z.ZodType< - RetrieveTicketingAttachmentResponse, - z.ZodTypeDef, - unknown - > = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingAttachmentOutput: - components.UnifiedTicketingAttachmentOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingAttachmentOutput: "unifiedTicketingAttachmentOutput", - }); +export const RetrieveTicketingAttachmentResponse$inboundSchema: z.ZodType< + RetrieveTicketingAttachmentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingAttachmentOutput: + components.UnifiedTicketingAttachmentOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingAttachmentOutput: "unifiedTicketingAttachmentOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingAttachmentOutput?: - | components.UnifiedTicketingAttachmentOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveTicketingAttachmentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingAttachmentOutput?: + | components.UnifiedTicketingAttachmentOutput$Outbound + | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingAttachmentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingAttachmentOutput: - components.UnifiedTicketingAttachmentOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingAttachmentOutput: "UnifiedTicketingAttachmentOutput", - }); +/** @internal */ +export const RetrieveTicketingAttachmentResponse$outboundSchema: z.ZodType< + RetrieveTicketingAttachmentResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingAttachmentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingAttachmentOutput: + components.UnifiedTicketingAttachmentOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingAttachmentOutput: "UnifiedTicketingAttachmentOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingAttachmentResponse$ { + /** @deprecated use `RetrieveTicketingAttachmentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingAttachmentResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingAttachmentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingAttachmentResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingAttachmentResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingAttachmentResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingcomment.ts b/src/models/operations/retrieveticketingcomment.ts index 1f903683..00953851 100644 --- a/src/models/operations/retrieveticketingcomment.ts +++ b/src/models/operations/retrieveticketingcomment.ts @@ -33,121 +33,164 @@ export type RetrieveTicketingCommentResponse = { }; /** @internal */ -export namespace RetrieveTicketingCommentRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingCommentRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const RetrieveTicketingCommentRequest$inboundSchema: z.ZodType< + RetrieveTicketingCommentRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveTicketingCommentRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveTicketingCommentRequest$outboundSchema: z.ZodType< + RetrieveTicketingCommentRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingCommentRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingCommentRequest$ { + /** @deprecated use `RetrieveTicketingCommentRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingCommentRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingCommentRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingCommentRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingCommentRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingCommentRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingCommentResponseBody$ { - export const inboundSchema: z.ZodType< - RetrieveTicketingCommentResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingCommentOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const RetrieveTicketingCommentResponseBody$inboundSchema: z.ZodType< + RetrieveTicketingCommentResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingCommentOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type RetrieveTicketingCommentResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingCommentResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingCommentOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const RetrieveTicketingCommentResponseBody$outboundSchema: z.ZodType< + RetrieveTicketingCommentResponseBody$Outbound, + z.ZodTypeDef, + RetrieveTicketingCommentResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingCommentOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingCommentResponseBody$ { + /** @deprecated use `RetrieveTicketingCommentResponseBody$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingCommentResponseBody$inboundSchema; + /** @deprecated use `RetrieveTicketingCommentResponseBody$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingCommentResponseBody$outboundSchema; + /** @deprecated use `RetrieveTicketingCommentResponseBody$Outbound` instead. */ + export type Outbound = RetrieveTicketingCommentResponseBody$Outbound; } /** @internal */ -export namespace RetrieveTicketingCommentResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => RetrieveTicketingCommentResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: RetrieveTicketingCommentResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingCommentResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => RetrieveTicketingCommentResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const RetrieveTicketingCommentResponse$inboundSchema: z.ZodType< + RetrieveTicketingCommentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => RetrieveTicketingCommentResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type RetrieveTicketingCommentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: RetrieveTicketingCommentResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveTicketingCommentResponse$outboundSchema: z.ZodType< + RetrieveTicketingCommentResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingCommentResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => RetrieveTicketingCommentResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingCommentResponse$ { + /** @deprecated use `RetrieveTicketingCommentResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingCommentResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingCommentResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingCommentResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingCommentResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingCommentResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingcontact.ts b/src/models/operations/retrieveticketingcontact.ts index e729b350..f0bd8c01 100644 --- a/src/models/operations/retrieveticketingcontact.ts +++ b/src/models/operations/retrieveticketingcontact.ts @@ -33,121 +33,164 @@ export type RetrieveTicketingContactResponse = { }; /** @internal */ -export namespace RetrieveTicketingContactRequest$ { - export const inboundSchema: z.ZodType = - z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); - }); - - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingContactRequest - > = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +export const RetrieveTicketingContactRequest$inboundSchema: z.ZodType< + RetrieveTicketingContactRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", + }); + }); + +/** @internal */ +export type RetrieveTicketingContactRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; + +/** @internal */ +export const RetrieveTicketingContactRequest$outboundSchema: z.ZodType< + RetrieveTicketingContactRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingContactRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingContactRequest$ { + /** @deprecated use `RetrieveTicketingContactRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingContactRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingContactRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingContactRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingContactRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingContactRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingContactResponseBody$ { - export const inboundSchema: z.ZodType< - RetrieveTicketingContactResponseBody, - z.ZodTypeDef, - unknown - > = z - .object({ - prev_cursor: z.string(), - next_cursor: z.string(), - data: z.array(components.UnifiedTicketingContactOutput$.inboundSchema), - }) - .transform((v) => { - return remap$(v, { - prev_cursor: "prevCursor", - next_cursor: "nextCursor", - }); +export const RetrieveTicketingContactResponseBody$inboundSchema: z.ZodType< + RetrieveTicketingContactResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + prev_cursor: z.string(), + next_cursor: z.string(), + data: z.array(components.UnifiedTicketingContactOutput$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + prev_cursor: "prevCursor", + next_cursor: "nextCursor", }); + }); + +/** @internal */ +export type RetrieveTicketingContactResponseBody$Outbound = { + prev_cursor: string; + next_cursor: string; + data: Array; +}; - export type Outbound = { - prev_cursor: string; - next_cursor: string; - data: Array; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingContactResponseBody - > = z - .object({ - prevCursor: z.string(), - nextCursor: z.string(), - data: z.array(components.UnifiedTicketingContactOutput$.outboundSchema), - }) - .transform((v) => { - return remap$(v, { - prevCursor: "prev_cursor", - nextCursor: "next_cursor", - }); +/** @internal */ +export const RetrieveTicketingContactResponseBody$outboundSchema: z.ZodType< + RetrieveTicketingContactResponseBody$Outbound, + z.ZodTypeDef, + RetrieveTicketingContactResponseBody +> = z + .object({ + prevCursor: z.string(), + nextCursor: z.string(), + data: z.array(components.UnifiedTicketingContactOutput$outboundSchema), + }) + .transform((v) => { + return remap$(v, { + prevCursor: "prev_cursor", + nextCursor: "next_cursor", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingContactResponseBody$ { + /** @deprecated use `RetrieveTicketingContactResponseBody$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingContactResponseBody$inboundSchema; + /** @deprecated use `RetrieveTicketingContactResponseBody$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingContactResponseBody$outboundSchema; + /** @deprecated use `RetrieveTicketingContactResponseBody$Outbound` instead. */ + export type Outbound = RetrieveTicketingContactResponseBody$Outbound; } /** @internal */ -export namespace RetrieveTicketingContactResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - object: z - .lazy(() => RetrieveTicketingContactResponseBody$.inboundSchema) - .optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - object?: RetrieveTicketingContactResponseBody$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingContactResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - object: z.lazy(() => RetrieveTicketingContactResponseBody$.outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - }); +export const RetrieveTicketingContactResponse$inboundSchema: z.ZodType< + RetrieveTicketingContactResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => RetrieveTicketingContactResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type RetrieveTicketingContactResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: RetrieveTicketingContactResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const RetrieveTicketingContactResponse$outboundSchema: z.ZodType< + RetrieveTicketingContactResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingContactResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => RetrieveTicketingContactResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingContactResponse$ { + /** @deprecated use `RetrieveTicketingContactResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingContactResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingContactResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingContactResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingContactResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingContactResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingtag.ts b/src/models/operations/retrieveticketingtag.ts index c0a13568..702041a2 100644 --- a/src/models/operations/retrieveticketingtag.ts +++ b/src/models/operations/retrieveticketingtag.ts @@ -27,70 +27,110 @@ export type RetrieveTicketingTagResponse = { }; /** @internal */ -export namespace RetrieveTicketingTagRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveTicketingTagRequest$inboundSchema: z.ZodType< + RetrieveTicketingTagRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingTagRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveTicketingTagRequest$outboundSchema: z.ZodType< + RetrieveTicketingTagRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingTagRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTagRequest$ { + /** @deprecated use `RetrieveTicketingTagRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTagRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingTagRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTagRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingTagRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingTagRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingTagResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingTagOutput: - components.UnifiedTicketingTagOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingTagOutput: "unifiedTicketingTagOutput", - }); +export const RetrieveTicketingTagResponse$inboundSchema: z.ZodType< + RetrieveTicketingTagResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingTagOutput: components.UnifiedTicketingTagOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingTagOutput: "unifiedTicketingTagOutput", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingTagOutput?: components.UnifiedTicketingTagOutput$.Outbound | undefined; - }; +/** @internal */ +export type RetrieveTicketingTagResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingTagOutput?: components.UnifiedTicketingTagOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingTagOutput: - components.UnifiedTicketingTagOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingTagOutput: "UnifiedTicketingTagOutput", - }); +/** @internal */ +export const RetrieveTicketingTagResponse$outboundSchema: z.ZodType< + RetrieveTicketingTagResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingTagResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingTagOutput: components.UnifiedTicketingTagOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingTagOutput: "UnifiedTicketingTagOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTagResponse$ { + /** @deprecated use `RetrieveTicketingTagResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTagResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingTagResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTagResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingTagResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingTagResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingteam.ts b/src/models/operations/retrieveticketingteam.ts index 215912fb..93c0884f 100644 --- a/src/models/operations/retrieveticketingteam.ts +++ b/src/models/operations/retrieveticketingteam.ts @@ -27,71 +27,110 @@ export type RetrieveTicketingTeamResponse = { }; /** @internal */ -export namespace RetrieveTicketingTeamRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveTicketingTeamRequest$inboundSchema: z.ZodType< + RetrieveTicketingTeamRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingTeamRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveTicketingTeamRequest$outboundSchema: z.ZodType< + RetrieveTicketingTeamRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingTeamRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTeamRequest$ { + /** @deprecated use `RetrieveTicketingTeamRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTeamRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingTeamRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTeamRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingTeamRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingTeamRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingTeamResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingTeamOutput: - components.UnifiedTicketingTeamOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingTeamOutput: "unifiedTicketingTeamOutput", - }); +export const RetrieveTicketingTeamResponse$inboundSchema: z.ZodType< + RetrieveTicketingTeamResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingTeamOutput: components.UnifiedTicketingTeamOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingTeamOutput: "unifiedTicketingTeamOutput", }); + }); + +/** @internal */ +export type RetrieveTicketingTeamResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingTeamOutput?: components.UnifiedTicketingTeamOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingTeamOutput?: components.UnifiedTicketingTeamOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveTicketingTeamResponse$outboundSchema: z.ZodType< + RetrieveTicketingTeamResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingTeamResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingTeamOutput: components.UnifiedTicketingTeamOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingTeamOutput: "UnifiedTicketingTeamOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingTeamOutput: - components.UnifiedTicketingTeamOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingTeamOutput: "UnifiedTicketingTeamOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTeamResponse$ { + /** @deprecated use `RetrieveTicketingTeamResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTeamResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingTeamResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTeamResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingTeamResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingTeamResponse$Outbound; } diff --git a/src/models/operations/retrieveticketingticket.ts b/src/models/operations/retrieveticketingticket.ts index c007bd96..6380e889 100644 --- a/src/models/operations/retrieveticketingticket.ts +++ b/src/models/operations/retrieveticketingticket.ts @@ -27,78 +27,112 @@ export type RetrieveTicketingTicketResponse = { }; /** @internal */ -export namespace RetrieveTicketingTicketRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveTicketingTicketRequest$inboundSchema: z.ZodType< + RetrieveTicketingTicketRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingTicketRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = - z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); - }); +/** @internal */ +export const RetrieveTicketingTicketRequest$outboundSchema: z.ZodType< + RetrieveTicketingTicketRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingTicketRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTicketRequest$ { + /** @deprecated use `RetrieveTicketingTicketRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTicketRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingTicketRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTicketRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingTicketRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingTicketRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingTicketResponse$ { - export const inboundSchema: z.ZodType = - z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingTicketOutput: - components.UnifiedTicketingTicketOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingTicketOutput: "unifiedTicketingTicketOutput", - }); - }); +export const RetrieveTicketingTicketResponse$inboundSchema: z.ZodType< + RetrieveTicketingTicketResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingTicketOutput: + components.UnifiedTicketingTicketOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingTicketOutput: "unifiedTicketingTicketOutput", + }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingTicketOutput?: - | components.UnifiedTicketingTicketOutput$.Outbound - | undefined; - }; +/** @internal */ +export type RetrieveTicketingTicketResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingTicketOutput?: components.UnifiedTicketingTicketOutput$Outbound | undefined; +}; - export const outboundSchema: z.ZodType< - Outbound, - z.ZodTypeDef, - RetrieveTicketingTicketResponse - > = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingTicketOutput: - components.UnifiedTicketingTicketOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingTicketOutput: "UnifiedTicketingTicketOutput", - }); +/** @internal */ +export const RetrieveTicketingTicketResponse$outboundSchema: z.ZodType< + RetrieveTicketingTicketResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingTicketResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingTicketOutput: + components.UnifiedTicketingTicketOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingTicketOutput: "UnifiedTicketingTicketOutput", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingTicketResponse$ { + /** @deprecated use `RetrieveTicketingTicketResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingTicketResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingTicketResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingTicketResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingTicketResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingTicketResponse$Outbound; } diff --git a/src/models/operations/retrieveticketinguser.ts b/src/models/operations/retrieveticketinguser.ts index a2c91c6c..df50f54b 100644 --- a/src/models/operations/retrieveticketinguser.ts +++ b/src/models/operations/retrieveticketinguser.ts @@ -27,71 +27,110 @@ export type RetrieveTicketingUserResponse = { }; /** @internal */ -export namespace RetrieveTicketingUserRequest$ { - export const inboundSchema: z.ZodType = z - .object({ - "x-connection-token": z.string(), - id: z.string(), - remote_data: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - remote_data: "remoteData", - }); +export const RetrieveTicketingUserRequest$inboundSchema: z.ZodType< + RetrieveTicketingUserRequest, + z.ZodTypeDef, + unknown +> = z + .object({ + "x-connection-token": z.string(), + id: z.string(), + remote_data: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + "x-connection-token": "xConnectionToken", + remote_data: "remoteData", }); + }); - export type Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; - }; +/** @internal */ +export type RetrieveTicketingUserRequest$Outbound = { + "x-connection-token": string; + id: string; + remote_data?: boolean | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - xConnectionToken: z.string(), - id: z.string(), - remoteData: z.boolean().optional(), - }) - .transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - }); +/** @internal */ +export const RetrieveTicketingUserRequest$outboundSchema: z.ZodType< + RetrieveTicketingUserRequest$Outbound, + z.ZodTypeDef, + RetrieveTicketingUserRequest +> = z + .object({ + xConnectionToken: z.string(), + id: z.string(), + remoteData: z.boolean().optional(), + }) + .transform((v) => { + return remap$(v, { + xConnectionToken: "x-connection-token", + remoteData: "remote_data", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingUserRequest$ { + /** @deprecated use `RetrieveTicketingUserRequest$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingUserRequest$inboundSchema; + /** @deprecated use `RetrieveTicketingUserRequest$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingUserRequest$outboundSchema; + /** @deprecated use `RetrieveTicketingUserRequest$Outbound` instead. */ + export type Outbound = RetrieveTicketingUserRequest$Outbound; } /** @internal */ -export namespace RetrieveTicketingUserResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - UnifiedTicketingUserOutput: - components.UnifiedTicketingUserOutput$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - UnifiedTicketingUserOutput: "unifiedTicketingUserOutput", - }); +export const RetrieveTicketingUserResponse$inboundSchema: z.ZodType< + RetrieveTicketingUserResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UnifiedTicketingUserOutput: components.UnifiedTicketingUserOutput$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + UnifiedTicketingUserOutput: "unifiedTicketingUserOutput", }); + }); + +/** @internal */ +export type RetrieveTicketingUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UnifiedTicketingUserOutput?: components.UnifiedTicketingUserOutput$Outbound | undefined; +}; - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - UnifiedTicketingUserOutput?: components.UnifiedTicketingUserOutput$.Outbound | undefined; - }; +/** @internal */ +export const RetrieveTicketingUserResponse$outboundSchema: z.ZodType< + RetrieveTicketingUserResponse$Outbound, + z.ZodTypeDef, + RetrieveTicketingUserResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + unifiedTicketingUserOutput: components.UnifiedTicketingUserOutput$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + unifiedTicketingUserOutput: "UnifiedTicketingUserOutput", + }); + }); - export const outboundSchema: z.ZodType = - z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - unifiedTicketingUserOutput: - components.UnifiedTicketingUserOutput$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unifiedTicketingUserOutput: "UnifiedTicketingUserOutput", - }); - }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RetrieveTicketingUserResponse$ { + /** @deprecated use `RetrieveTicketingUserResponse$inboundSchema` instead. */ + export const inboundSchema = RetrieveTicketingUserResponse$inboundSchema; + /** @deprecated use `RetrieveTicketingUserResponse$outboundSchema` instead. */ + export const outboundSchema = RetrieveTicketingUserResponse$outboundSchema; + /** @deprecated use `RetrieveTicketingUserResponse$Outbound` instead. */ + export type Outbound = RetrieveTicketingUserResponse$Outbound; } diff --git a/src/models/operations/status.ts b/src/models/operations/status.ts new file mode 100644 index 00000000..8ae9c0fc --- /dev/null +++ b/src/models/operations/status.ts @@ -0,0 +1,92 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type StatusRequest = { + vertical: string; +}; + +export type StatusResponse = { + httpMeta: components.HTTPMetadata; +}; + +/** @internal */ +export const StatusRequest$inboundSchema: z.ZodType = + z.object({ + vertical: z.string(), + }); + +/** @internal */ +export type StatusRequest$Outbound = { + vertical: string; +}; + +/** @internal */ +export const StatusRequest$outboundSchema: z.ZodType< + StatusRequest$Outbound, + z.ZodTypeDef, + StatusRequest +> = z.object({ + vertical: 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 StatusRequest$ { + /** @deprecated use `StatusRequest$inboundSchema` instead. */ + export const inboundSchema = StatusRequest$inboundSchema; + /** @deprecated use `StatusRequest$outboundSchema` instead. */ + export const outboundSchema = StatusRequest$outboundSchema; + /** @deprecated use `StatusRequest$Outbound` instead. */ + export type Outbound = StatusRequest$Outbound; +} + +/** @internal */ +export const StatusResponse$inboundSchema: z.ZodType = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + }); + }); + +/** @internal */ +export type StatusResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; +}; + +/** @internal */ +export const StatusResponse$outboundSchema: z.ZodType< + StatusResponse$Outbound, + z.ZodTypeDef, + StatusResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StatusResponse$ { + /** @deprecated use `StatusResponse$inboundSchema` instead. */ + export const inboundSchema = StatusResponse$inboundSchema; + /** @deprecated use `StatusResponse$outboundSchema` instead. */ + export const outboundSchema = StatusResponse$outboundSchema; + /** @deprecated use `StatusResponse$Outbound` instead. */ + export type Outbound = StatusResponse$Outbound; +} diff --git a/src/models/operations/updatestatus.ts b/src/models/operations/updatestatus.ts new file mode 100644 index 00000000..8f19d033 --- /dev/null +++ b/src/models/operations/updatestatus.ts @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../lib/primitives.js"; +import * as components from "../components/index.js"; +import * as z from "zod"; + +export type UpdateStatusRequest = { + id: string; +}; + +export type UpdateStatusResponse = { + httpMeta: components.HTTPMetadata; + webhookResponse?: components.WebhookResponse | undefined; +}; + +/** @internal */ +export const UpdateStatusRequest$inboundSchema: z.ZodType< + UpdateStatusRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); + +/** @internal */ +export type UpdateStatusRequest$Outbound = { + id: string; +}; + +/** @internal */ +export const UpdateStatusRequest$outboundSchema: z.ZodType< + UpdateStatusRequest$Outbound, + z.ZodTypeDef, + UpdateStatusRequest +> = 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 UpdateStatusRequest$ { + /** @deprecated use `UpdateStatusRequest$inboundSchema` instead. */ + export const inboundSchema = UpdateStatusRequest$inboundSchema; + /** @deprecated use `UpdateStatusRequest$outboundSchema` instead. */ + export const outboundSchema = UpdateStatusRequest$outboundSchema; + /** @deprecated use `UpdateStatusRequest$Outbound` instead. */ + export type Outbound = UpdateStatusRequest$Outbound; +} + +/** @internal */ +export const UpdateStatusResponse$inboundSchema: z.ZodType< + UpdateStatusResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + WebhookResponse: components.WebhookResponse$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + WebhookResponse: "webhookResponse", + }); + }); + +/** @internal */ +export type UpdateStatusResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + WebhookResponse?: components.WebhookResponse$Outbound | undefined; +}; + +/** @internal */ +export const UpdateStatusResponse$outboundSchema: z.ZodType< + UpdateStatusResponse$Outbound, + z.ZodTypeDef, + UpdateStatusResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + webhookResponse: components.WebhookResponse$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + webhookResponse: "WebhookResponse", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateStatusResponse$ { + /** @deprecated use `UpdateStatusResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateStatusResponse$inboundSchema; + /** @deprecated use `UpdateStatusResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateStatusResponse$outboundSchema; + /** @deprecated use `UpdateStatusResponse$Outbound` instead. */ + export type Outbound = UpdateStatusResponse$Outbound; +} diff --git a/src/models/operations/updatewebhookstatus.ts b/src/models/operations/updatewebhookstatus.ts deleted file mode 100644 index 38ad1fcc..00000000 --- a/src/models/operations/updatewebhookstatus.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; -import * as z from "zod"; - -export type UpdateWebhookStatusRequest = { - id: string; -}; - -export type UpdateWebhookStatusResponse = { - httpMeta: components.HTTPMetadata; - webhookResponse?: components.WebhookResponse | undefined; -}; - -/** @internal */ -export namespace UpdateWebhookStatusRequest$ { - export const inboundSchema: z.ZodType = - z.object({ - id: z.string(), - }); - - export type Outbound = { - id: string; - }; - - export const outboundSchema: z.ZodType = - z.object({ - id: z.string(), - }); -} - -/** @internal */ -export namespace UpdateWebhookStatusResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - WebhookResponse: components.WebhookResponse$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - WebhookResponse: "webhookResponse", - }); - }); - - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - WebhookResponse?: components.WebhookResponse$.Outbound | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - webhookResponse: components.WebhookResponse$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - webhookResponse: "WebhookResponse", - }); - }); -} diff --git a/src/models/operations/verifyevent.ts b/src/models/operations/verifyevent.ts index 86ab8ef9..81c60be1 100644 --- a/src/models/operations/verifyevent.ts +++ b/src/models/operations/verifyevent.ts @@ -12,33 +12,54 @@ export type VerifyEventResponse = { }; /** @internal */ -export namespace VerifyEventResponse$ { - export const inboundSchema: z.ZodType = z - .object({ - HttpMeta: components.HTTPMetadata$.inboundSchema, - EventPayload: components.EventPayload$.inboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - HttpMeta: "httpMeta", - EventPayload: "eventPayload", - }); +export const VerifyEventResponse$inboundSchema: z.ZodType< + VerifyEventResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + EventPayload: components.EventPayload$inboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + HttpMeta: "httpMeta", + EventPayload: "eventPayload", }); + }); - export type Outbound = { - HttpMeta: components.HTTPMetadata$.Outbound; - EventPayload?: components.EventPayload$.Outbound | undefined; - }; +/** @internal */ +export type VerifyEventResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + EventPayload?: components.EventPayload$Outbound | undefined; +}; - export const outboundSchema: z.ZodType = z - .object({ - httpMeta: components.HTTPMetadata$.outboundSchema, - eventPayload: components.EventPayload$.outboundSchema.optional(), - }) - .transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - eventPayload: "EventPayload", - }); +/** @internal */ +export const VerifyEventResponse$outboundSchema: z.ZodType< + VerifyEventResponse$Outbound, + z.ZodTypeDef, + VerifyEventResponse +> = z + .object({ + httpMeta: components.HTTPMetadata$outboundSchema, + eventPayload: components.EventPayload$outboundSchema.optional(), + }) + .transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + eventPayload: "EventPayload", }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace VerifyEventResponse$ { + /** @deprecated use `VerifyEventResponse$inboundSchema` instead. */ + export const inboundSchema = VerifyEventResponse$inboundSchema; + /** @deprecated use `VerifyEventResponse$outboundSchema` instead. */ + export const outboundSchema = VerifyEventResponse$outboundSchema; + /** @deprecated use `VerifyEventResponse$Outbound` instead. */ + export type Outbound = VerifyEventResponse$Outbound; } diff --git a/src/sdk/account.ts b/src/sdk/account.ts index 68af237f..3dc313af 100644 --- a/src/sdk/account.ts +++ b/src/sdk/account.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Account extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingAccountsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingAccountsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Account extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Account extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Account extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingAccountsResponse$, { key: "object" }) + .json(200, operations.ListAccountingAccountsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Account extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingAccountRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingAccountRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingAccountInput, { @@ -150,13 +149,15 @@ export class Account extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Account extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Account extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingAccountResponse$, { + .json(201, operations.CreateAccountingAccountResponse$inboundSchema, { key: "UnifiedAccountingAccountOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Account extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingAccountRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingAccountRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Account extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Account extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Account extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingAccountResponse$, { + .json(200, operations.RetrieveAccountingAccountResponse$inboundSchema, { key: "UnifiedAccountingAccountOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/accounts.ts b/src/sdk/accounts.ts index 382cd31d..9825fae2 100644 --- a/src/sdk/accounts.ts +++ b/src/sdk/accounts.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Accounts extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingAccountRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingAccountRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Accounts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Accounts extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Accounts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingAccountResponse$, { key: "object" }) + .json(200, operations.ListTicketingAccountResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Accounts extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingAccountRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingAccountRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Accounts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Accounts extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Accounts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingAccountResponse$, { + .json(200, operations.RetrieveTicketingAccountResponse$inboundSchema, { key: "UnifiedTicketingAccountOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/action.ts b/src/sdk/action.ts index 8f616a41..6c5ca6bb 100644 --- a/src/sdk/action.ts +++ b/src/sdk/action.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,14 +49,11 @@ export class Action extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListMarketingautomationActionRequest$.outboundSchema.parse(value$), + operations.ListMarketingautomationActionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -69,13 +66,14 @@ export class Action extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -92,7 +90,6 @@ export class Action extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -102,18 +99,26 @@ export class Action extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListMarketingautomationActionResponse$, { key: "object" }) + .json(200, operations.ListMarketingautomationActionResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -131,15 +136,11 @@ export class Action extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.CreateMarketingautomationActionRequest$.outboundSchema.parse(value$), + operations.CreateMarketingautomationActionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationActionInput, { @@ -152,13 +153,15 @@ export class Action extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -175,7 +178,6 @@ export class Action extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -185,18 +187,24 @@ export class Action extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateMarketingautomationActionResponse$, { + .json(201, operations.CreateMarketingautomationActionResponse$inboundSchema, { key: "UnifiedMarketingautomationActionOutput", }) .fail(["4XX", "5XX"]) @@ -216,14 +224,11 @@ export class Action extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveMarketingautomationActionRequest$.outboundSchema.parse(value$), + operations.RetrieveMarketingautomationActionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -237,13 +242,14 @@ export class Action extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -260,7 +266,6 @@ export class Action extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -270,18 +275,24 @@ export class Action extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveMarketingautomationActionResponse$, { + .json(200, operations.RetrieveMarketingautomationActionResponse$inboundSchema, { key: "UnifiedMarketingautomationActionOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/activity.ts b/src/sdk/activity.ts index 648a335d..2d152c5a 100644 --- a/src/sdk/activity.ts +++ b/src/sdk/activity.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Activity extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsActivityRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsActivityRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Activity extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Activity extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Activity extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsActivityResponse$, { key: "object" }) + .json(200, operations.ListAtsActivityResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Activity extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAtsActivityRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAtsActivityRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAtsActivityInput, { explode: true }); @@ -148,13 +147,15 @@ export class Activity extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Activity extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Activity extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAtsActivityResponse$, { key: "UnifiedAtsActivityOutput" }) + .json(201, operations.CreateAtsActivityResponse$inboundSchema, { + key: "UnifiedAtsActivityOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Activity extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsActivityRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsActivityRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Activity extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Activity extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Activity extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsActivityResponse$, { key: "UnifiedAtsActivityOutput" }) + .json(200, operations.RetrieveAtsActivityResponse$inboundSchema, { + key: "UnifiedAtsActivityOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/address.ts b/src/sdk/address.ts index 96196d62..6102fc83 100644 --- a/src/sdk/address.ts +++ b/src/sdk/address.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Address extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingAddressRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingAddressRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Address extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Address extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Address extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingAddressResponse$, { key: "object" }) + .json(200, operations.ListAccountingAddressResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Address extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingAddressRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingAddressRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Address extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Address extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Address extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingAddressResponse$, { + .json(200, operations.RetrieveAccountingAddressResponse$inboundSchema, { key: "UnifiedAccountingAddressOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/application.ts b/src/sdk/application.ts index dcc862f7..df8f8112 100644 --- a/src/sdk/application.ts +++ b/src/sdk/application.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Application extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsApplicationRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsApplicationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Application extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Application extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Application extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsApplicationResponse$, { key: "object" }) + .json(200, operations.ListAtsApplicationResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Application extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAtsApplicationRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAtsApplicationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAtsApplicationInput, { explode: true }); @@ -148,13 +147,15 @@ export class Application extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Application extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Application extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAtsApplicationResponse$, { + .json(201, operations.CreateAtsApplicationResponse$inboundSchema, { key: "UnifiedAtsApplicationOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Application extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsApplicationRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsApplicationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Application extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Application extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Application extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsApplicationResponse$, { + .json(200, operations.RetrieveAtsApplicationResponse$inboundSchema, { key: "UnifiedAtsApplicationOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/attachment.ts b/src/sdk/attachment.ts index fd6a2f44..0874224f 100644 --- a/src/sdk/attachment.ts +++ b/src/sdk/attachment.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Attachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Attachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Attachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Attachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsAttachmentResponse$, { key: "object" }) + .json(200, operations.ListAtsAttachmentResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Attachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAtsAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAtsAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAtsAttachmentInput, { explode: true }); @@ -148,13 +147,15 @@ export class Attachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Attachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Attachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAtsAttachmentResponse$, { + .json(201, operations.CreateAtsAttachmentResponse$inboundSchema, { key: "UnifiedAtsAttachmentOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Attachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Attachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Attachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Attachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsAttachmentResponse$, { + .json(200, operations.RetrieveAtsAttachmentResponse$inboundSchema, { key: "UnifiedAtsAttachmentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/attachments.ts b/src/sdk/attachments.ts index 4791e920..721b7f2c 100644 --- a/src/sdk/attachments.ts +++ b/src/sdk/attachments.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Attachments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingAttachmentsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingAttachmentsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Attachments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Attachments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Attachments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingAttachmentsResponse$, { key: "object" }) + .json(200, operations.ListTicketingAttachmentsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Attachments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateTicketingAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateTicketingAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedTicketingAttachmentInput, { @@ -150,13 +149,15 @@ export class Attachments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Attachments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Attachments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateTicketingAttachmentResponse$, { + .json(201, operations.CreateTicketingAttachmentResponse$inboundSchema, { key: "UnifiedTicketingAttachmentOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Attachments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Attachments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Attachments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Attachments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingAttachmentResponse$, { + .json(200, operations.RetrieveTicketingAttachmentResponse$inboundSchema, { key: "UnifiedTicketingAttachmentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/automation.ts b/src/sdk/automation.ts index e1ad207a..b6a6abde 100644 --- a/src/sdk/automation.ts +++ b/src/sdk/automation.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,14 +49,11 @@ export class Automation extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListMarketingautomationAutomationRequest$.outboundSchema.parse(value$), + operations.ListMarketingautomationAutomationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -69,13 +66,14 @@ export class Automation extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -92,7 +90,6 @@ export class Automation extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -102,18 +99,26 @@ export class Automation extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListMarketingautomationAutomationResponse$, { key: "object" }) + .json(200, operations.ListMarketingautomationAutomationResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -131,15 +136,11 @@ export class Automation extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.CreateMarketingautomationAutomationRequest$.outboundSchema.parse(value$), + operations.CreateMarketingautomationAutomationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationAutomationInput, { @@ -152,13 +153,15 @@ export class Automation extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -175,7 +178,6 @@ export class Automation extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -185,11 +187,17 @@ export class Automation extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, @@ -197,7 +205,7 @@ export class Automation extends ClientSDK { const [result$] = await this.matcher() - .json(201, operations.CreateMarketingautomationAutomationResponse$, { + .json(201, operations.CreateMarketingautomationAutomationResponse$inboundSchema, { key: "UnifiedMarketingautomationAutomationOutput", }) .fail(["4XX", "5XX"]) @@ -217,14 +225,11 @@ export class Automation extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveMarketingautomationAutomationRequest$.outboundSchema.parse( + operations.RetrieveMarketingautomationAutomationRequest$outboundSchema.parse( value$ ), "Input validation failed" @@ -242,13 +247,14 @@ export class Automation extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -265,7 +271,6 @@ export class Automation extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -275,11 +280,17 @@ export class Automation extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, @@ -287,7 +298,7 @@ export class Automation extends ClientSDK { const [result$] = await this.matcher() - .json(200, operations.RetrieveMarketingautomationAutomationResponse$, { + .json(200, operations.RetrieveMarketingautomationAutomationResponse$inboundSchema, { key: "UnifiedMarketingautomationAutomationOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/balancesheet.ts b/src/sdk/balancesheet.ts index 53bc10a7..3e69908e 100644 --- a/src/sdk/balancesheet.ts +++ b/src/sdk/balancesheet.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Balancesheet extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingBalanceSheetsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingBalanceSheetsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Balancesheet extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Balancesheet extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Balancesheet extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingBalanceSheetsResponse$, { key: "object" }) + .json(200, operations.ListAccountingBalanceSheetsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Balancesheet extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingBalanceSheetRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingBalanceSheetRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Balancesheet extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Balancesheet extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Balancesheet extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingBalanceSheetResponse$, { + .json(200, operations.RetrieveAccountingBalanceSheetResponse$inboundSchema, { key: "UnifiedAccountingBalancesheetOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/bankinfo.ts b/src/sdk/bankinfo.ts index d73e6d1b..5b005611 100644 --- a/src/sdk/bankinfo.ts +++ b/src/sdk/bankinfo.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Bankinfo extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisBankinfoRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisBankinfoRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Bankinfo extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Bankinfo extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Bankinfo extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisBankinfoResponse$, { key: "object" }) + .json(200, operations.ListHrisBankinfoResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Bankinfo extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisBankinfoRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisBankinfoRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Bankinfo extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Bankinfo extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Bankinfo extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisBankinfoResponse$, { + .json(200, operations.RetrieveHrisBankinfoResponse$inboundSchema, { key: "UnifiedHrisBankinfoOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/benefit.ts b/src/sdk/benefit.ts index 3cb5f7da..939afe3f 100644 --- a/src/sdk/benefit.ts +++ b/src/sdk/benefit.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Benefit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisBenefitRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisBenefitRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Benefit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Benefit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Benefit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisBenefitResponse$, { key: "object" }) + .json(200, operations.ListHrisBenefitResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Benefit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisBenefitRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisBenefitRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Benefit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Benefit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Benefit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisBenefitResponse$, { key: "UnifiedHrisBenefitOutput" }) + .json(200, operations.RetrieveHrisBenefitResponse$inboundSchema, { + key: "UnifiedHrisBenefitOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/campaign.ts b/src/sdk/campaign.ts index caa9ccdb..95a5cbfc 100644 --- a/src/sdk/campaign.ts +++ b/src/sdk/campaign.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,14 +49,11 @@ export class Campaign extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListMarketingautomationCampaignRequest$.outboundSchema.parse(value$), + operations.ListMarketingautomationCampaignRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -69,13 +66,14 @@ export class Campaign extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -92,7 +90,6 @@ export class Campaign extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -102,18 +99,26 @@ export class Campaign extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListMarketingautomationCampaignResponse$, { key: "object" }) + .json(200, operations.ListMarketingautomationCampaignResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -131,15 +136,11 @@ export class Campaign extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.CreateMarketingautomationCampaignRequest$.outboundSchema.parse(value$), + operations.CreateMarketingautomationCampaignRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationCampaignInput, { @@ -152,13 +153,15 @@ export class Campaign extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -175,7 +178,6 @@ export class Campaign extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -185,18 +187,24 @@ export class Campaign extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateMarketingautomationCampaignResponse$, { + .json(201, operations.CreateMarketingautomationCampaignResponse$inboundSchema, { key: "UnifiedCampaignOutput", }) .fail(["4XX", "5XX"]) @@ -216,14 +224,11 @@ export class Campaign extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveMarketingautomationCampaignRequest$.outboundSchema.parse(value$), + operations.RetrieveMarketingautomationCampaignRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -237,13 +242,14 @@ export class Campaign extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -260,7 +266,6 @@ export class Campaign extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -270,11 +275,17 @@ export class Campaign extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, @@ -282,7 +293,7 @@ export class Campaign extends ClientSDK { const [result$] = await this.matcher() - .json(200, operations.RetrieveMarketingautomationCampaignResponse$, { + .json(200, operations.RetrieveMarketingautomationCampaignResponse$inboundSchema, { key: "UnifiedCampaignOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/candidate.ts b/src/sdk/candidate.ts index 529d35b3..8b40285d 100644 --- a/src/sdk/candidate.ts +++ b/src/sdk/candidate.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Candidate extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsCandidateRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsCandidateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Candidate extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Candidate extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Candidate extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsCandidateResponse$, { key: "object" }) + .json(200, operations.ListAtsCandidateResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Candidate extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAtsCandidateRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAtsCandidateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAtsCandidateInput, { explode: true }); @@ -148,13 +147,15 @@ export class Candidate extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Candidate extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Candidate extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAtsCandidateResponse$, { key: "UnifiedAtsCandidateOutput" }) + .json(201, operations.CreateAtsCandidateResponse$inboundSchema, { + key: "UnifiedAtsCandidateOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Candidate extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsCandidateRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsCandidateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Candidate extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Candidate extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,24 @@ export class Candidate extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsCandidateResponse$, { + .json(200, operations.RetrieveAtsCandidateResponse$inboundSchema, { key: "UnifiedAtsCandidateOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/cashflowstatement.ts b/src/sdk/cashflowstatement.ts index e37ecc72..f9a98d21 100644 --- a/src/sdk/cashflowstatement.ts +++ b/src/sdk/cashflowstatement.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,14 +48,11 @@ export class Cashflowstatement extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListAccountingCashflowStatementRequest$.outboundSchema.parse(value$), + operations.ListAccountingCashflowStatementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Cashflowstatement extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Cashflowstatement extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Cashflowstatement extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingCashflowStatementResponse$, { key: "object" }) + .json(200, operations.ListAccountingCashflowStatementResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +135,11 @@ export class Cashflowstatement extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingCashflowStatementRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingCashflowStatementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -151,13 +153,14 @@ export class Cashflowstatement extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -174,7 +177,6 @@ export class Cashflowstatement extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -184,11 +186,17 @@ export class Cashflowstatement extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, @@ -196,7 +204,7 @@ export class Cashflowstatement extends ClientSDK { const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingCashflowStatementResponse$, { + .json(200, operations.RetrieveAccountingCashflowStatementResponse$inboundSchema, { key: "UnifiedAccountingCashflowstatementOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/collections.ts b/src/sdk/collections.ts index 64cfd7b7..298ac581 100644 --- a/src/sdk/collections.ts +++ b/src/sdk/collections.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Collections extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingCollectionsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingCollectionsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Collections extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Collections extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Collections extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingCollectionsResponse$, { key: "object" }) + .json(200, operations.ListTicketingCollectionsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Collections extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCollectionRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCollectionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Collections extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Collections extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Collections extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCollectionResponse$, { + .json(200, operations.RetrieveCollectionResponse$inboundSchema, { key: "UnifiedTicketingCollectionOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/comments.ts b/src/sdk/comments.ts index 9a3dc05e..2d95f7ff 100644 --- a/src/sdk/comments.ts +++ b/src/sdk/comments.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Comments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingCommentsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingCommentsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Comments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Comments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Comments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingCommentsResponse$, { key: "object" }) + .json(200, operations.ListTicketingCommentsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Comments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateTicketingCommentRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateTicketingCommentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedTicketingCommentInput, { explode: true }); @@ -148,13 +147,15 @@ export class Comments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Comments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Comments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateTicketingCommentResponse$, { + .json(201, operations.CreateTicketingCommentResponse$inboundSchema, { key: "UnifiedTicketingCommentOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Comments extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingCommentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingCommentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Comments extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Comments extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Comments extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingCommentResponse$, { key: "object" }) + .json(200, operations.RetrieveTicketingCommentResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/companies.ts b/src/sdk/companies.ts index f2233bfc..e24e55ea 100644 --- a/src/sdk/companies.ts +++ b/src/sdk/companies.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Companies extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmCompanyRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmCompanyRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Companies extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Companies extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Companies extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmCompanyResponse$, { key: "object" }) + .json(200, operations.ListCrmCompanyResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Companies extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateCrmCompanyRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmCompanyRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmCompanyInput, { explode: true }); @@ -148,13 +147,15 @@ export class Companies extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Companies extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Companies extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateCrmCompanyResponse$, { key: "UnifiedCrmCompanyOutput" }) + .json(201, operations.CreateCrmCompanyResponse$inboundSchema, { + key: "UnifiedCrmCompanyOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Companies extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmCompanyRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmCompanyRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Companies extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Companies extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Companies extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmCompanyResponse$, { key: "UnifiedCrmCompanyOutput" }) + .json(200, operations.RetrieveCrmCompanyResponse$inboundSchema, { + key: "UnifiedCrmCompanyOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/company.ts b/src/sdk/company.ts index 62500f1f..9003cf7d 100644 --- a/src/sdk/company.ts +++ b/src/sdk/company.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Company extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisCompanysRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisCompanysRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Company extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Company extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Company extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisCompanysResponse$, { key: "object" }) + .json(200, operations.ListHrisCompanysResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/companyinfo.ts b/src/sdk/companyinfo.ts index 17036195..2b25b819 100644 --- a/src/sdk/companyinfo.ts +++ b/src/sdk/companyinfo.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Companyinfo extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingCompanyInfosRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingCompanyInfosRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Companyinfo extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Companyinfo extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Companyinfo extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingCompanyInfosResponse$, { key: "object" }) + .json(200, operations.ListAccountingCompanyInfosResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Companyinfo extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingCompanyInfoRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingCompanyInfoRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Companyinfo extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Companyinfo extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Companyinfo extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingCompanyInfoResponse$, { + .json(200, operations.RetrieveAccountingCompanyInfoResponse$inboundSchema, { key: "UnifiedAccountingCompanyinfoOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/contact.ts b/src/sdk/contact.ts index 4c9311d0..52f69f72 100644 --- a/src/sdk/contact.ts +++ b/src/sdk/contact.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -44,19 +44,16 @@ export class Contact extends ClientSDK { /** * List a batch of Contacts */ - async getMarketingAutomationContacts( - request: operations.GetMarketingAutomationContactsRequest, + async list( + request: operations.ListMarketingAutomationContactsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.GetMarketingAutomationContactsRequest$.outboundSchema.parse(value$), + operations.ListMarketingAutomationContactsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -69,13 +66,14 @@ export class Contact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -86,13 +84,12 @@ export class Contact extends ClientSDK { security$ = {}; } const context = { - operationID: "getMarketingAutomationContacts", + operationID: "listMarketingAutomationContacts", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -102,18 +99,26 @@ export class Contact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMarketingAutomationContactsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingAutomationContactsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -126,20 +131,16 @@ export class Contact extends ClientSDK { * @remarks * Create a contact in any supported Marketingautomation software */ - async addMarketingAutomationContact( - request: operations.AddMarketingAutomationContactRequest, + async create( + request: operations.CreateMarketingAutomationContactRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.AddMarketingAutomationContactRequest$.outboundSchema.parse(value$), + operations.CreateMarketingAutomationContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationContactInput, { @@ -152,13 +153,15 @@ export class Contact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -169,13 +172,12 @@ export class Contact extends ClientSDK { security$ = {}; } const context = { - operationID: "addMarketingAutomationContact", + operationID: "createMarketingAutomationContact", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -185,18 +187,24 @@ export class Contact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.AddMarketingAutomationContactResponse$, { + const [result$] = await this.matcher() + .json(201, operations.CreateMarketingAutomationContactResponse$inboundSchema, { key: "UnifiedMarketingautomationContactOutput", }) .fail(["4XX", "5XX"]) @@ -211,19 +219,16 @@ export class Contact extends ClientSDK { * @remarks * Retrieve a contact from any connected Marketingautomation software */ - async getMarketingAutomationContact( - request: operations.GetMarketingAutomationContactRequest, + async retrieve( + request: operations.RetrieveMarketingAutomationContactRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.GetMarketingAutomationContactRequest$.outboundSchema.parse(value$), + operations.RetrieveMarketingAutomationContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -237,13 +242,14 @@ export class Contact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -254,13 +260,12 @@ export class Contact extends ClientSDK { security$ = {}; } const context = { - operationID: "getMarketingAutomationContact", + operationID: "retrieveMarketingAutomationContact", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -270,22 +275,29 @@ export class Contact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMarketingAutomationContactResponse$, { - key: "UnifiedMarketingautomationContactOutput", - }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); + const [result$] = + await this.matcher() + .json(200, operations.RetrieveMarketingAutomationContactResponse$inboundSchema, { + key: "UnifiedMarketingautomationContactOutput", + }) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); return result$; } diff --git a/src/sdk/contacts.ts b/src/sdk/contacts.ts index 802a26d3..2b7eb717 100644 --- a/src/sdk/contacts.ts +++ b/src/sdk/contacts.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Contacts extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingContactsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingContactsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Contacts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Contacts extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Contacts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingContactsResponse$, { key: "object" }) + .json(200, operations.ListTicketingContactsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Contacts extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingContactRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Contacts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Contacts extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Contacts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingContactResponse$, { key: "object" }) + .json(200, operations.RetrieveTicketingContactResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/creditnote.ts b/src/sdk/creditnote.ts index 3693f380..b9d26bcd 100644 --- a/src/sdk/creditnote.ts +++ b/src/sdk/creditnote.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Creditnote extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingCreditNoteRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingCreditNoteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Creditnote extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Creditnote extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Creditnote extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingCreditNoteResponse$, { key: "object" }) + .json(200, operations.ListAccountingCreditNoteResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +132,10 @@ export class Creditnote extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => - operations.RetrieveAccountingCreditNoteRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingCreditNoteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +149,14 @@ export class Creditnote extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +173,6 @@ export class Creditnote extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +182,24 @@ export class Creditnote extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingCreditNoteResponse$, { + .json(200, operations.RetrieveAccountingCreditNoteResponse$inboundSchema, { key: "UnifiedAccountingCreditnoteOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/deals.ts b/src/sdk/deals.ts index 5f6bce1e..ac6f5230 100644 --- a/src/sdk/deals.ts +++ b/src/sdk/deals.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Deals extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmDealsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmDealsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Deals extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Deals extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Deals extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmDealsResponse$, { key: "object" }) + .json(200, operations.ListCrmDealsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Deals extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateCrmDealRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmDealRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmDealInput, { explode: true }); @@ -148,13 +147,15 @@ export class Deals extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Deals extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Deals extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateCrmDealResponse$, { key: "UnifiedCrmDealOutput" }) + .json(201, operations.CreateCrmDealResponse$inboundSchema, { + key: "UnifiedCrmDealOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Deals extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmDealRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmDealRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Deals extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Deals extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Deals extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmDealResponse$, { key: "UnifiedCrmDealOutput" }) + .json(200, operations.RetrieveCrmDealResponse$inboundSchema, { + key: "UnifiedCrmDealOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/department.ts b/src/sdk/department.ts index 038c0178..8ab6c89f 100644 --- a/src/sdk/department.ts +++ b/src/sdk/department.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,15 @@ export class Department extends ClientSDK { /** * List a batch of Departments */ - async getDepartments( - request: operations.GetDepartmentsRequest, + async list( + request: operations.ListAtsDepartmentsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetDepartmentsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsDepartmentsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Department extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +82,12 @@ export class Department extends ClientSDK { security$ = {}; } const context = { - operationID: "getDepartments", + operationID: "listAtsDepartments", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Department extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetDepartmentsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListAtsDepartmentsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +127,15 @@ export class Department extends ClientSDK { * @remarks * Retrieve a department from any connected Ats software */ - async getDepartment( - request: operations.GetDepartmentRequest, + async retrieve( + request: operations.RetrieveAtsDepartmentRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetDepartmentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsDepartmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Department extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +167,12 @@ export class Department extends ClientSDK { security$ = {}; } const context = { - operationID: "getDepartment", + operationID: "retrieveAtsDepartment", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Department extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetDepartmentResponse$, { key: "UnifiedAtsDepartmentOutput" }) + const [result$] = await this.matcher() + .json(200, operations.RetrieveAtsDepartmentResponse$inboundSchema, { + key: "UnifiedAtsDepartmentOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/dependent.ts b/src/sdk/dependent.ts index 320a21d3..b3e2052a 100644 --- a/src/sdk/dependent.ts +++ b/src/sdk/dependent.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Dependent extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisDependentsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisDependentsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Dependent extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Dependent extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Dependent extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisDependentsResponse$, { key: "object" }) + .json(200, operations.ListHrisDependentsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Dependent extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisDependentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisDependentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Dependent extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Dependent extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Dependent extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisDependentResponse$, { + .json(200, operations.RetrieveHrisDependentResponse$inboundSchema, { key: "UnifiedHrisDependentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/drives.ts b/src/sdk/drives.ts index e281bf94..8f983d0f 100644 --- a/src/sdk/drives.ts +++ b/src/sdk/drives.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Drives extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListFilestorageDrivesRequest$.outboundSchema.parse(value$), + (value$) => operations.ListFilestorageDrivesRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Drives extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Drives extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Drives extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListFilestorageDrivesResponse$, { key: "object" }) + .json(200, operations.ListFilestorageDrivesResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Drives extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveFilestorageDriveRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveFilestorageDriveRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Drives extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Drives extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Drives extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveFilestorageDriveResponse$, { + .json(200, operations.RetrieveFilestorageDriveResponse$inboundSchema, { key: "UnifiedFilestorageDriveOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/eeocs.ts b/src/sdk/eeocs.ts index cb6dd194..307fee9d 100644 --- a/src/sdk/eeocs.ts +++ b/src/sdk/eeocs.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Eeocs extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsEeocsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsEeocsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Eeocs extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Eeocs extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Eeocs extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsEeocsResponse$, { key: "object" }) + .json(200, operations.ListAtsEeocsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Eeocs extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsEeocsRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsEeocsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Eeocs extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Eeocs extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Eeocs extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsEeocsResponse$, { key: "UnifiedAtsEeocsOutput" }) + .json(200, operations.RetrieveAtsEeocsResponse$inboundSchema, { + key: "UnifiedAtsEeocsOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/email.ts b/src/sdk/email.ts index 52748eea..9de0b092 100644 --- a/src/sdk/email.ts +++ b/src/sdk/email.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,16 @@ export class Email extends ClientSDK { /** * List a batch of Emails */ - async getEmails( - request: operations.GetEmailsRequest, + async list( + request: operations.ListMarketingautomationEmailsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetEmailsRequest$.outboundSchema.parse(value$), + (value$) => + operations.ListMarketingautomationEmailsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +65,14 @@ export class Email extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +83,12 @@ export class Email extends ClientSDK { security$ = {}; } const context = { - operationID: "getEmails", + operationID: "listMarketingautomationEmails", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +98,26 @@ export class Email extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetEmailsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingautomationEmailsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +130,16 @@ export class Email extends ClientSDK { * @remarks * Retrieve a email from any connected Marketingautomation software */ - async getEmail( - request: operations.GetEmailRequest, + async retrieve( + request: operations.RetrieveMarketingautomationEmailRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetEmailRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingautomationEmailRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +153,14 @@ export class Email extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +171,12 @@ export class Email extends ClientSDK { security$ = {}; } const context = { - operationID: "getEmail", + operationID: "retrieveMarketingautomationEmail", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +186,24 @@ export class Email extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetEmailResponse$, { + const [result$] = await this.matcher() + .json(200, operations.RetrieveMarketingautomationEmailResponse$inboundSchema, { key: "UnifiedMarketingautomationEmailOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/employee.ts b/src/sdk/employee.ts index ec19e836..289c5937 100644 --- a/src/sdk/employee.ts +++ b/src/sdk/employee.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Employee extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisEmployeeRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisEmployeeRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Employee extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Employee extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Employee extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisEmployeeResponse$, { key: "object" }) + .json(200, operations.ListHrisEmployeeResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Employee extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateHrisEmployeeRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateHrisEmployeeRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedHrisEmployeeInput, { explode: true }); @@ -148,13 +147,15 @@ export class Employee extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Employee extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Employee extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateHrisEmployeeResponse$, { key: "UnifiedHrisEmployeeOutput" }) + .json(201, operations.CreateHrisEmployeeResponse$inboundSchema, { + key: "UnifiedHrisEmployeeOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Employee extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisEmployeeRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisEmployeeRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Employee extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Employee extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,24 @@ export class Employee extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisEmployeeResponse$, { + .json(200, operations.RetrieveHrisEmployeeResponse$inboundSchema, { key: "UnifiedHrisEmployeeOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/employeepayrollrun.ts b/src/sdk/employeepayrollrun.ts index 4812340b..f22fd66f 100644 --- a/src/sdk/employeepayrollrun.ts +++ b/src/sdk/employeepayrollrun.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Employeepayrollrun extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisEmployeePayrollRunRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisEmployeePayrollRunRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Employeepayrollrun extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Employeepayrollrun extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Employeepayrollrun extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisEmployeePayrollRunResponse$, { key: "object" }) + .json(200, operations.ListHrisEmployeePayrollRunResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Employeepayrollrun extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveHrisEmployeePayrollRunRequest$.outboundSchema.parse(value$), + operations.RetrieveHrisEmployeePayrollRunRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Employeepayrollrun extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Employeepayrollrun extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Employeepayrollrun extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisEmployeePayrollRunResponse$, { + .json(200, operations.RetrieveHrisEmployeePayrollRunResponse$inboundSchema, { key: "UnifiedHrisEmployeepayrollrunOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/employerbenefit.ts b/src/sdk/employerbenefit.ts index 803a3ea6..1aed9005 100644 --- a/src/sdk/employerbenefit.ts +++ b/src/sdk/employerbenefit.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Employerbenefit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisEmployerBenefitRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisEmployerBenefitRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Employerbenefit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Employerbenefit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Employerbenefit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisEmployerBenefitResponse$, { key: "object" }) + .json(200, operations.ListHrisEmployerBenefitResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Employerbenefit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisEmployerBenefitRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisEmployerBenefitRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Employerbenefit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Employerbenefit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Employerbenefit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisEmployerBenefitResponse$, { + .json(200, operations.RetrieveHrisEmployerBenefitResponse$inboundSchema, { key: "UnifiedHrisEmployerbenefitOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/employment.ts b/src/sdk/employment.ts index f89a4ef8..232bb612 100644 --- a/src/sdk/employment.ts +++ b/src/sdk/employment.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Employment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisEmploymentRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisEmploymentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Employment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Employment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Employment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisEmploymentResponse$, { key: "object" }) + .json(200, operations.ListHrisEmploymentResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Employment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisEmploymentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisEmploymentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Employment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Employment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Employment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisEmploymentResponse$, { + .json(200, operations.RetrieveHrisEmploymentResponse$inboundSchema, { key: "UnifiedHrisEmploymentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/engagements.ts b/src/sdk/engagements.ts index d56747a2..0fdd93a8 100644 --- a/src/sdk/engagements.ts +++ b/src/sdk/engagements.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Engagements extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmEngagementsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmEngagementsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Engagements extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Engagements extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Engagements extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmEngagementsResponse$, { key: "object" }) + .json(200, operations.ListCrmEngagementsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Engagements extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateCrmEngagementRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmEngagementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmEngagementInput, { explode: true }); @@ -148,13 +147,15 @@ export class Engagements extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Engagements extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Engagements extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateCrmEngagementResponse$, { + .json(201, operations.CreateCrmEngagementResponse$inboundSchema, { key: "UnifiedCrmEngagementOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Engagements extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmEngagementRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmEngagementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Engagements extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Engagements extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Engagements extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmEngagementResponse$, { + .json(200, operations.RetrieveCrmEngagementResponse$inboundSchema, { key: "UnifiedCrmEngagementOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/event.ts b/src/sdk/event.ts index 93ec2f96..c28b44e6 100644 --- a/src/sdk/event.ts +++ b/src/sdk/event.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,19 +43,16 @@ export class Event extends ClientSDK { /** * List a batch of Events */ - async getMarketingAutomationEvents( - request: operations.GetMarketingAutomationEventsRequest, + async list( + request: operations.ListMarketingAutomationEventsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.GetMarketingAutomationEventsRequest$.outboundSchema.parse(value$), + operations.ListMarketingAutomationEventsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Event extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -85,13 +83,12 @@ export class Event extends ClientSDK { security$ = {}; } const context = { - operationID: "getMarketingAutomationEvents", + operationID: "listMarketingAutomationEvents", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Event extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMarketingAutomationEventsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingAutomationEventsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -125,18 +130,16 @@ export class Event extends ClientSDK { * @remarks * Retrieve a event from any connected Marketingautomation software */ - async getEvent( - request: operations.GetEventRequest, + async retrieve( + request: operations.RetrieveMarketingautomationEventRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetEventRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingautomationEventRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +153,14 @@ export class Event extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -167,13 +171,12 @@ export class Event extends ClientSDK { security$ = {}; } const context = { - operationID: "getEvent", + operationID: "retrieveMarketingautomationEvent", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +186,24 @@ export class Event extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetEventResponse$, { + const [result$] = await this.matcher() + .json(200, operations.RetrieveMarketingautomationEventResponse$inboundSchema, { key: "UnifiedMarketingautomationEventOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/expense.ts b/src/sdk/expense.ts index 3fcbeec9..f21b6eba 100644 --- a/src/sdk/expense.ts +++ b/src/sdk/expense.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Expense extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingExpenseRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingExpenseRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Expense extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Expense extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Expense extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingExpenseResponse$, { key: "object" }) + .json(200, operations.ListAccountingExpenseResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Expense extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingExpenseRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingExpenseRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingExpenseInput, { @@ -150,13 +149,15 @@ export class Expense extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Expense extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Expense extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingExpenseResponse$, { + .json(201, operations.CreateAccountingExpenseResponse$inboundSchema, { key: "UnifiedAccountingExpenseOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Expense extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingExpenseRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingExpenseRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Expense extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Expense extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Expense extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingExpenseResponse$, { + .json(200, operations.RetrieveAccountingExpenseResponse$inboundSchema, { key: "UnifiedAccountingExpenseOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/fieldmappings.ts b/src/sdk/fieldmappings.ts index 5a245f5e..9bd9e439 100644 --- a/src/sdk/fieldmappings.ts +++ b/src/sdk/fieldmappings.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; import { HTTPClient } from "../lib/http.js"; import * as schemas$ from "../lib/schemas.js"; @@ -46,14 +46,10 @@ export class FieldMappings extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => components.DefineTargetFieldDto$.outboundSchema.parse(value$), + (value$) => components.DefineTargetFieldDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -62,6 +58,11 @@ export class FieldMappings extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -77,7 +78,6 @@ export class FieldMappings extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -87,18 +87,24 @@ export class FieldMappings extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(201, operations.DefineResponse$) + .void(201, operations.DefineResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -113,14 +119,10 @@ export class FieldMappings extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => components.CustomFieldCreateDto$.outboundSchema.parse(value$), + (value$) => components.CustomFieldCreateDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -129,6 +131,11 @@ export class FieldMappings extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -144,7 +151,6 @@ export class FieldMappings extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -154,18 +160,24 @@ export class FieldMappings extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(201, operations.CreateResponse$) + .void(201, operations.CreateResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -180,14 +192,10 @@ export class FieldMappings extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => components.MapFieldToProviderDto$.outboundSchema.parse(value$), + (value$) => components.MapFieldToProviderDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -196,6 +204,11 @@ export class FieldMappings extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -211,7 +224,6 @@ export class FieldMappings extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -221,18 +233,24 @@ export class FieldMappings extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(201, operations.MapResponse$) + .void(201, operations.MapResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/files.ts b/src/sdk/files.ts index 9cc418a6..9c372164 100644 --- a/src/sdk/files.ts +++ b/src/sdk/files.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Files extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListFilestorageFileRequest$.outboundSchema.parse(value$), + (value$) => operations.ListFilestorageFileRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Files extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Files extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Files extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListFilestorageFileResponse$, { key: "object" }) + .json(200, operations.ListFilestorageFileResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Files extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateFilestorageFileRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateFilestorageFileRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedFilestorageFileInput, { explode: true }); @@ -148,13 +147,15 @@ export class Files extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Files extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Files extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateFilestorageFileResponse$, { + .json(201, operations.CreateFilestorageFileResponse$inboundSchema, { key: "UnifiedFilestorageFileOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Files extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveFilestorageFileRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveFilestorageFileRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Files extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Files extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Files extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveFilestorageFileResponse$, { + .json(200, operations.RetrieveFilestorageFileResponse$inboundSchema, { key: "UnifiedFilestorageFileOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/folders.ts b/src/sdk/folders.ts index 39c01315..55ce645b 100644 --- a/src/sdk/folders.ts +++ b/src/sdk/folders.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Folders extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListFilestorageFolderRequest$.outboundSchema.parse(value$), + (value$) => operations.ListFilestorageFolderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Folders extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Folders extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Folders extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListFilestorageFolderResponse$, { key: "object" }) + .json(200, operations.ListFilestorageFolderResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Folders extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateFilestorageFolderRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateFilestorageFolderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedFilestorageFolderInput, { @@ -150,13 +149,15 @@ export class Folders extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Folders extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Folders extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateFilestorageFolderResponse$, { + .json(201, operations.CreateFilestorageFolderResponse$inboundSchema, { key: "UnifiedFilestorageFolderOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Folders extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveFilestorageFolderRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveFilestorageFolderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Folders extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Folders extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Folders extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveFilestorageFolderResponse$, { + .json(200, operations.RetrieveFilestorageFolderResponse$inboundSchema, { key: "UnifiedFilestorageFolderOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/group.ts b/src/sdk/group.ts index 86dfdfa8..1c7c3258 100644 --- a/src/sdk/group.ts +++ b/src/sdk/group.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Group extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisGroupRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisGroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Group extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Group extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Group extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisGroupResponse$, { key: "object" }) + .json(200, operations.ListHrisGroupResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Group extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisGroupRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisGroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Group extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Group extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Group extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisGroupResponse$, { key: "UnifiedHrisGroupOutput" }) + .json(200, operations.RetrieveHrisGroupResponse$inboundSchema, { + key: "UnifiedHrisGroupOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/groups.ts b/src/sdk/groups.ts index 8235d28a..afc50374 100644 --- a/src/sdk/groups.ts +++ b/src/sdk/groups.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Groups extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListFilestorageGroupRequest$.outboundSchema.parse(value$), + (value$) => operations.ListFilestorageGroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Groups extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Groups extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Groups extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListFilestorageGroupResponse$, { key: "object" }) + .json(200, operations.ListFilestorageGroupResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Groups extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveFilestorageGroupRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveFilestorageGroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Groups extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Groups extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Groups extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveFilestorageGroupResponse$, { + .json(200, operations.RetrieveFilestorageGroupResponse$inboundSchema, { key: "UnifiedFilestorageGroupOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/incomestatement.ts b/src/sdk/incomestatement.ts index 33b3d6e3..12b104e1 100644 --- a/src/sdk/incomestatement.ts +++ b/src/sdk/incomestatement.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,14 +48,11 @@ export class Incomestatement extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListAccountingIncomeStatementRequest$.outboundSchema.parse(value$), + operations.ListAccountingIncomeStatementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Incomestatement extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Incomestatement extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Incomestatement extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingIncomeStatementResponse$, { key: "object" }) + .json(200, operations.ListAccountingIncomeStatementResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +135,11 @@ export class Incomestatement extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingIncomeStatementRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingIncomeStatementRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -151,13 +153,14 @@ export class Incomestatement extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -174,7 +177,6 @@ export class Incomestatement extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -184,18 +186,24 @@ export class Incomestatement extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingIncomeStatementResponse$, { + .json(200, operations.RetrieveAccountingIncomeStatementResponse$inboundSchema, { key: "UnifiedAccountingIncomestatementOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/interview.ts b/src/sdk/interview.ts index 73c0e8e1..b891551a 100644 --- a/src/sdk/interview.ts +++ b/src/sdk/interview.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Interview extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsInterviewRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsInterviewRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Interview extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Interview extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Interview extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsInterviewResponse$, { key: "object" }) + .json(200, operations.ListAtsInterviewResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Interview extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAtsInterviewRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAtsInterviewRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAtsInterviewInput, { explode: true }); @@ -148,13 +147,15 @@ export class Interview extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Interview extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Interview extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAtsInterviewResponse$, { key: "UnifiedAtsInterviewOutput" }) + .json(201, operations.CreateAtsInterviewResponse$inboundSchema, { + key: "UnifiedAtsInterviewOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Interview extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsInterviewRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsInterviewRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Interview extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Interview extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,24 @@ export class Interview extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsInterviewResponse$, { + .json(200, operations.RetrieveAtsInterviewResponse$inboundSchema, { key: "UnifiedAtsInterviewOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/invoice.ts b/src/sdk/invoice.ts index c2e88741..67d5584a 100644 --- a/src/sdk/invoice.ts +++ b/src/sdk/invoice.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Invoice extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingInvoiceRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingInvoiceRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Invoice extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Invoice extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Invoice extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingInvoiceResponse$, { key: "object" }) + .json(200, operations.ListAccountingInvoiceResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Invoice extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingInvoiceRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingInvoiceRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingInvoiceInput, { @@ -150,13 +149,15 @@ export class Invoice extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Invoice extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Invoice extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingInvoiceResponse$, { + .json(201, operations.CreateAccountingInvoiceResponse$inboundSchema, { key: "UnifiedAccountingInvoiceOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Invoice extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingInvoiceRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingInvoiceRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Invoice extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Invoice extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Invoice extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingInvoiceResponse$, { + .json(200, operations.RetrieveAccountingInvoiceResponse$inboundSchema, { key: "UnifiedAccountingInvoiceOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/item.ts b/src/sdk/item.ts index 0f24aa01..4c644196 100644 --- a/src/sdk/item.ts +++ b/src/sdk/item.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Item extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingItemRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingItemRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Item extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Item extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Item extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingItemResponse$, { key: "object" }) + .json(200, operations.ListAccountingItemResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Item extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingItemRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingItemRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Item extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Item extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Item extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingItemResponse$, { + .json(200, operations.RetrieveAccountingItemResponse$inboundSchema, { key: "UnifiedAccountingItemOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/job.ts b/src/sdk/job.ts index 5d51dd6f..eff82289 100644 --- a/src/sdk/job.ts +++ b/src/sdk/job.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Job extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsJobRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsJobRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Job extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Job extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Job extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsJobResponse$, { key: "object" }) + .json(200, operations.ListAtsJobResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Job extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsJobRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsJobRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Job extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Job extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Job extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsJobResponse$, { key: "UnifiedAtsJobOutput" }) + .json(200, operations.RetrieveAtsJobResponse$inboundSchema, { + key: "UnifiedAtsJobOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/jobinterviewstage.ts b/src/sdk/jobinterviewstage.ts index fc41adb4..1df86601 100644 --- a/src/sdk/jobinterviewstage.ts +++ b/src/sdk/jobinterviewstage.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Jobinterviewstage extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsJobInterviewStageRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsJobInterviewStageRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Jobinterviewstage extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Jobinterviewstage extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Jobinterviewstage extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsJobInterviewStageResponse$, { key: "object" }) + .json(200, operations.ListAtsJobInterviewStageResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +132,10 @@ export class Jobinterviewstage extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => - operations.RetrieveAtsJobInterviewStageRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsJobInterviewStageRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +149,14 @@ export class Jobinterviewstage extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +173,6 @@ export class Jobinterviewstage extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +182,24 @@ export class Jobinterviewstage extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsJobInterviewStageResponse$, { + .json(200, operations.RetrieveAtsJobInterviewStageResponse$inboundSchema, { key: "UnifiedAtsJobinterviewstageOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/journalentry.ts b/src/sdk/journalentry.ts index 22e158f1..a8ad2339 100644 --- a/src/sdk/journalentry.ts +++ b/src/sdk/journalentry.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Journalentry extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingJournalEntryRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingJournalEntryRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Journalentry extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Journalentry extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Journalentry extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingJournalEntryResponse$, { key: "object" }) + .json(200, operations.ListAccountingJournalEntryResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,15 +135,10 @@ export class Journalentry extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => - operations.CreateAccountingJournalEntryRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingJournalEntryRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingJournalentryInput, { @@ -151,13 +151,15 @@ export class Journalentry extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -174,7 +176,6 @@ export class Journalentry extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -184,18 +185,24 @@ export class Journalentry extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingJournalEntryResponse$, { + .json(201, operations.CreateAccountingJournalEntryResponse$inboundSchema, { key: "UnifiedAccountingJournalentryOutput", }) .fail(["4XX", "5XX"]) @@ -215,14 +222,11 @@ export class Journalentry extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingJournalEntryRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingJournalEntryRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -236,13 +240,14 @@ export class Journalentry extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -259,7 +264,6 @@ export class Journalentry extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -269,18 +273,24 @@ export class Journalentry extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingJournalEntryResponse$, { + .json(200, operations.RetrieveAccountingJournalEntryResponse$inboundSchema, { key: "UnifiedAccountingJournalentryOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/linkedusers.ts b/src/sdk/linkedusers.ts index ba0b8309..e1e26593 100644 --- a/src/sdk/linkedusers.ts +++ b/src/sdk/linkedusers.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,14 +49,10 @@ export class LinkedUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => components.CreateLinkedUserDto$.outboundSchema.parse(value$), + (value$) => components.CreateLinkedUserDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -65,6 +61,11 @@ export class LinkedUsers extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -80,7 +81,6 @@ export class LinkedUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -90,18 +90,24 @@ export class LinkedUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(201, operations.CreateLinkedUserResponse$) + .void(201, operations.CreateLinkedUserResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -112,14 +118,14 @@ export class LinkedUsers extends ClientSDK { * Retrieve Linked Users */ async list(options?: RequestOptions): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "*/*"); - const path$ = this.templateURLComponent("/linked-users")(); const query$ = ""; + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -135,7 +141,6 @@ export class LinkedUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -144,18 +149,24 @@ export class LinkedUsers extends ClientSDK { path: path$, headers: headers$, query: query$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(200, operations.ListLinkedUsersResponse$) + .void(200, operations.ListLinkedUsersResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -170,14 +181,10 @@ export class LinkedUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => components.CreateBatchLinkedUserDto$.outboundSchema.parse(value$), + (value$) => components.CreateBatchLinkedUserDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -186,6 +193,11 @@ export class LinkedUsers extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -201,7 +213,6 @@ export class LinkedUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -211,18 +222,24 @@ export class LinkedUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(201, operations.ImportBatchResponse$) + .void(201, operations.ImportBatchResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -237,13 +254,10 @@ export class LinkedUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveLinkedUserRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveLinkedUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -254,6 +268,10 @@ export class LinkedUsers extends ClientSDK { id: payload$.id, }); + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -269,7 +287,6 @@ export class LinkedUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -279,18 +296,24 @@ export class LinkedUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(200, operations.RetrieveLinkedUserResponse$) + .void(200, operations.RetrieveLinkedUserResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -305,13 +328,10 @@ export class LinkedUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => operations.RemoteIdRequest$.outboundSchema.parse(value$), + (value$) => operations.RemoteIdRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -322,6 +342,10 @@ export class LinkedUsers extends ClientSDK { remoteId: payload$.remoteId, }); + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -337,7 +361,6 @@ export class LinkedUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -347,18 +370,24 @@ export class LinkedUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(200, operations.RemoteIdResponse$) + .void(200, operations.RemoteIdResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/list.ts b/src/sdk/list.ts index e84a3b17..56e417df 100644 --- a/src/sdk/list.ts +++ b/src/sdk/list.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -44,18 +44,15 @@ export class List extends ClientSDK { /** * List a batch of Lists */ - async getLists( - request: operations.GetListsRequest, + async list( + request: operations.ListMarketingautomationListsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetListsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListMarketingautomationListsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class List extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -85,13 +83,12 @@ export class List extends ClientSDK { security$ = {}; } const context = { - operationID: "getLists", + operationID: "listMarketingautomationLists", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class List extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetListsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingautomationListsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -125,19 +130,16 @@ export class List extends ClientSDK { * @remarks * Create a list in any supported Marketingautomation software */ - async addList( - request: operations.AddListRequest, + async create( + request: operations.CreateMarketingautomationListRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.AddListRequest$.outboundSchema.parse(value$), + (value$) => + operations.CreateMarketingautomationListRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationListInput, { @@ -150,13 +152,15 @@ export class List extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -167,13 +171,12 @@ export class List extends ClientSDK { security$ = {}; } const context = { - operationID: "addList", + operationID: "createMarketingautomationList", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +186,26 @@ export class List extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.AddListResponse$, { key: "UnifiedMarketingautomationListOutput" }) + const [result$] = await this.matcher() + .json(201, operations.CreateMarketingautomationListResponse$inboundSchema, { + key: "UnifiedMarketingautomationListOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -207,18 +218,16 @@ export class List extends ClientSDK { * @remarks * Retrieve a list from any connected Marketingautomation software */ - async getList( - request: operations.GetListRequest, + async retrieve( + request: operations.RetrieveMarketingautomationListRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetListRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingautomationListRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +241,14 @@ export class List extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -249,13 +259,12 @@ export class List extends ClientSDK { security$ = {}; } const context = { - operationID: "getList", + operationID: "retrieveMarketingautomationList", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +274,26 @@ export class List extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetListResponse$, { key: "UnifiedMarketingautomationListOutput" }) + const [result$] = await this.matcher() + .json(200, operations.RetrieveMarketingautomationListResponse$inboundSchema, { + key: "UnifiedMarketingautomationListOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/location.ts b/src/sdk/location.ts index 05f1b255..54fed6cb 100644 --- a/src/sdk/location.ts +++ b/src/sdk/location.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Location extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisLocationRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisLocationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Location extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Location extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Location extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisLocationResponse$, { key: "object" }) + .json(200, operations.ListHrisLocationResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Location extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisLocationRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisLocationRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Location extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Location extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Location extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisLocationResponse$, { + .json(200, operations.RetrieveHrisLocationResponse$inboundSchema, { key: "UnifiedHrisLocationOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/message.ts b/src/sdk/message.ts index a836fe43..54d91ce5 100644 --- a/src/sdk/message.ts +++ b/src/sdk/message.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,16 @@ export class Message extends ClientSDK { /** * List a batch of Messages */ - async getMessages( - request: operations.GetMessagesRequest, + async list( + request: operations.ListMarketingautomationMessagesRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetMessagesRequest$.outboundSchema.parse(value$), + (value$) => + operations.ListMarketingautomationMessagesRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +65,14 @@ export class Message extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +83,12 @@ export class Message extends ClientSDK { security$ = {}; } const context = { - operationID: "getMessages", + operationID: "listMarketingautomationMessages", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +98,26 @@ export class Message extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMessagesResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingautomationMessagesResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +130,16 @@ export class Message extends ClientSDK { * @remarks * Retrieve a message from any connected Marketingautomation software */ - async getMessage( - request: operations.GetMessageRequest, + async retrieve( + request: operations.RetrieveMarketingautomationMessageRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetMessageRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingautomationMessageRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +153,14 @@ export class Message extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +171,12 @@ export class Message extends ClientSDK { security$ = {}; } const context = { - operationID: "getMessage", + operationID: "retrieveMarketingautomationMessage", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,22 +186,29 @@ export class Message extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMessageResponse$, { - key: "UnifiedMarketingautomationMessageOutput", - }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); + const [result$] = + await this.matcher() + .json(200, operations.RetrieveMarketingautomationMessageResponse$inboundSchema, { + key: "UnifiedMarketingautomationMessageOutput", + }) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); return result$; } diff --git a/src/sdk/notes.ts b/src/sdk/notes.ts index debdf2bc..d32b7391 100644 --- a/src/sdk/notes.ts +++ b/src/sdk/notes.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Notes extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmNoteRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmNoteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Notes extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Notes extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Notes extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmNoteResponse$, { key: "object" }) + .json(200, operations.ListCrmNoteResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Notes extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateCrmNoteRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmNoteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmNoteInput, { explode: true }); @@ -148,13 +147,15 @@ export class Notes extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Notes extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Notes extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateCrmNoteResponse$, { key: "UnifiedCrmNoteOutput" }) + .json(201, operations.CreateCrmNoteResponse$inboundSchema, { + key: "UnifiedCrmNoteOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Notes extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmNoteRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmNoteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Notes extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Notes extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Notes extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmNoteResponse$, { key: "UnifiedCrmNoteOutput" }) + .json(200, operations.RetrieveCrmNoteResponse$inboundSchema, { + key: "UnifiedCrmNoteOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/offer.ts b/src/sdk/offer.ts index 2bbd78b1..f964597c 100644 --- a/src/sdk/offer.ts +++ b/src/sdk/offer.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Offer extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsOfferRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsOfferRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Offer extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Offer extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Offer extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsOfferResponse$, { key: "object" }) + .json(200, operations.ListAtsOfferResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Offer extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsOfferRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsOfferRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Offer extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Offer extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Offer extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsOfferResponse$, { key: "UnifiedAtsOfferOutput" }) + .json(200, operations.RetrieveAtsOfferResponse$inboundSchema, { + key: "UnifiedAtsOfferOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/office.ts b/src/sdk/office.ts index 8c56b3fa..b4230074 100644 --- a/src/sdk/office.ts +++ b/src/sdk/office.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Office extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsOfficeRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsOfficeRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Office extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Office extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Office extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsOfficeResponse$, { key: "object" }) + .json(200, operations.ListAtsOfficeResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Office extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsOfficeRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsOfficeRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Office extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Office extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Office extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsOfficeResponse$, { key: "UnifiedAtsOfficeOutput" }) + .json(200, operations.RetrieveAtsOfficeResponse$inboundSchema, { + key: "UnifiedAtsOfficeOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/panoraattachment.ts b/src/sdk/panoraattachment.ts index 20015a2d..a996df28 100644 --- a/src/sdk/panoraattachment.ts +++ b/src/sdk/panoraattachment.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class PanoraAttachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingAttachmentsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingAttachmentsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class PanoraAttachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class PanoraAttachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class PanoraAttachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingAttachmentsResponse$, { key: "object" }) + .json(200, operations.ListAccountingAttachmentsResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +135,10 @@ export class PanoraAttachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingAttachmentInput, { @@ -150,13 +151,15 @@ export class PanoraAttachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class PanoraAttachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class PanoraAttachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingAttachmentResponse$, { + .json(201, operations.CreateAccountingAttachmentResponse$inboundSchema, { key: "UnifiedAccountingAttachmentOutput", }) .fail(["4XX", "5XX"]) @@ -214,14 +222,10 @@ export class PanoraAttachment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => - operations.RetrieveAccountingAttachmentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingAttachmentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -235,13 +239,14 @@ export class PanoraAttachment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -258,7 +263,6 @@ export class PanoraAttachment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -268,18 +272,24 @@ export class PanoraAttachment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingAttachmentResponse$, { + .json(200, operations.RetrieveAccountingAttachmentResponse$inboundSchema, { key: "UnifiedAccountingAttachmentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/panoracontact.ts b/src/sdk/panoracontact.ts index 46397883..859f7eda 100644 --- a/src/sdk/panoracontact.ts +++ b/src/sdk/panoracontact.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class PanoraContact extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingContactsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingContactsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class PanoraContact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class PanoraContact extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class PanoraContact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingContactsResponse$, { key: "object" }) + .json(200, operations.ListAccountingContactsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class PanoraContact extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingContactRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingContactInput, { @@ -150,13 +149,15 @@ export class PanoraContact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class PanoraContact extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class PanoraContact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingContactResponse$, { + .json(201, operations.CreateAccountingContactResponse$inboundSchema, { key: "UnifiedAccountingContactOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class PanoraContact extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingContactRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class PanoraContact extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class PanoraContact extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class PanoraContact extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingContactResponse$, { + .json(200, operations.RetrieveAccountingContactResponse$inboundSchema, { key: "UnifiedAccountingContactOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/panoracontacts.ts b/src/sdk/panoracontacts.ts index e0585772..ce826a60 100644 --- a/src/sdk/panoracontacts.ts +++ b/src/sdk/panoracontacts.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class PanoraContacts extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmContactsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmContactsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class PanoraContacts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class PanoraContacts extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class PanoraContacts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmContactsResponse$, { key: "object" }) + .json(200, operations.ListCrmContactsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -125,19 +128,15 @@ export class PanoraContacts extends ClientSDK { * @remarks * Create a contact in any supported CRM */ - async addCrmContact( - request: operations.AddCrmContactRequest, + async create( + request: operations.CreateCrmContactRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.AddCrmContactRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmContactInput, { explode: true }); @@ -148,13 +147,15 @@ export class PanoraContacts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -165,13 +166,12 @@ export class PanoraContacts extends ClientSDK { security$ = {}; } const context = { - operationID: "addCrmContact", + operationID: "createCrmContact", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class PanoraContacts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.AddCrmContactResponse$, { key: "UnifiedCrmContactOutput" }) + const [result$] = await this.matcher() + .json(201, operations.CreateCrmContactResponse$inboundSchema, { + key: "UnifiedCrmContactOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -205,18 +213,15 @@ export class PanoraContacts extends ClientSDK { * @remarks * Retrieve a contact from any connected CRM */ - async getCrmContact( - request: operations.GetCrmContactRequest, + async retrieve( + request: operations.RetrieveCrmContactRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetCrmContactRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmContactRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class PanoraContacts extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -247,13 +253,12 @@ export class PanoraContacts extends ClientSDK { security$ = {}; } const context = { - operationID: "getCrmContact", + operationID: "retrieveCrmContact", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class PanoraContacts extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetCrmContactResponse$, { key: "UnifiedCrmContactOutput" }) + const [result$] = await this.matcher() + .json(200, operations.RetrieveCrmContactResponse$inboundSchema, { + key: "UnifiedCrmContactOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/panorafilestorageusers.ts b/src/sdk/panorafilestorageusers.ts index bcbc1328..1dd67117 100644 --- a/src/sdk/panorafilestorageusers.ts +++ b/src/sdk/panorafilestorageusers.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,15 @@ export class PanoraFilestorageUsers extends ClientSDK { /** * List a batch of Users */ - async getUsers( - request: operations.GetUsersRequest, + async list( + request: operations.ListFilestorageUsersRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetUsersRequest$.outboundSchema.parse(value$), + (value$) => operations.ListFilestorageUsersRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class PanoraFilestorageUsers extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +82,12 @@ export class PanoraFilestorageUsers extends ClientSDK { security$ = {}; } const context = { - operationID: "getUsers", + operationID: "listFilestorageUsers", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class PanoraFilestorageUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetUsersResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListFilestorageUsersResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +127,15 @@ export class PanoraFilestorageUsers extends ClientSDK { * @remarks * Retrieve a permission from any connected Filestorage software */ - async getUser( - request: operations.GetUserRequest, + async retrieve( + request: operations.RetrieveFilestorageUserRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetUserRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveFilestorageUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class PanoraFilestorageUsers extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +167,12 @@ export class PanoraFilestorageUsers extends ClientSDK { security$ = {}; } const context = { - operationID: "getUser", + operationID: "retrieveFilestorageUser", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class PanoraFilestorageUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetUserResponse$, { key: "UnifiedUserOutput" }) + const [result$] = await this.matcher() + .json(200, operations.RetrieveFilestorageUserResponse$inboundSchema, { + key: "UnifiedUserOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/panorauser.ts b/src/sdk/panorauser.ts index 923f7cd4..dfcd76d1 100644 --- a/src/sdk/panorauser.ts +++ b/src/sdk/panorauser.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class PanoraUser extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsUsersRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsUsersRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class PanoraUser extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class PanoraUser extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class PanoraUser extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsUsersResponse$, { key: "object" }) + .json(200, operations.ListAtsUsersResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class PanoraUser extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsUserRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class PanoraUser extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class PanoraUser extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class PanoraUser extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsUserResponse$, { key: "UnifiedAtsUserOutput" }) + .json(200, operations.RetrieveAtsUserResponse$inboundSchema, { + key: "UnifiedAtsUserOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/panorausers.ts b/src/sdk/panorausers.ts index d3d899b5..551187e4 100644 --- a/src/sdk/panorausers.ts +++ b/src/sdk/panorausers.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class PanoraUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmUsersRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmUsersRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class PanoraUsers extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class PanoraUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class PanoraUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmUsersResponse$, { key: "object" }) + .json(200, operations.ListCrmUsersResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class PanoraUsers extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmUserRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class PanoraUsers extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class PanoraUsers extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class PanoraUsers extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmUserResponse$, { key: "UnifiedCrmUserOutput" }) + .json(200, operations.RetrieveCrmUserResponse$inboundSchema, { + key: "UnifiedCrmUserOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/passthrough.ts b/src/sdk/passthrough.ts index e87b7586..dccaf2ed 100644 --- a/src/sdk/passthrough.ts +++ b/src/sdk/passthrough.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -48,14 +48,10 @@ export class Passthrough extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RequestRequest$.outboundSchema.parse(value$), + (value$) => operations.RequestRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.PassThroughRequestDto, { explode: true }); @@ -68,6 +64,11 @@ export class Passthrough extends ClientSDK { vertical: payload$.vertical, }); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -83,7 +84,6 @@ export class Passthrough extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -93,18 +93,24 @@ export class Passthrough extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RequestResponse$, { key: "PassThroughResponse" }) + .json(200, operations.RequestResponse$inboundSchema, { key: "PassThroughResponse" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/paygroup.ts b/src/sdk/paygroup.ts index 3f6f71e4..b0331544 100644 --- a/src/sdk/paygroup.ts +++ b/src/sdk/paygroup.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Paygroup extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisPaygroupRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisPaygroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Paygroup extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Paygroup extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Paygroup extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisPaygroupResponse$, { key: "object" }) + .json(200, operations.ListHrisPaygroupResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Paygroup extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisPaygroupRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisPaygroupRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Paygroup extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Paygroup extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Paygroup extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisPaygroupResponse$, { + .json(200, operations.RetrieveHrisPaygroupResponse$inboundSchema, { key: "UnifiedHrisPaygroupOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/payment.ts b/src/sdk/payment.ts index 8be656c9..8f62f83f 100644 --- a/src/sdk/payment.ts +++ b/src/sdk/payment.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Payment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingPaymentRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingPaymentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Payment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Payment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Payment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingPaymentResponse$, { key: "object" }) + .json(200, operations.ListAccountingPaymentResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Payment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateAccountingPaymentRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateAccountingPaymentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingPaymentInput, { @@ -150,13 +149,15 @@ export class Payment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +174,6 @@ export class Payment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +183,24 @@ export class Payment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingPaymentResponse$, { + .json(201, operations.CreateAccountingPaymentResponse$inboundSchema, { key: "UnifiedAccountingPaymentOutput", }) .fail(["4XX", "5XX"]) @@ -214,13 +220,10 @@ export class Payment extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingPaymentRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingPaymentRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +237,14 @@ export class Payment extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -257,7 +261,6 @@ export class Payment extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,18 +270,24 @@ export class Payment extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingPaymentResponse$, { + .json(200, operations.RetrieveAccountingPaymentResponse$inboundSchema, { key: "UnifiedAccountingPaymentOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/payrollrun.ts b/src/sdk/payrollrun.ts index 939e8582..7b10b9e0 100644 --- a/src/sdk/payrollrun.ts +++ b/src/sdk/payrollrun.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Payrollrun extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisPayrollRunsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisPayrollRunsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Payrollrun extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Payrollrun extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Payrollrun extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisPayrollRunsResponse$, { key: "object" }) + .json(200, operations.ListHrisPayrollRunsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/phonenumber.ts b/src/sdk/phonenumber.ts index ffc2a744..822f5a6c 100644 --- a/src/sdk/phonenumber.ts +++ b/src/sdk/phonenumber.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Phonenumber extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingPhonenumberRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingPhonenumberRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Phonenumber extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Phonenumber extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Phonenumber extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingPhonenumberResponse$, { key: "object" }) + .json(200, operations.ListAccountingPhonenumberResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Phonenumber extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingPhonenumberRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingPhonenumberRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Phonenumber extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Phonenumber extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Phonenumber extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingPhonenumberResponse$, { + .json(200, operations.RetrieveAccountingPhonenumberResponse$inboundSchema, { key: "UnifiedAccountingPhonenumberOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/purchaseorder.ts b/src/sdk/purchaseorder.ts index 88a470b2..277e4691 100644 --- a/src/sdk/purchaseorder.ts +++ b/src/sdk/purchaseorder.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Purchaseorder extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingPurchaseOrderRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingPurchaseOrderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Purchaseorder extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Purchaseorder extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Purchaseorder extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingPurchaseOrderResponse$, { key: "object" }) + .json(200, operations.ListAccountingPurchaseOrderResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,15 +135,11 @@ export class Purchaseorder extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.CreateAccountingPurchaseOrderRequest$.outboundSchema.parse(value$), + operations.CreateAccountingPurchaseOrderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedAccountingPurchaseorderInput, { @@ -151,13 +152,15 @@ export class Purchaseorder extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -174,7 +177,6 @@ export class Purchaseorder extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -184,18 +186,24 @@ export class Purchaseorder extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateAccountingPurchaseOrderResponse$, { + .json(201, operations.CreateAccountingPurchaseOrderResponse$inboundSchema, { key: "UnifiedAccountingPurchaseorderOutput", }) .fail(["4XX", "5XX"]) @@ -215,14 +223,11 @@ export class Purchaseorder extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingPurchaseOrderRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingPurchaseOrderRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -236,13 +241,14 @@ export class Purchaseorder extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -259,7 +265,6 @@ export class Purchaseorder extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -269,18 +274,24 @@ export class Purchaseorder extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingPurchaseOrderResponse$, { + .json(200, operations.RetrieveAccountingPurchaseOrderResponse$inboundSchema, { key: "UnifiedAccountingPurchaseorderOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/rejectreason.ts b/src/sdk/rejectreason.ts index ede7e5a8..daafb661 100644 --- a/src/sdk/rejectreason.ts +++ b/src/sdk/rejectreason.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,15 @@ export class Rejectreason extends ClientSDK { /** * List a batch of RejectReasons */ - async getRejectReasons( - request: operations.GetRejectReasonsRequest, + async list( + request: operations.ListAtsRejectReasonsRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetRejectReasonsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsRejectReasonsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Rejectreason extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +82,12 @@ export class Rejectreason extends ClientSDK { security$ = {}; } const context = { - operationID: "getRejectReasons", + operationID: "listAtsRejectReasons", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Rejectreason extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetRejectReasonsResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListAtsRejectReasonsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +127,15 @@ export class Rejectreason extends ClientSDK { * @remarks * Retrieve a rejectreason from any connected Ats software */ - async getRejectReason( - request: operations.GetRejectReasonRequest, + async retrieve( + request: operations.RetrieveAtsRejectReasonRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetRejectReasonRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsRejectReasonRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Rejectreason extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +167,12 @@ export class Rejectreason extends ClientSDK { security$ = {}; } const context = { - operationID: "getRejectReason", + operationID: "retrieveAtsRejectReason", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Rejectreason extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetRejectReasonResponse$, { key: "UnifiedAtsRejectreasonOutput" }) + const [result$] = await this.matcher() + .json(200, operations.RetrieveAtsRejectReasonResponse$inboundSchema, { + key: "UnifiedAtsRejectreasonOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/scorecard.ts b/src/sdk/scorecard.ts index 27b7cd01..14824fbb 100644 --- a/src/sdk/scorecard.ts +++ b/src/sdk/scorecard.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Scorecard extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsScorecardRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsScorecardRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Scorecard extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Scorecard extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Scorecard extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsScorecardResponse$, { key: "object" }) + .json(200, operations.ListAtsScorecardResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Scorecard extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsScorecardRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsScorecardRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Scorecard extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Scorecard extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Scorecard extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsScorecardResponse$, { + .json(200, operations.RetrieveAtsScorecardResponse$inboundSchema, { key: "UnifiedAtsScorecardOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 008e646c..41857e6b 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { HTTPClient } from "../lib/http.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; @@ -107,17 +107,15 @@ export class Panora extends ClientSDK { return (this._filestorage ??= new Filestorage(this.options$)); } - async appControllerHello( - options?: RequestOptions - ): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); - + async home(options?: RequestOptions): Promise { const path$ = this.templateURLComponent("/")(); const query$ = ""; + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -127,13 +125,12 @@ export class Panora extends ClientSDK { security$ = {}; } const context = { - operationID: "AppController_hello", + operationID: "home", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -142,85 +139,38 @@ export class Panora extends ClientSDK { path: path$, headers: headers$, query: query$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.AppControllerHelloResponse$, { key: "string" }) + const [result$] = await this.matcher() + .void(200, operations.HomeResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); return result$; } - async getHealth(options?: RequestOptions): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); - + async health(options?: RequestOptions): Promise { const path$ = this.templateURLComponent("/health")(); const query$ = ""; - let security$; - if (typeof this.options$.bearer === "function") { - security$ = { bearer: await this.options$.bearer() }; - } else if (this.options$.bearer) { - security$ = { bearer: this.options$.bearer }; - } else { - security$ = {}; - } - const context = { - operationID: "getHealth", - oAuth2Scopes: [], - securitySource: this.options$.bearer, - }; - const securitySettings$ = this.resolveGlobalSecurity(security$); - - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; - const request$ = this.createRequest$( - context, - { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - }, - options - ); - - const response = await this.do$(request$, doOptions); - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$] = await this.matcher() - .json(200, operations.GetHealthResponse$, { key: "number" }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); - - return result$; - } - - async getHelloProtected( - options?: RequestOptions - ): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); - - const path$ = this.templateURLComponent("/protected")(); - - const query$ = ""; + const headers$ = new Headers({ + Accept: "*/*", + }); let security$; if (typeof this.options$.bearer === "function") { @@ -231,13 +181,12 @@ export class Panora extends ClientSDK { security$ = {}; } const context = { - operationID: "getHelloProtected", + operationID: "health", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -246,18 +195,24 @@ export class Panora extends ClientSDK { path: path$, headers: headers$, query: query$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetHelloProtectedResponse$, { key: "string" }) + const [result$] = await this.matcher() + .void(200, operations.HealthResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/stages.ts b/src/sdk/stages.ts index 4fd2390e..81a58024 100644 --- a/src/sdk/stages.ts +++ b/src/sdk/stages.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Stages extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmStagesRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmStagesRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Stages extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Stages extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Stages extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmStagesResponse$, { key: "object" }) + .json(200, operations.ListCrmStagesResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Stages extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmStageRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmStageRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Stages extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Stages extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Stages extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmStageResponse$, { key: "UnifiedCrmStageOutput" }) + .json(200, operations.RetrieveCrmStageResponse$inboundSchema, { + key: "UnifiedCrmStageOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/sync.ts b/src/sdk/sync.ts index 375aad89..3f85a21f 100644 --- a/src/sdk/sync.ts +++ b/src/sdk/sync.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; import { HTTPClient } from "../lib/http.js"; import * as schemas$ from "../lib/schemas.js"; @@ -40,18 +40,15 @@ export class Sync extends ClientSDK { /** * Retrieve sync status of a certain vertical */ - async getSyncStatus( - request: operations.GetSyncStatusRequest, + async status( + request: operations.StatusRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "*/*"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetSyncStatusRequest$.outboundSchema.parse(value$), + (value$) => operations.StatusRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -66,6 +63,10 @@ export class Sync extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -75,13 +76,12 @@ export class Sync extends ClientSDK { security$ = {}; } const context = { - operationID: "getSyncStatus", + operationID: "status", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -91,18 +91,24 @@ export class Sync extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .void(200, operations.GetSyncStatusResponse$) + const [result$] = await this.matcher() + .void(200, operations.StatusResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -113,14 +119,14 @@ export class Sync extends ClientSDK { * Resync common objects across a vertical */ async resync(options?: RequestOptions): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "*/*"); - const path$ = this.templateURLComponent("/sync/resync")(); const query$ = ""; + const headers$ = new Headers({ + Accept: "*/*", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -136,7 +142,6 @@ export class Sync extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -145,18 +150,24 @@ export class Sync extends ClientSDK { path: path$, headers: headers$, query: query$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .void(200, operations.ResyncResponse$) + .void(200, operations.ResyncResponse$inboundSchema) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/tag.ts b/src/sdk/tag.ts index ade25c9b..90e6a439 100644 --- a/src/sdk/tag.ts +++ b/src/sdk/tag.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Tag extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAtsTagsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAtsTagsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Tag extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Tag extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Tag extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAtsTagsResponse$, { key: "object" }) + .json(200, operations.ListAtsTagsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Tag extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAtsTagRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAtsTagRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Tag extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Tag extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,26 @@ export class Tag extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAtsTagResponse$, { key: "UnifiedAtsTagOutput" }) + .json(200, operations.RetrieveAtsTagResponse$inboundSchema, { + key: "UnifiedAtsTagOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index ebc0f1f0..7e09bfeb 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Tags extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingTagsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingTagsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Tags extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Tags extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Tags extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingTagsResponse$, { key: "object" }) + .json(200, operations.ListTicketingTagsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Tags extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingTagRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingTagRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Tags extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Tags extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Tags extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingTagResponse$, { + .json(200, operations.RetrieveTicketingTagResponse$inboundSchema, { key: "UnifiedTicketingTagOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/tasks.ts b/src/sdk/tasks.ts index ebb0aa92..d2c84119 100644 --- a/src/sdk/tasks.ts +++ b/src/sdk/tasks.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Tasks extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListCrmTaskRequest$.outboundSchema.parse(value$), + (value$) => operations.ListCrmTaskRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Tasks extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Tasks extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Tasks extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListCrmTaskResponse$, { key: "object" }) + .json(200, operations.ListCrmTaskResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Tasks extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateCrmTaskRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateCrmTaskRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedCrmTaskInput, { explode: true }); @@ -148,13 +147,15 @@ export class Tasks extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Tasks extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Tasks extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateCrmTaskResponse$, { key: "UnifiedCrmTaskOutput" }) + .json(201, operations.CreateCrmTaskResponse$inboundSchema, { + key: "UnifiedCrmTaskOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Tasks extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveCrmTaskRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveCrmTaskRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Tasks extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Tasks extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Tasks extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveCrmTaskResponse$, { key: "UnifiedCrmTaskOutput" }) + .json(200, operations.RetrieveCrmTaskResponse$inboundSchema, { + key: "UnifiedCrmTaskOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/taxrate.ts b/src/sdk/taxrate.ts index 7b624362..b9a466ff 100644 --- a/src/sdk/taxrate.ts +++ b/src/sdk/taxrate.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Taxrate extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingTaxRateRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingTaxRateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Taxrate extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Taxrate extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Taxrate extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingTaxRateResponse$, { key: "object" }) + .json(200, operations.ListAccountingTaxRateResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Taxrate extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveAccountingTaxRateRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveAccountingTaxRateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Taxrate extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Taxrate extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Taxrate extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingTaxRateResponse$, { + .json(200, operations.RetrieveAccountingTaxRateResponse$inboundSchema, { key: "UnifiedAccountingTaxrateOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/teams.ts b/src/sdk/teams.ts index ccb6796c..91d7b74b 100644 --- a/src/sdk/teams.ts +++ b/src/sdk/teams.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Teams extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingTeamsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingTeamsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Teams extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Teams extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Teams extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingTeamsResponse$, { key: "object" }) + .json(200, operations.ListTicketingTeamsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Teams extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingTeamRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingTeamRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Teams extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Teams extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Teams extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingTeamResponse$, { + .json(200, operations.RetrieveTicketingTeamResponse$inboundSchema, { key: "UnifiedTicketingTeamOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/template.ts b/src/sdk/template.ts index f90bf670..71ff8b2e 100644 --- a/src/sdk/template.ts +++ b/src/sdk/template.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -44,18 +44,16 @@ export class Template extends ClientSDK { /** * List a batch of Templates */ - async getTemplates( - request: operations.GetTemplatesRequest, + async list( + request: operations.ListMarketingautomationTemplatesRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetTemplatesRequest$.outboundSchema.parse(value$), + (value$) => + operations.ListMarketingautomationTemplatesRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +66,14 @@ export class Template extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -85,13 +84,12 @@ export class Template extends ClientSDK { security$ = {}; } const context = { - operationID: "getTemplates", + operationID: "listMarketingautomationTemplates", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +99,26 @@ export class Template extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetTemplatesResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingautomationTemplatesResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -125,19 +131,16 @@ export class Template extends ClientSDK { * @remarks * Create a template in any supported Marketingautomation software */ - async addTemplate( - request: operations.AddTemplateRequest, + async create( + request: operations.CreateMarketingautomationTemplateRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.AddTemplateRequest$.outboundSchema.parse(value$), + (value$) => + operations.CreateMarketingautomationTemplateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedMarketingautomationTemplateInput, { @@ -150,13 +153,15 @@ export class Template extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -167,13 +172,12 @@ export class Template extends ClientSDK { security$ = {}; } const context = { - operationID: "addTemplate", + operationID: "createMarketingautomationTemplate", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +187,24 @@ export class Template extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.AddTemplateResponse$, { + const [result$] = await this.matcher() + .json(201, operations.CreateMarketingautomationTemplateResponse$inboundSchema, { key: "UnifiedMarketingautomationTemplateOutput", }) .fail(["4XX", "5XX"]) @@ -209,18 +219,16 @@ export class Template extends ClientSDK { * @remarks * Retrieve a template from any connected Marketingautomation software */ - async getTemplate( - request: operations.GetTemplateRequest, + async retrieve( + request: operations.RetrieveMarketingautomationTemplateRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetTemplateRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingautomationTemplateRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -234,13 +242,14 @@ export class Template extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -251,13 +260,12 @@ export class Template extends ClientSDK { security$ = {}; } const context = { - operationID: "getTemplate", + operationID: "retrieveMarketingautomationTemplate", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -267,22 +275,29 @@ export class Template extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetTemplateResponse$, { - key: "UnifiedMarketingautomationTemplateOutput", - }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); + const [result$] = + await this.matcher() + .json(200, operations.RetrieveMarketingautomationTemplateResponse$inboundSchema, { + key: "UnifiedMarketingautomationTemplateOutput", + }) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); return result$; } diff --git a/src/sdk/tickets.ts b/src/sdk/tickets.ts index 852ec722..af031674 100644 --- a/src/sdk/tickets.ts +++ b/src/sdk/tickets.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Tickets extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingTicketRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingTicketRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Tickets extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Tickets extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Tickets extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingTicketResponse$, { key: "object" }) + .json(200, operations.ListTicketingTicketResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Tickets extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateTicketingTicketRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateTicketingTicketRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedTicketingTicketInput, { explode: true }); @@ -148,13 +147,15 @@ export class Tickets extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Tickets extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,24 @@ export class Tickets extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateTicketingTicketResponse$, { + .json(201, operations.CreateTicketingTicketResponse$inboundSchema, { key: "UnifiedTicketingTicketOutput", }) .fail(["4XX", "5XX"]) @@ -212,13 +218,10 @@ export class Tickets extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingTicketRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingTicketRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -232,13 +235,14 @@ export class Tickets extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -255,7 +259,6 @@ export class Tickets extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -265,18 +268,24 @@ export class Tickets extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingTicketResponse$, { + .json(200, operations.RetrieveTicketingTicketResponse$inboundSchema, { key: "UnifiedTicketingTicketOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/timeoff.ts b/src/sdk/timeoff.ts index 320c443f..7692bc62 100644 --- a/src/sdk/timeoff.ts +++ b/src/sdk/timeoff.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -49,13 +49,10 @@ export class Timeoff extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisTimeoffsRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisTimeoffsRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Timeoff extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Timeoff extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,24 @@ export class Timeoff extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisTimeoffsResponse$, { key: "object" }) + .json(200, operations.ListHrisTimeoffsResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +133,10 @@ export class Timeoff extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.CreateHrisTimeoffRequest$.outboundSchema.parse(value$), + (value$) => operations.CreateHrisTimeoffRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$.UnifiedHrisTimeoffInput, { explode: true }); @@ -148,13 +147,15 @@ export class Timeoff extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -171,7 +172,6 @@ export class Timeoff extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -181,18 +181,26 @@ export class Timeoff extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateHrisTimeoffResponse$, { key: "UnifiedHrisTimeoffOutput" }) + .json(201, operations.CreateHrisTimeoffResponse$inboundSchema, { + key: "UnifiedHrisTimeoffOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -210,13 +218,10 @@ export class Timeoff extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisTimeoffRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisTimeoffRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -230,13 +235,14 @@ export class Timeoff extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -253,7 +259,6 @@ export class Timeoff extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -263,18 +268,26 @@ export class Timeoff extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisTimeoffResponse$, { key: "UnifiedHrisTimeoffOutput" }) + .json(200, operations.RetrieveHrisTimeoffResponse$inboundSchema, { + key: "UnifiedHrisTimeoffOutput", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/timeoffbalance.ts b/src/sdk/timeoffbalance.ts index ca0a130d..ae9b856a 100644 --- a/src/sdk/timeoffbalance.ts +++ b/src/sdk/timeoffbalance.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Timeoffbalance extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListHrisTimeoffbalanceRequest$.outboundSchema.parse(value$), + (value$) => operations.ListHrisTimeoffbalanceRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Timeoffbalance extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Timeoffbalance extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Timeoffbalance extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListHrisTimeoffbalanceResponse$, { key: "object" }) + .json(200, operations.ListHrisTimeoffbalanceResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Timeoffbalance extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveHrisTimeoffbalanceRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveHrisTimeoffbalanceRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Timeoffbalance extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Timeoffbalance extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Timeoffbalance extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveHrisTimeoffbalanceResponse$, { + .json(200, operations.RetrieveHrisTimeoffbalanceResponse$inboundSchema, { key: "UnifiedHrisTimeoffbalanceOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/trackingcategory.ts b/src/sdk/trackingcategory.ts index 4579eda0..2cf0614c 100644 --- a/src/sdk/trackingcategory.ts +++ b/src/sdk/trackingcategory.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,14 +48,11 @@ export class Trackingcategory extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.ListAccountingTrackingCategorysRequest$.outboundSchema.parse(value$), + operations.ListAccountingTrackingCategorysRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -68,13 +65,14 @@ export class Trackingcategory extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -91,7 +89,6 @@ export class Trackingcategory extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -101,18 +98,26 @@ export class Trackingcategory extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingTrackingCategorysResponse$, { key: "object" }) + .json(200, operations.ListAccountingTrackingCategorysResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -130,14 +135,11 @@ export class Trackingcategory extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingTrackingCategoryRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingTrackingCategoryRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -151,13 +153,14 @@ export class Trackingcategory extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -174,7 +177,6 @@ export class Trackingcategory extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -184,11 +186,17 @@ export class Trackingcategory extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, @@ -196,7 +204,7 @@ export class Trackingcategory extends ClientSDK { const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingTrackingCategoryResponse$, { + .json(200, operations.RetrieveAccountingTrackingCategoryResponse$inboundSchema, { key: "UnifiedAccountingTrackingcategoryOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/transaction.ts b/src/sdk/transaction.ts index 23428ba6..99168560 100644 --- a/src/sdk/transaction.ts +++ b/src/sdk/transaction.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Transaction extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingTransactionRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingTransactionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Transaction extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Transaction extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Transaction extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingTransactionResponse$, { key: "object" }) + .json(200, operations.ListAccountingTransactionResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Transaction extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingTransactionRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingTransactionRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Transaction extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Transaction extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Transaction extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingTransactionResponse$, { + .json(200, operations.RetrieveAccountingTransactionResponse$inboundSchema, { key: "UnifiedAccountingTransactionOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/user.ts b/src/sdk/user.ts index b5aee00d..332ab068 100644 --- a/src/sdk/user.ts +++ b/src/sdk/user.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -43,18 +43,15 @@ export class User extends ClientSDK { /** * List a batch of Users */ - async getMarketingAutomationUsers( - request: operations.GetMarketingAutomationUsersRequest, + async list( + request: operations.ListMarketingAutomationUsersRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetMarketingAutomationUsersRequest$.outboundSchema.parse(value$), + (value$) => operations.ListMarketingAutomationUsersRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class User extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -84,13 +82,12 @@ export class User extends ClientSDK { security$ = {}; } const context = { - operationID: "getMarketingAutomationUsers", + operationID: "listMarketingAutomationUsers", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class User extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMarketingAutomationUsersResponse$, { key: "object" }) + const [result$] = await this.matcher() + .json(200, operations.ListMarketingAutomationUsersResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -124,18 +129,16 @@ export class User extends ClientSDK { * @remarks * Retrieve a user from any connected Marketingautomation software */ - async getMarketingAutomationUser( - request: operations.GetMarketingAutomationUserRequest, + async retrieve( + request: operations.RetrieveMarketingAutomationUserRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.GetMarketingAutomationUserRequest$.outboundSchema.parse(value$), + (value$) => + operations.RetrieveMarketingAutomationUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +152,14 @@ export class User extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -166,13 +170,12 @@ export class User extends ClientSDK { security$ = {}; } const context = { - operationID: "getMarketingAutomationUser", + operationID: "retrieveMarketingAutomationUser", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +185,24 @@ export class User extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(200, operations.GetMarketingAutomationUserResponse$, { + const [result$] = await this.matcher() + .json(200, operations.RetrieveMarketingAutomationUserResponse$inboundSchema, { key: "UnifiedMarketingautomationUserOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/users.ts b/src/sdk/users.ts index 6ad31b90..0a5ac546 100644 --- a/src/sdk/users.ts +++ b/src/sdk/users.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Users extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListTicketingUsersRequest$.outboundSchema.parse(value$), + (value$) => operations.ListTicketingUsersRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Users extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Users extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,24 @@ export class Users extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListTicketingUsersResponse$, { key: "object" }) + .json(200, operations.ListTicketingUsersResponse$inboundSchema, { key: "object" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,13 +132,10 @@ export class Users extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.RetrieveTicketingUserRequest$.outboundSchema.parse(value$), + (value$) => operations.RetrieveTicketingUserRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -149,13 +149,14 @@ export class Users extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -172,7 +173,6 @@ export class Users extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -182,18 +182,24 @@ export class Users extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveTicketingUserResponse$, { + .json(200, operations.RetrieveTicketingUserResponse$inboundSchema, { key: "UnifiedTicketingUserOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/vendorcredit.ts b/src/sdk/vendorcredit.ts index 731e9e94..72e0fe34 100644 --- a/src/sdk/vendorcredit.ts +++ b/src/sdk/vendorcredit.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -48,13 +48,10 @@ export class Vendorcredit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.ListAccountingVendorCreditRequest$.outboundSchema.parse(value$), + (value$) => operations.ListAccountingVendorCreditRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -67,13 +64,14 @@ export class Vendorcredit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -90,7 +88,6 @@ export class Vendorcredit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -100,18 +97,26 @@ export class Vendorcredit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListAccountingVendorCreditResponse$, { key: "object" }) + .json(200, operations.ListAccountingVendorCreditResponse$inboundSchema, { + key: "object", + }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -129,14 +134,11 @@ export class Vendorcredit extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, (value$) => - operations.RetrieveAccountingVendorCreditRequest$.outboundSchema.parse(value$), + operations.RetrieveAccountingVendorCreditRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -150,13 +152,14 @@ export class Vendorcredit extends ClientSDK { remote_data: payload$.remote_data, }); - headers$.set( - "x-connection-token", - encodeSimple$("x-connection-token", payload$["x-connection-token"], { - explode: false, - charEncoding: "none", - }) - ); + const headers$ = new Headers({ + Accept: "application/json", + "x-connection-token": encodeSimple$( + "x-connection-token", + payload$["x-connection-token"], + { explode: false, charEncoding: "none" } + ), + }); let security$; if (typeof this.options$.bearer === "function") { @@ -173,7 +176,6 @@ export class Vendorcredit extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -183,18 +185,24 @@ export class Vendorcredit extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.RetrieveAccountingVendorCreditResponse$, { + .json(200, operations.RetrieveAccountingVendorCreditResponse$inboundSchema, { key: "UnifiedAccountingVendorcreditOutput", }) .fail(["4XX", "5XX"]) diff --git a/src/sdk/webhook.ts b/src/sdk/webhook.ts index 947eedfe..7f938acb 100644 --- a/src/sdk/webhook.ts +++ b/src/sdk/webhook.ts @@ -3,7 +3,7 @@ */ import { SDKHooks } from "../hooks/hooks.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js"; +import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js"; import { HTTPClient } from "../lib/http.js"; import * as schemas$ from "../lib/schemas.js"; @@ -42,14 +42,14 @@ export class Webhook extends ClientSDK { * List webhooks */ async list(options?: RequestOptions): Promise { - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); - const path$ = this.templateURLComponent("/webhook")(); const query$ = ""; + const headers$ = new Headers({ + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -65,7 +65,6 @@ export class Webhook extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -74,18 +73,24 @@ export class Webhook extends ClientSDK { path: path$, headers: headers$, query: query$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(200, operations.ListWebhooksResponse$, { key: "WebhookResponses" }) + .json(200, operations.ListWebhooksResponse$inboundSchema, { key: "WebhookResponses" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -100,14 +105,10 @@ export class Webhook extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => components.WebhookDto$.outboundSchema.parse(value$), + (value$) => components.WebhookDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -116,6 +117,11 @@ export class Webhook extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -131,7 +137,6 @@ export class Webhook extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -141,18 +146,24 @@ export class Webhook extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.CreateWebhookResponse$, { key: "WebhookResponse" }) + .json(201, operations.CreateWebhookResponse$inboundSchema, { key: "WebhookResponse" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -162,18 +173,15 @@ export class Webhook extends ClientSDK { /** * Delete Webhook */ - async deleteWebhook( - request: operations.DeleteWebhookRequest, + async delete( + request: operations.DeleteRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.DeleteWebhookRequest$.outboundSchema.parse(value$), + (value$) => operations.DeleteRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -185,6 +193,10 @@ export class Webhook extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -194,13 +206,12 @@ export class Webhook extends ClientSDK { security$ = {}; } const context = { - operationID: "deleteWebhook", + operationID: "delete", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -210,18 +221,24 @@ export class Webhook extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.DeleteWebhookResponse$, { key: "WebhookResponse" }) + const [result$] = await this.matcher() + .json(201, operations.DeleteResponse$inboundSchema, { key: "WebhookResponse" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -231,18 +248,15 @@ export class Webhook extends ClientSDK { /** * Update webhook status */ - async updateWebhookStatus( - request: operations.UpdateWebhookStatusRequest, + async updateStatus( + request: operations.UpdateStatusRequest, options?: RequestOptions - ): Promise { + ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => operations.UpdateWebhookStatusRequest$.outboundSchema.parse(value$), + (value$) => operations.UpdateStatusRequest$outboundSchema.parse(value$), "Input validation failed" ); const body$ = null; @@ -254,6 +268,10 @@ export class Webhook extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -263,13 +281,12 @@ export class Webhook extends ClientSDK { security$ = {}; } const context = { - operationID: "updateWebhookStatus", + operationID: "updateStatus", oAuth2Scopes: [], securitySource: this.options$.bearer, }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -279,18 +296,24 @@ export class Webhook extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; - const [result$] = await this.matcher() - .json(201, operations.UpdateWebhookStatusResponse$, { key: "WebhookResponse" }) + const [result$] = await this.matcher() + .json(201, operations.UpdateStatusResponse$inboundSchema, { key: "WebhookResponse" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -305,14 +328,10 @@ export class Webhook extends ClientSDK { options?: RequestOptions ): Promise { const input$ = request; - const headers$ = new Headers(); - headers$.set("user-agent", SDK_METADATA.userAgent); - headers$.set("Content-Type", "application/json"); - headers$.set("Accept", "application/json"); const payload$ = schemas$.parse( input$, - (value$) => components.SignatureVerificationDto$.outboundSchema.parse(value$), + (value$) => components.SignatureVerificationDto$outboundSchema.parse(value$), "Input validation failed" ); const body$ = encodeJSON$("body", payload$, { explode: true }); @@ -321,6 +340,11 @@ export class Webhook extends ClientSDK { const query$ = ""; + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + }); + let security$; if (typeof this.options$.bearer === "function") { security$ = { bearer: await this.options$.bearer() }; @@ -336,7 +360,6 @@ export class Webhook extends ClientSDK { }; const securitySettings$ = this.resolveGlobalSecurity(security$); - const doOptions = { context, errorCodes: ["4XX", "5XX"] }; const request$ = this.createRequest$( context, { @@ -346,18 +369,24 @@ export class Webhook extends ClientSDK { headers: headers$, query: query$, body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, }, options ); - const response = await this.do$(request$, doOptions); + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); const responseFields$ = { HttpMeta: { Response: response, Request: request$ }, }; const [result$] = await this.matcher() - .json(201, operations.VerifyEventResponse$, { key: "EventPayload" }) + .json(201, operations.VerifyEventResponse$inboundSchema, { key: "EventPayload" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ });