From 2f656cd732935bc57ca55dd7b437ab80b5360e4f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 18 Nov 2024 18:04:49 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.440.2 --- .speakeasy/gen.lock | 487 +- .speakeasy/gen.yaml | 5 +- .speakeasy/workflow.lock | 14 +- FUNCTIONS.md | 2 +- README.md | 634 +-- RELEASES.md | 12 +- codeSamples.yaml | 4414 ++++++++++++++--- docs/models/components/applications.md | 24 - docs/models/components/attachments.md | 27 +- docs/models/components/collections.md | 27 +- docs/models/components/deductionitem.md | 21 - docs/models/components/earningitem.md | 19 - docs/models/components/email.md | 2 +- docs/models/components/headers.md | 14 - docs/models/components/logindto.md | 5 +- docs/models/components/ownertype.md | 2 +- .../components/passthroughrequestdto.md | 16 +- docs/models/components/phone.md | 2 +- docs/models/components/projectresponse.md | 4 +- docs/models/components/remotedata.md | 2 +- docs/models/components/requestformat.md | 19 +- docs/models/components/tags.md | 27 +- docs/models/components/taxitem.md | 21 - .../unifiedaccountingaccountoutput.md | 36 +- ...iedaccountingaccountoutputfieldmappings.md | 16 - ...nifiedaccountingaccountoutputremotedata.md | 16 - .../components/unifiedatsactivityinput.md | 32 - .../components/unifiedatsactivityoutput.md | 45 - .../components/unifiedatsapplicationinput.md | 41 - .../components/unifiedatsapplicationoutput.md | 56 - .../components/unifiedatsattachmentinput.md | 32 - .../components/unifiedatsattachmentoutput.md | 45 - .../components/unifiedatscandidateinput.md | 74 - .../unifiedatscandidateinputapplications.md | 24 - .../unifiedatscandidateinputattachments.md | 24 - .../unifiedatscandidateinputtags.md | 24 - .../components/unifiedatscandidateoutput.md | 87 - .../unifiedatscandidateoutputattachments.md | 24 - .../unifiedatscandidateoutputtags.md | 39 - .../components/unifiedatsdepartmentoutput.md | 36 - .../components/unifiedatseeocsoutput.md | 45 - .../components/unifiedatsinterviewinput.md | 42 - .../components/unifiedatsinterviewoutput.md | 55 - .../unifiedatsjobinterviewstageoutput.md | 39 - docs/models/components/unifiedatsjoboutput.md | 66 - .../components/unifiedatsofferoutput.md | 47 - .../unifiedatsofferoutputcreatedat.md | 16 - .../unifiedatsofferoutputmodifiedat.md | 16 - .../components/unifiedatsofficeoutput.md | 37 - .../unifiedatsrejectreasonoutput.md | 35 - .../components/unifiedatsscorecardoutput.md | 43 - docs/models/components/unifiedatstagoutput.md | 37 - .../models/components/unifiedatsuseroutput.md | 47 - .../components/unifiedcrmcontactinput.md | 4 +- .../components/unifiedcrmcontactoutput.md | 4 +- .../components/unifiedhrisbankinfooutput.md | 41 - .../components/unifiedhrisbenefitoutput.md | 45 - .../unifiedhrisbenefitoutputfieldmappings.md | 16 - .../unifiedhrisbenefitoutputremotedata.md | 16 - .../components/unifiedhriscompanyoutput.md | 44 - .../unifiedhriscompanyoutputfieldmappings.md | 16 - .../unifiedhriscompanyoutputremotedata.md | 16 - .../components/unifiedhrisdependentoutput.md | 53 - ...unifiedhrisdependentoutputfieldmappings.md | 16 - .../unifiedhrisdependentoutputremotedata.md | 16 - .../components/unifiedhrisemployeeinput.md | 71 - .../unifiedhrisemployeeinputfieldmappings.md | 16 - .../components/unifiedhrisemployeeoutput.md | 85 - .../unifiedhrisemployeeoutputfieldmappings.md | 16 - .../unifiedhrisemployeeoutputremotedata.md | 16 - .../unifiedhrisemployeepayrollrunoutput.md | 68 - ...isemployeepayrollrunoutputfieldmappings.md | 16 - ...dhrisemployeepayrollrunoutputremotedata.md | 16 - .../unifiedhrisemployerbenefitoutput.md | 39 - ...dhrisemployerbenefitoutputfieldmappings.md | 16 - ...fiedhrisemployerbenefitoutputremotedata.md | 16 - .../components/unifiedhrisemploymentoutput.md | 51 - ...nifiedhrisemploymentoutputfieldmappings.md | 16 - .../unifiedhrisemploymentoutputremotedata.md | 16 - .../components/unifiedhrisgroupoutput.md | 37 - .../unifiedhrisgroupoutputfieldmappings.md | 16 - .../unifiedhrisgroupoutputremotedata.md | 16 - .../components/unifiedhrislocationoutput.md | 53 - .../unifiedhrislocationoutputfieldmappings.md | 16 - .../unifiedhrislocationoutputremotedata.md | 16 - .../components/unifiedhrispaygroupoutput.md | 33 - .../unifiedhrispaygroupoutputfieldmappings.md | 16 - .../unifiedhrispaygroupoutputremotedata.md | 16 - .../components/unifiedhrispayrollrunoutput.md | 45 - ...nifiedhrispayrollrunoutputfieldmappings.md | 16 - .../unifiedhrispayrollrunoutputremotedata.md | 16 - .../unifiedhristimeoffbalanceoutput.md | 39 - ...edhristimeoffbalanceoutputfieldmappings.md | 16 - ...ifiedhristimeoffbalanceoutputremotedata.md | 16 - .../components/unifiedhristimeoffinput.md | 35 - .../unifiedhristimeoffinputfieldmappings.md | 16 - .../components/unifiedhristimeoffoutput.md | 49 - .../unifiedhristimeoffoutputfieldmappings.md | 16 - .../unifiedhristimeoffoutputremotedata.md | 16 - .../unifiedhristimesheetentryinput.md | 27 - ...iedhristimesheetentryinputfieldmappings.md | 16 - .../unifiedhristimesheetentryoutput.md | 39 - ...edhristimesheetentryoutputfieldmappings.md | 16 - ...ifiedhristimesheetentryoutputremotedata.md | 16 - ...unifiedticketingcommentinputattachments.md | 29 +- ...nifiedticketingcommentoutputattachments.md | 27 +- .../unifiedticketingticketinputattachments.md | 21 +- .../unifiedticketingticketinputcollections.md | 27 +- ...dticketingticketinputcommentattachments.md | 29 +- .../unifiedticketingticketinputtags.md | 25 +- ...unifiedticketingticketoutputattachments.md | 29 +- .../components/updatepullfrequencydto.md | 4 - docs/models/components/url.md | 19 - docs/models/components/users.md | 27 +- docs/models/components/vertical.md | 2 - docs/models/components/webhookdto.md | 2 +- .../operations/createatsactivityrequest.md | 32 - .../operations/createatsapplicationrequest.md | 38 - .../operations/createatsattachmentrequest.md | 32 - .../operations/createatscandidaterequest.md | 64 - .../operations/createatsinterviewrequest.md | 38 - .../operations/createcrmcontactrequest.md | 4 +- .../operations/createhrisemployeerequest.md | 53 - .../operations/createhristimeoffrequest.md | 31 - .../createhristimesheetentryrequest.md | 27 - .../getretriedrequestresponserequest.md | 2 +- .../operations/listatsactivityrequest.md | 23 - .../operations/listatsactivityresponse.md | 42 - .../operations/listatsactivityresponsebody.md | 42 - .../operations/listatsapplicationrequest.md | 23 - .../operations/listatsapplicationresponse.md | 48 - .../listatsapplicationresponsebody.md | 48 - .../operations/listatsattachmentrequest.md | 23 - .../operations/listatsattachmentresponse.md | 42 - .../listatsattachmentresponsebody.md | 42 - .../operations/listatscandidaterequest.md | 23 - .../operations/listatscandidateresponse.md | 74 - .../listatscandidateresponsebody.md | 74 - .../operations/listatsdepartmentsrequest.md | 23 - .../operations/listatsdepartmentsresponse.md | 38 - .../listatsdepartmentsresponsebody.md | 38 - docs/models/operations/listatseeocsrequest.md | 23 - .../models/operations/listatseeocsresponse.md | 43 - .../operations/listatseeocsresponsebody.md | 43 - .../operations/listatsinterviewrequest.md | 23 - .../operations/listatsinterviewresponse.md | 48 - .../listatsinterviewresponsebody.md | 48 - .../listatsjobinterviewstagerequest.md | 23 - .../listatsjobinterviewstageresponse.md | 39 - .../listatsjobinterviewstageresponsebody.md | 39 - docs/models/operations/listatsjobrequest.md | 23 - docs/models/operations/listatsjobresponse.md | 58 - .../operations/listatsjobresponsebody.md | 58 - docs/models/operations/listatsofferrequest.md | 23 - .../models/operations/listatsofferresponse.md | 43 - .../operations/listatsofferresponsebody.md | 43 - .../models/operations/listatsofficerequest.md | 23 - .../operations/listatsofficeresponse.md | 38 - .../operations/listatsofficeresponsebody.md | 38 - .../operations/listatsrejectreasonsrequest.md | 23 - .../listatsrejectreasonsresponse.md | 37 - .../listatsrejectreasonsresponsebody.md | 37 - .../operations/listatsscorecardrequest.md | 23 - .../operations/listatsscorecardresponse.md | 41 - .../listatsscorecardresponsebody.md | 41 - docs/models/operations/listatstagsrequest.md | 23 - docs/models/operations/listatstagsresponse.md | 38 - .../operations/listatstagsresponsebody.md | 38 - docs/models/operations/listatsusersrequest.md | 23 - .../models/operations/listatsusersresponse.md | 43 - .../operations/listatsusersresponsebody.md | 43 - .../operations/listcrmcontactsresponse.md | 4 +- .../operations/listcrmcontactsresponsebody.md | 4 +- .../operations/listhrisbankinforequest.md | 23 - .../operations/listhrisbankinforesponse.md | 37 - .../listhrisbankinforesponsebody.md | 37 - .../operations/listhrisbenefitsrequest.md | 23 - .../operations/listhrisbenefitsresponse.md | 39 - .../listhrisbenefitsresponsebody.md | 39 - .../operations/listhriscompaniesrequest.md | 23 - .../operations/listhriscompaniesresponse.md | 41 - .../listhriscompaniesresponsebody.md | 41 - .../operations/listhrisdependentsrequest.md | 23 - .../operations/listhrisdependentsresponse.md | 43 - .../listhrisdependentsresponsebody.md | 43 - .../listhrisemployeepayrollrunrequest.md | 23 - .../listhrisemployeepayrollrunresponse.md | 59 - .../listhrisemployeepayrollrunresponsebody.md | 59 - .../operations/listhrisemployeesrequest.md | 23 - .../operations/listhrisemployeesresponse.md | 63 - .../listhrisemployeesresponsebody.md | 63 - .../listhrisemployerbenefitsrequest.md | 23 - .../listhrisemployerbenefitsresponse.md | 36 - .../listhrisemployerbenefitsresponsebody.md | 36 - .../operations/listhrisemploymentsrequest.md | 23 - .../operations/listhrisemploymentsresponse.md | 42 - .../listhrisemploymentsresponsebody.md | 42 - .../operations/listhrisgroupsrequest.md | 23 - .../operations/listhrisgroupsresponse.md | 35 - .../operations/listhrisgroupsresponsebody.md | 35 - .../operations/listhrislocationsrequest.md | 23 - .../operations/listhrislocationsresponse.md | 43 - .../listhrislocationsresponsebody.md | 43 - .../operations/listhrispaygroupsrequest.md | 23 - .../operations/listhrispaygroupsresponse.md | 33 - .../listhrispaygroupsresponsebody.md | 33 - .../operations/listhrispayrollrunsrequest.md | 23 - .../operations/listhrispayrollrunsresponse.md | 40 - .../listhrispayrollrunsresponsebody.md | 40 - .../listhristimeoffbalancesrequest.md | 23 - .../listhristimeoffbalancesresponse.md | 36 - .../listhristimeoffbalancesresponsebody.md | 36 - .../operations/listhristimeoffsrequest.md | 23 - .../operations/listhristimeoffsresponse.md | 41 - .../listhristimeoffsresponsebody.md | 41 - .../listhristimesheetentriesrequest.md | 23 - .../listhristimesheetentriesresponse.md | 36 - .../listhristimesheetentriesresponsebody.md | 36 - .../requestpassthroughresponsebody.md | 14 - docs/models/operations/requestrequest.md | 13 +- docs/models/operations/requestresponse.md | 24 - .../operations/retrieveatsactivityrequest.md | 21 - .../retrieveatsapplicationrequest.md | 21 - .../retrieveatsattachmentrequest.md | 21 - .../operations/retrieveatscandidaterequest.md | 21 - .../retrieveatsdepartmentrequest.md | 21 - .../operations/retrieveatseeocsrequest.md | 20 - .../operations/retrieveatsinterviewrequest.md | 21 - .../retrieveatsjobinterviewstagerequest.md | 21 - .../operations/retrieveatsjobrequest.md | 21 - .../operations/retrieveatsofferrequest.md | 21 - .../operations/retrieveatsofficerequest.md | 21 - .../retrieveatsrejectreasonrequest.md | 21 - .../operations/retrieveatsscorecardrequest.md | 21 - .../operations/retrieveatstagrequest.md | 21 - .../operations/retrieveatsuserrequest.md | 21 - .../operations/retrievehrisbankinforequest.md | 21 - .../operations/retrievehrisbenefitrequest.md | 21 - .../operations/retrievehriscompanyrequest.md | 21 - .../retrievehrisdependentrequest.md | 21 - .../retrievehrisemployeepayrollrunrequest.md | 21 - .../operations/retrievehrisemployeerequest.md | 21 - .../retrievehrisemployerbenefitrequest.md | 21 - .../retrievehrisemploymentrequest.md | 21 - .../operations/retrievehrisgrouprequest.md | 21 - .../operations/retrievehrislocationrequest.md | 21 - .../operations/retrievehrispaygrouprequest.md | 21 - .../retrievehrispayrollrunrequest.md | 21 - .../retrievehristimeoffbalancerequest.md | 21 - .../operations/retrievehristimeoffrequest.md | 21 - .../retrievehristimesheetentryrequest.md | 21 - .../updatepullfrequencyresponsebody.md | 14 - docs/models/operations/vertical.md | 2 - docs/sdks/accounts/README.md | 17 +- docs/sdks/actions/README.md | 28 +- docs/sdks/activities/README.md | 280 -- docs/sdks/addresses/README.md | 17 +- docs/sdks/applications/README.md | 292 -- docs/sdks/ats/README.md | 2 - docs/sdks/attachments/README.md | 96 +- docs/sdks/automations/README.md | 28 +- docs/sdks/balancesheets/README.md | 17 +- docs/sdks/bankinfos/README.md | 176 - docs/sdks/benefits/README.md | 176 - docs/sdks/campaigns/README.md | 28 +- docs/sdks/candidates/README.md | 344 -- docs/sdks/cashflowstatements/README.md | 17 +- docs/sdks/collections/README.md | 17 +- docs/sdks/comments/README.md | 28 +- docs/sdks/companies/README.md | 28 +- docs/sdks/companyinfos/README.md | 17 +- docs/sdks/connections/README.md | 10 +- docs/sdks/contacts/README.md | 17 +- docs/sdks/creditnotes/README.md | 17 +- docs/sdks/customers/README.md | 17 +- docs/sdks/deals/README.md | 28 +- docs/sdks/departments/README.md | 176 - docs/sdks/dependents/README.md | 176 - docs/sdks/eeocs/README.md | 174 - docs/sdks/emails/README.md | 17 +- docs/sdks/employeepayrollruns/README.md | 176 - docs/sdks/employees/README.md | 322 -- docs/sdks/employerbenefits/README.md | 176 - docs/sdks/employments/README.md | 176 - docs/sdks/engagements/README.md | 28 +- docs/sdks/events/README.md | 10 +- docs/sdks/expenses/README.md | 28 +- docs/sdks/fieldmappings/README.md | 53 +- docs/sdks/files/README.md | 28 +- docs/sdks/folders/README.md | 28 +- docs/sdks/fulfillments/README.md | 17 +- docs/sdks/groups/README.md | 47 +- docs/sdks/hris/README.md | 2 - docs/sdks/incomestatements/README.md | 17 +- docs/sdks/interviews/README.md | 292 -- docs/sdks/invoices/README.md | 28 +- docs/sdks/items/README.md | 17 +- docs/sdks/jobinterviewstages/README.md | 176 - docs/sdks/jobs/README.md | 176 - docs/sdks/journalentries/README.md | 28 +- docs/sdks/linkedusers/README.md | 54 +- docs/sdks/lists/README.md | 28 +- docs/sdks/locations/README.md | 176 - docs/sdks/login/README.md | 8 +- docs/sdks/messages/README.md | 17 +- docs/sdks/notes/README.md | 28 +- docs/sdks/offers/README.md | 176 - docs/sdks/offices/README.md | 176 - docs/sdks/orders/README.md | 28 +- docs/sdks/panora/README.md | 21 +- docs/sdks/panoraaccountingcontacts/README.md | 28 +- docs/sdks/panoraaccounts/README.md | 28 +- docs/sdks/panoraatsusers/README.md | 176 - docs/sdks/panoraattachments/README.md | 96 +- docs/sdks/panoracompanies/README.md | 176 - docs/sdks/panoracontacts/README.md | 28 +- docs/sdks/panoraevents/README.md | 17 +- docs/sdks/panorafilestorageusers/README.md | 17 +- docs/sdks/panoragroups/README.md | 176 - .../README.md | 28 +- .../panoramarketingautomationusers/README.md | 17 +- docs/sdks/panoratags/README.md | 176 - .../sdks/panoraticketingattachments/README.md | 276 -- docs/sdks/panorausers/README.md | 17 +- docs/sdks/passthrough/README.md | 26 +- docs/sdks/paygroups/README.md | 176 - docs/sdks/payments/README.md | 28 +- docs/sdks/payrollruns/README.md | 176 - docs/sdks/phonenumbers/README.md | 17 +- docs/sdks/products/README.md | 28 +- docs/sdks/projects/README.md | 21 +- docs/sdks/purchaseorders/README.md | 28 +- docs/sdks/rag/README.md | 10 +- docs/sdks/rejectreasons/README.md | 176 - docs/sdks/retryid/README.md | 6 +- docs/sdks/scorecards/README.md | 176 - docs/sdks/stages/README.md | 17 +- docs/sdks/sync/README.md | 49 +- docs/sdks/tags/README.md | 17 +- docs/sdks/tasks/README.md | 28 +- docs/sdks/taxrates/README.md | 17 +- docs/sdks/teams/README.md | 17 +- docs/sdks/templates/README.md | 28 +- docs/sdks/tickets/README.md | 28 +- docs/sdks/timeoffbalances/README.md | 176 - docs/sdks/timeoffs/README.md | 278 -- docs/sdks/timesheetentries/README.md | 270 - docs/sdks/trackingcategories/README.md | 17 +- docs/sdks/transactions/README.md | 17 +- docs/sdks/users/README.md | 17 +- docs/sdks/vendorcredits/README.md | 17 +- docs/sdks/webhooks/README.md | 56 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/accountingAccountsCreate.ts | 93 +- src/funcs/accountingAccountsList.ts | 109 +- src/funcs/accountingAccountsRetrieve.ts | 96 +- src/funcs/accountingAddressesList.ts | 109 +- src/funcs/accountingAddressesRetrieve.ts | 96 +- src/funcs/accountingAttachmentsCreate.ts | 93 +- src/funcs/accountingAttachmentsList.ts | 109 +- src/funcs/accountingAttachmentsRetrieve.ts | 96 +- src/funcs/accountingBalancesheetsList.ts | 111 +- src/funcs/accountingBalancesheetsRetrieve.ts | 96 +- src/funcs/accountingCashflowstatementsList.ts | 109 +- .../accountingCashflowstatementsRetrieve.ts | 96 +- src/funcs/accountingCompanyinfosList.ts | 109 +- src/funcs/accountingCompanyinfosRetrieve.ts | 96 +- src/funcs/accountingContactsCreate.ts | 93 +- src/funcs/accountingContactsList.ts | 109 +- src/funcs/accountingContactsRetrieve.ts | 96 +- src/funcs/accountingCreditnotesList.ts | 109 +- src/funcs/accountingCreditnotesRetrieve.ts | 96 +- src/funcs/accountingExpensesCreate.ts | 93 +- src/funcs/accountingExpensesList.ts | 109 +- src/funcs/accountingExpensesRetrieve.ts | 96 +- src/funcs/accountingIncomestatementsList.ts | 109 +- .../accountingIncomestatementsRetrieve.ts | 96 +- src/funcs/accountingInvoicesCreate.ts | 93 +- src/funcs/accountingInvoicesList.ts | 109 +- src/funcs/accountingInvoicesRetrieve.ts | 96 +- src/funcs/accountingItemsList.ts | 108 +- src/funcs/accountingItemsRetrieve.ts | 96 +- src/funcs/accountingJournalentriesCreate.ts | 99 +- src/funcs/accountingJournalentriesList.ts | 109 +- src/funcs/accountingJournalentriesRetrieve.ts | 96 +- src/funcs/accountingPaymentsCreate.ts | 93 +- src/funcs/accountingPaymentsList.ts | 109 +- src/funcs/accountingPaymentsRetrieve.ts | 96 +- src/funcs/accountingPhonenumbersList.ts | 109 +- src/funcs/accountingPhonenumbersRetrieve.ts | 96 +- src/funcs/accountingPurchaseordersCreate.ts | 99 +- src/funcs/accountingPurchaseordersList.ts | 111 +- src/funcs/accountingPurchaseordersRetrieve.ts | 96 +- src/funcs/accountingTaxratesList.ts | 109 +- src/funcs/accountingTaxratesRetrieve.ts | 96 +- src/funcs/accountingTrackingcategoriesList.ts | 109 +- .../accountingTrackingcategoriesRetrieve.ts | 96 +- src/funcs/accountingTransactionsList.ts | 109 +- src/funcs/accountingTransactionsRetrieve.ts | 96 +- src/funcs/accountingVendorcreditsList.ts | 109 +- src/funcs/accountingVendorcreditsRetrieve.ts | 96 +- src/funcs/atsActivitiesCreate.ts | 136 - src/funcs/atsActivitiesList.ts | 176 - src/funcs/atsActivitiesRetrieve.ts | 139 - src/funcs/atsApplicationsCreate.ts | 136 - src/funcs/atsApplicationsList.ts | 177 - src/funcs/atsApplicationsRetrieve.ts | 139 - src/funcs/atsAttachmentsCreate.ts | 136 - src/funcs/atsAttachmentsList.ts | 177 - src/funcs/atsAttachmentsRetrieve.ts | 139 - src/funcs/atsCandidatesCreate.ts | 136 - src/funcs/atsCandidatesList.ts | 176 - src/funcs/atsCandidatesRetrieve.ts | 139 - src/funcs/atsDepartmentsList.ts | 177 - src/funcs/atsDepartmentsRetrieve.ts | 139 - src/funcs/atsEeocsList.ts | 176 - src/funcs/atsEeocsRetrieve.ts | 138 - src/funcs/atsInterviewsCreate.ts | 136 - src/funcs/atsInterviewsList.ts | 176 - src/funcs/atsInterviewsRetrieve.ts | 139 - src/funcs/atsJobinterviewstagesList.ts | 177 - src/funcs/atsJobinterviewstagesRetrieve.ts | 141 - src/funcs/atsJobsList.ts | 176 - src/funcs/atsJobsRetrieve.ts | 138 - src/funcs/atsOffersList.ts | 176 - src/funcs/atsOffersRetrieve.ts | 138 - src/funcs/atsOfficesList.ts | 176 - src/funcs/atsOfficesRetrieve.ts | 139 - src/funcs/atsRejectreasonsList.ts | 177 - src/funcs/atsRejectreasonsRetrieve.ts | 139 - src/funcs/atsScorecardsList.ts | 176 - src/funcs/atsScorecardsRetrieve.ts | 139 - src/funcs/atsTagsList.ts | 176 - src/funcs/atsTagsRetrieve.ts | 138 - src/funcs/atsUsersList.ts | 176 - src/funcs/atsUsersRetrieve.ts | 138 - src/funcs/authLoginSignIn.ts | 77 +- src/funcs/connectionsList.ts | 55 +- src/funcs/crmCompaniesCreate.ts | 91 +- src/funcs/crmCompaniesList.ts | 107 +- src/funcs/crmCompaniesRetrieve.ts | 95 +- src/funcs/crmContactsCreate.ts | 91 +- src/funcs/crmContactsList.ts | 107 +- src/funcs/crmContactsRetrieve.ts | 95 +- src/funcs/crmDealsCreate.ts | 91 +- src/funcs/crmDealsList.ts | 107 +- src/funcs/crmDealsRetrieve.ts | 94 +- src/funcs/crmEngagementsCreate.ts | 93 +- src/funcs/crmEngagementsList.ts | 108 +- src/funcs/crmEngagementsRetrieve.ts | 96 +- src/funcs/crmNotesCreate.ts | 91 +- src/funcs/crmNotesList.ts | 107 +- src/funcs/crmNotesRetrieve.ts | 94 +- src/funcs/crmStagesList.ts | 107 +- src/funcs/crmStagesRetrieve.ts | 94 +- src/funcs/crmTasksCreate.ts | 91 +- src/funcs/crmTasksList.ts | 107 +- src/funcs/crmTasksRetrieve.ts | 94 +- src/funcs/crmUsersList.ts | 107 +- src/funcs/crmUsersRetrieve.ts | 94 +- src/funcs/ecommerceCustomersList.ts | 109 +- src/funcs/ecommerceCustomersRetrieve.ts | 96 +- src/funcs/ecommerceFulfillmentsList.ts | 109 +- src/funcs/ecommerceFulfillmentsRetrieve.ts | 96 +- src/funcs/ecommerceOrdersCreate.ts | 93 +- src/funcs/ecommerceOrdersList.ts | 109 +- src/funcs/ecommerceOrdersRetrieve.ts | 96 +- src/funcs/ecommerceProductsCreate.ts | 93 +- src/funcs/ecommerceProductsList.ts | 109 +- src/funcs/ecommerceProductsRetrieve.ts | 96 +- src/funcs/eventsGetPanoraCoreEvents.ts | 87 +- src/funcs/fieldMappingsDefineCustomField.ts | 77 +- src/funcs/fieldMappingsDefinitions.ts | 77 +- .../fieldMappingsGetFieldMappingValues.ts | 55 +- src/funcs/fieldMappingsGetFieldMappings.ts | 55 +- .../fieldMappingsGetFieldMappingsEntities.ts | 55 +- src/funcs/fieldMappingsMap.ts | 77 +- src/funcs/filestorageFilesCreate.ts | 93 +- src/funcs/filestorageFilesList.ts | 109 +- src/funcs/filestorageFilesRetrieve.ts | 96 +- src/funcs/filestorageFoldersCreate.ts | 93 +- src/funcs/filestorageFoldersList.ts | 109 +- src/funcs/filestorageFoldersRetrieve.ts | 96 +- src/funcs/filestorageGroupsList.ts | 109 +- src/funcs/filestorageGroupsRetrieve.ts | 96 +- src/funcs/filestorageUsersList.ts | 109 +- src/funcs/filestorageUsersRetrieve.ts | 96 +- src/funcs/health.ts | 55 +- src/funcs/hello.ts | 55 +- src/funcs/hrisBankinfosList.ts | 176 - src/funcs/hrisBankinfosRetrieve.ts | 139 - src/funcs/hrisBenefitsList.ts | 176 - src/funcs/hrisBenefitsRetrieve.ts | 139 - src/funcs/hrisCompaniesList.ts | 177 - src/funcs/hrisCompaniesRetrieve.ts | 139 - src/funcs/hrisDependentsList.ts | 177 - src/funcs/hrisDependentsRetrieve.ts | 139 - src/funcs/hrisEmployeepayrollrunsList.ts | 177 - src/funcs/hrisEmployeepayrollrunsRetrieve.ts | 141 - src/funcs/hrisEmployeesCreate.ts | 136 - src/funcs/hrisEmployeesList.ts | 177 - src/funcs/hrisEmployeesRetrieve.ts | 139 - src/funcs/hrisEmployerbenefitsList.ts | 177 - src/funcs/hrisEmployerbenefitsRetrieve.ts | 141 - src/funcs/hrisEmploymentsList.ts | 177 - src/funcs/hrisEmploymentsRetrieve.ts | 139 - src/funcs/hrisGroupsList.ts | 176 - src/funcs/hrisGroupsRetrieve.ts | 139 - src/funcs/hrisLocationsList.ts | 177 - src/funcs/hrisLocationsRetrieve.ts | 139 - src/funcs/hrisPaygroupsList.ts | 177 - src/funcs/hrisPaygroupsRetrieve.ts | 139 - src/funcs/hrisPayrollrunsList.ts | 177 - src/funcs/hrisPayrollrunsRetrieve.ts | 139 - src/funcs/hrisTimeoffbalancesList.ts | 177 - src/funcs/hrisTimeoffbalancesRetrieve.ts | 139 - src/funcs/hrisTimeoffsCreate.ts | 136 - src/funcs/hrisTimeoffsList.ts | 176 - src/funcs/hrisTimeoffsRetrieve.ts | 139 - src/funcs/hrisTimesheetentriesCreate.ts | 136 - src/funcs/hrisTimesheetentriesList.ts | 177 - src/funcs/hrisTimesheetentriesRetrieve.ts | 139 - src/funcs/linkedUsersCreate.ts | 77 +- src/funcs/linkedUsersImportBatch.ts | 78 +- src/funcs/linkedUsersList.ts | 55 +- src/funcs/linkedUsersRemoteId.ts | 83 +- src/funcs/linkedUsersRetrieve.ts | 82 +- src/funcs/marketingautomationActionsCreate.ts | 95 +- src/funcs/marketingautomationActionsList.ts | 109 +- .../marketingautomationActionsRetrieve.ts | 96 +- .../marketingautomationAutomationsCreate.ts | 95 +- .../marketingautomationAutomationsList.ts | 109 +- .../marketingautomationAutomationsRetrieve.ts | 98 +- .../marketingautomationCampaignsCreate.ts | 95 +- src/funcs/marketingautomationCampaignsList.ts | 109 +- .../marketingautomationCampaignsRetrieve.ts | 96 +- .../marketingautomationContactsCreate.ts | 95 +- src/funcs/marketingautomationContactsList.ts | 109 +- .../marketingautomationContactsRetrieve.ts | 96 +- src/funcs/marketingautomationEmailsList.ts | 109 +- .../marketingautomationEmailsRetrieve.ts | 99 +- src/funcs/marketingautomationEventsList.ts | 109 +- .../marketingautomationEventsRetrieve.ts | 99 +- src/funcs/marketingautomationListsCreate.ts | 99 +- src/funcs/marketingautomationListsList.ts | 115 +- src/funcs/marketingautomationListsRetrieve.ts | 96 +- src/funcs/marketingautomationMessagesList.ts | 109 +- .../marketingautomationMessagesRetrieve.ts | 96 +- .../marketingautomationTemplatesCreate.ts | 95 +- src/funcs/marketingautomationTemplatesList.ts | 109 +- .../marketingautomationTemplatesRetrieve.ts | 96 +- src/funcs/marketingautomationUsersList.ts | 115 +- src/funcs/marketingautomationUsersRetrieve.ts | 96 +- src/funcs/passthroughRequest.ts | 89 +- ...throughRetryidGetRetriedRequestResponse.ts | 83 +- src/funcs/projectsCreate.ts | 77 +- src/funcs/projectsGetProjects.ts | 55 +- src/funcs/ragQuery.ts | 84 +- src/funcs/syncGetPullFrequency.ts | 55 +- src/funcs/syncResync.ts | 55 +- src/funcs/syncStatus.ts | 81 +- src/funcs/syncUpdatePullFrequency.ts | 92 +- src/funcs/ticketingAccountsList.ts | 109 +- src/funcs/ticketingAccountsRetrieve.ts | 96 +- src/funcs/ticketingAttachmentsCreate.ts | 93 +- src/funcs/ticketingAttachmentsList.ts | 109 +- src/funcs/ticketingAttachmentsRetrieve.ts | 98 +- src/funcs/ticketingCollectionsList.ts | 109 +- src/funcs/ticketingCollectionsRetrieve.ts | 95 +- src/funcs/ticketingCommentsCreate.ts | 93 +- src/funcs/ticketingCommentsList.ts | 109 +- src/funcs/ticketingCommentsRetrieve.ts | 96 +- src/funcs/ticketingContactsList.ts | 109 +- src/funcs/ticketingContactsRetrieve.ts | 96 +- src/funcs/ticketingTagsList.ts | 108 +- src/funcs/ticketingTagsRetrieve.ts | 96 +- src/funcs/ticketingTeamsList.ts | 108 +- src/funcs/ticketingTeamsRetrieve.ts | 96 +- src/funcs/ticketingTicketsCreate.ts | 93 +- src/funcs/ticketingTicketsList.ts | 109 +- src/funcs/ticketingTicketsRetrieve.ts | 96 +- src/funcs/ticketingUsersList.ts | 108 +- src/funcs/ticketingUsersRetrieve.ts | 96 +- src/funcs/webhooksCreate.ts | 77 +- src/funcs/webhooksDelete.ts | 86 +- src/funcs/webhooksList.ts | 55 +- src/funcs/webhooksUpdateStatus.ts | 86 +- src/funcs/webhooksVerifyEvent.ts | 78 +- src/hooks/types.ts | 4 + src/lib/config.ts | 6 +- src/lib/matchers.ts | 2 +- src/lib/primitives.ts | 20 + src/lib/retries.ts | 94 +- src/lib/sdks.ts | 74 +- src/lib/security.ts | 42 +- src/models/components/address.ts | 17 + src/models/components/connection.ts | 17 + .../components/createbatchlinkeduserdto.ts | 21 + src/models/components/createlinkeduserdto.ts | 21 + src/models/components/createprojectdto.ts | 21 + src/models/components/customfieldcreatedto.ts | 21 + src/models/components/customfieldresponse.ts | 21 + src/models/components/deductionitem.ts | 73 - src/models/components/definetargetfielddto.ts | 21 + src/models/components/earningitem.ts | 55 - src/models/components/email.ts | 17 + src/models/components/eventresponse.ts | 17 + src/models/components/index.ts | 42 - src/models/components/lineitem.ts | 17 + src/models/components/linkeduserresponse.ts | 21 + src/models/components/logindto.ts | 25 +- .../components/mapfieldtoproviderdto.ts | 21 + .../components/passthroughrequestdto.ts | 108 +- src/models/components/phone.ts | 17 + src/models/components/projectresponse.ts | 35 +- src/models/components/querybody.ts | 17 + src/models/components/ragqueryoutput.ts | 17 + src/models/components/resyncstatusdto.ts | 21 +- src/models/components/security.ts | 17 + .../components/signatureverificationdto.ts | 21 + src/models/components/taxitem.ts | 68 - .../unifiedaccountingaccountinput.ts | 50 + .../unifiedaccountingaccountoutput.ts | 158 +- .../unifiedaccountingaddressoutput.ts | 77 + .../unifiedaccountingattachmentinput.ts | 50 + .../unifiedaccountingattachmentoutput.ts | 77 + .../unifiedaccountingbalancesheetoutput.ts | 78 + ...nifiedaccountingcashflowstatementoutput.ts | 84 + .../unifiedaccountingcompanyinfooutput.ts | 78 + .../unifiedaccountingcontactinput.ts | 50 + .../unifiedaccountingcontactoutput.ts | 77 + .../unifiedaccountingcreditnoteoutput.ts | 77 + .../unifiedaccountingexpenseinput.ts | 50 + .../unifiedaccountingexpenseoutput.ts | 77 + .../unifiedaccountingincomestatementoutput.ts | 79 + .../unifiedaccountinginvoiceinput.ts | 50 + .../unifiedaccountinginvoiceoutput.ts | 77 + .../components/unifiedaccountingitemoutput.ts | 71 + .../unifiedaccountingjournalentryinput.ts | 51 + .../unifiedaccountingjournalentryoutput.ts | 78 + .../unifiedaccountingpaymentinput.ts | 50 + .../unifiedaccountingpaymentoutput.ts | 77 + .../unifiedaccountingphonenumberoutput.ts | 78 + .../unifiedaccountingpurchaseorderinput.ts | 51 + .../unifiedaccountingpurchaseorderoutput.ts | 78 + .../unifiedaccountingtaxrateoutput.ts | 77 + ...unifiedaccountingtrackingcategoryoutput.ts | 84 + .../unifiedaccountingtransactionoutput.ts | 78 + .../unifiedaccountingvendorcreditoutput.ts | 78 + .../components/unifiedatsactivityinput.ts | 108 - .../components/unifiedatsactivityoutput.ts | 155 - .../components/unifiedatsapplicationinput.ts | 138 - .../components/unifiedatsapplicationoutput.ts | 209 - .../components/unifiedatsattachmentinput.ts | 117 - .../components/unifiedatsattachmentoutput.ts | 164 - .../components/unifiedatscandidateinput.ts | 360 -- .../components/unifiedatscandidateoutput.ts | 403 -- .../components/unifiedatsdepartmentoutput.ts | 111 - .../components/unifiedatseeocsoutput.ts | 156 - .../components/unifiedatsinterviewinput.ts | 151 - .../components/unifiedatsinterviewoutput.ts | 198 - .../unifiedatsjobinterviewstageoutput.ts | 130 - src/models/components/unifiedatsjoboutput.ts | 198 - .../components/unifiedatsofferoutput.ts | 248 - .../components/unifiedatsofficeoutput.ts | 118 - .../unifiedatsrejectreasonoutput.ts | 111 - .../components/unifiedatsscorecardoutput.ts | 154 - src/models/components/unifiedatstagoutput.ts | 120 - src/models/components/unifiedatsuseroutput.ts | 169 - .../components/unifiedcrmcompanyinput.ts | 21 + .../components/unifiedcrmcompanyoutput.ts | 49 + .../components/unifiedcrmcontactinput.ts | 21 + .../components/unifiedcrmcontactoutput.ts | 21 + src/models/components/unifiedcrmdealinput.ts | 21 + src/models/components/unifiedcrmdealoutput.ts | 21 + .../components/unifiedcrmengagementinput.ts | 21 + .../components/unifiedcrmengagementoutput.ts | 21 + src/models/components/unifiedcrmnoteinput.ts | 21 + src/models/components/unifiedcrmnoteoutput.ts | 21 + .../components/unifiedcrmstageoutput.ts | 61 + src/models/components/unifiedcrmtaskinput.ts | 21 + src/models/components/unifiedcrmtaskoutput.ts | 21 + src/models/components/unifiedcrmuseroutput.ts | 21 + .../unifiedecommercecustomeroutput.ts | 77 + .../unifiedecommercefulfillmentoutput.ts | 91 + .../components/unifiedecommerceorderinput.ts | 48 + .../components/unifiedecommerceorderoutput.ts | 71 + .../unifiedecommerceproductinput.ts | 50 + .../unifiedecommerceproductoutput.ts | 77 + .../components/unifiedfilestoragefileinput.ts | 23 + .../unifiedfilestoragefileoutput.ts | 23 + .../unifiedfilestoragefolderinput.ts | 23 + .../unifiedfilestoragefolderoutput.ts | 23 + .../unifiedfilestoragegroupoutput.ts | 37 + .../unifiedfilestorageuseroutput.ts | 23 + .../components/unifiedhrisbankinfooutput.ts | 242 - .../components/unifiedhrisbenefitoutput.ts | 276 -- .../components/unifiedhriscompanyoutput.ts | 241 - .../components/unifiedhrisdependentoutput.ts | 308 -- .../components/unifiedhrisemployeeinput.ts | 301 -- .../components/unifiedhrisemployeeoutput.ts | 410 -- .../unifiedhrisemployeepayrollrunoutput.ts | 335 -- .../unifiedhrisemployerbenefitoutput.ts | 249 - .../components/unifiedhrisemploymentoutput.ts | 306 -- .../components/unifiedhrisgroupoutput.ts | 231 - .../components/unifiedhrislocationoutput.ts | 301 -- .../components/unifiedhrispaygroupoutput.ts | 219 - .../components/unifiedhrispayrollrunoutput.ts | 273 - .../unifiedhristimeoffbalanceoutput.ts | 244 - .../components/unifiedhristimeoffinput.ts | 176 - .../components/unifiedhristimeoffoutput.ts | 284 -- .../unifiedhristimesheetentryinput.ts | 155 - .../unifiedhristimesheetentryoutput.ts | 257 - .../unifiedmarketingautomationactioninput.ts | 24 + .../unifiedmarketingautomationactionoutput.ts | 25 + ...ifiedmarketingautomationautomationinput.ts | 30 + ...fiedmarketingautomationautomationoutput.ts | 30 + ...unifiedmarketingautomationcampaigninput.ts | 30 + ...nifiedmarketingautomationcampaignoutput.ts | 30 + .../unifiedmarketingautomationcontactinput.ts | 25 + ...unifiedmarketingautomationcontactoutput.ts | 30 + .../unifiedmarketingautomationemailoutput.ts | 24 + .../unifiedmarketingautomationeventoutput.ts | 24 + .../unifiedmarketingautomationlistinput.ts | 24 + .../unifiedmarketingautomationlistoutput.ts | 24 + ...unifiedmarketingautomationmessageoutput.ts | 30 + ...unifiedmarketingautomationtemplateinput.ts | 30 + ...nifiedmarketingautomationtemplateoutput.ts | 30 + .../unifiedmarketingautomationuseroutput.ts | 24 + .../unifiedticketingaccountoutput.ts | 23 + .../unifiedticketingattachmentinput.ts | 23 + .../unifiedticketingattachmentoutput.ts | 23 + .../unifiedticketingcollectionoutput.ts | 23 + .../unifiedticketingcommentinput.ts | 50 + .../unifiedticketingcommentoutput.ts | 50 + .../unifiedticketingcontactoutput.ts | 23 + .../components/unifiedticketingtagoutput.ts | 21 + .../components/unifiedticketingteamoutput.ts | 21 + .../components/unifiedticketingticketinput.ts | 135 + .../unifiedticketingticketoutput.ts | 106 + .../components/unifiedticketinguseroutput.ts | 21 + .../components/updatepullfrequencydto.ts | 35 +- src/models/components/url.ts | 58 - src/models/components/variant.ts | 17 + src/models/components/webhookdto.ts | 25 +- src/models/components/webhookresponse.ts | 19 + .../operations/createaccountingaccount.ts | 23 + .../operations/createaccountingattachment.ts | 23 + .../operations/createaccountingcontact.ts | 23 + .../operations/createaccountingexpense.ts | 23 + .../operations/createaccountinginvoice.ts | 23 + .../createaccountingjournalentry.ts | 24 + .../operations/createaccountingpayment.ts | 23 + .../createaccountingpurchaseorder.ts | 24 + src/models/operations/createatsactivity.ts | 73 - src/models/operations/createatsapplication.ts | 75 - src/models/operations/createatsattachment.ts | 74 - src/models/operations/createatscandidate.ts | 73 - src/models/operations/createatsinterview.ts | 73 - src/models/operations/createcrmcompany.ts | 21 + src/models/operations/createcrmcontact.ts | 21 + src/models/operations/createcrmdeal.ts | 21 + src/models/operations/createcrmengagement.ts | 21 + src/models/operations/createcrmnote.ts | 21 + src/models/operations/createcrmtask.ts | 21 + src/models/operations/createecommerceorder.ts | 23 + .../operations/createecommerceproduct.ts | 23 + .../operations/createfilestoragefile.ts | 23 + .../operations/createfilestoragefolder.ts | 23 + src/models/operations/createhrisemployee.ts | 73 - src/models/operations/createhristimeoff.ts | 73 - .../operations/createhristimesheetentry.ts | 76 - .../createmarketingautomationaction.ts | 25 + .../createmarketingautomationautomation.ts | 30 + .../createmarketingautomationcampaign.ts | 30 + .../createmarketingautomationcontact.ts | 30 + .../createmarketingautomationlist.ts | 24 + .../createmarketingautomationtemplate.ts | 30 + .../operations/createticketingattachment.ts | 23 + .../operations/createticketingcomment.ts | 23 + .../operations/createticketingticket.ts | 23 + src/models/operations/delete.ts | 17 + src/models/operations/getpanoracoreevents.ts | 33 +- .../operations/getretriedrequestresponse.ts | 23 + src/models/operations/index.ts | 69 - .../operations/listaccountingaccounts.ts | 70 +- .../operations/listaccountingaddress.ts | 69 +- .../operations/listaccountingattachments.ts | 70 +- .../operations/listaccountingbalancesheets.ts | 78 +- .../listaccountingcashflowstatement.ts | 85 +- .../operations/listaccountingcompanyinfos.ts | 72 +- .../operations/listaccountingcontacts.ts | 70 +- .../operations/listaccountingcreditnote.ts | 70 +- .../operations/listaccountingexpense.ts | 69 +- .../listaccountingincomestatement.ts | 78 +- .../operations/listaccountinginvoice.ts | 69 +- src/models/operations/listaccountingitem.ts | 65 +- .../operations/listaccountingjournalentry.ts | 72 +- .../operations/listaccountingpayment.ts | 69 +- .../operations/listaccountingphonenumber.ts | 70 +- .../operations/listaccountingpurchaseorder.ts | 78 +- .../operations/listaccountingtaxrate.ts | 69 +- .../listaccountingtrackingcategorys.ts | 85 +- .../operations/listaccountingtransaction.ts | 70 +- .../operations/listaccountingvendorcredit.ts | 72 +- src/models/operations/listatsactivity.ts | 187 - src/models/operations/listatsapplication.ts | 187 - src/models/operations/listatsattachment.ts | 187 - src/models/operations/listatscandidate.ts | 187 - src/models/operations/listatsdepartments.ts | 187 - src/models/operations/listatseeocs.ts | 187 - src/models/operations/listatsinterview.ts | 187 - src/models/operations/listatsjob.ts | 187 - .../operations/listatsjobinterviewstage.ts | 189 - src/models/operations/listatsoffer.ts | 187 - src/models/operations/listatsoffice.ts | 187 - src/models/operations/listatsrejectreasons.ts | 187 - src/models/operations/listatsscorecard.ts | 187 - src/models/operations/listatstags.ts | 187 - src/models/operations/listatsusers.ts | 187 - src/models/operations/listcrmcompany.ts | 63 +- src/models/operations/listcrmcontacts.ts | 65 +- src/models/operations/listcrmdeals.ts | 63 +- src/models/operations/listcrmengagements.ts | 65 +- src/models/operations/listcrmnote.ts | 63 +- src/models/operations/listcrmstages.ts | 63 +- src/models/operations/listcrmtask.ts | 63 +- src/models/operations/listcrmusers.ts | 63 +- .../operations/listecommercecustomers.ts | 70 +- .../operations/listecommercefulfillments.ts | 70 +- src/models/operations/listecommerceorders.ts | 67 +- .../operations/listecommerceproducts.ts | 69 +- src/models/operations/listfilestoragefile.ts | 67 +- .../operations/listfilestoragefolder.ts | 69 +- src/models/operations/listfilestoragegroup.ts | 69 +- src/models/operations/listfilestorageusers.ts | 69 +- src/models/operations/listhrisbankinfo.ts | 187 - src/models/operations/listhrisbenefits.ts | 187 - src/models/operations/listhriscompanies.ts | 187 - src/models/operations/listhrisdependents.ts | 187 - .../operations/listhrisemployeepayrollrun.ts | 191 - src/models/operations/listhrisemployees.ts | 187 - .../operations/listhrisemployerbenefits.ts | 189 - src/models/operations/listhrisemployments.ts | 187 - src/models/operations/listhrisgroups.ts | 187 - src/models/operations/listhrislocations.ts | 187 - src/models/operations/listhrispaygroups.ts | 187 - src/models/operations/listhrispayrollruns.ts | 187 - .../operations/listhristimeoffbalances.ts | 189 - src/models/operations/listhristimeoffs.ts | 187 - .../operations/listhristimesheetentries.ts | 189 - .../listmarketingautomationaction.ts | 78 +- .../listmarketingautomationautomations.ts | 90 +- .../listmarketingautomationcampaigns.ts | 90 +- .../listmarketingautomationcontacts.ts | 85 +- .../listmarketingautomationemails.ts | 78 +- .../listmarketingautomationevents.ts | 78 +- .../listmarketingautomationlists.ts | 78 +- .../listmarketingautomationmessages.ts | 85 +- .../listmarketingautomationtemplates.ts | 90 +- .../listmarketingautomationusers.ts | 78 +- src/models/operations/listticketingaccount.ts | 69 +- .../operations/listticketingattachments.ts | 70 +- .../operations/listticketingcollections.ts | 70 +- .../operations/listticketingcomments.ts | 69 +- .../operations/listticketingcontacts.ts | 69 +- src/models/operations/listticketingtags.ts | 65 +- src/models/operations/listticketingteams.ts | 65 +- src/models/operations/listticketingticket.ts | 67 +- src/models/operations/listticketingusers.ts | 65 +- src/models/operations/query.ts | 17 + src/models/operations/remoteid.ts | 19 + src/models/operations/request.ts | 97 +- .../operations/retrieveaccountingaccount.ts | 23 + .../operations/retrieveaccountingaddress.ts | 23 + .../retrieveaccountingattachment.ts | 24 + .../retrieveaccountingbalancesheet.ts | 24 + .../retrieveaccountingcashflowstatement.ts | 30 + .../retrieveaccountingcompanyinfo.ts | 24 + .../operations/retrieveaccountingcontact.ts | 23 + .../retrieveaccountingcreditnote.ts | 24 + .../operations/retrieveaccountingexpense.ts | 23 + .../retrieveaccountingincomestatement.ts | 30 + .../operations/retrieveaccountinginvoice.ts | 23 + .../operations/retrieveaccountingitem.ts | 23 + .../retrieveaccountingjournalentry.ts | 24 + .../operations/retrieveaccountingpayment.ts | 23 + .../retrieveaccountingphonenumber.ts | 24 + .../retrieveaccountingpurchaseorder.ts | 25 + .../operations/retrieveaccountingtaxrate.ts | 23 + .../retrieveaccountingtrackingcategory.ts | 30 + .../retrieveaccountingtransaction.ts | 24 + .../retrieveaccountingvendorcredit.ts | 24 + src/models/operations/retrieveatsactivity.ts | 73 - .../operations/retrieveatsapplication.ts | 73 - .../operations/retrieveatsattachment.ts | 73 - src/models/operations/retrieveatscandidate.ts | 73 - .../operations/retrieveatsdepartment.ts | 73 - src/models/operations/retrieveatseeocs.ts | 73 - src/models/operations/retrieveatsinterview.ts | 73 - src/models/operations/retrieveatsjob.ts | 73 - .../retrieveatsjobinterviewstage.ts | 75 - src/models/operations/retrieveatsoffer.ts | 73 - src/models/operations/retrieveatsoffice.ts | 73 - .../operations/retrieveatsrejectreason.ts | 73 - src/models/operations/retrieveatsscorecard.ts | 73 - src/models/operations/retrieveatstag.ts | 73 - src/models/operations/retrieveatsuser.ts | 73 - src/models/operations/retrievecollection.ts | 21 + src/models/operations/retrievecrmcompany.ts | 21 + src/models/operations/retrievecrmcontact.ts | 21 + src/models/operations/retrievecrmdeal.ts | 21 + .../operations/retrievecrmengagement.ts | 23 + src/models/operations/retrievecrmnote.ts | 21 + src/models/operations/retrievecrmstage.ts | 21 + src/models/operations/retrievecrmtask.ts | 21 + src/models/operations/retrievecrmuser.ts | 21 + .../operations/retrieveecommercecustomer.ts | 23 + .../retrieveecommercefulfillment.ts | 24 + .../operations/retrieveecommerceorder.ts | 23 + .../operations/retrieveecommerceproduct.ts | 23 + .../operations/retrievefilestoragefile.ts | 23 + .../operations/retrievefilestoragefolder.ts | 23 + .../operations/retrievefilestoragegroup.ts | 23 + .../operations/retrievefilestorageuser.ts | 23 + src/models/operations/retrievehrisbankinfo.ts | 73 - src/models/operations/retrievehrisbenefit.ts | 73 - src/models/operations/retrievehriscompany.ts | 73 - .../operations/retrievehrisdependent.ts | 73 - src/models/operations/retrievehrisemployee.ts | 73 - .../retrievehrisemployeepayrollrun.ts | 75 - .../operations/retrievehrisemployerbenefit.ts | 74 - .../operations/retrievehrisemployment.ts | 73 - src/models/operations/retrievehrisgroup.ts | 73 - src/models/operations/retrievehrislocation.ts | 73 - src/models/operations/retrievehrispaygroup.ts | 73 - .../operations/retrievehrispayrollrun.ts | 73 - src/models/operations/retrievehristimeoff.ts | 73 - .../operations/retrievehristimeoffbalance.ts | 74 - .../operations/retrievehristimesheetentry.ts | 74 - src/models/operations/retrievelinkeduser.ts | 21 + .../retrievemarketingautomationaction.ts | 30 + .../retrievemarketingautomationautomation.ts | 30 + .../retrievemarketingautomationcampaign.ts | 30 + .../retrievemarketingautomationcontact.ts | 30 + .../retrievemarketingautomationemail.ts | 30 + .../retrievemarketingautomationevent.ts | 30 + .../retrievemarketingautomationlist.ts | 25 + .../retrievemarketingautomationmessage.ts | 30 + .../retrievemarketingautomationtemplate.ts | 30 + .../retrievemarketingautomationuser.ts | 25 + .../operations/retrieveticketingaccount.ts | 23 + .../operations/retrieveticketingattachment.ts | 24 + .../operations/retrieveticketingcomment.ts | 44 + .../operations/retrieveticketingcontact.ts | 44 + src/models/operations/retrieveticketingtag.ts | 23 + .../operations/retrieveticketingteam.ts | 23 + .../operations/retrieveticketingticket.ts | 23 + .../operations/retrieveticketinguser.ts | 23 + src/models/operations/status.ts | 19 +- src/models/operations/updatepullfrequency.ts | 37 - src/models/operations/updatestatus.ts | 21 + src/sdk/accounting.ts | 46 +- src/sdk/activities.ts | 62 - src/sdk/applications.ts | 62 - src/sdk/ats.ts | 97 - src/sdk/attachments.ts | 28 +- src/sdk/auth.ts | 2 +- src/sdk/bankinfos.ts | 44 - src/sdk/benefits.ts | 44 - src/sdk/candidates.ts | 62 - src/sdk/crm.ts | 16 +- src/sdk/departments.ts | 44 - src/sdk/dependents.ts | 44 - src/sdk/ecommerce.ts | 8 +- src/sdk/eeocs.ts | 44 - src/sdk/employeepayrollruns.ts | 44 - src/sdk/employees.ts | 62 - src/sdk/employerbenefits.ts | 44 - src/sdk/employments.ts | 44 - src/sdk/filestorage.ts | 14 +- src/sdk/groups.ts | 22 +- src/sdk/hris.ts | 99 - src/sdk/interviews.ts | 62 - src/sdk/jobinterviewstages.ts | 44 - src/sdk/jobs.ts | 44 - src/sdk/locations.ts | 44 - src/sdk/marketingautomation.ts | 20 +- src/sdk/offers.ts | 44 - src/sdk/offices.ts | 44 - src/sdk/panoraatsusers.ts | 44 - src/sdk/panoraattachments.ts | 28 +- src/sdk/panoracompanies.ts | 44 - src/sdk/panoragroups.ts | 44 - src/sdk/panoratags.ts | 44 - src/sdk/panoraticketingattachments.ts | 62 - src/sdk/passthrough.ts | 4 +- src/sdk/paygroups.ts | 44 - src/sdk/payrollruns.ts | 44 - src/sdk/rejectreasons.ts | 44 - src/sdk/scorecards.ts | 44 - src/sdk/sdk.ts | 44 +- src/sdk/sync.ts | 2 +- src/sdk/ticketing.ts | 26 +- src/sdk/timeoffbalances.ts | 44 - src/sdk/timeoffs.ts | 62 - src/sdk/timesheetentries.ts | 62 - src/sdk/webhooks.ts | 4 +- 1010 files changed, 23849 insertions(+), 53588 deletions(-) delete mode 100644 docs/models/components/applications.md delete mode 100644 docs/models/components/deductionitem.md delete mode 100644 docs/models/components/earningitem.md delete mode 100644 docs/models/components/headers.md delete mode 100644 docs/models/components/taxitem.md delete mode 100644 docs/models/components/unifiedaccountingaccountoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedaccountingaccountoutputremotedata.md delete mode 100644 docs/models/components/unifiedatsactivityinput.md delete mode 100644 docs/models/components/unifiedatsactivityoutput.md delete mode 100644 docs/models/components/unifiedatsapplicationinput.md delete mode 100644 docs/models/components/unifiedatsapplicationoutput.md delete mode 100644 docs/models/components/unifiedatsattachmentinput.md delete mode 100644 docs/models/components/unifiedatsattachmentoutput.md delete mode 100644 docs/models/components/unifiedatscandidateinput.md delete mode 100644 docs/models/components/unifiedatscandidateinputapplications.md delete mode 100644 docs/models/components/unifiedatscandidateinputattachments.md delete mode 100644 docs/models/components/unifiedatscandidateinputtags.md delete mode 100644 docs/models/components/unifiedatscandidateoutput.md delete mode 100644 docs/models/components/unifiedatscandidateoutputattachments.md delete mode 100644 docs/models/components/unifiedatscandidateoutputtags.md delete mode 100644 docs/models/components/unifiedatsdepartmentoutput.md delete mode 100644 docs/models/components/unifiedatseeocsoutput.md delete mode 100644 docs/models/components/unifiedatsinterviewinput.md delete mode 100644 docs/models/components/unifiedatsinterviewoutput.md delete mode 100644 docs/models/components/unifiedatsjobinterviewstageoutput.md delete mode 100644 docs/models/components/unifiedatsjoboutput.md delete mode 100644 docs/models/components/unifiedatsofferoutput.md delete mode 100644 docs/models/components/unifiedatsofferoutputcreatedat.md delete mode 100644 docs/models/components/unifiedatsofferoutputmodifiedat.md delete mode 100644 docs/models/components/unifiedatsofficeoutput.md delete mode 100644 docs/models/components/unifiedatsrejectreasonoutput.md delete mode 100644 docs/models/components/unifiedatsscorecardoutput.md delete mode 100644 docs/models/components/unifiedatstagoutput.md delete mode 100644 docs/models/components/unifiedatsuseroutput.md delete mode 100644 docs/models/components/unifiedhrisbankinfooutput.md delete mode 100644 docs/models/components/unifiedhrisbenefitoutput.md delete mode 100644 docs/models/components/unifiedhrisbenefitoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisbenefitoutputremotedata.md delete mode 100644 docs/models/components/unifiedhriscompanyoutput.md delete mode 100644 docs/models/components/unifiedhriscompanyoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhriscompanyoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisdependentoutput.md delete mode 100644 docs/models/components/unifiedhrisdependentoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisdependentoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisemployeeinput.md delete mode 100644 docs/models/components/unifiedhrisemployeeinputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisemployeeoutput.md delete mode 100644 docs/models/components/unifiedhrisemployeeoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisemployeeoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisemployeepayrollrunoutput.md delete mode 100644 docs/models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisemployeepayrollrunoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisemployerbenefitoutput.md delete mode 100644 docs/models/components/unifiedhrisemployerbenefitoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisemployerbenefitoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisemploymentoutput.md delete mode 100644 docs/models/components/unifiedhrisemploymentoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisemploymentoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrisgroupoutput.md delete mode 100644 docs/models/components/unifiedhrisgroupoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrisgroupoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrislocationoutput.md delete mode 100644 docs/models/components/unifiedhrislocationoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrislocationoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrispaygroupoutput.md delete mode 100644 docs/models/components/unifiedhrispaygroupoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrispaygroupoutputremotedata.md delete mode 100644 docs/models/components/unifiedhrispayrollrunoutput.md delete mode 100644 docs/models/components/unifiedhrispayrollrunoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhrispayrollrunoutputremotedata.md delete mode 100644 docs/models/components/unifiedhristimeoffbalanceoutput.md delete mode 100644 docs/models/components/unifiedhristimeoffbalanceoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhristimeoffbalanceoutputremotedata.md delete mode 100644 docs/models/components/unifiedhristimeoffinput.md delete mode 100644 docs/models/components/unifiedhristimeoffinputfieldmappings.md delete mode 100644 docs/models/components/unifiedhristimeoffoutput.md delete mode 100644 docs/models/components/unifiedhristimeoffoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhristimeoffoutputremotedata.md delete mode 100644 docs/models/components/unifiedhristimesheetentryinput.md delete mode 100644 docs/models/components/unifiedhristimesheetentryinputfieldmappings.md delete mode 100644 docs/models/components/unifiedhristimesheetentryoutput.md delete mode 100644 docs/models/components/unifiedhristimesheetentryoutputfieldmappings.md delete mode 100644 docs/models/components/unifiedhristimesheetentryoutputremotedata.md delete mode 100644 docs/models/components/url.md delete mode 100644 docs/models/operations/createatsactivityrequest.md delete mode 100644 docs/models/operations/createatsapplicationrequest.md delete mode 100644 docs/models/operations/createatsattachmentrequest.md delete mode 100644 docs/models/operations/createatscandidaterequest.md delete mode 100644 docs/models/operations/createatsinterviewrequest.md delete mode 100644 docs/models/operations/createhrisemployeerequest.md delete mode 100644 docs/models/operations/createhristimeoffrequest.md delete mode 100644 docs/models/operations/createhristimesheetentryrequest.md delete mode 100644 docs/models/operations/listatsactivityrequest.md delete mode 100644 docs/models/operations/listatsactivityresponse.md delete mode 100644 docs/models/operations/listatsactivityresponsebody.md delete mode 100644 docs/models/operations/listatsapplicationrequest.md delete mode 100644 docs/models/operations/listatsapplicationresponse.md delete mode 100644 docs/models/operations/listatsapplicationresponsebody.md delete mode 100644 docs/models/operations/listatsattachmentrequest.md delete mode 100644 docs/models/operations/listatsattachmentresponse.md delete mode 100644 docs/models/operations/listatsattachmentresponsebody.md delete mode 100644 docs/models/operations/listatscandidaterequest.md delete mode 100644 docs/models/operations/listatscandidateresponse.md delete mode 100644 docs/models/operations/listatscandidateresponsebody.md delete mode 100644 docs/models/operations/listatsdepartmentsrequest.md delete mode 100644 docs/models/operations/listatsdepartmentsresponse.md delete mode 100644 docs/models/operations/listatsdepartmentsresponsebody.md delete mode 100644 docs/models/operations/listatseeocsrequest.md delete mode 100644 docs/models/operations/listatseeocsresponse.md delete mode 100644 docs/models/operations/listatseeocsresponsebody.md delete mode 100644 docs/models/operations/listatsinterviewrequest.md delete mode 100644 docs/models/operations/listatsinterviewresponse.md delete mode 100644 docs/models/operations/listatsinterviewresponsebody.md delete mode 100644 docs/models/operations/listatsjobinterviewstagerequest.md delete mode 100644 docs/models/operations/listatsjobinterviewstageresponse.md delete mode 100644 docs/models/operations/listatsjobinterviewstageresponsebody.md delete mode 100644 docs/models/operations/listatsjobrequest.md delete mode 100644 docs/models/operations/listatsjobresponse.md delete mode 100644 docs/models/operations/listatsjobresponsebody.md delete mode 100644 docs/models/operations/listatsofferrequest.md delete mode 100644 docs/models/operations/listatsofferresponse.md delete mode 100644 docs/models/operations/listatsofferresponsebody.md delete mode 100644 docs/models/operations/listatsofficerequest.md delete mode 100644 docs/models/operations/listatsofficeresponse.md delete mode 100644 docs/models/operations/listatsofficeresponsebody.md delete mode 100644 docs/models/operations/listatsrejectreasonsrequest.md delete mode 100644 docs/models/operations/listatsrejectreasonsresponse.md delete mode 100644 docs/models/operations/listatsrejectreasonsresponsebody.md delete mode 100644 docs/models/operations/listatsscorecardrequest.md delete mode 100644 docs/models/operations/listatsscorecardresponse.md delete mode 100644 docs/models/operations/listatsscorecardresponsebody.md delete mode 100644 docs/models/operations/listatstagsrequest.md delete mode 100644 docs/models/operations/listatstagsresponse.md delete mode 100644 docs/models/operations/listatstagsresponsebody.md delete mode 100644 docs/models/operations/listatsusersrequest.md delete mode 100644 docs/models/operations/listatsusersresponse.md delete mode 100644 docs/models/operations/listatsusersresponsebody.md delete mode 100644 docs/models/operations/listhrisbankinforequest.md delete mode 100644 docs/models/operations/listhrisbankinforesponse.md delete mode 100644 docs/models/operations/listhrisbankinforesponsebody.md delete mode 100644 docs/models/operations/listhrisbenefitsrequest.md delete mode 100644 docs/models/operations/listhrisbenefitsresponse.md delete mode 100644 docs/models/operations/listhrisbenefitsresponsebody.md delete mode 100644 docs/models/operations/listhriscompaniesrequest.md delete mode 100644 docs/models/operations/listhriscompaniesresponse.md delete mode 100644 docs/models/operations/listhriscompaniesresponsebody.md delete mode 100644 docs/models/operations/listhrisdependentsrequest.md delete mode 100644 docs/models/operations/listhrisdependentsresponse.md delete mode 100644 docs/models/operations/listhrisdependentsresponsebody.md delete mode 100644 docs/models/operations/listhrisemployeepayrollrunrequest.md delete mode 100644 docs/models/operations/listhrisemployeepayrollrunresponse.md delete mode 100644 docs/models/operations/listhrisemployeepayrollrunresponsebody.md delete mode 100644 docs/models/operations/listhrisemployeesrequest.md delete mode 100644 docs/models/operations/listhrisemployeesresponse.md delete mode 100644 docs/models/operations/listhrisemployeesresponsebody.md delete mode 100644 docs/models/operations/listhrisemployerbenefitsrequest.md delete mode 100644 docs/models/operations/listhrisemployerbenefitsresponse.md delete mode 100644 docs/models/operations/listhrisemployerbenefitsresponsebody.md delete mode 100644 docs/models/operations/listhrisemploymentsrequest.md delete mode 100644 docs/models/operations/listhrisemploymentsresponse.md delete mode 100644 docs/models/operations/listhrisemploymentsresponsebody.md delete mode 100644 docs/models/operations/listhrisgroupsrequest.md delete mode 100644 docs/models/operations/listhrisgroupsresponse.md delete mode 100644 docs/models/operations/listhrisgroupsresponsebody.md delete mode 100644 docs/models/operations/listhrislocationsrequest.md delete mode 100644 docs/models/operations/listhrislocationsresponse.md delete mode 100644 docs/models/operations/listhrislocationsresponsebody.md delete mode 100644 docs/models/operations/listhrispaygroupsrequest.md delete mode 100644 docs/models/operations/listhrispaygroupsresponse.md delete mode 100644 docs/models/operations/listhrispaygroupsresponsebody.md delete mode 100644 docs/models/operations/listhrispayrollrunsrequest.md delete mode 100644 docs/models/operations/listhrispayrollrunsresponse.md delete mode 100644 docs/models/operations/listhrispayrollrunsresponsebody.md delete mode 100644 docs/models/operations/listhristimeoffbalancesrequest.md delete mode 100644 docs/models/operations/listhristimeoffbalancesresponse.md delete mode 100644 docs/models/operations/listhristimeoffbalancesresponsebody.md delete mode 100644 docs/models/operations/listhristimeoffsrequest.md delete mode 100644 docs/models/operations/listhristimeoffsresponse.md delete mode 100644 docs/models/operations/listhristimeoffsresponsebody.md delete mode 100644 docs/models/operations/listhristimesheetentriesrequest.md delete mode 100644 docs/models/operations/listhristimesheetentriesresponse.md delete mode 100644 docs/models/operations/listhristimesheetentriesresponsebody.md delete mode 100644 docs/models/operations/requestpassthroughresponsebody.md delete mode 100644 docs/models/operations/requestresponse.md delete mode 100644 docs/models/operations/retrieveatsactivityrequest.md delete mode 100644 docs/models/operations/retrieveatsapplicationrequest.md delete mode 100644 docs/models/operations/retrieveatsattachmentrequest.md delete mode 100644 docs/models/operations/retrieveatscandidaterequest.md delete mode 100644 docs/models/operations/retrieveatsdepartmentrequest.md delete mode 100644 docs/models/operations/retrieveatseeocsrequest.md delete mode 100644 docs/models/operations/retrieveatsinterviewrequest.md delete mode 100644 docs/models/operations/retrieveatsjobinterviewstagerequest.md delete mode 100644 docs/models/operations/retrieveatsjobrequest.md delete mode 100644 docs/models/operations/retrieveatsofferrequest.md delete mode 100644 docs/models/operations/retrieveatsofficerequest.md delete mode 100644 docs/models/operations/retrieveatsrejectreasonrequest.md delete mode 100644 docs/models/operations/retrieveatsscorecardrequest.md delete mode 100644 docs/models/operations/retrieveatstagrequest.md delete mode 100644 docs/models/operations/retrieveatsuserrequest.md delete mode 100644 docs/models/operations/retrievehrisbankinforequest.md delete mode 100644 docs/models/operations/retrievehrisbenefitrequest.md delete mode 100644 docs/models/operations/retrievehriscompanyrequest.md delete mode 100644 docs/models/operations/retrievehrisdependentrequest.md delete mode 100644 docs/models/operations/retrievehrisemployeepayrollrunrequest.md delete mode 100644 docs/models/operations/retrievehrisemployeerequest.md delete mode 100644 docs/models/operations/retrievehrisemployerbenefitrequest.md delete mode 100644 docs/models/operations/retrievehrisemploymentrequest.md delete mode 100644 docs/models/operations/retrievehrisgrouprequest.md delete mode 100644 docs/models/operations/retrievehrislocationrequest.md delete mode 100644 docs/models/operations/retrievehrispaygrouprequest.md delete mode 100644 docs/models/operations/retrievehrispayrollrunrequest.md delete mode 100644 docs/models/operations/retrievehristimeoffbalancerequest.md delete mode 100644 docs/models/operations/retrievehristimeoffrequest.md delete mode 100644 docs/models/operations/retrievehristimesheetentryrequest.md delete mode 100644 docs/models/operations/updatepullfrequencyresponsebody.md delete mode 100644 docs/sdks/activities/README.md delete mode 100644 docs/sdks/applications/README.md delete mode 100644 docs/sdks/ats/README.md delete mode 100644 docs/sdks/bankinfos/README.md delete mode 100644 docs/sdks/benefits/README.md delete mode 100644 docs/sdks/candidates/README.md delete mode 100644 docs/sdks/departments/README.md delete mode 100644 docs/sdks/dependents/README.md delete mode 100644 docs/sdks/eeocs/README.md delete mode 100644 docs/sdks/employeepayrollruns/README.md delete mode 100644 docs/sdks/employees/README.md delete mode 100644 docs/sdks/employerbenefits/README.md delete mode 100644 docs/sdks/employments/README.md delete mode 100644 docs/sdks/hris/README.md delete mode 100644 docs/sdks/interviews/README.md delete mode 100644 docs/sdks/jobinterviewstages/README.md delete mode 100644 docs/sdks/jobs/README.md delete mode 100644 docs/sdks/locations/README.md delete mode 100644 docs/sdks/offers/README.md delete mode 100644 docs/sdks/offices/README.md delete mode 100644 docs/sdks/panoraatsusers/README.md delete mode 100644 docs/sdks/panoracompanies/README.md delete mode 100644 docs/sdks/panoragroups/README.md delete mode 100644 docs/sdks/panoratags/README.md delete mode 100644 docs/sdks/panoraticketingattachments/README.md delete mode 100644 docs/sdks/paygroups/README.md delete mode 100644 docs/sdks/payrollruns/README.md delete mode 100644 docs/sdks/rejectreasons/README.md delete mode 100644 docs/sdks/scorecards/README.md delete mode 100644 docs/sdks/timeoffbalances/README.md delete mode 100644 docs/sdks/timeoffs/README.md delete mode 100644 docs/sdks/timesheetentries/README.md delete mode 100644 src/funcs/atsActivitiesCreate.ts delete mode 100644 src/funcs/atsActivitiesList.ts delete mode 100644 src/funcs/atsActivitiesRetrieve.ts delete mode 100644 src/funcs/atsApplicationsCreate.ts delete mode 100644 src/funcs/atsApplicationsList.ts delete mode 100644 src/funcs/atsApplicationsRetrieve.ts delete mode 100644 src/funcs/atsAttachmentsCreate.ts delete mode 100644 src/funcs/atsAttachmentsList.ts delete mode 100644 src/funcs/atsAttachmentsRetrieve.ts delete mode 100644 src/funcs/atsCandidatesCreate.ts delete mode 100644 src/funcs/atsCandidatesList.ts delete mode 100644 src/funcs/atsCandidatesRetrieve.ts delete mode 100644 src/funcs/atsDepartmentsList.ts delete mode 100644 src/funcs/atsDepartmentsRetrieve.ts delete mode 100644 src/funcs/atsEeocsList.ts delete mode 100644 src/funcs/atsEeocsRetrieve.ts delete mode 100644 src/funcs/atsInterviewsCreate.ts delete mode 100644 src/funcs/atsInterviewsList.ts delete mode 100644 src/funcs/atsInterviewsRetrieve.ts delete mode 100644 src/funcs/atsJobinterviewstagesList.ts delete mode 100644 src/funcs/atsJobinterviewstagesRetrieve.ts delete mode 100644 src/funcs/atsJobsList.ts delete mode 100644 src/funcs/atsJobsRetrieve.ts delete mode 100644 src/funcs/atsOffersList.ts delete mode 100644 src/funcs/atsOffersRetrieve.ts delete mode 100644 src/funcs/atsOfficesList.ts delete mode 100644 src/funcs/atsOfficesRetrieve.ts delete mode 100644 src/funcs/atsRejectreasonsList.ts delete mode 100644 src/funcs/atsRejectreasonsRetrieve.ts delete mode 100644 src/funcs/atsScorecardsList.ts delete mode 100644 src/funcs/atsScorecardsRetrieve.ts delete mode 100644 src/funcs/atsTagsList.ts delete mode 100644 src/funcs/atsTagsRetrieve.ts delete mode 100644 src/funcs/atsUsersList.ts delete mode 100644 src/funcs/atsUsersRetrieve.ts delete mode 100644 src/funcs/hrisBankinfosList.ts delete mode 100644 src/funcs/hrisBankinfosRetrieve.ts delete mode 100644 src/funcs/hrisBenefitsList.ts delete mode 100644 src/funcs/hrisBenefitsRetrieve.ts delete mode 100644 src/funcs/hrisCompaniesList.ts delete mode 100644 src/funcs/hrisCompaniesRetrieve.ts delete mode 100644 src/funcs/hrisDependentsList.ts delete mode 100644 src/funcs/hrisDependentsRetrieve.ts delete mode 100644 src/funcs/hrisEmployeepayrollrunsList.ts delete mode 100644 src/funcs/hrisEmployeepayrollrunsRetrieve.ts delete mode 100644 src/funcs/hrisEmployeesCreate.ts delete mode 100644 src/funcs/hrisEmployeesList.ts delete mode 100644 src/funcs/hrisEmployeesRetrieve.ts delete mode 100644 src/funcs/hrisEmployerbenefitsList.ts delete mode 100644 src/funcs/hrisEmployerbenefitsRetrieve.ts delete mode 100644 src/funcs/hrisEmploymentsList.ts delete mode 100644 src/funcs/hrisEmploymentsRetrieve.ts delete mode 100644 src/funcs/hrisGroupsList.ts delete mode 100644 src/funcs/hrisGroupsRetrieve.ts delete mode 100644 src/funcs/hrisLocationsList.ts delete mode 100644 src/funcs/hrisLocationsRetrieve.ts delete mode 100644 src/funcs/hrisPaygroupsList.ts delete mode 100644 src/funcs/hrisPaygroupsRetrieve.ts delete mode 100644 src/funcs/hrisPayrollrunsList.ts delete mode 100644 src/funcs/hrisPayrollrunsRetrieve.ts delete mode 100644 src/funcs/hrisTimeoffbalancesList.ts delete mode 100644 src/funcs/hrisTimeoffbalancesRetrieve.ts delete mode 100644 src/funcs/hrisTimeoffsCreate.ts delete mode 100644 src/funcs/hrisTimeoffsList.ts delete mode 100644 src/funcs/hrisTimeoffsRetrieve.ts delete mode 100644 src/funcs/hrisTimesheetentriesCreate.ts delete mode 100644 src/funcs/hrisTimesheetentriesList.ts delete mode 100644 src/funcs/hrisTimesheetentriesRetrieve.ts delete mode 100644 src/models/components/deductionitem.ts delete mode 100644 src/models/components/earningitem.ts delete mode 100644 src/models/components/taxitem.ts delete mode 100644 src/models/components/unifiedatsactivityinput.ts delete mode 100644 src/models/components/unifiedatsactivityoutput.ts delete mode 100644 src/models/components/unifiedatsapplicationinput.ts delete mode 100644 src/models/components/unifiedatsapplicationoutput.ts delete mode 100644 src/models/components/unifiedatsattachmentinput.ts delete mode 100644 src/models/components/unifiedatsattachmentoutput.ts delete mode 100644 src/models/components/unifiedatscandidateinput.ts delete mode 100644 src/models/components/unifiedatscandidateoutput.ts delete mode 100644 src/models/components/unifiedatsdepartmentoutput.ts delete mode 100644 src/models/components/unifiedatseeocsoutput.ts delete mode 100644 src/models/components/unifiedatsinterviewinput.ts delete mode 100644 src/models/components/unifiedatsinterviewoutput.ts delete mode 100644 src/models/components/unifiedatsjobinterviewstageoutput.ts delete mode 100644 src/models/components/unifiedatsjoboutput.ts delete mode 100644 src/models/components/unifiedatsofferoutput.ts delete mode 100644 src/models/components/unifiedatsofficeoutput.ts delete mode 100644 src/models/components/unifiedatsrejectreasonoutput.ts delete mode 100644 src/models/components/unifiedatsscorecardoutput.ts delete mode 100644 src/models/components/unifiedatstagoutput.ts delete mode 100644 src/models/components/unifiedatsuseroutput.ts delete mode 100644 src/models/components/unifiedhrisbankinfooutput.ts delete mode 100644 src/models/components/unifiedhrisbenefitoutput.ts delete mode 100644 src/models/components/unifiedhriscompanyoutput.ts delete mode 100644 src/models/components/unifiedhrisdependentoutput.ts delete mode 100644 src/models/components/unifiedhrisemployeeinput.ts delete mode 100644 src/models/components/unifiedhrisemployeeoutput.ts delete mode 100644 src/models/components/unifiedhrisemployeepayrollrunoutput.ts delete mode 100644 src/models/components/unifiedhrisemployerbenefitoutput.ts delete mode 100644 src/models/components/unifiedhrisemploymentoutput.ts delete mode 100644 src/models/components/unifiedhrisgroupoutput.ts delete mode 100644 src/models/components/unifiedhrislocationoutput.ts delete mode 100644 src/models/components/unifiedhrispaygroupoutput.ts delete mode 100644 src/models/components/unifiedhrispayrollrunoutput.ts delete mode 100644 src/models/components/unifiedhristimeoffbalanceoutput.ts delete mode 100644 src/models/components/unifiedhristimeoffinput.ts delete mode 100644 src/models/components/unifiedhristimeoffoutput.ts delete mode 100644 src/models/components/unifiedhristimesheetentryinput.ts delete mode 100644 src/models/components/unifiedhristimesheetentryoutput.ts delete mode 100644 src/models/components/url.ts delete mode 100644 src/models/operations/createatsactivity.ts delete mode 100644 src/models/operations/createatsapplication.ts delete mode 100644 src/models/operations/createatsattachment.ts delete mode 100644 src/models/operations/createatscandidate.ts delete mode 100644 src/models/operations/createatsinterview.ts delete mode 100644 src/models/operations/createhrisemployee.ts delete mode 100644 src/models/operations/createhristimeoff.ts delete mode 100644 src/models/operations/createhristimesheetentry.ts delete mode 100644 src/models/operations/listatsactivity.ts delete mode 100644 src/models/operations/listatsapplication.ts delete mode 100644 src/models/operations/listatsattachment.ts delete mode 100644 src/models/operations/listatscandidate.ts delete mode 100644 src/models/operations/listatsdepartments.ts delete mode 100644 src/models/operations/listatseeocs.ts delete mode 100644 src/models/operations/listatsinterview.ts delete mode 100644 src/models/operations/listatsjob.ts delete mode 100644 src/models/operations/listatsjobinterviewstage.ts delete mode 100644 src/models/operations/listatsoffer.ts delete mode 100644 src/models/operations/listatsoffice.ts delete mode 100644 src/models/operations/listatsrejectreasons.ts delete mode 100644 src/models/operations/listatsscorecard.ts delete mode 100644 src/models/operations/listatstags.ts delete mode 100644 src/models/operations/listatsusers.ts delete mode 100644 src/models/operations/listhrisbankinfo.ts delete mode 100644 src/models/operations/listhrisbenefits.ts delete mode 100644 src/models/operations/listhriscompanies.ts delete mode 100644 src/models/operations/listhrisdependents.ts delete mode 100644 src/models/operations/listhrisemployeepayrollrun.ts delete mode 100644 src/models/operations/listhrisemployees.ts delete mode 100644 src/models/operations/listhrisemployerbenefits.ts delete mode 100644 src/models/operations/listhrisemployments.ts delete mode 100644 src/models/operations/listhrisgroups.ts delete mode 100644 src/models/operations/listhrislocations.ts delete mode 100644 src/models/operations/listhrispaygroups.ts delete mode 100644 src/models/operations/listhrispayrollruns.ts delete mode 100644 src/models/operations/listhristimeoffbalances.ts delete mode 100644 src/models/operations/listhristimeoffs.ts delete mode 100644 src/models/operations/listhristimesheetentries.ts delete mode 100644 src/models/operations/retrieveatsactivity.ts delete mode 100644 src/models/operations/retrieveatsapplication.ts delete mode 100644 src/models/operations/retrieveatsattachment.ts delete mode 100644 src/models/operations/retrieveatscandidate.ts delete mode 100644 src/models/operations/retrieveatsdepartment.ts delete mode 100644 src/models/operations/retrieveatseeocs.ts delete mode 100644 src/models/operations/retrieveatsinterview.ts delete mode 100644 src/models/operations/retrieveatsjob.ts delete mode 100644 src/models/operations/retrieveatsjobinterviewstage.ts delete mode 100644 src/models/operations/retrieveatsoffer.ts delete mode 100644 src/models/operations/retrieveatsoffice.ts delete mode 100644 src/models/operations/retrieveatsrejectreason.ts delete mode 100644 src/models/operations/retrieveatsscorecard.ts delete mode 100644 src/models/operations/retrieveatstag.ts delete mode 100644 src/models/operations/retrieveatsuser.ts delete mode 100644 src/models/operations/retrievehrisbankinfo.ts delete mode 100644 src/models/operations/retrievehrisbenefit.ts delete mode 100644 src/models/operations/retrievehriscompany.ts delete mode 100644 src/models/operations/retrievehrisdependent.ts delete mode 100644 src/models/operations/retrievehrisemployee.ts delete mode 100644 src/models/operations/retrievehrisemployeepayrollrun.ts delete mode 100644 src/models/operations/retrievehrisemployerbenefit.ts delete mode 100644 src/models/operations/retrievehrisemployment.ts delete mode 100644 src/models/operations/retrievehrisgroup.ts delete mode 100644 src/models/operations/retrievehrislocation.ts delete mode 100644 src/models/operations/retrievehrispaygroup.ts delete mode 100644 src/models/operations/retrievehrispayrollrun.ts delete mode 100644 src/models/operations/retrievehristimeoff.ts delete mode 100644 src/models/operations/retrievehristimeoffbalance.ts delete mode 100644 src/models/operations/retrievehristimesheetentry.ts delete mode 100644 src/models/operations/updatepullfrequency.ts delete mode 100644 src/sdk/activities.ts delete mode 100644 src/sdk/applications.ts delete mode 100644 src/sdk/ats.ts delete mode 100644 src/sdk/bankinfos.ts delete mode 100644 src/sdk/benefits.ts delete mode 100644 src/sdk/candidates.ts delete mode 100644 src/sdk/departments.ts delete mode 100644 src/sdk/dependents.ts delete mode 100644 src/sdk/eeocs.ts delete mode 100644 src/sdk/employeepayrollruns.ts delete mode 100644 src/sdk/employees.ts delete mode 100644 src/sdk/employerbenefits.ts delete mode 100644 src/sdk/employments.ts delete mode 100644 src/sdk/hris.ts delete mode 100644 src/sdk/interviews.ts delete mode 100644 src/sdk/jobinterviewstages.ts delete mode 100644 src/sdk/jobs.ts delete mode 100644 src/sdk/locations.ts delete mode 100644 src/sdk/offers.ts delete mode 100644 src/sdk/offices.ts delete mode 100644 src/sdk/panoraatsusers.ts delete mode 100644 src/sdk/panoracompanies.ts delete mode 100644 src/sdk/panoragroups.ts delete mode 100644 src/sdk/panoratags.ts delete mode 100644 src/sdk/panoraticketingattachments.ts delete mode 100644 src/sdk/paygroups.ts delete mode 100644 src/sdk/payrollruns.ts delete mode 100644 src/sdk/rejectreasons.ts delete mode 100644 src/sdk/scorecards.ts delete mode 100644 src/sdk/timeoffbalances.ts delete mode 100644 src/sdk/timeoffs.ts delete mode 100644 src/sdk/timesheetentries.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6d49115d..1a47fb82 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,23 +1,22 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: b37062aecf8703f01cd8ff6e28b459b8 + docChecksum: b61e31f00ae44ce87e930935e8780921 docVersion: "1.0" - speakeasyVersion: 1.399.5 - generationVersion: 2.420.2 - releaseVersion: 0.13.8 - configChecksum: 3d4b3c179ade22eb788fba997b008dd1 + speakeasyVersion: 1.440.2 + generationVersion: 2.460.1 + releaseVersion: 0.14.0 + configChecksum: 138a3672d0c0397a44733f29151c0c51 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.11 - core: 3.17.5 + core: 3.18.5 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 - envVarSecurityUsage: 0.1.1 + envVarSecurityUsage: 0.1.2 globalSecurity: 2.82.11 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 @@ -25,11 +24,11 @@ features: groups: 2.81.2 nameOverrides: 2.81.2 nullables: 0.1.0 - pagination: 2.82.6 + pagination: 2.82.7 responseFormat: 0.2.3 retries: 2.83.0 - sdkHooks: 0.1.0 - unions: 2.85.7 + sdkHooks: 0.2.0 + unions: 2.85.8 generatedFiles: - .eslintrc.cjs - .gitattributes @@ -40,7 +39,6 @@ generatedFiles: - USAGE.md - docs/lib/utils/retryconfig.md - docs/models/components/address.md - - docs/models/components/applications.md - docs/models/components/attachments.md - docs/models/components/collections.md - docs/models/components/comment.md @@ -56,14 +54,11 @@ generatedFiles: - docs/models/components/customfieldresponsedatatype.md - docs/models/components/data.md - docs/models/components/datatype.md - - docs/models/components/deductionitem.md - docs/models/components/definetargetfielddto.md - - docs/models/components/earningitem.md - docs/models/components/email.md - docs/models/components/eventresponse.md - docs/models/components/eventresponsestatus.md - docs/models/components/fieldmappings.md - - docs/models/components/headers.md - docs/models/components/items.md - docs/models/components/lineitem.md - docs/models/components/linkeduserresponse.md @@ -86,14 +81,11 @@ generatedFiles: - docs/models/components/signatureverificationdto.md - docs/models/components/status.md - docs/models/components/tags.md - - docs/models/components/taxitem.md - docs/models/components/tokentype.md - docs/models/components/type.md - docs/models/components/unifiedaccountingaccountinput.md - docs/models/components/unifiedaccountingaccountinputfieldmappings.md - docs/models/components/unifiedaccountingaccountoutput.md - - docs/models/components/unifiedaccountingaccountoutputfieldmappings.md - - docs/models/components/unifiedaccountingaccountoutputremotedata.md - docs/models/components/unifiedaccountingaddressoutput.md - docs/models/components/unifiedaccountingaddressoutputfieldmappings.md - docs/models/components/unifiedaccountingaddressoutputremotedata.md @@ -165,33 +157,6 @@ generatedFiles: - docs/models/components/unifiedaccountingvendorcreditoutput.md - docs/models/components/unifiedaccountingvendorcreditoutputfieldmappings.md - docs/models/components/unifiedaccountingvendorcreditoutputremotedata.md - - docs/models/components/unifiedatsactivityinput.md - - docs/models/components/unifiedatsactivityoutput.md - - docs/models/components/unifiedatsapplicationinput.md - - docs/models/components/unifiedatsapplicationoutput.md - - docs/models/components/unifiedatsattachmentinput.md - - docs/models/components/unifiedatsattachmentoutput.md - - docs/models/components/unifiedatscandidateinput.md - - docs/models/components/unifiedatscandidateinputapplications.md - - docs/models/components/unifiedatscandidateinputattachments.md - - docs/models/components/unifiedatscandidateinputtags.md - - docs/models/components/unifiedatscandidateoutput.md - - docs/models/components/unifiedatscandidateoutputattachments.md - - docs/models/components/unifiedatscandidateoutputtags.md - - docs/models/components/unifiedatsdepartmentoutput.md - - docs/models/components/unifiedatseeocsoutput.md - - docs/models/components/unifiedatsinterviewinput.md - - docs/models/components/unifiedatsinterviewoutput.md - - docs/models/components/unifiedatsjobinterviewstageoutput.md - - docs/models/components/unifiedatsjoboutput.md - - docs/models/components/unifiedatsofferoutput.md - - docs/models/components/unifiedatsofferoutputcreatedat.md - - docs/models/components/unifiedatsofferoutputmodifiedat.md - - docs/models/components/unifiedatsofficeoutput.md - - docs/models/components/unifiedatsrejectreasonoutput.md - - docs/models/components/unifiedatsscorecardoutput.md - - docs/models/components/unifiedatstagoutput.md - - docs/models/components/unifiedatsuseroutput.md - docs/models/components/unifiedcrmcompanyinput.md - docs/models/components/unifiedcrmcompanyoutput.md - docs/models/components/unifiedcrmcontactinput.md @@ -230,55 +195,6 @@ generatedFiles: - docs/models/components/unifiedfilestoragefolderoutput.md - docs/models/components/unifiedfilestoragegroupoutput.md - docs/models/components/unifiedfilestorageuseroutput.md - - docs/models/components/unifiedhrisbankinfooutput.md - - docs/models/components/unifiedhrisbenefitoutput.md - - docs/models/components/unifiedhrisbenefitoutputfieldmappings.md - - docs/models/components/unifiedhrisbenefitoutputremotedata.md - - docs/models/components/unifiedhriscompanyoutput.md - - docs/models/components/unifiedhriscompanyoutputfieldmappings.md - - docs/models/components/unifiedhriscompanyoutputremotedata.md - - docs/models/components/unifiedhrisdependentoutput.md - - docs/models/components/unifiedhrisdependentoutputfieldmappings.md - - docs/models/components/unifiedhrisdependentoutputremotedata.md - - docs/models/components/unifiedhrisemployeeinput.md - - docs/models/components/unifiedhrisemployeeinputfieldmappings.md - - docs/models/components/unifiedhrisemployeeoutput.md - - docs/models/components/unifiedhrisemployeeoutputfieldmappings.md - - docs/models/components/unifiedhrisemployeeoutputremotedata.md - - docs/models/components/unifiedhrisemployeepayrollrunoutput.md - - docs/models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md - - docs/models/components/unifiedhrisemployeepayrollrunoutputremotedata.md - - docs/models/components/unifiedhrisemployerbenefitoutput.md - - docs/models/components/unifiedhrisemployerbenefitoutputfieldmappings.md - - docs/models/components/unifiedhrisemployerbenefitoutputremotedata.md - - docs/models/components/unifiedhrisemploymentoutput.md - - docs/models/components/unifiedhrisemploymentoutputfieldmappings.md - - docs/models/components/unifiedhrisemploymentoutputremotedata.md - - docs/models/components/unifiedhrisgroupoutput.md - - docs/models/components/unifiedhrisgroupoutputfieldmappings.md - - docs/models/components/unifiedhrisgroupoutputremotedata.md - - docs/models/components/unifiedhrislocationoutput.md - - docs/models/components/unifiedhrislocationoutputfieldmappings.md - - docs/models/components/unifiedhrislocationoutputremotedata.md - - docs/models/components/unifiedhrispaygroupoutput.md - - docs/models/components/unifiedhrispaygroupoutputfieldmappings.md - - docs/models/components/unifiedhrispaygroupoutputremotedata.md - - docs/models/components/unifiedhrispayrollrunoutput.md - - docs/models/components/unifiedhrispayrollrunoutputfieldmappings.md - - docs/models/components/unifiedhrispayrollrunoutputremotedata.md - - docs/models/components/unifiedhristimeoffbalanceoutput.md - - docs/models/components/unifiedhristimeoffbalanceoutputfieldmappings.md - - docs/models/components/unifiedhristimeoffbalanceoutputremotedata.md - - docs/models/components/unifiedhristimeoffinput.md - - docs/models/components/unifiedhristimeoffinputfieldmappings.md - - docs/models/components/unifiedhristimeoffoutput.md - - docs/models/components/unifiedhristimeoffoutputfieldmappings.md - - docs/models/components/unifiedhristimeoffoutputremotedata.md - - docs/models/components/unifiedhristimesheetentryinput.md - - docs/models/components/unifiedhristimesheetentryinputfieldmappings.md - - docs/models/components/unifiedhristimesheetentryoutput.md - - docs/models/components/unifiedhristimesheetentryoutputfieldmappings.md - - docs/models/components/unifiedhristimesheetentryoutputremotedata.md - docs/models/components/unifiedmarketingautomationactioninput.md - docs/models/components/unifiedmarketingautomationactionoutput.md - docs/models/components/unifiedmarketingautomationautomationinput.md @@ -316,7 +232,6 @@ generatedFiles: - docs/models/components/unifiedticketingticketoutputattachments.md - docs/models/components/unifiedticketinguseroutput.md - docs/models/components/updatepullfrequencydto.md - - docs/models/components/url.md - docs/models/components/users.md - docs/models/components/variant.md - docs/models/components/vertical.md @@ -330,11 +245,6 @@ generatedFiles: - docs/models/operations/createaccountingjournalentryrequest.md - docs/models/operations/createaccountingpaymentrequest.md - docs/models/operations/createaccountingpurchaseorderrequest.md - - docs/models/operations/createatsactivityrequest.md - - docs/models/operations/createatsapplicationrequest.md - - docs/models/operations/createatsattachmentrequest.md - - docs/models/operations/createatscandidaterequest.md - - docs/models/operations/createatsinterviewrequest.md - docs/models/operations/createcrmcompanyrequest.md - docs/models/operations/createcrmcontactrequest.md - docs/models/operations/createcrmdealrequest.md @@ -345,9 +255,6 @@ generatedFiles: - docs/models/operations/createecommerceproductrequest.md - docs/models/operations/createfilestoragefilerequest.md - docs/models/operations/createfilestoragefolderrequest.md - - docs/models/operations/createhrisemployeerequest.md - - docs/models/operations/createhristimeoffrequest.md - - docs/models/operations/createhristimesheetentryrequest.md - docs/models/operations/createmarketingautomationactionrequest.md - docs/models/operations/createmarketingautomationautomationrequest.md - docs/models/operations/createmarketingautomationcampaignrequest.md @@ -420,51 +327,6 @@ generatedFiles: - docs/models/operations/listaccountingvendorcreditrequest.md - docs/models/operations/listaccountingvendorcreditresponse.md - docs/models/operations/listaccountingvendorcreditresponsebody.md - - docs/models/operations/listatsactivityrequest.md - - docs/models/operations/listatsactivityresponse.md - - docs/models/operations/listatsactivityresponsebody.md - - docs/models/operations/listatsapplicationrequest.md - - docs/models/operations/listatsapplicationresponse.md - - docs/models/operations/listatsapplicationresponsebody.md - - docs/models/operations/listatsattachmentrequest.md - - docs/models/operations/listatsattachmentresponse.md - - docs/models/operations/listatsattachmentresponsebody.md - - docs/models/operations/listatscandidaterequest.md - - docs/models/operations/listatscandidateresponse.md - - docs/models/operations/listatscandidateresponsebody.md - - docs/models/operations/listatsdepartmentsrequest.md - - docs/models/operations/listatsdepartmentsresponse.md - - docs/models/operations/listatsdepartmentsresponsebody.md - - docs/models/operations/listatseeocsrequest.md - - docs/models/operations/listatseeocsresponse.md - - docs/models/operations/listatseeocsresponsebody.md - - docs/models/operations/listatsinterviewrequest.md - - docs/models/operations/listatsinterviewresponse.md - - docs/models/operations/listatsinterviewresponsebody.md - - docs/models/operations/listatsjobinterviewstagerequest.md - - docs/models/operations/listatsjobinterviewstageresponse.md - - docs/models/operations/listatsjobinterviewstageresponsebody.md - - docs/models/operations/listatsjobrequest.md - - docs/models/operations/listatsjobresponse.md - - docs/models/operations/listatsjobresponsebody.md - - docs/models/operations/listatsofferrequest.md - - docs/models/operations/listatsofferresponse.md - - docs/models/operations/listatsofferresponsebody.md - - docs/models/operations/listatsofficerequest.md - - docs/models/operations/listatsofficeresponse.md - - docs/models/operations/listatsofficeresponsebody.md - - docs/models/operations/listatsrejectreasonsrequest.md - - docs/models/operations/listatsrejectreasonsresponse.md - - docs/models/operations/listatsrejectreasonsresponsebody.md - - docs/models/operations/listatsscorecardrequest.md - - docs/models/operations/listatsscorecardresponse.md - - docs/models/operations/listatsscorecardresponsebody.md - - docs/models/operations/listatstagsrequest.md - - docs/models/operations/listatstagsresponse.md - - docs/models/operations/listatstagsresponsebody.md - - docs/models/operations/listatsusersrequest.md - - docs/models/operations/listatsusersresponse.md - - docs/models/operations/listatsusersresponsebody.md - docs/models/operations/listcrmcompanyrequest.md - docs/models/operations/listcrmcompanyresponse.md - docs/models/operations/listcrmcompanyresponsebody.md @@ -513,51 +375,6 @@ generatedFiles: - docs/models/operations/listfilestorageusersrequest.md - docs/models/operations/listfilestorageusersresponse.md - docs/models/operations/listfilestorageusersresponsebody.md - - docs/models/operations/listhrisbankinforequest.md - - docs/models/operations/listhrisbankinforesponse.md - - docs/models/operations/listhrisbankinforesponsebody.md - - docs/models/operations/listhrisbenefitsrequest.md - - docs/models/operations/listhrisbenefitsresponse.md - - docs/models/operations/listhrisbenefitsresponsebody.md - - docs/models/operations/listhriscompaniesrequest.md - - docs/models/operations/listhriscompaniesresponse.md - - docs/models/operations/listhriscompaniesresponsebody.md - - docs/models/operations/listhrisdependentsrequest.md - - docs/models/operations/listhrisdependentsresponse.md - - docs/models/operations/listhrisdependentsresponsebody.md - - docs/models/operations/listhrisemployeepayrollrunrequest.md - - docs/models/operations/listhrisemployeepayrollrunresponse.md - - docs/models/operations/listhrisemployeepayrollrunresponsebody.md - - docs/models/operations/listhrisemployeesrequest.md - - docs/models/operations/listhrisemployeesresponse.md - - docs/models/operations/listhrisemployeesresponsebody.md - - docs/models/operations/listhrisemployerbenefitsrequest.md - - docs/models/operations/listhrisemployerbenefitsresponse.md - - docs/models/operations/listhrisemployerbenefitsresponsebody.md - - docs/models/operations/listhrisemploymentsrequest.md - - docs/models/operations/listhrisemploymentsresponse.md - - docs/models/operations/listhrisemploymentsresponsebody.md - - docs/models/operations/listhrisgroupsrequest.md - - docs/models/operations/listhrisgroupsresponse.md - - docs/models/operations/listhrisgroupsresponsebody.md - - docs/models/operations/listhrislocationsrequest.md - - docs/models/operations/listhrislocationsresponse.md - - docs/models/operations/listhrislocationsresponsebody.md - - docs/models/operations/listhrispaygroupsrequest.md - - docs/models/operations/listhrispaygroupsresponse.md - - docs/models/operations/listhrispaygroupsresponsebody.md - - docs/models/operations/listhrispayrollrunsrequest.md - - docs/models/operations/listhrispayrollrunsresponse.md - - docs/models/operations/listhrispayrollrunsresponsebody.md - - docs/models/operations/listhristimeoffbalancesrequest.md - - docs/models/operations/listhristimeoffbalancesresponse.md - - docs/models/operations/listhristimeoffbalancesresponsebody.md - - docs/models/operations/listhristimeoffsrequest.md - - docs/models/operations/listhristimeoffsresponse.md - - docs/models/operations/listhristimeoffsresponsebody.md - - docs/models/operations/listhristimesheetentriesrequest.md - - docs/models/operations/listhristimesheetentriesresponse.md - - docs/models/operations/listhristimesheetentriesresponsebody.md - docs/models/operations/listmarketingautomationactionrequest.md - docs/models/operations/listmarketingautomationactionresponse.md - docs/models/operations/listmarketingautomationactionresponsebody.md @@ -617,9 +434,7 @@ generatedFiles: - docs/models/operations/listticketingusersresponsebody.md - docs/models/operations/queryrequest.md - docs/models/operations/remoteidrequest.md - - docs/models/operations/requestpassthroughresponsebody.md - docs/models/operations/requestrequest.md - - docs/models/operations/requestresponse.md - docs/models/operations/requestresponsebody.md - docs/models/operations/retrieveaccountingaccountrequest.md - docs/models/operations/retrieveaccountingaddressrequest.md @@ -641,21 +456,6 @@ generatedFiles: - docs/models/operations/retrieveaccountingtrackingcategoryrequest.md - docs/models/operations/retrieveaccountingtransactionrequest.md - docs/models/operations/retrieveaccountingvendorcreditrequest.md - - docs/models/operations/retrieveatsactivityrequest.md - - docs/models/operations/retrieveatsapplicationrequest.md - - docs/models/operations/retrieveatsattachmentrequest.md - - docs/models/operations/retrieveatscandidaterequest.md - - docs/models/operations/retrieveatsdepartmentrequest.md - - docs/models/operations/retrieveatseeocsrequest.md - - docs/models/operations/retrieveatsinterviewrequest.md - - docs/models/operations/retrieveatsjobinterviewstagerequest.md - - docs/models/operations/retrieveatsjobrequest.md - - docs/models/operations/retrieveatsofferrequest.md - - docs/models/operations/retrieveatsofficerequest.md - - docs/models/operations/retrieveatsrejectreasonrequest.md - - docs/models/operations/retrieveatsscorecardrequest.md - - docs/models/operations/retrieveatstagrequest.md - - docs/models/operations/retrieveatsuserrequest.md - docs/models/operations/retrievecollectionrequest.md - docs/models/operations/retrievecrmcompanyrequest.md - docs/models/operations/retrievecrmcontactrequest.md @@ -673,21 +473,6 @@ generatedFiles: - docs/models/operations/retrievefilestoragefolderrequest.md - docs/models/operations/retrievefilestoragegrouprequest.md - docs/models/operations/retrievefilestorageuserrequest.md - - docs/models/operations/retrievehrisbankinforequest.md - - docs/models/operations/retrievehrisbenefitrequest.md - - docs/models/operations/retrievehriscompanyrequest.md - - docs/models/operations/retrievehrisdependentrequest.md - - docs/models/operations/retrievehrisemployeepayrollrunrequest.md - - docs/models/operations/retrievehrisemployeerequest.md - - docs/models/operations/retrievehrisemployerbenefitrequest.md - - docs/models/operations/retrievehrisemploymentrequest.md - - docs/models/operations/retrievehrisgrouprequest.md - - docs/models/operations/retrievehrislocationrequest.md - - docs/models/operations/retrievehrispaygrouprequest.md - - docs/models/operations/retrievehrispayrollrunrequest.md - - docs/models/operations/retrievehristimeoffbalancerequest.md - - docs/models/operations/retrievehristimeoffrequest.md - - docs/models/operations/retrievehristimesheetentryrequest.md - docs/models/operations/retrievelinkeduserrequest.md - docs/models/operations/retrievemarketingautomationactionrequest.md - docs/models/operations/retrievemarketingautomationautomationrequest.md @@ -710,24 +495,17 @@ generatedFiles: - docs/models/operations/retrieveticketingticketrequest.md - docs/models/operations/retrieveticketinguserrequest.md - docs/models/operations/statusrequest.md - - docs/models/operations/updatepullfrequencyresponsebody.md - docs/models/operations/updatestatusrequest.md - docs/models/operations/vertical.md - docs/sdks/accounting/README.md - docs/sdks/accounts/README.md - docs/sdks/actions/README.md - - docs/sdks/activities/README.md - docs/sdks/addresses/README.md - - docs/sdks/applications/README.md - - docs/sdks/ats/README.md - docs/sdks/attachments/README.md - docs/sdks/auth/README.md - docs/sdks/automations/README.md - docs/sdks/balancesheets/README.md - - docs/sdks/bankinfos/README.md - - docs/sdks/benefits/README.md - docs/sdks/campaigns/README.md - - docs/sdks/candidates/README.md - docs/sdks/cashflowstatements/README.md - docs/sdks/collections/README.md - docs/sdks/comments/README.md @@ -739,15 +517,8 @@ generatedFiles: - docs/sdks/crm/README.md - docs/sdks/customers/README.md - docs/sdks/deals/README.md - - docs/sdks/departments/README.md - - docs/sdks/dependents/README.md - docs/sdks/ecommerce/README.md - - docs/sdks/eeocs/README.md - docs/sdks/emails/README.md - - docs/sdks/employeepayrollruns/README.md - - docs/sdks/employees/README.md - - docs/sdks/employerbenefits/README.md - - docs/sdks/employments/README.md - docs/sdks/engagements/README.md - docs/sdks/events/README.md - docs/sdks/expenses/README.md @@ -757,51 +528,35 @@ generatedFiles: - docs/sdks/folders/README.md - docs/sdks/fulfillments/README.md - docs/sdks/groups/README.md - - docs/sdks/hris/README.md - docs/sdks/incomestatements/README.md - - docs/sdks/interviews/README.md - docs/sdks/invoices/README.md - docs/sdks/items/README.md - - docs/sdks/jobinterviewstages/README.md - - docs/sdks/jobs/README.md - docs/sdks/journalentries/README.md - docs/sdks/linkedusers/README.md - docs/sdks/lists/README.md - - docs/sdks/locations/README.md - docs/sdks/login/README.md - docs/sdks/marketingautomation/README.md - docs/sdks/messages/README.md - docs/sdks/notes/README.md - - docs/sdks/offers/README.md - - docs/sdks/offices/README.md - docs/sdks/orders/README.md - docs/sdks/panora/README.md - docs/sdks/panoraaccountingcontacts/README.md - docs/sdks/panoraaccounts/README.md - - docs/sdks/panoraatsusers/README.md - docs/sdks/panoraattachments/README.md - - docs/sdks/panoracompanies/README.md - docs/sdks/panoracontacts/README.md - docs/sdks/panoraevents/README.md - docs/sdks/panorafilestorageusers/README.md - - docs/sdks/panoragroups/README.md - docs/sdks/panoramarketingautomationcontacts/README.md - docs/sdks/panoramarketingautomationusers/README.md - - docs/sdks/panoratags/README.md - - docs/sdks/panoraticketingattachments/README.md - docs/sdks/panorausers/README.md - docs/sdks/passthrough/README.md - - docs/sdks/paygroups/README.md - docs/sdks/payments/README.md - - docs/sdks/payrollruns/README.md - docs/sdks/phonenumbers/README.md - docs/sdks/products/README.md - docs/sdks/projects/README.md - docs/sdks/purchaseorders/README.md - docs/sdks/rag/README.md - - docs/sdks/rejectreasons/README.md - docs/sdks/retryid/README.md - - docs/sdks/scorecards/README.md - docs/sdks/stages/README.md - docs/sdks/sync/README.md - docs/sdks/tags/README.md @@ -811,9 +566,6 @@ generatedFiles: - docs/sdks/templates/README.md - docs/sdks/ticketing/README.md - docs/sdks/tickets/README.md - - docs/sdks/timeoffbalances/README.md - - docs/sdks/timeoffs/README.md - - docs/sdks/timesheetentries/README.md - docs/sdks/trackingcategories/README.md - docs/sdks/transactions/README.md - docs/sdks/users/README.md @@ -870,41 +622,6 @@ generatedFiles: - src/funcs/accountingTransactionsRetrieve.ts - src/funcs/accountingVendorcreditsList.ts - src/funcs/accountingVendorcreditsRetrieve.ts - - src/funcs/atsActivitiesCreate.ts - - src/funcs/atsActivitiesList.ts - - src/funcs/atsActivitiesRetrieve.ts - - src/funcs/atsApplicationsCreate.ts - - src/funcs/atsApplicationsList.ts - - src/funcs/atsApplicationsRetrieve.ts - - src/funcs/atsAttachmentsCreate.ts - - src/funcs/atsAttachmentsList.ts - - src/funcs/atsAttachmentsRetrieve.ts - - src/funcs/atsCandidatesCreate.ts - - src/funcs/atsCandidatesList.ts - - src/funcs/atsCandidatesRetrieve.ts - - src/funcs/atsDepartmentsList.ts - - src/funcs/atsDepartmentsRetrieve.ts - - src/funcs/atsEeocsList.ts - - src/funcs/atsEeocsRetrieve.ts - - src/funcs/atsInterviewsCreate.ts - - src/funcs/atsInterviewsList.ts - - src/funcs/atsInterviewsRetrieve.ts - - src/funcs/atsJobinterviewstagesList.ts - - src/funcs/atsJobinterviewstagesRetrieve.ts - - src/funcs/atsJobsList.ts - - src/funcs/atsJobsRetrieve.ts - - src/funcs/atsOffersList.ts - - src/funcs/atsOffersRetrieve.ts - - src/funcs/atsOfficesList.ts - - src/funcs/atsOfficesRetrieve.ts - - src/funcs/atsRejectreasonsList.ts - - src/funcs/atsRejectreasonsRetrieve.ts - - src/funcs/atsScorecardsList.ts - - src/funcs/atsScorecardsRetrieve.ts - - src/funcs/atsTagsList.ts - - src/funcs/atsTagsRetrieve.ts - - src/funcs/atsUsersList.ts - - src/funcs/atsUsersRetrieve.ts - src/funcs/authLoginSignIn.ts - src/funcs/connectionsList.ts - src/funcs/crmCompaniesCreate.ts @@ -958,39 +675,6 @@ generatedFiles: - src/funcs/filestorageUsersRetrieve.ts - src/funcs/health.ts - src/funcs/hello.ts - - src/funcs/hrisBankinfosList.ts - - src/funcs/hrisBankinfosRetrieve.ts - - src/funcs/hrisBenefitsList.ts - - src/funcs/hrisBenefitsRetrieve.ts - - src/funcs/hrisCompaniesList.ts - - src/funcs/hrisCompaniesRetrieve.ts - - src/funcs/hrisDependentsList.ts - - src/funcs/hrisDependentsRetrieve.ts - - src/funcs/hrisEmployeepayrollrunsList.ts - - src/funcs/hrisEmployeepayrollrunsRetrieve.ts - - src/funcs/hrisEmployeesCreate.ts - - src/funcs/hrisEmployeesList.ts - - src/funcs/hrisEmployeesRetrieve.ts - - src/funcs/hrisEmployerbenefitsList.ts - - src/funcs/hrisEmployerbenefitsRetrieve.ts - - src/funcs/hrisEmploymentsList.ts - - src/funcs/hrisEmploymentsRetrieve.ts - - src/funcs/hrisGroupsList.ts - - src/funcs/hrisGroupsRetrieve.ts - - src/funcs/hrisLocationsList.ts - - src/funcs/hrisLocationsRetrieve.ts - - src/funcs/hrisPaygroupsList.ts - - src/funcs/hrisPaygroupsRetrieve.ts - - src/funcs/hrisPayrollrunsList.ts - - src/funcs/hrisPayrollrunsRetrieve.ts - - src/funcs/hrisTimeoffbalancesList.ts - - src/funcs/hrisTimeoffbalancesRetrieve.ts - - src/funcs/hrisTimeoffsCreate.ts - - src/funcs/hrisTimeoffsList.ts - - src/funcs/hrisTimeoffsRetrieve.ts - - src/funcs/hrisTimesheetentriesCreate.ts - - src/funcs/hrisTimesheetentriesList.ts - - src/funcs/hrisTimesheetentriesRetrieve.ts - src/funcs/linkedUsersCreate.ts - src/funcs/linkedUsersImportBatch.ts - src/funcs/linkedUsersList.ts @@ -1083,9 +767,7 @@ generatedFiles: - src/models/components/createprojectdto.ts - src/models/components/customfieldcreatedto.ts - src/models/components/customfieldresponse.ts - - src/models/components/deductionitem.ts - src/models/components/definetargetfielddto.ts - - src/models/components/earningitem.ts - src/models/components/email.ts - src/models/components/eventresponse.ts - src/models/components/index.ts @@ -1101,7 +783,6 @@ generatedFiles: - src/models/components/resyncstatusdto.ts - src/models/components/security.ts - src/models/components/signatureverificationdto.ts - - src/models/components/taxitem.ts - src/models/components/unifiedaccountingaccountinput.ts - src/models/components/unifiedaccountingaccountoutput.ts - src/models/components/unifiedaccountingaddressoutput.ts @@ -1130,26 +811,6 @@ generatedFiles: - src/models/components/unifiedaccountingtrackingcategoryoutput.ts - src/models/components/unifiedaccountingtransactionoutput.ts - src/models/components/unifiedaccountingvendorcreditoutput.ts - - src/models/components/unifiedatsactivityinput.ts - - src/models/components/unifiedatsactivityoutput.ts - - src/models/components/unifiedatsapplicationinput.ts - - src/models/components/unifiedatsapplicationoutput.ts - - src/models/components/unifiedatsattachmentinput.ts - - src/models/components/unifiedatsattachmentoutput.ts - - src/models/components/unifiedatscandidateinput.ts - - src/models/components/unifiedatscandidateoutput.ts - - src/models/components/unifiedatsdepartmentoutput.ts - - src/models/components/unifiedatseeocsoutput.ts - - src/models/components/unifiedatsinterviewinput.ts - - src/models/components/unifiedatsinterviewoutput.ts - - src/models/components/unifiedatsjobinterviewstageoutput.ts - - src/models/components/unifiedatsjoboutput.ts - - src/models/components/unifiedatsofferoutput.ts - - src/models/components/unifiedatsofficeoutput.ts - - src/models/components/unifiedatsrejectreasonoutput.ts - - src/models/components/unifiedatsscorecardoutput.ts - - src/models/components/unifiedatstagoutput.ts - - src/models/components/unifiedatsuseroutput.ts - src/models/components/unifiedcrmcompanyinput.ts - src/models/components/unifiedcrmcompanyoutput.ts - src/models/components/unifiedcrmcontactinput.ts @@ -1176,24 +837,6 @@ generatedFiles: - src/models/components/unifiedfilestoragefolderoutput.ts - src/models/components/unifiedfilestoragegroupoutput.ts - src/models/components/unifiedfilestorageuseroutput.ts - - src/models/components/unifiedhrisbankinfooutput.ts - - src/models/components/unifiedhrisbenefitoutput.ts - - src/models/components/unifiedhriscompanyoutput.ts - - src/models/components/unifiedhrisdependentoutput.ts - - src/models/components/unifiedhrisemployeeinput.ts - - src/models/components/unifiedhrisemployeeoutput.ts - - src/models/components/unifiedhrisemployeepayrollrunoutput.ts - - src/models/components/unifiedhrisemployerbenefitoutput.ts - - src/models/components/unifiedhrisemploymentoutput.ts - - src/models/components/unifiedhrisgroupoutput.ts - - src/models/components/unifiedhrislocationoutput.ts - - src/models/components/unifiedhrispaygroupoutput.ts - - src/models/components/unifiedhrispayrollrunoutput.ts - - src/models/components/unifiedhristimeoffbalanceoutput.ts - - src/models/components/unifiedhristimeoffinput.ts - - src/models/components/unifiedhristimeoffoutput.ts - - src/models/components/unifiedhristimesheetentryinput.ts - - src/models/components/unifiedhristimesheetentryoutput.ts - src/models/components/unifiedmarketingautomationactioninput.ts - src/models/components/unifiedmarketingautomationactionoutput.ts - src/models/components/unifiedmarketingautomationautomationinput.ts @@ -1223,7 +866,6 @@ generatedFiles: - src/models/components/unifiedticketingticketoutput.ts - src/models/components/unifiedticketinguseroutput.ts - src/models/components/updatepullfrequencydto.ts - - src/models/components/url.ts - src/models/components/variant.ts - src/models/components/webhookdto.ts - src/models/components/webhookresponse.ts @@ -1239,11 +881,6 @@ generatedFiles: - src/models/operations/createaccountingjournalentry.ts - src/models/operations/createaccountingpayment.ts - src/models/operations/createaccountingpurchaseorder.ts - - src/models/operations/createatsactivity.ts - - src/models/operations/createatsapplication.ts - - src/models/operations/createatsattachment.ts - - src/models/operations/createatscandidate.ts - - src/models/operations/createatsinterview.ts - src/models/operations/createcrmcompany.ts - src/models/operations/createcrmcontact.ts - src/models/operations/createcrmdeal.ts @@ -1254,9 +891,6 @@ generatedFiles: - src/models/operations/createecommerceproduct.ts - src/models/operations/createfilestoragefile.ts - src/models/operations/createfilestoragefolder.ts - - src/models/operations/createhrisemployee.ts - - src/models/operations/createhristimeoff.ts - - src/models/operations/createhristimesheetentry.ts - src/models/operations/createmarketingautomationaction.ts - src/models/operations/createmarketingautomationautomation.ts - src/models/operations/createmarketingautomationcampaign.ts @@ -1290,21 +924,6 @@ generatedFiles: - src/models/operations/listaccountingtrackingcategorys.ts - src/models/operations/listaccountingtransaction.ts - src/models/operations/listaccountingvendorcredit.ts - - src/models/operations/listatsactivity.ts - - src/models/operations/listatsapplication.ts - - src/models/operations/listatsattachment.ts - - src/models/operations/listatscandidate.ts - - src/models/operations/listatsdepartments.ts - - src/models/operations/listatseeocs.ts - - src/models/operations/listatsinterview.ts - - src/models/operations/listatsjob.ts - - src/models/operations/listatsjobinterviewstage.ts - - src/models/operations/listatsoffer.ts - - src/models/operations/listatsoffice.ts - - src/models/operations/listatsrejectreasons.ts - - src/models/operations/listatsscorecard.ts - - src/models/operations/listatstags.ts - - src/models/operations/listatsusers.ts - src/models/operations/listcrmcompany.ts - src/models/operations/listcrmcontacts.ts - src/models/operations/listcrmdeals.ts @@ -1321,21 +940,6 @@ generatedFiles: - src/models/operations/listfilestoragefolder.ts - src/models/operations/listfilestoragegroup.ts - src/models/operations/listfilestorageusers.ts - - src/models/operations/listhrisbankinfo.ts - - src/models/operations/listhrisbenefits.ts - - src/models/operations/listhriscompanies.ts - - src/models/operations/listhrisdependents.ts - - src/models/operations/listhrisemployeepayrollrun.ts - - src/models/operations/listhrisemployees.ts - - src/models/operations/listhrisemployerbenefits.ts - - src/models/operations/listhrisemployments.ts - - src/models/operations/listhrisgroups.ts - - src/models/operations/listhrislocations.ts - - src/models/operations/listhrispaygroups.ts - - src/models/operations/listhrispayrollruns.ts - - src/models/operations/listhristimeoffbalances.ts - - src/models/operations/listhristimeoffs.ts - - src/models/operations/listhristimesheetentries.ts - src/models/operations/listmarketingautomationaction.ts - src/models/operations/listmarketingautomationautomations.ts - src/models/operations/listmarketingautomationcampaigns.ts @@ -1378,21 +982,6 @@ generatedFiles: - src/models/operations/retrieveaccountingtrackingcategory.ts - src/models/operations/retrieveaccountingtransaction.ts - src/models/operations/retrieveaccountingvendorcredit.ts - - src/models/operations/retrieveatsactivity.ts - - src/models/operations/retrieveatsapplication.ts - - src/models/operations/retrieveatsattachment.ts - - src/models/operations/retrieveatscandidate.ts - - src/models/operations/retrieveatsdepartment.ts - - src/models/operations/retrieveatseeocs.ts - - src/models/operations/retrieveatsinterview.ts - - src/models/operations/retrieveatsjob.ts - - src/models/operations/retrieveatsjobinterviewstage.ts - - src/models/operations/retrieveatsoffer.ts - - src/models/operations/retrieveatsoffice.ts - - src/models/operations/retrieveatsrejectreason.ts - - src/models/operations/retrieveatsscorecard.ts - - src/models/operations/retrieveatstag.ts - - src/models/operations/retrieveatsuser.ts - src/models/operations/retrievecollection.ts - src/models/operations/retrievecrmcompany.ts - src/models/operations/retrievecrmcontact.ts @@ -1410,21 +999,6 @@ generatedFiles: - src/models/operations/retrievefilestoragefolder.ts - src/models/operations/retrievefilestoragegroup.ts - src/models/operations/retrievefilestorageuser.ts - - src/models/operations/retrievehrisbankinfo.ts - - src/models/operations/retrievehrisbenefit.ts - - src/models/operations/retrievehriscompany.ts - - src/models/operations/retrievehrisdependent.ts - - src/models/operations/retrievehrisemployee.ts - - src/models/operations/retrievehrisemployeepayrollrun.ts - - src/models/operations/retrievehrisemployerbenefit.ts - - src/models/operations/retrievehrisemployment.ts - - src/models/operations/retrievehrisgroup.ts - - src/models/operations/retrievehrislocation.ts - - src/models/operations/retrievehrispaygroup.ts - - src/models/operations/retrievehrispayrollrun.ts - - src/models/operations/retrievehristimeoff.ts - - src/models/operations/retrievehristimeoffbalance.ts - - src/models/operations/retrievehristimesheetentry.ts - src/models/operations/retrievelinkeduser.ts - src/models/operations/retrievemarketingautomationaction.ts - src/models/operations/retrievemarketingautomationautomation.ts @@ -1445,23 +1019,16 @@ generatedFiles: - src/models/operations/retrieveticketingticket.ts - src/models/operations/retrieveticketinguser.ts - src/models/operations/status.ts - - src/models/operations/updatepullfrequency.ts - src/models/operations/updatestatus.ts - src/sdk/accounting.ts - src/sdk/accounts.ts - src/sdk/actions.ts - - src/sdk/activities.ts - src/sdk/addresses.ts - - src/sdk/applications.ts - - src/sdk/ats.ts - src/sdk/attachments.ts - src/sdk/auth.ts - src/sdk/automations.ts - src/sdk/balancesheets.ts - - src/sdk/bankinfos.ts - - src/sdk/benefits.ts - src/sdk/campaigns.ts - - src/sdk/candidates.ts - src/sdk/cashflowstatements.ts - src/sdk/collections.ts - src/sdk/comments.ts @@ -1473,15 +1040,8 @@ generatedFiles: - src/sdk/crm.ts - src/sdk/customers.ts - src/sdk/deals.ts - - src/sdk/departments.ts - - src/sdk/dependents.ts - src/sdk/ecommerce.ts - - src/sdk/eeocs.ts - src/sdk/emails.ts - - src/sdk/employeepayrollruns.ts - - src/sdk/employees.ts - - src/sdk/employerbenefits.ts - - src/sdk/employments.ts - src/sdk/engagements.ts - src/sdk/events.ts - src/sdk/expenses.ts @@ -1491,51 +1051,35 @@ generatedFiles: - src/sdk/folders.ts - src/sdk/fulfillments.ts - src/sdk/groups.ts - - src/sdk/hris.ts - src/sdk/incomestatements.ts - src/sdk/index.ts - - src/sdk/interviews.ts - src/sdk/invoices.ts - src/sdk/items.ts - - src/sdk/jobinterviewstages.ts - - src/sdk/jobs.ts - src/sdk/journalentries.ts - src/sdk/linkedusers.ts - src/sdk/lists.ts - - src/sdk/locations.ts - src/sdk/login.ts - src/sdk/marketingautomation.ts - src/sdk/messages.ts - src/sdk/notes.ts - - src/sdk/offers.ts - - src/sdk/offices.ts - src/sdk/orders.ts - src/sdk/panoraaccountingcontacts.ts - src/sdk/panoraaccounts.ts - - src/sdk/panoraatsusers.ts - src/sdk/panoraattachments.ts - - src/sdk/panoracompanies.ts - src/sdk/panoracontacts.ts - src/sdk/panoraevents.ts - src/sdk/panorafilestorageusers.ts - - src/sdk/panoragroups.ts - src/sdk/panoramarketingautomationcontacts.ts - src/sdk/panoramarketingautomationusers.ts - - src/sdk/panoratags.ts - - src/sdk/panoraticketingattachments.ts - src/sdk/panorausers.ts - src/sdk/passthrough.ts - - src/sdk/paygroups.ts - src/sdk/payments.ts - - src/sdk/payrollruns.ts - src/sdk/phonenumbers.ts - src/sdk/products.ts - src/sdk/projects.ts - src/sdk/purchaseorders.ts - src/sdk/rag.ts - - src/sdk/rejectreasons.ts - src/sdk/retryid.ts - - src/sdk/scorecards.ts - src/sdk/sdk.ts - src/sdk/stages.ts - src/sdk/sync.ts @@ -1546,9 +1090,6 @@ generatedFiles: - src/sdk/templates.ts - src/sdk/ticketing.ts - src/sdk/tickets.ts - - src/sdk/timeoffbalances.ts - - src/sdk/timeoffs.ts - - src/sdk/timesheetentries.ts - src/sdk/trackingcategories.ts - src/sdk/transactions.ts - src/sdk/users.ts @@ -1699,7 +1240,7 @@ examples: signIn: speakeasy-default-sign-in: requestBody: - application/json: {"email": "Oda.Treutel97@hotmail.com", "password_hash": ""} + application/json: {"id_user": "", "email": "Oda.Treutel97@hotmail.com", "password_hash": ""} getConnections: speakeasy-default-get-connections: responses: @@ -2000,12 +1541,12 @@ examples: updatePullFrequency: speakeasy-default-update-pull-frequency: requestBody: - application/json: {"crm": 1800, "ats": 3600, "hris": 7200, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} + application/json: {"crm": 1800, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} getPullFrequency: speakeasy-default-get-pull-frequency: responses: "200": - application/json: {"crm": 1800, "ats": 3600, "hris": 7200, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} + application/json: {"crm": 1800, "accounting": 14400, "filestorage": 28800, "ecommerce": 43200, "ticketing": 86400} listCrmCompany: "": parameters: @@ -2353,7 +1894,7 @@ examples: header: x-connection-token: "" requestBody: - application/json: {"method": "GET", "path": "/dev"} + application/json: {"method": "GET", "path": "/dev", "request_format": {}, "overrideBaseUrl": {"key": "https://equatorial-government.com/"}} getRetriedRequestResponse: speakeasy-default-get-retried-request-response: parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index fb8e7a42..32e2301b 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -11,8 +11,9 @@ generation: requestResponseComponentNamesFeb2024: true auth: oAuth2ClientCredentialsEnabled: false + oAuth2PasswordEnabled: false typescript: - version: 0.13.8 + version: 0.14.0 additionalDependencies: dependencies: {} devDependencies: {} @@ -20,8 +21,10 @@ typescript: additionalPackageJSON: {} author: Speakeasy clientServerStatusCodesAsErrors: true + defaultErrorName: SDKError enumFormat: enum flattenGlobalSecurity: true + flatteningOrder: body-first imports: option: openapi paths: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e5dbad99..8d4a9256 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.399.5 +speakeasyVersion: 1.440.2 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:f81dc59e151901a11b5bde569a7e1ca083eb0acdc627392eda9f64ba779f5795 - sourceBlobDigest: sha256:66ac34466cefad6d00f37a1a38dfff731c7c286e75d73963f2820874d9dc0135 + sourceRevisionDigest: sha256:d3236d7b709d3defa9e616c5d8f9e87e63ee432d5a22edd0c0636ad7596f49bf + sourceBlobDigest: sha256:c3baeb1c04282c36b71950e2794c677901e518bc81a6fbe3b27510ce6d74e56a tags: - latest - - main + - speakeasy-sdk-regen-1731803522 targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:f81dc59e151901a11b5bde569a7e1ca083eb0acdc627392eda9f64ba779f5795 - sourceBlobDigest: sha256:66ac34466cefad6d00f37a1a38dfff731c7c286e75d73963f2820874d9dc0135 + sourceRevisionDigest: sha256:d3236d7b709d3defa9e616c5d8f9e87e63ee432d5a22edd0c0636ad7596f49bf + sourceBlobDigest: sha256:c3baeb1c04282c36b71950e2794c677901e518bc81a6fbe3b27510ce6d74e56a codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:2c192d82d27ff00201f0c9f541b4437af8c478003a51ce4388dc4bc4e4c048b1 + codeSamplesRevisionDigest: sha256:440a8310b9f9aebc56cd8b0e5549dd9879209d29dc6a87ba9dbb2ebf79c4aad2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 59fa26a4..dc5e2fa8 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -52,7 +52,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); diff --git a/README.md b/README.md index 375229b8..c306b3c1 100644 --- a/README.md +++ b/README.md @@ -122,11 +122,11 @@ run(); * [list](docs/sdks/addresses/README.md#list) - List Addresss * [retrieve](docs/sdks/addresses/README.md#retrieve) - Retrieve Addresses -#### [accounting.attachments](docs/sdks/panoraattachments/README.md) +#### [accounting.attachments](docs/sdks/attachments/README.md) -* [list](docs/sdks/panoraattachments/README.md#list) - List Attachments -* [create](docs/sdks/panoraattachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/panoraattachments/README.md#retrieve) - Retrieve Attachments +* [list](docs/sdks/attachments/README.md#list) - List Attachments +* [create](docs/sdks/attachments/README.md#create) - Create Attachments +* [retrieve](docs/sdks/attachments/README.md#retrieve) - Retrieve Attachments #### [accounting.balancesheets](docs/sdks/balancesheets/README.md) @@ -219,89 +219,6 @@ run(); * [list](docs/sdks/vendorcredits/README.md#list) - List VendorCredits * [retrieve](docs/sdks/vendorcredits/README.md#retrieve) - Retrieve Vendor Credits -### [ats](docs/sdks/ats/README.md) - - -#### [ats.activities](docs/sdks/activities/README.md) - -* [list](docs/sdks/activities/README.md#list) - List Activities -* [create](docs/sdks/activities/README.md#create) - Create Activities -* [retrieve](docs/sdks/activities/README.md#retrieve) - Retrieve Activities - -#### [ats.applications](docs/sdks/applications/README.md) - -* [list](docs/sdks/applications/README.md#list) - List Applications -* [create](docs/sdks/applications/README.md#create) - Create Applications -* [retrieve](docs/sdks/applications/README.md#retrieve) - Retrieve Applications - -#### [ats.attachments](docs/sdks/attachments/README.md) - -* [list](docs/sdks/attachments/README.md#list) - List Attachments -* [create](docs/sdks/attachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/attachments/README.md#retrieve) - Retrieve Attachments - -#### [ats.candidates](docs/sdks/candidates/README.md) - -* [list](docs/sdks/candidates/README.md#list) - List Candidates -* [create](docs/sdks/candidates/README.md#create) - Create Candidates -* [retrieve](docs/sdks/candidates/README.md#retrieve) - Retrieve Candidates - -#### [ats.departments](docs/sdks/departments/README.md) - -* [list](docs/sdks/departments/README.md#list) - List Departments -* [retrieve](docs/sdks/departments/README.md#retrieve) - Retrieve Departments - -#### [ats.eeocs](docs/sdks/eeocs/README.md) - -* [list](docs/sdks/eeocs/README.md#list) - List Eeocss -* [retrieve](docs/sdks/eeocs/README.md#retrieve) - Retrieve Eeocs - -#### [ats.interviews](docs/sdks/interviews/README.md) - -* [list](docs/sdks/interviews/README.md#list) - List Interviews -* [create](docs/sdks/interviews/README.md#create) - Create Interviews -* [retrieve](docs/sdks/interviews/README.md#retrieve) - Retrieve Interviews - -#### [ats.jobinterviewstages](docs/sdks/jobinterviewstages/README.md) - -* [list](docs/sdks/jobinterviewstages/README.md#list) - List JobInterviewStages -* [retrieve](docs/sdks/jobinterviewstages/README.md#retrieve) - Retrieve Job Interview Stages - -#### [ats.jobs](docs/sdks/jobs/README.md) - -* [list](docs/sdks/jobs/README.md#list) - List Jobs -* [retrieve](docs/sdks/jobs/README.md#retrieve) - Retrieve Jobs - -#### [ats.offers](docs/sdks/offers/README.md) - -* [list](docs/sdks/offers/README.md#list) - List Offers -* [retrieve](docs/sdks/offers/README.md#retrieve) - Retrieve Offers - -#### [ats.offices](docs/sdks/offices/README.md) - -* [list](docs/sdks/offices/README.md#list) - List Offices -* [retrieve](docs/sdks/offices/README.md#retrieve) - Retrieve Offices - -#### [ats.rejectreasons](docs/sdks/rejectreasons/README.md) - -* [list](docs/sdks/rejectreasons/README.md#list) - List RejectReasons -* [retrieve](docs/sdks/rejectreasons/README.md#retrieve) - Retrieve Reject Reasons - -#### [ats.scorecards](docs/sdks/scorecards/README.md) - -* [list](docs/sdks/scorecards/README.md#list) - List ScoreCards -* [retrieve](docs/sdks/scorecards/README.md#retrieve) - Retrieve Score Cards - -#### [ats.tags](docs/sdks/panoratags/README.md) - -* [list](docs/sdks/panoratags/README.md#list) - List Tags -* [retrieve](docs/sdks/panoratags/README.md#retrieve) - Retrieve Tags - -#### [ats.users](docs/sdks/panoraatsusers/README.md) - -* [list](docs/sdks/panoraatsusers/README.md#list) - List Users -* [retrieve](docs/sdks/panoraatsusers/README.md#retrieve) - Retrieve Users - ### [auth](docs/sdks/auth/README.md) @@ -415,97 +332,16 @@ run(); * [create](docs/sdks/folders/README.md#create) - Create Folders * [retrieve](docs/sdks/folders/README.md#retrieve) - Retrieve Folders -#### [filestorage.groups](docs/sdks/panoragroups/README.md) +#### [filestorage.groups](docs/sdks/groups/README.md) -* [list](docs/sdks/panoragroups/README.md#list) - List Groups -* [retrieve](docs/sdks/panoragroups/README.md#retrieve) - Retrieve Groups +* [list](docs/sdks/groups/README.md#list) - List Groups +* [retrieve](docs/sdks/groups/README.md#retrieve) - Retrieve Groups #### [filestorage.users](docs/sdks/panorafilestorageusers/README.md) * [list](docs/sdks/panorafilestorageusers/README.md#list) - List Users * [retrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve Users -### [hris](docs/sdks/hris/README.md) - - -#### [hris.bankinfos](docs/sdks/bankinfos/README.md) - -* [list](docs/sdks/bankinfos/README.md#list) - List Bank Info -* [retrieve](docs/sdks/bankinfos/README.md#retrieve) - Retrieve Bank Info - -#### [hris.benefits](docs/sdks/benefits/README.md) - -* [list](docs/sdks/benefits/README.md#list) - List Benefits -* [retrieve](docs/sdks/benefits/README.md#retrieve) - Retrieve Benefit - -#### [hris.companies](docs/sdks/panoracompanies/README.md) - -* [list](docs/sdks/panoracompanies/README.md#list) - List Companies -* [retrieve](docs/sdks/panoracompanies/README.md#retrieve) - Retrieve Company - -#### [hris.dependents](docs/sdks/dependents/README.md) - -* [list](docs/sdks/dependents/README.md#list) - List Dependents -* [retrieve](docs/sdks/dependents/README.md#retrieve) - Retrieve Dependent - -#### [hris.employeepayrollruns](docs/sdks/employeepayrollruns/README.md) - -* [list](docs/sdks/employeepayrollruns/README.md#list) - List Employee Payroll Runs -* [retrieve](docs/sdks/employeepayrollruns/README.md#retrieve) - Retrieve Employee Payroll Run - -#### [hris.employees](docs/sdks/employees/README.md) - -* [list](docs/sdks/employees/README.md#list) - List Employees -* [create](docs/sdks/employees/README.md#create) - Create Employees -* [retrieve](docs/sdks/employees/README.md#retrieve) - Retrieve Employee - -#### [hris.employerbenefits](docs/sdks/employerbenefits/README.md) - -* [list](docs/sdks/employerbenefits/README.md#list) - List Employer Benefits -* [retrieve](docs/sdks/employerbenefits/README.md#retrieve) - Retrieve Employer Benefit - -#### [hris.employments](docs/sdks/employments/README.md) - -* [list](docs/sdks/employments/README.md#list) - List Employments -* [retrieve](docs/sdks/employments/README.md#retrieve) - Retrieve Employment - -#### [hris.groups](docs/sdks/groups/README.md) - -* [list](docs/sdks/groups/README.md#list) - List Groups -* [retrieve](docs/sdks/groups/README.md#retrieve) - Retrieve Group - -#### [hris.locations](docs/sdks/locations/README.md) - -* [list](docs/sdks/locations/README.md#list) - List Locations -* [retrieve](docs/sdks/locations/README.md#retrieve) - Retrieve Location - -#### [hris.paygroups](docs/sdks/paygroups/README.md) - -* [list](docs/sdks/paygroups/README.md#list) - List Pay Groups -* [retrieve](docs/sdks/paygroups/README.md#retrieve) - Retrieve Pay Group - -#### [hris.payrollruns](docs/sdks/payrollruns/README.md) - -* [list](docs/sdks/payrollruns/README.md#list) - List Payroll Runs -* [retrieve](docs/sdks/payrollruns/README.md#retrieve) - Retrieve Payroll Run - -#### [hris.timeoffbalances](docs/sdks/timeoffbalances/README.md) - -* [list](docs/sdks/timeoffbalances/README.md#list) - List TimeoffBalances -* [retrieve](docs/sdks/timeoffbalances/README.md#retrieve) - Retrieve Time off Balances - -#### [hris.timeoffs](docs/sdks/timeoffs/README.md) - -* [list](docs/sdks/timeoffs/README.md#list) - List Time Offs -* [create](docs/sdks/timeoffs/README.md#create) - Create Timeoffs -* [retrieve](docs/sdks/timeoffs/README.md#retrieve) - Retrieve Time Off - -#### [hris.timesheetentries](docs/sdks/timesheetentries/README.md) - -* [list](docs/sdks/timesheetentries/README.md#list) - List Timesheetentries -* [create](docs/sdks/timesheetentries/README.md#create) - Create Timesheetentrys -* [retrieve](docs/sdks/timesheetentries/README.md#retrieve) - Retrieve Timesheetentry - ### [linkedUsers](docs/sdks/linkedusers/README.md) * [remoteId](docs/sdks/linkedusers/README.md#remoteid) - Retrieve a Linked User From A Remote Id @@ -610,11 +446,11 @@ run(); * [list](docs/sdks/accounts/README.md#list) - List Accounts * [retrieve](docs/sdks/accounts/README.md#retrieve) - Retrieve Accounts -#### [ticketing.attachments](docs/sdks/panoraticketingattachments/README.md) +#### [ticketing.attachments](docs/sdks/panoraattachments/README.md) -* [list](docs/sdks/panoraticketingattachments/README.md#list) - List Attachments -* [create](docs/sdks/panoraticketingattachments/README.md#create) - Create Attachments -* [retrieve](docs/sdks/panoraticketingattachments/README.md#retrieve) - Retrieve Attachments +* [list](docs/sdks/panoraattachments/README.md#list) - List Attachments +* [create](docs/sdks/panoraattachments/README.md#create) - Create Attachments +* [retrieve](docs/sdks/panoraattachments/README.md#retrieve) - Retrieve Attachments #### [ticketing.collections](docs/sdks/collections/README.md) @@ -667,14 +503,23 @@ run(); ## Error Handling -All SDK methods return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type. +All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`. + +If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module: -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| HTTP Client Error | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | +| RequestAbortedError | HTTP request was aborted by the client | +| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal | +| ConnectionError | HTTP client was unable to make a request to a server | +| InvalidRequestError | Any input used to create a request is invalid | +| UnexpectedClientError | Unrecognised or unexpected error | -Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging. +In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `hello` method may throw the following errors: +| Error Type | Status Code | Content Type | +| --------------- | ----------- | ------------ | +| errors.SDKError | 4XX, 5XX | \*/\* | ```typescript import { Panora } from "@panora/sdk"; @@ -710,6 +555,8 @@ async function run() { run(); ``` + +Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging. @@ -717,13 +564,15 @@ run(); ### Select Server by Index -You can override the default server globally by passing a server index to the `serverIdx` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: +You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: + +| # | Server | +| --- | -------------------------------- | +| 0 | `https://api.panora.dev` | +| 1 | `https://api-sandbox.panora.dev` | +| 2 | `https://api-dev.panora.dev` | -| # | Server | Variables | -| - | ------ | --------- | -| 0 | `https://api.panora.dev` | None | -| 1 | `https://api-sandbox.panora.dev` | None | -| 2 | `https://api-dev.panora.dev` | None | +#### Example ```typescript import { Panora } from "@panora/sdk"; @@ -744,11 +593,9 @@ run(); ``` - ### Override Server URL Per-Client -The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example: - +The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: ```typescript import { Panora } from "@panora/sdk"; @@ -890,9 +737,9 @@ run(); This SDK supports the following security scheme globally: -| Name | Type | Scheme | -| -------- | -------- | -------- | -| `apiKey` | apiKey | API key | +| Name | Type | Scheme | +| -------- | ------ | ------- | +| `apiKey` | apiKey | API key | To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: ```typescript @@ -967,242 +814,173 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). Available standalone functions -- [accountingAccountsCreate](docs/sdks/panoraaccounts/README.md#create) -- [accountingAccountsList](docs/sdks/panoraaccounts/README.md#list) -- [accountingAccountsRetrieve](docs/sdks/panoraaccounts/README.md#retrieve) -- [accountingAddressesList](docs/sdks/addresses/README.md#list) -- [accountingAddressesRetrieve](docs/sdks/addresses/README.md#retrieve) -- [accountingAttachmentsCreate](docs/sdks/panoraattachments/README.md#create) -- [accountingAttachmentsList](docs/sdks/panoraattachments/README.md#list) -- [accountingAttachmentsRetrieve](docs/sdks/panoraattachments/README.md#retrieve) -- [accountingBalancesheetsList](docs/sdks/balancesheets/README.md#list) -- [accountingBalancesheetsRetrieve](docs/sdks/balancesheets/README.md#retrieve) -- [accountingCashflowstatementsList](docs/sdks/cashflowstatements/README.md#list) -- [accountingCashflowstatementsRetrieve](docs/sdks/cashflowstatements/README.md#retrieve) -- [accountingCompanyinfosList](docs/sdks/companyinfos/README.md#list) -- [accountingCompanyinfosRetrieve](docs/sdks/companyinfos/README.md#retrieve) -- [accountingContactsCreate](docs/sdks/panoraaccountingcontacts/README.md#create) -- [accountingContactsList](docs/sdks/panoraaccountingcontacts/README.md#list) -- [accountingContactsRetrieve](docs/sdks/panoraaccountingcontacts/README.md#retrieve) -- [accountingCreditnotesList](docs/sdks/creditnotes/README.md#list) -- [accountingCreditnotesRetrieve](docs/sdks/creditnotes/README.md#retrieve) -- [accountingExpensesCreate](docs/sdks/expenses/README.md#create) -- [accountingExpensesList](docs/sdks/expenses/README.md#list) -- [accountingExpensesRetrieve](docs/sdks/expenses/README.md#retrieve) -- [accountingIncomestatementsList](docs/sdks/incomestatements/README.md#list) -- [accountingIncomestatementsRetrieve](docs/sdks/incomestatements/README.md#retrieve) -- [accountingInvoicesCreate](docs/sdks/invoices/README.md#create) -- [accountingInvoicesList](docs/sdks/invoices/README.md#list) -- [accountingInvoicesRetrieve](docs/sdks/invoices/README.md#retrieve) -- [accountingItemsList](docs/sdks/items/README.md#list) -- [accountingItemsRetrieve](docs/sdks/items/README.md#retrieve) -- [accountingJournalentriesCreate](docs/sdks/journalentries/README.md#create) -- [accountingJournalentriesList](docs/sdks/journalentries/README.md#list) -- [accountingJournalentriesRetrieve](docs/sdks/journalentries/README.md#retrieve) -- [accountingPaymentsCreate](docs/sdks/payments/README.md#create) -- [accountingPaymentsList](docs/sdks/payments/README.md#list) -- [accountingPaymentsRetrieve](docs/sdks/payments/README.md#retrieve) -- [accountingPhonenumbersList](docs/sdks/phonenumbers/README.md#list) -- [accountingPhonenumbersRetrieve](docs/sdks/phonenumbers/README.md#retrieve) -- [accountingPurchaseordersCreate](docs/sdks/purchaseorders/README.md#create) -- [accountingPurchaseordersList](docs/sdks/purchaseorders/README.md#list) -- [accountingPurchaseordersRetrieve](docs/sdks/purchaseorders/README.md#retrieve) -- [accountingTaxratesList](docs/sdks/taxrates/README.md#list) -- [accountingTaxratesRetrieve](docs/sdks/taxrates/README.md#retrieve) -- [accountingTrackingcategoriesList](docs/sdks/trackingcategories/README.md#list) -- [accountingTrackingcategoriesRetrieve](docs/sdks/trackingcategories/README.md#retrieve) -- [accountingTransactionsList](docs/sdks/transactions/README.md#list) -- [accountingTransactionsRetrieve](docs/sdks/transactions/README.md#retrieve) -- [accountingVendorcreditsList](docs/sdks/vendorcredits/README.md#list) -- [accountingVendorcreditsRetrieve](docs/sdks/vendorcredits/README.md#retrieve) -- [atsActivitiesCreate](docs/sdks/activities/README.md#create) -- [atsActivitiesList](docs/sdks/activities/README.md#list) -- [atsActivitiesRetrieve](docs/sdks/activities/README.md#retrieve) -- [atsApplicationsCreate](docs/sdks/applications/README.md#create) -- [atsApplicationsList](docs/sdks/applications/README.md#list) -- [atsApplicationsRetrieve](docs/sdks/applications/README.md#retrieve) -- [atsAttachmentsCreate](docs/sdks/attachments/README.md#create) -- [atsAttachmentsList](docs/sdks/attachments/README.md#list) -- [atsAttachmentsRetrieve](docs/sdks/attachments/README.md#retrieve) -- [atsCandidatesCreate](docs/sdks/candidates/README.md#create) -- [atsCandidatesList](docs/sdks/candidates/README.md#list) -- [atsCandidatesRetrieve](docs/sdks/candidates/README.md#retrieve) -- [atsDepartmentsList](docs/sdks/departments/README.md#list) -- [atsDepartmentsRetrieve](docs/sdks/departments/README.md#retrieve) -- [atsEeocsList](docs/sdks/eeocs/README.md#list) -- [atsEeocsRetrieve](docs/sdks/eeocs/README.md#retrieve) -- [atsInterviewsCreate](docs/sdks/interviews/README.md#create) -- [atsInterviewsList](docs/sdks/interviews/README.md#list) -- [atsInterviewsRetrieve](docs/sdks/interviews/README.md#retrieve) -- [atsJobinterviewstagesList](docs/sdks/jobinterviewstages/README.md#list) -- [atsJobinterviewstagesRetrieve](docs/sdks/jobinterviewstages/README.md#retrieve) -- [atsJobsList](docs/sdks/jobs/README.md#list) -- [atsJobsRetrieve](docs/sdks/jobs/README.md#retrieve) -- [atsOffersList](docs/sdks/offers/README.md#list) -- [atsOffersRetrieve](docs/sdks/offers/README.md#retrieve) -- [atsOfficesList](docs/sdks/offices/README.md#list) -- [atsOfficesRetrieve](docs/sdks/offices/README.md#retrieve) -- [atsRejectreasonsList](docs/sdks/rejectreasons/README.md#list) -- [atsRejectreasonsRetrieve](docs/sdks/rejectreasons/README.md#retrieve) -- [atsScorecardsList](docs/sdks/scorecards/README.md#list) -- [atsScorecardsRetrieve](docs/sdks/scorecards/README.md#retrieve) -- [atsTagsList](docs/sdks/panoratags/README.md#list) -- [atsTagsRetrieve](docs/sdks/panoratags/README.md#retrieve) -- [atsUsersList](docs/sdks/panoraatsusers/README.md#list) -- [atsUsersRetrieve](docs/sdks/panoraatsusers/README.md#retrieve) -- [authLoginSignIn](docs/sdks/login/README.md#signin) -- [connectionsList](docs/sdks/connections/README.md#list) -- [crmCompaniesCreate](docs/sdks/companies/README.md#create) -- [crmCompaniesList](docs/sdks/companies/README.md#list) -- [crmCompaniesRetrieve](docs/sdks/companies/README.md#retrieve) -- [crmContactsCreate](docs/sdks/panoracontacts/README.md#create) -- [crmContactsList](docs/sdks/panoracontacts/README.md#list) -- [crmContactsRetrieve](docs/sdks/panoracontacts/README.md#retrieve) -- [crmDealsCreate](docs/sdks/deals/README.md#create) -- [crmDealsList](docs/sdks/deals/README.md#list) -- [crmDealsRetrieve](docs/sdks/deals/README.md#retrieve) -- [crmEngagementsCreate](docs/sdks/engagements/README.md#create) -- [crmEngagementsList](docs/sdks/engagements/README.md#list) -- [crmEngagementsRetrieve](docs/sdks/engagements/README.md#retrieve) -- [crmNotesCreate](docs/sdks/notes/README.md#create) -- [crmNotesList](docs/sdks/notes/README.md#list) -- [crmNotesRetrieve](docs/sdks/notes/README.md#retrieve) -- [crmStagesList](docs/sdks/stages/README.md#list) -- [crmStagesRetrieve](docs/sdks/stages/README.md#retrieve) -- [crmTasksCreate](docs/sdks/tasks/README.md#create) -- [crmTasksList](docs/sdks/tasks/README.md#list) -- [crmTasksRetrieve](docs/sdks/tasks/README.md#retrieve) -- [crmUsersList](docs/sdks/panorausers/README.md#list) -- [crmUsersRetrieve](docs/sdks/panorausers/README.md#retrieve) -- [ecommerceCustomersList](docs/sdks/customers/README.md#list) -- [ecommerceCustomersRetrieve](docs/sdks/customers/README.md#retrieve) -- [ecommerceFulfillmentsList](docs/sdks/fulfillments/README.md#list) -- [ecommerceFulfillmentsRetrieve](docs/sdks/fulfillments/README.md#retrieve) -- [ecommerceOrdersCreate](docs/sdks/orders/README.md#create) -- [ecommerceOrdersList](docs/sdks/orders/README.md#list) -- [ecommerceOrdersRetrieve](docs/sdks/orders/README.md#retrieve) -- [ecommerceProductsCreate](docs/sdks/products/README.md#create) -- [ecommerceProductsList](docs/sdks/products/README.md#list) -- [ecommerceProductsRetrieve](docs/sdks/products/README.md#retrieve) -- [eventsGetPanoraCoreEvents](docs/sdks/events/README.md#getpanoracoreevents) -- [fieldMappingsDefineCustomField](docs/sdks/fieldmappings/README.md#definecustomfield) -- [fieldMappingsDefinitions](docs/sdks/fieldmappings/README.md#definitions) -- [fieldMappingsGetFieldMappingValues](docs/sdks/fieldmappings/README.md#getfieldmappingvalues) -- [fieldMappingsGetFieldMappingsEntities](docs/sdks/fieldmappings/README.md#getfieldmappingsentities) -- [fieldMappingsGetFieldMappings](docs/sdks/fieldmappings/README.md#getfieldmappings) -- [fieldMappingsMap](docs/sdks/fieldmappings/README.md#map) -- [filestorageFilesCreate](docs/sdks/files/README.md#create) -- [filestorageFilesList](docs/sdks/files/README.md#list) -- [filestorageFilesRetrieve](docs/sdks/files/README.md#retrieve) -- [filestorageFoldersCreate](docs/sdks/folders/README.md#create) -- [filestorageFoldersList](docs/sdks/folders/README.md#list) -- [filestorageFoldersRetrieve](docs/sdks/folders/README.md#retrieve) -- [filestorageGroupsList](docs/sdks/panoragroups/README.md#list) -- [filestorageGroupsRetrieve](docs/sdks/panoragroups/README.md#retrieve) -- [filestorageUsersList](docs/sdks/panorafilestorageusers/README.md#list) -- [filestorageUsersRetrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) -- [health](docs/sdks/panora/README.md#health) -- [hello](docs/sdks/panora/README.md#hello) -- [hrisBankinfosList](docs/sdks/bankinfos/README.md#list) -- [hrisBankinfosRetrieve](docs/sdks/bankinfos/README.md#retrieve) -- [hrisBenefitsList](docs/sdks/benefits/README.md#list) -- [hrisBenefitsRetrieve](docs/sdks/benefits/README.md#retrieve) -- [hrisCompaniesList](docs/sdks/panoracompanies/README.md#list) -- [hrisCompaniesRetrieve](docs/sdks/panoracompanies/README.md#retrieve) -- [hrisDependentsList](docs/sdks/dependents/README.md#list) -- [hrisDependentsRetrieve](docs/sdks/dependents/README.md#retrieve) -- [hrisEmployeepayrollrunsList](docs/sdks/employeepayrollruns/README.md#list) -- [hrisEmployeepayrollrunsRetrieve](docs/sdks/employeepayrollruns/README.md#retrieve) -- [hrisEmployeesCreate](docs/sdks/employees/README.md#create) -- [hrisEmployeesList](docs/sdks/employees/README.md#list) -- [hrisEmployeesRetrieve](docs/sdks/employees/README.md#retrieve) -- [hrisEmployerbenefitsList](docs/sdks/employerbenefits/README.md#list) -- [hrisEmployerbenefitsRetrieve](docs/sdks/employerbenefits/README.md#retrieve) -- [hrisEmploymentsList](docs/sdks/employments/README.md#list) -- [hrisEmploymentsRetrieve](docs/sdks/employments/README.md#retrieve) -- [hrisGroupsList](docs/sdks/groups/README.md#list) -- [hrisGroupsRetrieve](docs/sdks/groups/README.md#retrieve) -- [hrisLocationsList](docs/sdks/locations/README.md#list) -- [hrisLocationsRetrieve](docs/sdks/locations/README.md#retrieve) -- [hrisPaygroupsList](docs/sdks/paygroups/README.md#list) -- [hrisPaygroupsRetrieve](docs/sdks/paygroups/README.md#retrieve) -- [hrisPayrollrunsList](docs/sdks/payrollruns/README.md#list) -- [hrisPayrollrunsRetrieve](docs/sdks/payrollruns/README.md#retrieve) -- [hrisTimeoffbalancesList](docs/sdks/timeoffbalances/README.md#list) -- [hrisTimeoffbalancesRetrieve](docs/sdks/timeoffbalances/README.md#retrieve) -- [hrisTimeoffsCreate](docs/sdks/timeoffs/README.md#create) -- [hrisTimeoffsList](docs/sdks/timeoffs/README.md#list) -- [hrisTimeoffsRetrieve](docs/sdks/timeoffs/README.md#retrieve) -- [hrisTimesheetentriesCreate](docs/sdks/timesheetentries/README.md#create) -- [hrisTimesheetentriesList](docs/sdks/timesheetentries/README.md#list) -- [hrisTimesheetentriesRetrieve](docs/sdks/timesheetentries/README.md#retrieve) -- [linkedUsersCreate](docs/sdks/linkedusers/README.md#create) -- [linkedUsersImportBatch](docs/sdks/linkedusers/README.md#importbatch) -- [linkedUsersList](docs/sdks/linkedusers/README.md#list) -- [linkedUsersRemoteId](docs/sdks/linkedusers/README.md#remoteid) -- [linkedUsersRetrieve](docs/sdks/linkedusers/README.md#retrieve) -- [marketingautomationActionsCreate](docs/sdks/actions/README.md#create) -- [marketingautomationActionsList](docs/sdks/actions/README.md#list) -- [marketingautomationActionsRetrieve](docs/sdks/actions/README.md#retrieve) -- [marketingautomationAutomationsCreate](docs/sdks/automations/README.md#create) -- [marketingautomationAutomationsList](docs/sdks/automations/README.md#list) -- [marketingautomationAutomationsRetrieve](docs/sdks/automations/README.md#retrieve) -- [marketingautomationCampaignsCreate](docs/sdks/campaigns/README.md#create) -- [marketingautomationCampaignsList](docs/sdks/campaigns/README.md#list) -- [marketingautomationCampaignsRetrieve](docs/sdks/campaigns/README.md#retrieve) -- [marketingautomationContactsCreate](docs/sdks/panoramarketingautomationcontacts/README.md#create) -- [marketingautomationContactsList](docs/sdks/panoramarketingautomationcontacts/README.md#list) -- [marketingautomationContactsRetrieve](docs/sdks/panoramarketingautomationcontacts/README.md#retrieve) -- [marketingautomationEmailsList](docs/sdks/emails/README.md#list) -- [marketingautomationEmailsRetrieve](docs/sdks/emails/README.md#retrieve) -- [marketingautomationEventsList](docs/sdks/panoraevents/README.md#list) -- [marketingautomationEventsRetrieve](docs/sdks/panoraevents/README.md#retrieve) -- [marketingautomationListsCreate](docs/sdks/lists/README.md#create) -- [marketingautomationListsList](docs/sdks/lists/README.md#list) -- [marketingautomationListsRetrieve](docs/sdks/lists/README.md#retrieve) -- [marketingautomationMessagesList](docs/sdks/messages/README.md#list) -- [marketingautomationMessagesRetrieve](docs/sdks/messages/README.md#retrieve) -- [marketingautomationTemplatesCreate](docs/sdks/templates/README.md#create) -- [marketingautomationTemplatesList](docs/sdks/templates/README.md#list) -- [marketingautomationTemplatesRetrieve](docs/sdks/templates/README.md#retrieve) -- [marketingautomationUsersList](docs/sdks/panoramarketingautomationusers/README.md#list) -- [marketingautomationUsersRetrieve](docs/sdks/panoramarketingautomationusers/README.md#retrieve) -- [passthroughRequest](docs/sdks/passthrough/README.md#request) -- [passthroughRetryidGetRetriedRequestResponse](docs/sdks/retryid/README.md#getretriedrequestresponse) -- [projectsCreate](docs/sdks/projects/README.md#create) -- [projectsGetProjects](docs/sdks/projects/README.md#getprojects) -- [ragQuery](docs/sdks/rag/README.md#query) -- [syncGetPullFrequency](docs/sdks/sync/README.md#getpullfrequency) -- [syncResync](docs/sdks/sync/README.md#resync) -- [syncStatus](docs/sdks/sync/README.md#status) -- [syncUpdatePullFrequency](docs/sdks/sync/README.md#updatepullfrequency) -- [ticketingAccountsList](docs/sdks/accounts/README.md#list) -- [ticketingAccountsRetrieve](docs/sdks/accounts/README.md#retrieve) -- [ticketingAttachmentsCreate](docs/sdks/panoraticketingattachments/README.md#create) -- [ticketingAttachmentsList](docs/sdks/panoraticketingattachments/README.md#list) -- [ticketingAttachmentsRetrieve](docs/sdks/panoraticketingattachments/README.md#retrieve) -- [ticketingCollectionsList](docs/sdks/collections/README.md#list) -- [ticketingCollectionsRetrieve](docs/sdks/collections/README.md#retrieve) -- [ticketingCommentsCreate](docs/sdks/comments/README.md#create) -- [ticketingCommentsList](docs/sdks/comments/README.md#list) -- [ticketingCommentsRetrieve](docs/sdks/comments/README.md#retrieve) -- [ticketingContactsList](docs/sdks/contacts/README.md#list) -- [ticketingContactsRetrieve](docs/sdks/contacts/README.md#retrieve) -- [ticketingTagsList](docs/sdks/tags/README.md#list) -- [ticketingTagsRetrieve](docs/sdks/tags/README.md#retrieve) -- [ticketingTeamsList](docs/sdks/teams/README.md#list) -- [ticketingTeamsRetrieve](docs/sdks/teams/README.md#retrieve) -- [ticketingTicketsCreate](docs/sdks/tickets/README.md#create) -- [ticketingTicketsList](docs/sdks/tickets/README.md#list) -- [ticketingTicketsRetrieve](docs/sdks/tickets/README.md#retrieve) -- [ticketingUsersList](docs/sdks/users/README.md#list) -- [ticketingUsersRetrieve](docs/sdks/users/README.md#retrieve) -- [webhooksCreate](docs/sdks/webhooks/README.md#create) -- [webhooksDelete](docs/sdks/webhooks/README.md#delete) -- [webhooksList](docs/sdks/webhooks/README.md#list) -- [webhooksUpdateStatus](docs/sdks/webhooks/README.md#updatestatus) -- [webhooksVerifyEvent](docs/sdks/webhooks/README.md#verifyevent) - +- [`accountingAccountsCreate`](docs/sdks/panoraaccounts/README.md#create) - Create Accounts +- [`accountingAccountsList`](docs/sdks/panoraaccounts/README.md#list) - List Accounts +- [`accountingAccountsRetrieve`](docs/sdks/panoraaccounts/README.md#retrieve) - Retrieve Accounts +- [`accountingAddressesList`](docs/sdks/addresses/README.md#list) - List Addresss +- [`accountingAddressesRetrieve`](docs/sdks/addresses/README.md#retrieve) - Retrieve Addresses +- [`accountingAttachmentsCreate`](docs/sdks/attachments/README.md#create) - Create Attachments +- [`accountingAttachmentsList`](docs/sdks/attachments/README.md#list) - List Attachments +- [`accountingAttachmentsRetrieve`](docs/sdks/attachments/README.md#retrieve) - Retrieve Attachments +- [`accountingBalancesheetsList`](docs/sdks/balancesheets/README.md#list) - List BalanceSheets +- [`accountingBalancesheetsRetrieve`](docs/sdks/balancesheets/README.md#retrieve) - Retrieve BalanceSheets +- [`accountingCashflowstatementsList`](docs/sdks/cashflowstatements/README.md#list) - List CashflowStatements +- [`accountingCashflowstatementsRetrieve`](docs/sdks/cashflowstatements/README.md#retrieve) - Retrieve Cashflow Statements +- [`accountingCompanyinfosList`](docs/sdks/companyinfos/README.md#list) - List CompanyInfos +- [`accountingCompanyinfosRetrieve`](docs/sdks/companyinfos/README.md#retrieve) - Retrieve Company Infos +- [`accountingContactsCreate`](docs/sdks/panoraaccountingcontacts/README.md#create) - Create Contacts +- [`accountingContactsList`](docs/sdks/panoraaccountingcontacts/README.md#list) - List Contacts +- [`accountingContactsRetrieve`](docs/sdks/panoraaccountingcontacts/README.md#retrieve) - Retrieve Contacts +- [`accountingCreditnotesList`](docs/sdks/creditnotes/README.md#list) - List CreditNotes +- [`accountingCreditnotesRetrieve`](docs/sdks/creditnotes/README.md#retrieve) - Retrieve Credit Notes +- [`accountingExpensesCreate`](docs/sdks/expenses/README.md#create) - Create Expenses +- [`accountingExpensesList`](docs/sdks/expenses/README.md#list) - List Expenses +- [`accountingExpensesRetrieve`](docs/sdks/expenses/README.md#retrieve) - Retrieve Expenses +- [`accountingIncomestatementsList`](docs/sdks/incomestatements/README.md#list) - List IncomeStatements +- [`accountingIncomestatementsRetrieve`](docs/sdks/incomestatements/README.md#retrieve) - Retrieve Income Statements +- [`accountingInvoicesCreate`](docs/sdks/invoices/README.md#create) - Create Invoices +- [`accountingInvoicesList`](docs/sdks/invoices/README.md#list) - List Invoices +- [`accountingInvoicesRetrieve`](docs/sdks/invoices/README.md#retrieve) - Retrieve Invoices +- [`accountingItemsList`](docs/sdks/items/README.md#list) - List Items +- [`accountingItemsRetrieve`](docs/sdks/items/README.md#retrieve) - Retrieve Items +- [`accountingJournalentriesCreate`](docs/sdks/journalentries/README.md#create) - Create Journal Entries +- [`accountingJournalentriesList`](docs/sdks/journalentries/README.md#list) - List JournalEntrys +- [`accountingJournalentriesRetrieve`](docs/sdks/journalentries/README.md#retrieve) - Retrieve Journal Entries +- [`accountingPaymentsCreate`](docs/sdks/payments/README.md#create) - Create Payments +- [`accountingPaymentsList`](docs/sdks/payments/README.md#list) - List Payments +- [`accountingPaymentsRetrieve`](docs/sdks/payments/README.md#retrieve) - Retrieve Payments +- [`accountingPhonenumbersList`](docs/sdks/phonenumbers/README.md#list) - List PhoneNumbers +- [`accountingPhonenumbersRetrieve`](docs/sdks/phonenumbers/README.md#retrieve) - Retrieve Phone Numbers +- [`accountingPurchaseordersCreate`](docs/sdks/purchaseorders/README.md#create) - Create Purchase Orders +- [`accountingPurchaseordersList`](docs/sdks/purchaseorders/README.md#list) - List PurchaseOrders +- [`accountingPurchaseordersRetrieve`](docs/sdks/purchaseorders/README.md#retrieve) - Retrieve Purchase Orders +- [`accountingTaxratesList`](docs/sdks/taxrates/README.md#list) - List TaxRates +- [`accountingTaxratesRetrieve`](docs/sdks/taxrates/README.md#retrieve) - Retrieve Tax Rates +- [`accountingTrackingcategoriesList`](docs/sdks/trackingcategories/README.md#list) - List TrackingCategorys +- [`accountingTrackingcategoriesRetrieve`](docs/sdks/trackingcategories/README.md#retrieve) - Retrieve Tracking Categories +- [`accountingTransactionsList`](docs/sdks/transactions/README.md#list) - List Transactions +- [`accountingTransactionsRetrieve`](docs/sdks/transactions/README.md#retrieve) - Retrieve Transactions +- [`accountingVendorcreditsList`](docs/sdks/vendorcredits/README.md#list) - List VendorCredits +- [`accountingVendorcreditsRetrieve`](docs/sdks/vendorcredits/README.md#retrieve) - Retrieve Vendor Credits +- [`authLoginSignIn`](docs/sdks/login/README.md#signin) - Log In +- [`connectionsList`](docs/sdks/connections/README.md#list) - List Connections +- [`crmCompaniesCreate`](docs/sdks/companies/README.md#create) - Create Companies +- [`crmCompaniesList`](docs/sdks/companies/README.md#list) - List Companies +- [`crmCompaniesRetrieve`](docs/sdks/companies/README.md#retrieve) - Retrieve Companies +- [`crmContactsCreate`](docs/sdks/panoracontacts/README.md#create) - Create Contacts +- [`crmContactsList`](docs/sdks/panoracontacts/README.md#list) - List CRM Contacts +- [`crmContactsRetrieve`](docs/sdks/panoracontacts/README.md#retrieve) - Retrieve Contacts +- [`crmDealsCreate`](docs/sdks/deals/README.md#create) - Create Deals +- [`crmDealsList`](docs/sdks/deals/README.md#list) - List Deals +- [`crmDealsRetrieve`](docs/sdks/deals/README.md#retrieve) - Retrieve Deals +- [`crmEngagementsCreate`](docs/sdks/engagements/README.md#create) - Create Engagements +- [`crmEngagementsList`](docs/sdks/engagements/README.md#list) - List Engagements +- [`crmEngagementsRetrieve`](docs/sdks/engagements/README.md#retrieve) - Retrieve Engagements +- [`crmNotesCreate`](docs/sdks/notes/README.md#create) - Create Notes +- [`crmNotesList`](docs/sdks/notes/README.md#list) - List Notes +- [`crmNotesRetrieve`](docs/sdks/notes/README.md#retrieve) - Retrieve Notes +- [`crmStagesList`](docs/sdks/stages/README.md#list) - List Stages +- [`crmStagesRetrieve`](docs/sdks/stages/README.md#retrieve) - Retrieve Stages +- [`crmTasksCreate`](docs/sdks/tasks/README.md#create) - Create Tasks +- [`crmTasksList`](docs/sdks/tasks/README.md#list) - List Tasks +- [`crmTasksRetrieve`](docs/sdks/tasks/README.md#retrieve) - Retrieve Tasks +- [`crmUsersList`](docs/sdks/panorausers/README.md#list) - List Users +- [`crmUsersRetrieve`](docs/sdks/panorausers/README.md#retrieve) - Retrieve Users +- [`ecommerceCustomersList`](docs/sdks/customers/README.md#list) - List Customers +- [`ecommerceCustomersRetrieve`](docs/sdks/customers/README.md#retrieve) - Retrieve Customers +- [`ecommerceFulfillmentsList`](docs/sdks/fulfillments/README.md#list) - List Fulfillments +- [`ecommerceFulfillmentsRetrieve`](docs/sdks/fulfillments/README.md#retrieve) - Retrieve Fulfillments +- [`ecommerceOrdersCreate`](docs/sdks/orders/README.md#create) - Create Orders +- [`ecommerceOrdersList`](docs/sdks/orders/README.md#list) - List Orders +- [`ecommerceOrdersRetrieve`](docs/sdks/orders/README.md#retrieve) - Retrieve Orders +- [`ecommerceProductsCreate`](docs/sdks/products/README.md#create) - Create Products +- [`ecommerceProductsList`](docs/sdks/products/README.md#list) - List Products +- [`ecommerceProductsRetrieve`](docs/sdks/products/README.md#retrieve) - Retrieve Products +- [`eventsGetPanoraCoreEvents`](docs/sdks/events/README.md#getpanoracoreevents) - List Events +- [`fieldMappingsDefineCustomField`](docs/sdks/fieldmappings/README.md#definecustomfield) - Create Custom Field +- [`fieldMappingsDefinitions`](docs/sdks/fieldmappings/README.md#definitions) - Define target Field +- [`fieldMappingsGetFieldMappings`](docs/sdks/fieldmappings/README.md#getfieldmappings) - Retrieve field mappings +- [`fieldMappingsGetFieldMappingsEntities`](docs/sdks/fieldmappings/README.md#getfieldmappingsentities) - Retrieve field mapping entities +- [`fieldMappingsGetFieldMappingValues`](docs/sdks/fieldmappings/README.md#getfieldmappingvalues) - Retrieve field mappings values +- [`fieldMappingsMap`](docs/sdks/fieldmappings/README.md#map) - Map Custom Field +- [`filestorageFilesCreate`](docs/sdks/files/README.md#create) - Create Files +- [`filestorageFilesList`](docs/sdks/files/README.md#list) - List Files +- [`filestorageFilesRetrieve`](docs/sdks/files/README.md#retrieve) - Retrieve Files +- [`filestorageFoldersCreate`](docs/sdks/folders/README.md#create) - Create Folders +- [`filestorageFoldersList`](docs/sdks/folders/README.md#list) - List Folders +- [`filestorageFoldersRetrieve`](docs/sdks/folders/README.md#retrieve) - Retrieve Folders +- [`filestorageGroupsList`](docs/sdks/groups/README.md#list) - List Groups +- [`filestorageGroupsRetrieve`](docs/sdks/groups/README.md#retrieve) - Retrieve Groups +- [`filestorageUsersList`](docs/sdks/panorafilestorageusers/README.md#list) - List Users +- [`filestorageUsersRetrieve`](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve Users +- [`health`](docs/sdks/panora/README.md#health) +- [`hello`](docs/sdks/panora/README.md#hello) +- [`linkedUsersCreate`](docs/sdks/linkedusers/README.md#create) - Create Linked Users +- [`linkedUsersImportBatch`](docs/sdks/linkedusers/README.md#importbatch) - Add Batch Linked Users +- [`linkedUsersList`](docs/sdks/linkedusers/README.md#list) - List Linked Users +- [`linkedUsersRemoteId`](docs/sdks/linkedusers/README.md#remoteid) - Retrieve a Linked User From A Remote Id +- [`linkedUsersRetrieve`](docs/sdks/linkedusers/README.md#retrieve) - Retrieve Linked Users +- [`marketingautomationActionsCreate`](docs/sdks/actions/README.md#create) - Create Action +- [`marketingautomationActionsList`](docs/sdks/actions/README.md#list) - List Actions +- [`marketingautomationActionsRetrieve`](docs/sdks/actions/README.md#retrieve) - Retrieve Actions +- [`marketingautomationAutomationsCreate`](docs/sdks/automations/README.md#create) - Create Automation +- [`marketingautomationAutomationsList`](docs/sdks/automations/README.md#list) - List Automations +- [`marketingautomationAutomationsRetrieve`](docs/sdks/automations/README.md#retrieve) - Retrieve Automation +- [`marketingautomationCampaignsCreate`](docs/sdks/campaigns/README.md#create) - Create Campaign +- [`marketingautomationCampaignsList`](docs/sdks/campaigns/README.md#list) - List Campaigns +- [`marketingautomationCampaignsRetrieve`](docs/sdks/campaigns/README.md#retrieve) - Retrieve Campaign +- [`marketingautomationContactsCreate`](docs/sdks/panoramarketingautomationcontacts/README.md#create) - Create Contact +- [`marketingautomationContactsList`](docs/sdks/panoramarketingautomationcontacts/README.md#list) - List Contacts +- [`marketingautomationContactsRetrieve`](docs/sdks/panoramarketingautomationcontacts/README.md#retrieve) - Retrieve Contacts +- [`marketingautomationEmailsList`](docs/sdks/emails/README.md#list) - List Emails +- [`marketingautomationEmailsRetrieve`](docs/sdks/emails/README.md#retrieve) - Retrieve Email +- [`marketingautomationEventsList`](docs/sdks/panoraevents/README.md#list) - List Events +- [`marketingautomationEventsRetrieve`](docs/sdks/panoraevents/README.md#retrieve) - Retrieve Event +- [`marketingautomationListsCreate`](docs/sdks/lists/README.md#create) - Create Lists +- [`marketingautomationListsList`](docs/sdks/lists/README.md#list) - List Lists +- [`marketingautomationListsRetrieve`](docs/sdks/lists/README.md#retrieve) - Retrieve List +- [`marketingautomationMessagesList`](docs/sdks/messages/README.md#list) - List Messages +- [`marketingautomationMessagesRetrieve`](docs/sdks/messages/README.md#retrieve) - Retrieve Messages +- [`marketingautomationTemplatesCreate`](docs/sdks/templates/README.md#create) - Create Template +- [`marketingautomationTemplatesList`](docs/sdks/templates/README.md#list) - List Templates +- [`marketingautomationTemplatesRetrieve`](docs/sdks/templates/README.md#retrieve) - Retrieve Template +- [`marketingautomationUsersList`](docs/sdks/panoramarketingautomationusers/README.md#list) - List Users +- [`marketingautomationUsersRetrieve`](docs/sdks/panoramarketingautomationusers/README.md#retrieve) - Retrieve Users +- [`passthroughRequest`](docs/sdks/passthrough/README.md#request) - Make a passthrough request +- [`passthroughRetryidGetRetriedRequestResponse`](docs/sdks/retryid/README.md#getretriedrequestresponse) - Retrieve response of a failed passthrough request due to rate limits +- [`projectsCreate`](docs/sdks/projects/README.md#create) - Create a project +- [`projectsGetProjects`](docs/sdks/projects/README.md#getprojects) - Retrieve projects +- [`ragQuery`](docs/sdks/rag/README.md#query) - Query using RAG Search +- [`syncGetPullFrequency`](docs/sdks/sync/README.md#getpullfrequency) - Get pull frequency for verticals +- [`syncResync`](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical +- [`syncStatus`](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical +- [`syncUpdatePullFrequency`](docs/sdks/sync/README.md#updatepullfrequency) - Update pull frequency for verticals +- [`ticketingAccountsList`](docs/sdks/accounts/README.md#list) - List Accounts +- [`ticketingAccountsRetrieve`](docs/sdks/accounts/README.md#retrieve) - Retrieve Accounts +- [`ticketingAttachmentsCreate`](docs/sdks/panoraattachments/README.md#create) - Create Attachments +- [`ticketingAttachmentsList`](docs/sdks/panoraattachments/README.md#list) - List Attachments +- [`ticketingAttachmentsRetrieve`](docs/sdks/panoraattachments/README.md#retrieve) - Retrieve Attachments +- [`ticketingCollectionsList`](docs/sdks/collections/README.md#list) - List Collections +- [`ticketingCollectionsRetrieve`](docs/sdks/collections/README.md#retrieve) - Retrieve Collections +- [`ticketingCommentsCreate`](docs/sdks/comments/README.md#create) - Create Comments +- [`ticketingCommentsList`](docs/sdks/comments/README.md#list) - List Comments +- [`ticketingCommentsRetrieve`](docs/sdks/comments/README.md#retrieve) - Retrieve Comment +- [`ticketingContactsList`](docs/sdks/contacts/README.md#list) - List Contacts +- [`ticketingContactsRetrieve`](docs/sdks/contacts/README.md#retrieve) - Retrieve Contact +- [`ticketingTagsList`](docs/sdks/tags/README.md#list) - List Tags +- [`ticketingTagsRetrieve`](docs/sdks/tags/README.md#retrieve) - Retrieve Tag +- [`ticketingTeamsList`](docs/sdks/teams/README.md#list) - List Teams +- [`ticketingTeamsRetrieve`](docs/sdks/teams/README.md#retrieve) - Retrieve Teams +- [`ticketingTicketsCreate`](docs/sdks/tickets/README.md#create) - Create Tickets +- [`ticketingTicketsList`](docs/sdks/tickets/README.md#list) - List Tickets +- [`ticketingTicketsRetrieve`](docs/sdks/tickets/README.md#retrieve) - Retrieve Tickets +- [`ticketingUsersList`](docs/sdks/users/README.md#list) - List Users +- [`ticketingUsersRetrieve`](docs/sdks/users/README.md#retrieve) - Retrieve User +- [`webhooksCreate`](docs/sdks/webhooks/README.md#create) - Create webhook +- [`webhooksDelete`](docs/sdks/webhooks/README.md#delete) - Delete Webhook +- [`webhooksList`](docs/sdks/webhooks/README.md#list) - List webhooks +- [`webhooksUpdateStatus`](docs/sdks/webhooks/README.md#updatestatus) - Update webhook status +- [`webhooksVerifyEvent`](docs/sdks/webhooks/README.md#verifyevent) - Verify payload signature of the webhook diff --git a/RELEASES.md b/RELEASES.md index 0e33a9ab..0fc1cd7f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -318,4 +318,14 @@ Based on: ### Generated - [typescript v0.13.8] . ### Releases -- [NPM v0.13.8] https://www.npmjs.com/package/@panora/sdk/v/0.13.8 - . \ No newline at end of file +- [NPM v0.13.8] https://www.npmjs.com/package/@panora/sdk/v/0.13.8 - . + +## 2024-11-18 18:03:25 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.440.2 (2.460.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.14.0] . +### Releases +- [NPM v0.14.0] https://www.npmjs.com/package/@panora/sdk/v/0.14.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 92d73fad..8027ef0f 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -8,510 +8,1573 @@ actions: x-codeSamples: - lang: typescript label: hello - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hello();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.hello(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/accounts"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingAccounts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.accounts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/accounts"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingAccount - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingAccountInput: {\n name: \"Cash\",\n description: \"Main cash account for daily operations\",\n classification: \"Asset\",\n type: \"Current Asset\",\n status: \"Active\",\n currentBalance: 10000,\n currency: \"USD\",\n accountNumber: \"1000\",\n parentAccount: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.accounts.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingAccountInput: { + name: "Cash", + description: "Main cash account for daily operations", + classification: "Asset", + type: "Current Asset", + status: "Active", + currentBalance: 10000, + currency: "USD", + accountNumber: "1000", + parentAccount: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingAccount - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.accounts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.accounts.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/addresses"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingAddress - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.addresses.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.addresses.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/addresses/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingAddress - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.addresses.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.addresses.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/attachments"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingAttachments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.attachments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/attachments"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingAttachmentInput: {\n fileName: \"invoice.pdf\",\n fileUrl: \"https://example.com/files/invoice.pdf\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.attachments.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingAttachmentInput: { + fileName: "invoice.pdf", + fileUrl: "https://example.com/files/invoice.pdf", + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.attachments.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/balancesheets"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingBalanceSheets - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.balancesheets.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.balancesheets.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingBalanceSheet - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.balancesheets.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.balancesheets.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/cashflowstatements"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingCashflowStatement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.cashflowstatements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.cashflowstatements.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingCashflowStatement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.cashflowstatements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.cashflowstatements.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/companyinfos"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingCompanyInfos - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.companyinfos.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.companyinfos.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingCompanyInfo - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.companyinfos.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.companyinfos.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/contacts"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingContacts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.contacts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/contacts"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingContactInput: {\n name: \"John Doe\",\n isSupplier: true,\n isCustomer: false,\n emailAddress: \"john.doe@example.com\",\n taxNumber: \"123456789\",\n status: \"Active\",\n currency: \"USD\",\n remoteUpdatedAt: \"2024-06-15T12:00:00Z\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.contacts.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingContactInput: { + name: "John Doe", + isSupplier: true, + isCustomer: false, + emailAddress: "john.doe@example.com", + taxNumber: "123456789", + status: "Active", + currency: "USD", + remoteUpdatedAt: "2024-06-15T12:00:00Z", + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.contacts.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/creditnotes"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingCreditNote - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.creditnotes.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.creditnotes.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingCreditNote - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.creditnotes.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/accounting/expenses"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAccountingExpense - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/accounting/expenses"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createAccountingExpense - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingExpenseInput: {\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n totalAmount: 10000,\n subTotal: 9000,\n totalTaxAmount: 1000,\n currency: \"USD\",\n exchangeRate: \"1.2\",\n memo: \"Business lunch with client\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.creditnotes.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/accounting/expenses"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listAccountingExpense + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.expenses.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/accounting/expenses"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createAccountingExpense + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.expenses.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingExpenseInput: { + transactionDate: new Date("2024-06-15T12:00:00Z"), + totalAmount: 10000, + subTotal: 9000, + totalTaxAmount: 1000, + currency: "USD", + exchangeRate: "1.2", + memo: "Business lunch with client", + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + trackingCategories: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + lineItems: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "report_item_1234", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/expenses/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingExpense - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.expenses.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.expenses.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/incomestatements"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingIncomeStatement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.incomestatements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.incomestatements.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingIncomeStatement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.incomestatements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.incomestatements.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/invoices"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingInvoice - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.invoices.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/invoices"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingInvoice - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingInvoiceInput: {\n type: \"Sales\",\n number: \"INV-001\",\n issueDate: new Date(\"2024-06-15T12:00:00Z\"),\n dueDate: new Date(\"2024-07-15T12:00:00Z\"),\n paidOnDate: new Date(\"2024-07-10T12:00:00Z\"),\n memo: \"Payment for services rendered\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n totalDiscount: 1000,\n subTotal: 10000,\n status: \"Paid\",\n totalTaxAmount: 1000,\n totalAmount: 11000,\n balance: 0,\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.invoices.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingInvoiceInput: { + type: "Sales", + number: "INV-001", + issueDate: new Date("2024-06-15T12:00:00Z"), + dueDate: new Date("2024-07-15T12:00:00Z"), + paidOnDate: new Date("2024-07-10T12:00:00Z"), + memo: "Payment for services rendered", + currency: "USD", + exchangeRate: "1.2", + totalDiscount: 1000, + subTotal: 10000, + status: "Paid", + totalTaxAmount: 1000, + totalAmount: 11000, + balance: 0, + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + trackingCategories: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + lineItems: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "report_item_1234", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/invoices/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingInvoice - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.invoices.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.invoices.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/items"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingItem - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.items.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.items.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/items/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingItem - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.items.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.items.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/journalentries"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingJournalEntry - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.journalentries.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/journalentries"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingJournalEntry - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingJournalentryInput: {\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n payments: [\n \"payment1\",\n \"payment2\",\n ],\n appliedPayments: [\n \"appliedPayment1\",\n \"appliedPayment2\",\n ],\n memo: \"Monthly expense journal entry\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n idAccCompanyInfo: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n journalNumber: \"JE-001\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n idAccAccountingPeriod: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n postingStatus: \"Posted\",\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.journalentries.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingJournalentryInput: { + transactionDate: new Date("2024-06-15T12:00:00Z"), + payments: [ + "payment1", + "payment2", + ], + appliedPayments: [ + "appliedPayment1", + "appliedPayment2", + ], + memo: "Monthly expense journal entry", + currency: "USD", + exchangeRate: "1.2", + idAccCompanyInfo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + journalNumber: "JE-001", + trackingCategories: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + idAccAccountingPeriod: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + postingStatus: "Posted", + lineItems: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "report_item_1234", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/journalentries/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingJournalEntry - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.journalentries.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.journalentries.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/payments"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingPayment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.payments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/payments"]["post"] update: x-codeSamples: - lang: typescript label: createAccountingPayment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingPaymentInput: {\n invoiceId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n transactionDate: new Date(\"2024-06-15T12:00:00Z\"),\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n currency: \"USD\",\n exchangeRate: \"1.2\",\n totalAmount: 10000,\n type: \"Credit Card\",\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.payments.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingPaymentInput: { + invoiceId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + transactionDate: new Date("2024-06-15T12:00:00Z"), + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + currency: "USD", + exchangeRate: "1.2", + totalAmount: 10000, + type: "Credit Card", + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + trackingCategories: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + lineItems: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "report_item_1234", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/payments/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingPayment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.payments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.payments.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/phonenumbers"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingPhonenumber - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.phonenumbers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.phonenumbers.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingPhonenumber - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.phonenumbers.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/accounting/purchaseorders"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAccountingPurchaseOrder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/accounting/purchaseorders"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createAccountingPurchaseOrder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAccountingPurchaseorderInput: {\n status: \"Pending\",\n issueDate: new Date(\"2024-06-15T12:00:00Z\"),\n purchaseOrderNumber: \"PO-001\",\n deliveryDate: new Date(\"2024-07-15T12:00:00Z\"),\n deliveryAddress: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n customer: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n vendor: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n memo: \"Purchase order for Q3 inventory\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n totalAmount: 100000,\n currency: \"USD\",\n exchangeRate: \"1.2\",\n trackingCategories: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n accountingPeriodId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n lineItems: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"report_item_1234\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] - update: + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.phonenumbers.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/accounting/purchaseorders"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listAccountingPurchaseOrder + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.purchaseorders.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/accounting/purchaseorders"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createAccountingPurchaseOrder + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.purchaseorders.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingPurchaseorderInput: { + status: "Pending", + issueDate: new Date("2024-06-15T12:00:00Z"), + purchaseOrderNumber: "PO-001", + deliveryDate: new Date("2024-07-15T12:00:00Z"), + deliveryAddress: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + customer: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + vendor: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + memo: "Purchase order for Q3 inventory", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + totalAmount: 100000, + currency: "USD", + exchangeRate: "1.2", + trackingCategories: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + accountingPeriodId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + lineItems: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "report_item_1234", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] + update: x-codeSamples: - lang: typescript label: retrieveAccountingPurchaseOrder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.purchaseorders.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.purchaseorders.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/taxrates"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingTaxRate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.taxrates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.taxrates.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/taxrates/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingTaxRate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.taxrates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.taxrates.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/trackingcategories"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingTrackingCategorys - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.trackingcategories.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.trackingcategories.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingTrackingCategory - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.trackingcategories.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.trackingcategories.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/transactions"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingTransaction - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.transactions.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.transactions.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/transactions/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingTransaction - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.transactions.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.transactions.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/accounting/vendorcredits"]["get"] update: x-codeSamples: - lang: typescript label: listAccountingVendorCredit - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.vendorcredits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.vendorcredits.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveAccountingVendorCredit - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.accounting.vendorcredits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/activities"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsActivity - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/activities"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createAtsActivity - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsActivityInput: {\n activityType: \"NOTE\",\n subject: \"Email subject\",\n body: \"Dear Diana, I love you\",\n visibility: \"PUBLIC\",\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/activities/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsActivity - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.activities.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/applications"]["get"] + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.accounting.vendorcredits.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/auth/login"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsApplication - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/applications"]["post"] + label: signIn + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + await panora.auth.login.signIn({ + idUser: "", + email: "Stanford_Rice@hotmail.com", + passwordHash: "", + }); + + + } + + run(); + - target: $["paths"]["/connections"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsApplication - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsApplicationInput: {\n appliedAt: new Date(\"2024-10-01T12:00:00Z\"),\n rejectedAt: new Date(\"2024-10-01T12:00:00Z\"),\n offers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"12345678-1234-1234-1234-123456789012\",\n ],\n source: \"Source Name\",\n creditedTo: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n currentStage: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n rejectReason: \"Candidate not experienced enough\",\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n jobId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/applications/{id}"]["get"] + label: listConnections + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.connections.list(); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/crm/companies"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsApplication - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.applications.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/attachments"]["get"] + label: listCrmCompany + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.companies.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/crm/companies"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/attachments"]["post"] + label: createCrmCompany + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.companies.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmCompanyInput: { + name: "Acme", + industry: "ACCOUNTING", + numberOfEmployees: 10, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + emailAddresses: [ + { + emailAddress: "acme@gmail.com", + emailAddressType: "WORK", + }, + ], + addresses: [ + { + street1: "5th Avenue", + street2: "Street 2", + city: "New York", + state: "NY", + postalCode: "10001", + country: "USA", + addressType: "WORK", + ownerType: "", + }, + ], + phoneNumbers: [ + { + phoneNumber: "+33660606067", + phoneType: "WORK", + }, + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/crm/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsAttachmentInput: {\n fileUrl: \"https://example.com/file.pdf\",\n fileName: \"file.pdf\",\n attachmentType: \"RESUME\",\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteModifiedAt: new Date(\"2024-10-01T12:00:00Z\"),\n candidateId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/attachments/{id}"]["get"] + label: retrieveCrmCompany + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.companies.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/crm/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/candidates"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsCandidate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/candidates"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createAtsCandidate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsCandidateInput: {\n firstName: \"Joe\",\n lastName: \"Doe\",\n company: \"Acme\",\n title: \"Analyst\",\n locations: \"New York\",\n isPrivate: false,\n emailReachable: true,\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteModifiedAt: new Date(\"2024-10-01T12:00:00Z\"),\n lastInteractionAt: new Date(\"2024-10-01T12:00:00Z\"),\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n applications: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"tag_1\",\n \"tag_2\",\n ],\n urls: [\n {\n url: \"mywebsite.com\",\n urlType: \"WEBSITE\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"+33660688899\",\n phoneType: \"WORK\",\n },\n ],\n emailAddresses: [\n {\n emailAddress: \"joedoe@gmail.com\",\n emailAddressType: \"WORK\",\n },\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/candidates/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsCandidate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.candidates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/departments"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsDepartments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.departments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/departments/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsDepartment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.departments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/eeocs"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsEeocs - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.eeocs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/eeocs/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsEeocs - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.eeocs.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/interviews"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsInterview - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/interviews"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createAtsInterview - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedAtsInterviewInput: {\n status: \"SCHEDULED\",\n applicationId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n jobInterviewStageId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n organizedBy: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n interviewers: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n location: \"San Francisco\",\n startAt: new Date(\"2024-10-01T12:00:00Z\"),\n endAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteCreatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n remoteUpdatedAt: new Date(\"2024-10-01T12:00:00Z\"),\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/interviews/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsInterview - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.interviews.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/jobinterviewstages"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsJobInterviewStage - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobinterviewstages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsJobInterviewStage - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobinterviewstages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/jobs"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsJob - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/jobs/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsJob - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.jobs.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/offers"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsOffer - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/offers/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsOffer - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offers.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/offices"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsOffice - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offices.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/offices/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsOffice - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.offices.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/rejectreasons"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsRejectReasons - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.rejectreasons.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsRejectReason - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.rejectreasons.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/scorecards"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsScorecard - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.scorecards.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/scorecards/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsScorecard - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.scorecards.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/tags"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsTags - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.tags.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/tags/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsTag - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.tags.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/ats/users"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listAtsUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/ats/users/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ats.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/auth/login"]["post"] - update: - x-codeSamples: - - lang: typescript - label: signIn + label: listCrmContacts source: |- import { Panora } from "@panora/sdk"; @@ -520,223 +1583,888 @@ actions: }); async function run() { - await panora.auth.login.signIn({ - email: "Oda.Treutel97@hotmail.com", - passwordHash: "", + const result = await panora.crm.contacts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); + + for await (const page of result) { + // Handle the page + console.log(page); + } } run(); - - target: $["paths"]["/connections"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listConnections - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.connections.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/crm/companies"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listCrmCompany - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/crm/companies"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createCrmCompany - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmCompanyInput: {\n name: \"Acme\",\n industry: \"ACCOUNTING\",\n numberOfEmployees: 10,\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n emailAddresses: [\n {\n emailAddress: \"acme@gmail.com\",\n emailAddressType: \"WORK\",\n },\n ],\n addresses: [\n {\n street1: \"5th Avenue\",\n street2: \"Street 2\",\n city: \"New York\",\n state: \"NY\",\n postalCode: \"10001\",\n country: \"USA\",\n addressType: \"WORK\",\n ownerType: \"\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"+33660606067\",\n phoneType: \"WORK\",\n },\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/crm/companies/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveCrmCompany - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.companies.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/crm/contacts"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listCrmContacts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - target: $["paths"]["/crm/contacts"]["post"] update: x-codeSamples: - lang: typescript label: createCrmContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmContactInput: {\n firstName: \"John\",\n lastName: \"Doe\",\n emailAddresses: [\n {\n emailAddress: \"Jena.Nienow28@yahoo.com\",\n emailAddressType: \"\",\n },\n ],\n phoneNumbers: [\n {\n phoneNumber: \"1-809-839-8041\",\n phoneType: \"\",\n },\n ],\n addresses: [\n {\n street1: \"5th Avenue\",\n street2: \"Street 2\",\n city: \"Anytown\",\n state: \"CA\",\n postalCode: \"10001\",\n country: \"USA\",\n addressType: \"PERSONAL\",\n ownerType: \"\",\n },\n ],\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.contacts.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmContactInput: { + firstName: "John", + lastName: "Doe", + emailAddresses: [ + { + emailAddress: "Loyal79@yahoo.com", + emailAddressType: "", + }, + ], + phoneNumbers: [ + { + phoneNumber: "307-857-9320", + phoneType: "", + }, + ], + addresses: [ + { + street1: "5th Avenue", + street2: "Street 2", + city: "Anytown", + state: "CA", + postalCode: "10001", + country: "USA", + addressType: "PERSONAL", + ownerType: "", + }, + ], + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.contacts.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/deals"]["get"] update: x-codeSamples: - lang: typescript label: listCrmDeals - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.deals.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/crm/deals"]["post"] update: x-codeSamples: - lang: typescript label: createCrmDeal - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.create({\n xConnectionToken: \"\",\n unifiedCrmDealInput: {\n name: \"Huge Contract with Acme\",\n description: \"Contract with Sales Operations Team\",\n amount: 1000,\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n stageId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.deals.create({ + xConnectionToken: "", + unifiedCrmDealInput: { + name: "Huge Contract with Acme", + description: "Contract with Sales Operations Team", + amount: 1000, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + stageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/deals/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmDeal - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.deals.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.deals.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/engagements"]["get"] update: x-codeSamples: - lang: typescript label: listCrmEngagements - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.engagements.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/crm/engagements"]["post"] update: x-codeSamples: - lang: typescript label: createCrmEngagement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmEngagementInput: {\n content: \"Meeting call with CTO\",\n direction: \"INBOUND\",\n subject: \"Technical features planning\",\n startAt: new Date(\"2024-10-01T12:00:00Z\"),\n endTime: new Date(\"2024-10-01T22:00:00Z\"),\n type: \"MEETING\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contacts: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.engagements.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmEngagementInput: { + content: "Meeting call with CTO", + direction: "INBOUND", + subject: "Technical features planning", + startAt: new Date("2024-10-01T12:00:00Z"), + endTime: new Date("2024-10-01T22:00:00Z"), + type: "MEETING", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contacts: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/engagements/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmEngagement - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.engagements.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.engagements.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/notes"]["get"] update: x-codeSamples: - lang: typescript label: listCrmNote - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.notes.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/crm/notes"]["post"] update: x-codeSamples: - lang: typescript label: createCrmNote - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedCrmNoteInput: {\n content: \"My notes taken during the meeting\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n dealId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.notes.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmNoteInput: { + content: "My notes taken during the meeting", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/notes/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmNote - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.notes.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.notes.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/stages"]["get"] update: x-codeSamples: - lang: typescript label: listCrmStages - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.stages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/crm/stages/{id}"]["get"] - update: + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.stages.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/crm/stages/{id}"]["get"] + update: x-codeSamples: - lang: typescript label: retrieveCrmStage - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.stages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.stages.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/tasks"]["get"] update: x-codeSamples: - lang: typescript label: listCrmTask - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.tasks.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/crm/tasks"]["post"] update: x-codeSamples: - lang: typescript label: createCrmTask - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.create({\n xConnectionToken: \"\",\n unifiedCrmTaskInput: {\n subject: \"Answer customers\",\n content: \"Prepare email campaign\",\n status: \"PENDING\",\n dueDate: \"2024-10-01T12:00:00Z\",\n finishedDate: \"2024-10-01T12:00:00Z\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n dealId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.tasks.create({ + xConnectionToken: "", + unifiedCrmTaskInput: { + subject: "Answer customers", + content: "Prepare email campaign", + status: "PENDING", + dueDate: "2024-10-01T12:00:00Z", + finishedDate: "2024-10-01T12:00:00Z", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/tasks/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmTask - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.tasks.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.tasks.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/crm/users"]["get"] update: x-codeSamples: - lang: typescript label: listCrmUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/crm/users/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCrmUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.crm.users.retrieve({\n xConnectionToken: \"\",\n id: \"b008e199-eda9-4629-bd41-a01b6195864a\",\n remoteData: true,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.crm.users.retrieve({ + xConnectionToken: "", + id: "b008e199-eda9-4629-bd41-a01b6195864a", + remoteData: true, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/customers"]["get"] update: x-codeSamples: - lang: typescript label: listEcommerceCustomers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.customers.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.customers.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ecommerce/customers/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveEcommerceCustomer - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.customers.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.customers.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/fulfillments"]["get"] update: x-codeSamples: - lang: typescript label: listEcommerceFulfillments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.fulfillments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.fulfillments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ecommerce/fulfillments/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveEcommerceFulfillment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.fulfillments.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.fulfillments.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/orders"]["get"] update: x-codeSamples: - lang: typescript label: listEcommerceOrders - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.orders.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ecommerce/orders"]["post"] update: x-codeSamples: - lang: typescript label: createEcommerceOrder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedEcommerceOrderInput: {\n orderStatus: \"UNSHIPPED\",\n orderNumber: \"19823838833\",\n paymentStatus: \"SUCCESS\",\n currency: \"AUD\",\n totalPrice: 300,\n totalDiscount: 10,\n totalShipping: 120,\n totalTax: 120,\n fulfillmentStatus: \"PENDING\",\n customerId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n items: [\n {\n name: \"Net Income\",\n value: 100000,\n type: \"Operating Activities\",\n parentItem: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteId: \"12345\",\n remoteGeneratedAt: new Date(\"2024-07-01T12:00:00Z\"),\n companyInfoId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n createdAt: new Date(\"2024-06-15T12:00:00Z\"),\n modifiedAt: new Date(\"2024-06-15T12:00:00Z\"),\n },\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.orders.create({ + xConnectionToken: "", + remoteData: false, + unifiedEcommerceOrderInput: { + orderStatus: "UNSHIPPED", + orderNumber: "19823838833", + paymentStatus: "SUCCESS", + currency: "AUD", + totalPrice: 300, + totalDiscount: 10, + totalShipping: 120, + totalTax: 120, + fulfillmentStatus: "PENDING", + customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + items: [ + { + name: "Net Income", + value: 100000, + type: "Operating Activities", + parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "12345", + remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), + companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + createdAt: new Date("2024-06-15T12:00:00Z"), + modifiedAt: new Date("2024-06-15T12:00:00Z"), + }, + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/orders/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveEcommerceOrder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.orders.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.orders.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/products"]["get"] update: x-codeSamples: - lang: typescript label: listEcommerceProducts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.products.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ecommerce/products"]["post"] update: x-codeSamples: - lang: typescript label: createEcommerceProduct - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedEcommerceProductInput: {\n productUrl: \"https://product_url/tee\",\n productType: \"teeshirt\",\n productStatus: \"ACTIVE\",\n imagesUrls: [\n \"https://myproduct/image\",\n ],\n description: \"best tee ever\",\n vendor: \"vendor_extern\",\n variants: [\n {},\n ],\n tags: [\n \"tag_1\",\n ],\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.products.create({ + xConnectionToken: "", + remoteData: false, + unifiedEcommerceProductInput: { + productUrl: "https://product_url/tee", + productType: "teeshirt", + productStatus: "ACTIVE", + imagesUrls: [ + "https://myproduct/image", + ], + description: "best tee ever", + vendor: "vendor_extern", + variants: [ + {}, + ], + tags: [ + "tag_1", + ], + fieldMappings: {}, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ecommerce/products/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveEcommerceProduct - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ecommerce.products.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ecommerce.products.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/events"]["get"] update: x-codeSamples: - lang: typescript label: getPanoraCoreEvents - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.events.getPanoraCoreEvents({});\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.events.getPanoraCoreEvents({}); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/field_mappings"]["post"] update: x-codeSamples: - lang: typescript label: defineCustomField - source: "import { Panora } from \"@panora/sdk\";\nimport { CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.defineCustomField({\n objectTypeOwner: CustomFieldCreateDtoObjectTypeOwner.Company,\n name: \"my_favorite_dish\",\n description: \"Favorite Dish\",\n dataType: CustomFieldCreateDtoDataType.String,\n sourceCustomFieldId: \"id_1\",\n sourceProvider: \"hubspot\",\n linkedUserId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + import { CustomFieldCreateDtoDataType, CustomFieldCreateDtoObjectTypeOwner } from "@panora/sdk/models/components"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.fieldMappings.defineCustomField({ + objectTypeOwner: CustomFieldCreateDtoObjectTypeOwner.Company, + name: "my_favorite_dish", + description: "Favorite Dish", + dataType: CustomFieldCreateDtoDataType.String, + sourceCustomFieldId: "id_1", + sourceProvider: "hubspot", + linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/field_mappings/attributes"]["get"] update: x-codeSamples: @@ -750,21 +2478,332 @@ actions: }); async function run() { - await panora.fieldMappings.getFieldMappings(); + await panora.fieldMappings.getFieldMappings(); + + + } + + run(); + - target: $["paths"]["/field_mappings/define"]["post"] + update: + x-codeSamples: + - lang: typescript + label: definitions + source: |- + import { Panora } from "@panora/sdk"; + import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.fieldMappings.definitions({ + objectTypeOwner: ObjectTypeOwner.Company, + name: "fav_dish", + description: "My favorite dish", + dataType: DataType.String, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/field_mappings/entities"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getFieldMappingsEntities + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + await panora.fieldMappings.getFieldMappingsEntities(); + + + } + + run(); + - target: $["paths"]["/field_mappings/map"]["post"] + update: + x-codeSamples: + - lang: typescript + label: map + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.fieldMappings.map({ + attributeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sourceCustomFieldId: "id_1", + sourceProvider: "hubspot", + linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/field_mappings/values"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getFieldMappingValues + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + await panora.fieldMappings.getFieldMappingValues(); + + + } + + run(); + - target: $["paths"]["/filestorage/files"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listFilestorageFile + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.files.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/filestorage/files"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createFilestorageFile + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.files.create({ + xConnectionToken: "", + remoteData: false, + unifiedFilestorageFileInput: { + name: "my_paris_photo.png", + fileUrl: "https://example.com/my_paris_photo.png", + mimeType: "application/pdf", + size: "1024", + folderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/filestorage/files/{id}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: retrieveFilestorageFile + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.files.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/filestorage/folders"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listFilestorageFolder + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.folders.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/filestorage/folders"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createFilestorageFolder + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.folders.create({ + xConnectionToken: "", + remoteData: false, + unifiedFilestorageFolderInput: { + name: "school", + size: "2048", + folderUrl: "https://example.com/school", + description: "All things school related", + driveId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + parentFolderId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + sharedLink: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + permission: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/filestorage/folders/{id}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: retrieveFilestorageFolder + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.folders.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); + - target: $["paths"]["/filestorage/groups"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listFilestorageGroup + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.groups.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); + - target: $["paths"]["/filestorage/groups/{id}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: retrieveFilestorageGroup + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.filestorage.groups.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); } run(); - - target: $["paths"]["/field_mappings/define"]["post"] - update: - x-codeSamples: - - lang: typescript - label: definitions - source: "import { Panora } from \"@panora/sdk\";\nimport { DataType, ObjectTypeOwner } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.definitions({\n objectTypeOwner: ObjectTypeOwner.Company,\n name: \"fav_dish\",\n description: \"My favorite dish\",\n dataType: DataType.String,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/field_mappings/entities"]["get"] + - target: $["paths"]["/filestorage/users"]["get"] update: x-codeSamples: - lang: typescript - label: getFieldMappingsEntities + label: listFilestorageUsers source: |- import { Panora } from "@panora/sdk"; @@ -773,21 +2812,25 @@ actions: }); async function run() { - await panora.fieldMappings.getFieldMappingsEntities(); + const result = await panora.filestorage.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } } run(); - - target: $["paths"]["/field_mappings/map"]["post"] - update: - x-codeSamples: - - lang: typescript - label: map - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.fieldMappings.map({\n attributeId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sourceCustomFieldId: \"id_1\",\n sourceProvider: \"hubspot\",\n linkedUserId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/field_mappings/values"]["get"] + - target: $["paths"]["/filestorage/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getFieldMappingValues + label: retrieveFilestorageUser source: |- import { Panora } from "@panora/sdk"; @@ -796,466 +2839,835 @@ actions: }); async function run() { - await panora.fieldMappings.getFieldMappingValues(); + const result = await panora.filestorage.users.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); } run(); - - target: $["paths"]["/filestorage/files"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listFilestorageFile - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/filestorage/files"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createFilestorageFile - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedFilestorageFileInput: {\n name: \"my_paris_photo.png\",\n fileUrl: \"https://example.com/my_paris_photo.png\",\n mimeType: \"application/pdf\",\n size: \"1024\",\n folderId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sharedLink: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/filestorage/files/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveFilestorageFile - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.files.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/filestorage/folders"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listFilestorageFolder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/filestorage/folders"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createFilestorageFolder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedFilestorageFolderInput: {\n name: \"school\",\n size: \"2048\",\n folderUrl: \"https://example.com/school\",\n description: \"All things school related\",\n driveId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n parentFolderId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n sharedLink: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n permission: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/filestorage/folders/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveFilestorageFolder - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.folders.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/filestorage/groups"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listFilestorageGroup - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.groups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/filestorage/groups/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveFilestorageGroup - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.groups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/filestorage/users"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listFilestorageUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/filestorage/users/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveFilestorageUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.filestorage.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/health"]["get"] update: x-codeSamples: - lang: typescript label: health - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.health();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/bankinfos"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisBankInfo - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.bankinfos.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/bankinfos/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisBankInfo - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.bankinfos.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/benefits"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisBenefits - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.benefits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/benefits/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisBenefit - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.benefits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/companies"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisCompanies - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.companies.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/companies/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisCompany - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.companies.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/dependents"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisDependents - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.dependents.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/dependents/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisDependent - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.dependents.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/employeepayrollruns"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisEmployeePayrollRun - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employeepayrollruns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisEmployeePayrollRun - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employeepayrollruns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/employees"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisEmployees - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/employees"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createHrisEmployee - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.create({\n xConnectionToken: \"\",\n unifiedHrisEmployeeInput: {\n groups: [\n \"Group1\",\n \"Group2\",\n ],\n locations: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n employeeNumber: \"EMP001\",\n companyId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n firstName: \"John\",\n lastName: \"Doe\",\n preferredName: \"Johnny\",\n displayFullName: \"John Doe\",\n username: \"johndoe\",\n workEmail: \"john.doe@company.com\",\n personalEmail: \"john.doe@personal.com\",\n mobilePhoneNumber: \"+1234567890\",\n employments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n ssn: \"123-45-6789\",\n gender: \"MALE\",\n ethnicity: \"AMERICAN_INDIAN_OR_ALASKA_NATIVE\",\n maritalStatus: \"Married\",\n dateOfBirth: new Date(\"1990-01-01\"),\n startDate: new Date(\"2020-01-01\"),\n employmentStatus: \"ACTIVE\",\n terminationDate: new Date(\"2025-01-01\"),\n avatarUrl: \"https://example.com/avatar.jpg\",\n managerId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/employees/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisEmployee - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employees.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/employerbenefits"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisEmployerBenefits - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employerbenefits.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisEmployerBenefit - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employerbenefits.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/employments"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisEmployments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/employments/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisEmployment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.employments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/groups"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisGroups - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.groups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/groups/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisGroup - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.groups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/locations"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisLocations - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.locations.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/locations/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisLocation - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.locations.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/paygroups"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisPaygroups - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.paygroups.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/paygroups/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisPaygroup - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.paygroups.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/payrollruns"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisPayrollRuns - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.payrollruns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/payrollruns/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisPayrollRun - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.payrollruns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/timeoffbalances"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisTimeoffbalances - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffbalances.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisTimeoffbalance - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffbalances.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/timeoffs"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisTimeoffs - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/timeoffs"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createHrisTimeoff - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.create({\n xConnectionToken: \"\",\n unifiedHrisTimeoffInput: {\n employee: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n approver: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n status: \"REQUESTED\",\n employeeNote: \"Annual vacation\",\n units: \"DAYS\",\n amount: 5,\n requestType: \"VACATION\",\n startTime: new Date(\"2024-07-01T09:00:00Z\"),\n endTime: new Date(\"2024-07-05T17:00:00Z\"),\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/timeoffs/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisTimeoff - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timeoffs.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/timesheetentries"]["get"] - update: - x-codeSamples: - - lang: typescript - label: listHrisTimesheetentries - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/hris/timesheetentries"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createHrisTimesheetentry - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.create({\n xConnectionToken: \"\",\n unifiedHrisTimesheetEntryInput: {\n hoursWorked: 40,\n startTime: new Date(\"2024-10-01T08:00:00Z\"),\n endTime: new Date(\"2024-10-01T16:00:00Z\"),\n employeeId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteWasDeleted: false,\n fieldMappings: {},\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hris/timesheetentries/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveHrisTimesheetentry - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.hris.timesheetentries.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.health(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/linked_users"]["get"] update: x-codeSamples: - lang: typescript label: listLinkedUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.linkedUsers.list(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/linked_users"]["post"] update: x-codeSamples: - lang: typescript label: createLinkedUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.create({\n linkedUserOriginId: \"id_1\",\n alias: \"acme\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.linkedUsers.create({ + linkedUserOriginId: "id_1", + alias: "acme", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/linked_users/batch"]["post"] update: x-codeSamples: - lang: typescript label: importBatch - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.importBatch({\n linkedUserOriginIds: [\n \"id_1\",\n ],\n alias: \"acme\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.linkedUsers.importBatch({ + linkedUserOriginIds: [ + "id_1", + ], + alias: "acme", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/linked_users/fromRemoteId"]["get"] update: x-codeSamples: - lang: typescript label: remoteId - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.remoteId({\n remoteId: \"id_1\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.linkedUsers.remoteId({ + remoteId: "id_1", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/linked_users/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveLinkedUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.linkedUsers.retrieve({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.linkedUsers.retrieve({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/actions"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationAction - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.actions.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/actions"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingautomationAction - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationActionInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.actions.create({ + xConnectionToken: "", + remoteData: false, + unifiedMarketingautomationActionInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationAction - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.actions.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.actions.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/automations"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationAutomations - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.automations.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/automations"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingautomationAutomation - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationAutomationInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.automations.create({ + xConnectionToken: "", + remoteData: false, + unifiedMarketingautomationAutomationInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationAutomation - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.automations.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.automations.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/campaigns"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationCampaigns - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.campaigns.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/campaigns"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingautomationCampaign - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationCampaignInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.campaigns.create({ + xConnectionToken: "", + remoteData: false, + unifiedMarketingautomationCampaignInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationCampaign - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.campaigns.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.campaigns.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/contacts"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingAutomationContacts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.contacts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/contacts"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingAutomationContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedMarketingautomationContactInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.contacts.create({ + xConnectionToken: "", + remoteData: false, + unifiedMarketingautomationContactInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingAutomationContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.contacts.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/emails"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationEmails - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.emails.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.emails.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationEmail - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.emails.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.emails.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/events"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingAutomationEvents - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.events.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.events.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/events/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationEvent - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.events.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.events.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/lists"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationLists - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.lists.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/lists"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingautomationList - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.create({\n xConnectionToken: \"\",\n unifiedMarketingautomationListInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.lists.create({ + xConnectionToken: "", + unifiedMarketingautomationListInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationList - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.lists.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.lists.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/messages"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationMessages - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.messages.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.messages.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationMessage - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.messages.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.messages.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/templates"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingautomationTemplates - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.templates.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/templates"]["post"] update: x-codeSamples: - lang: typescript label: createMarketingautomationTemplate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.create({\n xConnectionToken: \"\",\n unifiedMarketingautomationTemplateInput: {},\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.templates.create({ + xConnectionToken: "", + unifiedMarketingautomationTemplateInput: {}, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingautomationTemplate - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.templates.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.templates.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/marketingautomation/users"]["get"] update: x-codeSamples: - lang: typescript label: listMarketingAutomationUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/marketingautomation/users/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveMarketingAutomationUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.marketingautomation.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.marketingautomation.users.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/passthrough"]["post"] update: x-codeSamples: - lang: typescript label: request - source: "import { Panora } from \"@panora/sdk\";\nimport { PassThroughRequestDtoMethod } from \"@panora/sdk/models/components\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.passthrough.request({\n xConnectionToken: \"\",\n passThroughRequestDto: {\n method: PassThroughRequestDtoMethod.Get,\n path: \"/dev\",\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + import { PassThroughRequestDtoMethod } from "@panora/sdk/models/components"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.passthrough.request({ + xConnectionToken: "", + passThroughRequestDto: { + method: PassThroughRequestDtoMethod.Get, + path: "/etc/periodic", + data: {}, + requestFormat: { + + }, + overrideBaseUrl: { + + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/passthrough/{retryId}"]["get"] update: x-codeSamples: @@ -1270,8 +3682,10 @@ actions: async function run() { await panora.passthrough.retryid.getRetriedRequestResponse({ - retryId: "", + retryId: "", }); + + } run(); @@ -1280,37 +3694,136 @@ actions: x-codeSamples: - lang: typescript label: getProjects - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.projects.getProjects();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.projects.getProjects(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/projects"]["post"] update: x-codeSamples: - lang: typescript label: createProject - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.projects.create({\n name: \"Project Name\",\n idOrganization: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n idUser: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.projects.create({ + name: "Project Name", + idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/rag/query"]["post"] update: x-codeSamples: - lang: typescript label: query - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.rag.query({\n xConnectionToken: \"\",\n queryBody: {\n query: \"When does Panora incorporated?\",\n topK: 3,\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.rag.query({ + xConnectionToken: "", + queryBody: { + query: "When does Panora incorporated?", + topK: 3, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/sync/pull_frequencies"]["get"] update: x-codeSamples: - lang: typescript label: getPullFrequency - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.getPullFrequency();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.sync.getPullFrequency(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/sync/pull_frequencies"]["post"] update: x-codeSamples: - lang: typescript label: updatePullFrequency - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.updatePullFrequency({\n crm: 1800,\n ats: 3600,\n hris: 7200,\n accounting: 14400,\n filestorage: 28800,\n ecommerce: 43200,\n ticketing: 86400,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + await panora.sync.updatePullFrequency({ + crm: 1800, + accounting: 14400, + filestorage: 28800, + ecommerce: 43200, + ticketing: 86400, + }); + + + } + + run(); - target: $["paths"]["/sync/resync"]["post"] update: x-codeSamples: - lang: typescript label: resync - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.sync.resync();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.sync.resync(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/sync/status/{vertical}"]["get"] update: x-codeSamples: @@ -1328,6 +3841,8 @@ actions: await panora.sync.status({ vertical: Vertical.Ticketing, }); + + } run(); @@ -1336,154 +3851,701 @@ actions: x-codeSamples: - lang: typescript label: listTicketingAccount - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.accounts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.accounts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingAccount - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.accounts.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.accounts.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/attachments"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingAttachments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.attachments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/attachments"]["post"] update: x-codeSamples: - lang: typescript label: createTicketingAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.create({\n xConnectionToken: \"\",\n unifiedTicketingAttachmentInput: {\n fileName: \"features_planning.pdf\",\n fileUrl: \"https://example.com/features_planning.pdf\",\n uploader: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n commentId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.attachments.create({ + xConnectionToken: "", + unifiedTicketingAttachmentInput: { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingAttachment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.attachments.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.attachments.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/collections"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingCollections - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.collections.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.collections.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/collections/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveCollection - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.collections.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.collections.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/comments"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingComments - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.comments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/comments"]["post"] update: x-codeSamples: - lang: typescript label: createTicketingComment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.create({\n xConnectionToken: \"\",\n unifiedTicketingCommentInput: {\n body: \"Assigned to Eric !\",\n htmlBody: \"

Assigned to Eric !

\",\n isPrivate: false,\n creatorType: \"USER\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.comments.create({ + xConnectionToken: "", + unifiedTicketingCommentInput: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: "USER", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/comments/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingComment - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.comments.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.comments.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/contacts"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingContacts - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.contacts.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.contacts.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingContact - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.contacts.retrieve({\n xConnectionToken: \"\",\n id: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.contacts.retrieve({ + xConnectionToken: "", + id: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/tags"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingTags - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tags.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.tags.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingTag - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tags.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.tags.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/teams"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingTeams - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.teams.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.teams.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/teams/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingTeam - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.teams.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.teams.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/tickets"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingTicket - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.tickets.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/tickets"]["post"] update: x-codeSamples: - lang: typescript label: createTicketingTicket - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.create({\n xConnectionToken: \"\",\n remoteData: false,\n unifiedTicketingTicketInput: {\n name: \"Customer Service Inquiry\",\n status: \"OPEN\",\n description: \"Help customer\",\n dueDate: new Date(\"2024-10-01T12:00:00Z\"),\n type: \"BUG\",\n parentTicket: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n collections: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n tags: [\n \"my_tag\",\n \"urgent_tag\",\n ],\n completedAt: new Date(\"2024-10-01T12:00:00Z\"),\n priority: \"HIGH\",\n assignedTo: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n comment: {\n body: \"Assigned to Eric !\",\n htmlBody: \"

Assigned to Eric !

\",\n isPrivate: false,\n creatorType: \"USER\",\n ticketId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n userId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n },\n accountId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n contactId: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n attachments: [\n \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n ],\n fieldMappings: {\n \"fav_dish\": \"broccoli\",\n \"fav_color\": \"red\",\n },\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.tickets.create({ + xConnectionToken: "", + remoteData: false, + unifiedTicketingTicketInput: { + name: "Customer Service Inquiry", + status: "OPEN", + description: "Help customer", + dueDate: new Date("2024-10-01T12:00:00Z"), + type: "BUG", + parentTicket: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + collections: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + tags: [ + "my_tag", + "urgent_tag", + ], + completedAt: new Date("2024-10-01T12:00:00Z"), + priority: "HIGH", + assignedTo: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + comment: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: "USER", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + }, + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + attachments: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/tickets/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingTicket - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.tickets.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.tickets.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/ticketing/users"]["get"] update: x-codeSamples: - lang: typescript label: listTicketingUsers - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.users.list({\n xConnectionToken: \"\",\n remoteData: true,\n limit: 10,\n cursor: \"1b8b05bb-5273-4012-b520-8657b0b90874\",\n });\n \n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.users.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); + + for await (const page of result) { + // Handle the page + console.log(page); + } + } + + run(); - target: $["paths"]["/ticketing/users/{id}"]["get"] update: x-codeSamples: - lang: typescript label: retrieveTicketingUser - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.ticketing.users.retrieve({\n xConnectionToken: \"\",\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n remoteData: false,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.ticketing.users.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/webhooks"]["get"] update: x-codeSamples: - lang: typescript label: listWebhooks - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.webhooks.list(); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/webhooks"]["post"] update: x-codeSamples: - lang: typescript label: createWebhookPublic - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.create({\n url: \"https://acme.com/webhook_receiver\",\n description: \"Webhook to receive connection events\",\n scope: [\n \"connection.created\",\n ],\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.webhooks.create({ + url: "https://acme.com/webhook_receiver", + description: "Webhook to receive connection events", + scope: [ + "connection.created", + ], + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/webhooks/verifyEvent"]["post"] update: x-codeSamples: - lang: typescript label: verifyEvent - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {\n \n },\n signature: \"\",\n secret: \"\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.webhooks.verifyEvent({ + payload: { + + }, + signature: "", + secret: "", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: - lang: typescript label: delete - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.delete({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.webhooks.delete({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); - target: $["paths"]["/webhooks/{id}"]["put"] update: x-codeSamples: - lang: typescript label: updateStatus - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await panora.webhooks.updateStatus({\n id: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora({ + apiKey: "", + }); + + async function run() { + const result = await panora.webhooks.updateStatus({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + }); + + // Handle the result + console.log(result); + } + + run(); diff --git a/docs/models/components/applications.md b/docs/models/components/applications.md deleted file mode 100644 index 4c712478..00000000 --- a/docs/models/components/applications.md +++ /dev/null @@ -1,24 +0,0 @@ -# Applications - -## Example Usage - -```typescript -import { Applications } from "@panora/sdk/models/components"; - -let value: Applications = ""; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsApplicationOutput` - -```typescript -const value: components.UnifiedAtsApplicationOutput = /* values here */ -``` - diff --git a/docs/models/components/attachments.md b/docs/models/components/attachments.md index a81122a2..986d9689 100644 --- a/docs/models/components/attachments.md +++ b/docs/models/components/attachments.md @@ -1,11 +1,18 @@ # Attachments -## Example Usage + +## Supported Types + +### `string` ```typescript -import { Attachments } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: Attachments = { +### `components.UnifiedTicketingAttachmentInput` + +```typescript +const value: components.UnifiedTicketingAttachmentInput = { fileName: "features_planning.pdf", fileUrl: "https://example.com/features_planning.pdf", uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", @@ -18,17 +25,3 @@ let value: Attachments = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedTicketingAttachmentInput` - -```typescript -const value: components.UnifiedTicketingAttachmentInput = /* values here */ -``` - diff --git a/docs/models/components/collections.md b/docs/models/components/collections.md index ace62328..05ceaa50 100644 --- a/docs/models/components/collections.md +++ b/docs/models/components/collections.md @@ -1,11 +1,18 @@ # Collections -## Example Usage + +## Supported Types + +### `string` ```typescript -import { Collections } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: Collections = { +### `components.UnifiedTicketingCollectionOutput` + +```typescript +const value: components.UnifiedTicketingCollectionOutput = { name: "My Personal Collection", description: "Collect issues", collectionType: "PROJECT", @@ -20,17 +27,3 @@ let value: Collections = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedTicketingCollectionOutput` - -```typescript -const value: components.UnifiedTicketingCollectionOutput = /* values here */ -``` - diff --git a/docs/models/components/deductionitem.md b/docs/models/components/deductionitem.md deleted file mode 100644 index 60eae734..00000000 --- a/docs/models/components/deductionitem.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeductionItem - -## Example Usage - -```typescript -import { DeductionItem } from "@panora/sdk/models/components"; - -let value: DeductionItem = { - name: "Health Insurance", - employeeDeduction: 100, - companyDeduction: 200, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the deduction | Health Insurance | -| `employeeDeduction` | *number* | :heavy_minus_sign: | The amount of employee deduction | 100 | -| `companyDeduction` | *number* | :heavy_minus_sign: | The amount of company deduction | 200 | \ No newline at end of file diff --git a/docs/models/components/earningitem.md b/docs/models/components/earningitem.md deleted file mode 100644 index 7877e2ef..00000000 --- a/docs/models/components/earningitem.md +++ /dev/null @@ -1,19 +0,0 @@ -# EarningItem - -## Example Usage - -```typescript -import { EarningItem } from "@panora/sdk/models/components"; - -let value: EarningItem = { - amount: 1000, - type: "Salary", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | -| `amount` | *number* | :heavy_minus_sign: | The amount of the earning | 1000 | -| `type` | *string* | :heavy_minus_sign: | The type of the earning | Salary | \ No newline at end of file diff --git a/docs/models/components/email.md b/docs/models/components/email.md index 43082a0a..9286a76b 100644 --- a/docs/models/components/email.md +++ b/docs/models/components/email.md @@ -6,7 +6,7 @@ import { Email } from "@panora/sdk/models/components"; let value: Email = { - emailAddress: "Rita.Will87@yahoo.com", + emailAddress: "Lucie_Welch41@gmail.com", emailAddressType: "", }; ``` diff --git a/docs/models/components/headers.md b/docs/models/components/headers.md deleted file mode 100644 index 16a7e5fe..00000000 --- a/docs/models/components/headers.md +++ /dev/null @@ -1,14 +0,0 @@ -# Headers - -## Example Usage - -```typescript -import { Headers } from "@panora/sdk/models/components"; - -let value: Headers = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/logindto.md b/docs/models/components/logindto.md index 03a78be3..354a4232 100644 --- a/docs/models/components/logindto.md +++ b/docs/models/components/logindto.md @@ -6,7 +6,8 @@ import { LoginDto } from "@panora/sdk/models/components"; let value: LoginDto = { - email: "Micheal_Sporer@yahoo.com", + idUser: "", + email: "Micheal.Little@yahoo.com", passwordHash: "", }; ``` @@ -15,6 +16,6 @@ let value: LoginDto = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `idUser` | *string* | :heavy_minus_sign: | N/A | +| `idUser` | *string* | :heavy_check_mark: | N/A | | `email` | *string* | :heavy_check_mark: | N/A | | `passwordHash` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/ownertype.md b/docs/models/components/ownertype.md index 46927de7..30b21f57 100644 --- a/docs/models/components/ownertype.md +++ b/docs/models/components/ownertype.md @@ -7,7 +7,7 @@ The owner type of an email ```typescript import { OwnerType } from "@panora/sdk/models/components"; -let value: OwnerType = OwnerType.Company; +let value: OwnerType = OwnerType.Contact; ``` ## Values diff --git a/docs/models/components/passthroughrequestdto.md b/docs/models/components/passthroughrequestdto.md index 48ab33f1..d0f0fcb7 100644 --- a/docs/models/components/passthroughrequestdto.md +++ b/docs/models/components/passthroughrequestdto.md @@ -7,7 +7,14 @@ import { PassThroughRequestDto, PassThroughRequestDtoMethod } from "@panora/sdk/ let value: PassThroughRequestDto = { method: PassThroughRequestDtoMethod.Post, - path: "/usr/X11R6", + path: "/usr/lib", + data: {}, + requestFormat: { + "key": "", + }, + overrideBaseUrl: { + "key": "", + }, }; ``` @@ -17,7 +24,6 @@ let value: PassThroughRequestDto = { | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `method` | [components.PassThroughRequestDtoMethod](../../models/components/passthroughrequestdtomethod.md) | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.Data](../../models/components/data.md) | :heavy_minus_sign: | N/A | -| `requestFormat` | *components.RequestFormat* | :heavy_minus_sign: | N/A | -| `overrideBaseUrl` | Record | :heavy_minus_sign: | N/A | -| `headers` | [components.Headers](../../models/components/headers.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `data` | [components.Data](../../models/components/data.md) | :heavy_check_mark: | N/A | +| `requestFormat` | *components.RequestFormat* | :heavy_check_mark: | N/A | +| `overrideBaseUrl` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/phone.md b/docs/models/components/phone.md index 10af9a86..a85667f4 100644 --- a/docs/models/components/phone.md +++ b/docs/models/components/phone.md @@ -6,7 +6,7 @@ import { Phone } from "@panora/sdk/models/components"; let value: Phone = { - phoneNumber: "434.885.4539 x80306", + phoneNumber: "1-937-659-0008 x78974", phoneType: "", }; ``` diff --git a/docs/models/components/projectresponse.md b/docs/models/components/projectresponse.md index e856f9a0..c0156302 100644 --- a/docs/models/components/projectresponse.md +++ b/docs/models/components/projectresponse.md @@ -23,7 +23,7 @@ let value: ProjectResponse = { | `idProject` | *string* | :heavy_check_mark: | Unique identifier for the project | 123e4567-e89b-12d3-a456-426614174000 | | `name` | *string* | :heavy_check_mark: | Name of the project | My Project | | `syncMode` | *string* | :heavy_check_mark: | Synchronization mode of the project | automatic | -| `pullFrequency` | *number* | :heavy_minus_sign: | Frequency of pulling data in seconds | 3600 | -| `redirectUrl` | *string* | :heavy_minus_sign: | Redirect URL for the project | https://example.com/redirect | +| `pullFrequency` | *number* | :heavy_check_mark: | Frequency of pulling data in seconds | 3600 | +| `redirectUrl` | *string* | :heavy_check_mark: | Redirect URL for the project | https://example.com/redirect | | `idUser` | *string* | :heavy_check_mark: | User ID associated with the project | 123e4567-e89b-12d3-a456-426614174001 | | `idConnectorSet` | *string* | :heavy_check_mark: | Connector set ID associated with the project | 123e4567-e89b-12d3-a456-426614174002 | \ No newline at end of file diff --git a/docs/models/components/remotedata.md b/docs/models/components/remotedata.md index 701c1894..33d135d3 100644 --- a/docs/models/components/remotedata.md +++ b/docs/models/components/remotedata.md @@ -1,6 +1,6 @@ # RemoteData -The remote data of the bank info in the context of the 3rd Party +The remote data of the account in the context of the 3rd Party ## Example Usage diff --git a/docs/models/components/requestformat.md b/docs/models/components/requestformat.md index 5854db42..78f169f5 100644 --- a/docs/models/components/requestformat.md +++ b/docs/models/components/requestformat.md @@ -1,26 +1,23 @@ # RequestFormat -## Example Usage - -```typescript -import { RequestFormat } from "@panora/sdk/models/components"; - -let value: RequestFormat = { - "key": "", -}; -``` ## Supported Types ### `{ [k: string]: any }` ```typescript -const value: { [k: string]: any } = /* values here */ +const value: { [k: string]: any } = { + "key": "", +}; ``` ### `{ [k: string]: any }[]` ```typescript -const value: { [k: string]: any }[] = /* values here */ +const value: { [k: string]: any }[] = [ + { + "key": "", + }, +]; ``` diff --git a/docs/models/components/tags.md b/docs/models/components/tags.md index be061b82..4899e35c 100644 --- a/docs/models/components/tags.md +++ b/docs/models/components/tags.md @@ -1,11 +1,18 @@ # Tags -## Example Usage + +## Supported Types + +### `string` ```typescript -import { Tags } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: Tags = { +### `components.UnifiedTicketingTagOutput` + +```typescript +const value: components.UnifiedTicketingTagOutput = { name: "urgent_tag", fieldMappings: { "fav_dish": "broccoli", @@ -22,17 +29,3 @@ let value: Tags = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedTicketingTagOutput` - -```typescript -const value: components.UnifiedTicketingTagOutput = /* values here */ -``` - diff --git a/docs/models/components/taxitem.md b/docs/models/components/taxitem.md deleted file mode 100644 index b3c1b408..00000000 --- a/docs/models/components/taxitem.md +++ /dev/null @@ -1,21 +0,0 @@ -# TaxItem - -## Example Usage - -```typescript -import { TaxItem } from "@panora/sdk/models/components"; - -let value: TaxItem = { - name: "Federal Income Tax", - amount: 250, - employerTax: true, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `name` | *string* | :heavy_minus_sign: | The name of the tax | Federal Income Tax | -| `amount` | *number* | :heavy_minus_sign: | The amount of the tax | 250 | -| `employerTax` | *boolean* | :heavy_minus_sign: | Indicates if this is an employer tax | true | \ No newline at end of file diff --git a/docs/models/components/unifiedaccountingaccountoutput.md b/docs/models/components/unifiedaccountingaccountoutput.md index 9eaad4be..d0e1f46b 100644 --- a/docs/models/components/unifiedaccountingaccountoutput.md +++ b/docs/models/components/unifiedaccountingaccountoutput.md @@ -27,21 +27,21 @@ let value: UnifiedAccountingAccountOutput = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the account | Cash | -| `description` | *string* | :heavy_minus_sign: | A description of the account | Main cash account for daily operations | -| `classification` | *string* | :heavy_minus_sign: | The classification of the account | Asset | -| `type` | *string* | :heavy_minus_sign: | The type of the account | Current Asset | -| `status` | *string* | :heavy_minus_sign: | The status of the account | Active | -| `currentBalance` | *number* | :heavy_minus_sign: | The current balance of the account | 10000 | -| `currency` | *string* | :heavy_minus_sign: | The currency of the account | USD | -| `accountNumber` | *string* | :heavy_minus_sign: | The account number | 1000 | -| `parentAccount` | *string* | :heavy_minus_sign: | The UUID of the parent account | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `companyInfoId` | *string* | :heavy_minus_sign: | The UUID of the associated company info | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedAccountingAccountOutputFieldMappings](../../models/components/unifiedaccountingaccountoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the account record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the account in the context of the 3rd Party | account_1234 | -| `remoteData` | [components.UnifiedAccountingAccountOutputRemoteData](../../models/components/unifiedaccountingaccountoutputremotedata.md) | :heavy_minus_sign: | The remote data of the account in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the account record | 2024-06-15T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the account record | 2024-06-15T12:00:00Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_minus_sign: | The name of the account | Cash | +| `description` | *string* | :heavy_minus_sign: | A description of the account | Main cash account for daily operations | +| `classification` | *string* | :heavy_minus_sign: | The classification of the account | Asset | +| `type` | *string* | :heavy_minus_sign: | The type of the account | Current Asset | +| `status` | *string* | :heavy_minus_sign: | The status of the account | Active | +| `currentBalance` | *number* | :heavy_minus_sign: | The current balance of the account | 10000 | +| `currency` | *string* | :heavy_minus_sign: | The currency of the account | USD | +| `accountNumber` | *string* | :heavy_minus_sign: | The account number | 1000 | +| `parentAccount` | *string* | :heavy_minus_sign: | The UUID of the parent account | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | +| `companyInfoId` | *string* | :heavy_minus_sign: | The UUID of the associated company info | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | +| `fieldMappings` | [components.FieldMappings](../../models/components/fieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | +| `id` | *string* | :heavy_minus_sign: | The UUID of the account record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | +| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the account in the context of the 3rd Party | account_1234 | +| `remoteData` | [components.RemoteData](../../models/components/remotedata.md) | :heavy_minus_sign: | The remote data of the account in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the account record | 2024-06-15T12:00:00Z | +| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the account record | 2024-06-15T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedaccountingaccountoutputfieldmappings.md b/docs/models/components/unifiedaccountingaccountoutputfieldmappings.md deleted file mode 100644 index 7530b45a..00000000 --- a/docs/models/components/unifiedaccountingaccountoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedAccountingAccountOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedAccountingAccountOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedAccountingAccountOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedaccountingaccountoutputremotedata.md b/docs/models/components/unifiedaccountingaccountoutputremotedata.md deleted file mode 100644 index 274aa0e3..00000000 --- a/docs/models/components/unifiedaccountingaccountoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedAccountingAccountOutputRemoteData - -The remote data of the account in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedAccountingAccountOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedAccountingAccountOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedatsactivityinput.md b/docs/models/components/unifiedatsactivityinput.md deleted file mode 100644 index cec7fb2a..00000000 --- a/docs/models/components/unifiedatsactivityinput.md +++ /dev/null @@ -1,32 +0,0 @@ -# UnifiedAtsActivityInput - -## Example Usage - -```typescript -import { UnifiedAtsActivityInput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsActivityInput = { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `activityType` | *string* | :heavy_minus_sign: | The type of activity. NOTE, EMAIL or OTHER | NOTE | -| `subject` | *string* | :heavy_minus_sign: | The subject of the activity | Email subject | -| `body` | *string* | :heavy_minus_sign: | The body of the activity | Dear Diana, I love you | -| `visibility` | *string* | :heavy_minus_sign: | The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE | PUBLIC | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the activity | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedatsactivityoutput.md b/docs/models/components/unifiedatsactivityoutput.md deleted file mode 100644 index cb02aae0..00000000 --- a/docs/models/components/unifiedatsactivityoutput.md +++ /dev/null @@ -1,45 +0,0 @@ -# UnifiedAtsActivityOutput - -## Example Usage - -```typescript -import { UnifiedAtsActivityOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsActivityOutput = { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `activityType` | *string* | :heavy_minus_sign: | The type of activity. NOTE, EMAIL or OTHER | NOTE | -| `subject` | *string* | :heavy_minus_sign: | The subject of the activity | Email subject | -| `body` | *string* | :heavy_minus_sign: | The body of the activity | Dear Diana, I love you | -| `visibility` | *string* | :heavy_minus_sign: | The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE | PUBLIC | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the activity | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the activity | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the activity in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the activity in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsapplicationinput.md b/docs/models/components/unifiedatsapplicationinput.md deleted file mode 100644 index c893a3f4..00000000 --- a/docs/models/components/unifiedatsapplicationinput.md +++ /dev/null @@ -1,41 +0,0 @@ -# UnifiedAtsApplicationInput - -## Example Usage - -```typescript -import { UnifiedAtsApplicationInput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsApplicationInput = { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `appliedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The application date | 2024-10-01T12:00:00Z | -| `rejectedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The rejection date | 2024-10-01T12:00:00Z | -| `offers` | *string*[] | :heavy_minus_sign: | The offers UUIDs for the application | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"12345678-1234-1234-1234-123456789012"
] | -| `source` | *string* | :heavy_minus_sign: | The source of the application | Source Name | -| `creditedTo` | *string* | :heavy_minus_sign: | The UUID of the person credited for the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `currentStage` | *string* | :heavy_minus_sign: | The UUID of the current stage of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `rejectReason` | *string* | :heavy_minus_sign: | The rejection reason for the application | Candidate not experienced enough | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `jobId` | *string* | :heavy_minus_sign: | The UUID of the job | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedatsapplicationoutput.md b/docs/models/components/unifiedatsapplicationoutput.md deleted file mode 100644 index f1620b88..00000000 --- a/docs/models/components/unifiedatsapplicationoutput.md +++ /dev/null @@ -1,56 +0,0 @@ -# UnifiedAtsApplicationOutput - -## Example Usage - -```typescript -import { UnifiedAtsApplicationOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsApplicationOutput = { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `appliedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The application date | 2024-10-01T12:00:00Z | -| `rejectedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The rejection date | 2024-10-01T12:00:00Z | -| `offers` | *string*[] | :heavy_minus_sign: | The offers UUIDs for the application | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"12345678-1234-1234-1234-123456789012"
] | -| `source` | *string* | :heavy_minus_sign: | The source of the application | Source Name | -| `creditedTo` | *string* | :heavy_minus_sign: | The UUID of the person credited for the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `currentStage` | *string* | :heavy_minus_sign: | The UUID of the current stage of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `rejectReason` | *string* | :heavy_minus_sign: | The rejection reason for the application | Candidate not experienced enough | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `jobId` | *string* | :heavy_minus_sign: | The UUID of the job | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the application in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the application in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote created date of the object | | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modified date of the object | | \ No newline at end of file diff --git a/docs/models/components/unifiedatsattachmentinput.md b/docs/models/components/unifiedatsattachmentinput.md deleted file mode 100644 index d8facb89..00000000 --- a/docs/models/components/unifiedatsattachmentinput.md +++ /dev/null @@ -1,32 +0,0 @@ -# UnifiedAtsAttachmentInput - -## Example Usage - -```typescript -import { UnifiedAtsAttachmentInput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsAttachmentInput = { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `fileUrl` | *string* | :heavy_minus_sign: | The URL of the file | https://example.com/file.pdf | -| `fileName` | *string* | :heavy_minus_sign: | The name of the file | file.pdf | -| `attachmentType` | *string* | :heavy_minus_sign: | The type of the file | RESUME | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the attachment | 2024-10-01T12:00:00Z | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the attachment | 2024-10-01T12:00:00Z | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedatsattachmentoutput.md b/docs/models/components/unifiedatsattachmentoutput.md deleted file mode 100644 index d5a3f0fc..00000000 --- a/docs/models/components/unifiedatsattachmentoutput.md +++ /dev/null @@ -1,45 +0,0 @@ -# UnifiedAtsAttachmentOutput - -## Example Usage - -```typescript -import { UnifiedAtsAttachmentOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsAttachmentOutput = { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `fileUrl` | *string* | :heavy_minus_sign: | The URL of the file | https://example.com/file.pdf | -| `fileName` | *string* | :heavy_minus_sign: | The name of the file | file.pdf | -| `attachmentType` | *string* | :heavy_minus_sign: | The type of the file | RESUME | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the attachment | 2024-10-01T12:00:00Z | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the attachment | 2024-10-01T12:00:00Z | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the attachment | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the attachment | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the attachment in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatscandidateinput.md b/docs/models/components/unifiedatscandidateinput.md deleted file mode 100644 index 36faa2d9..00000000 --- a/docs/models/components/unifiedatscandidateinput.md +++ /dev/null @@ -1,74 +0,0 @@ -# UnifiedAtsCandidateInput - -## Example Usage - -```typescript -import { UnifiedAtsCandidateInput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateInput = { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the candidate | Joe | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the candidate | Doe | -| `company` | *string* | :heavy_minus_sign: | The company of the candidate | Acme | -| `title` | *string* | :heavy_minus_sign: | The title of the candidate | Analyst | -| `locations` | *string* | :heavy_minus_sign: | The locations of the candidate | New York | -| `isPrivate` | *boolean* | :heavy_minus_sign: | Whether the candidate is private | false | -| `emailReachable` | *boolean* | :heavy_minus_sign: | Whether the candidate is reachable by email | true | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the candidate | 2024-10-01T12:00:00Z | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the candidate | 2024-10-01T12:00:00Z | -| `lastInteractionAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last interaction date with the candidate | 2024-10-01T12:00:00Z | -| `attachments` | *components.UnifiedAtsCandidateInputAttachments*[] | :heavy_minus_sign: | The attachments UUIDs of the candidate | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `applications` | *components.UnifiedAtsCandidateInputApplications*[] | :heavy_minus_sign: | The applications UUIDs of the candidate | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `tags` | *components.UnifiedAtsCandidateInputTags*[] | :heavy_minus_sign: | The tags of the candidate | [
"tag_1",
"tag_2"
] | -| `urls` | [components.Url](../../models/components/url.md)[] | :heavy_minus_sign: | The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER | [
{
"url": "mywebsite.com",
"url_type": "WEBSITE"
}
] | -| `phoneNumbers` | [components.Phone](../../models/components/phone.md)[] | :heavy_minus_sign: | The phone numbers of the candidate | [
{
"phone_number": "+33660688899",
"phone_type": "WORK"
}
] | -| `emailAddresses` | [components.Email](../../models/components/email.md)[] | :heavy_minus_sign: | The email addresses of the candidate | [
{
"email_address": "joedoe@gmail.com",
"email_address_type": "WORK"
}
] | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedatscandidateinputapplications.md b/docs/models/components/unifiedatscandidateinputapplications.md deleted file mode 100644 index f8ae5d53..00000000 --- a/docs/models/components/unifiedatscandidateinputapplications.md +++ /dev/null @@ -1,24 +0,0 @@ -# UnifiedAtsCandidateInputApplications - -## Example Usage - -```typescript -import { UnifiedAtsCandidateInputApplications } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateInputApplications = ""; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsApplicationOutput` - -```typescript -const value: components.UnifiedAtsApplicationOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedatscandidateinputattachments.md b/docs/models/components/unifiedatscandidateinputattachments.md deleted file mode 100644 index 45d96752..00000000 --- a/docs/models/components/unifiedatscandidateinputattachments.md +++ /dev/null @@ -1,24 +0,0 @@ -# UnifiedAtsCandidateInputAttachments - -## Example Usage - -```typescript -import { UnifiedAtsCandidateInputAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateInputAttachments = ""; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsAttachmentOutput` - -```typescript -const value: components.UnifiedAtsAttachmentOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedatscandidateinputtags.md b/docs/models/components/unifiedatscandidateinputtags.md deleted file mode 100644 index 2cc47f65..00000000 --- a/docs/models/components/unifiedatscandidateinputtags.md +++ /dev/null @@ -1,24 +0,0 @@ -# UnifiedAtsCandidateInputTags - -## Example Usage - -```typescript -import { UnifiedAtsCandidateInputTags } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateInputTags = ""; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsTagOutput` - -```typescript -const value: components.UnifiedAtsTagOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedatscandidateoutput.md b/docs/models/components/unifiedatscandidateoutput.md deleted file mode 100644 index 0e652b25..00000000 --- a/docs/models/components/unifiedatscandidateoutput.md +++ /dev/null @@ -1,87 +0,0 @@ -# UnifiedAtsCandidateOutput - -## Example Usage - -```typescript -import { UnifiedAtsCandidateOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateOutput = { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the candidate | Joe | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the candidate | Doe | -| `company` | *string* | :heavy_minus_sign: | The company of the candidate | Acme | -| `title` | *string* | :heavy_minus_sign: | The title of the candidate | Analyst | -| `locations` | *string* | :heavy_minus_sign: | The locations of the candidate | New York | -| `isPrivate` | *boolean* | :heavy_minus_sign: | Whether the candidate is private | false | -| `emailReachable` | *boolean* | :heavy_minus_sign: | Whether the candidate is reachable by email | true | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the candidate | 2024-10-01T12:00:00Z | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the candidate | 2024-10-01T12:00:00Z | -| `lastInteractionAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last interaction date with the candidate | 2024-10-01T12:00:00Z | -| `attachments` | *components.UnifiedAtsCandidateOutputAttachments*[] | :heavy_minus_sign: | The attachments UUIDs of the candidate | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `applications` | *components.Applications*[] | :heavy_minus_sign: | The applications UUIDs of the candidate | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `tags` | *components.UnifiedAtsCandidateOutputTags*[] | :heavy_minus_sign: | The tags of the candidate | [
"tag_1",
"tag_2"
] | -| `urls` | [components.Url](../../models/components/url.md)[] | :heavy_minus_sign: | The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER | [
{
"url": "mywebsite.com",
"url_type": "WEBSITE"
}
] | -| `phoneNumbers` | [components.Phone](../../models/components/phone.md)[] | :heavy_minus_sign: | The phone numbers of the candidate | [
{
"phone_number": "+33660688899",
"phone_type": "WORK"
}
] | -| `emailAddresses` | [components.Email](../../models/components/email.md)[] | :heavy_minus_sign: | The email addresses of the candidate | [
{
"email_address": "joedoe@gmail.com",
"email_address_type": "WORK"
}
] | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The id of the candidate in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the candidate in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatscandidateoutputattachments.md b/docs/models/components/unifiedatscandidateoutputattachments.md deleted file mode 100644 index e1187a31..00000000 --- a/docs/models/components/unifiedatscandidateoutputattachments.md +++ /dev/null @@ -1,24 +0,0 @@ -# UnifiedAtsCandidateOutputAttachments - -## Example Usage - -```typescript -import { UnifiedAtsCandidateOutputAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateOutputAttachments = ""; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsAttachmentOutput` - -```typescript -const value: components.UnifiedAtsAttachmentOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedatscandidateoutputtags.md b/docs/models/components/unifiedatscandidateoutputtags.md deleted file mode 100644 index 04ae0d5e..00000000 --- a/docs/models/components/unifiedatscandidateoutputtags.md +++ /dev/null @@ -1,39 +0,0 @@ -# UnifiedAtsCandidateOutputTags - -## Example Usage - -```typescript -import { UnifiedAtsCandidateOutputTags } from "@panora/sdk/models/components"; - -let value: UnifiedAtsCandidateOutputTags = { - name: "Important", - idAtsCandidate: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedAtsTagOutput` - -```typescript -const value: components.UnifiedAtsTagOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedatsdepartmentoutput.md b/docs/models/components/unifiedatsdepartmentoutput.md deleted file mode 100644 index d7ed5a9a..00000000 --- a/docs/models/components/unifiedatsdepartmentoutput.md +++ /dev/null @@ -1,36 +0,0 @@ -# UnifiedAtsDepartmentOutput - -## Example Usage - -```typescript -import { UnifiedAtsDepartmentOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsDepartmentOutput = { - name: "Sales", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the department | Sales | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the department | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the department in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the department in the context of the 3rd Party | {
"key1": "value1",
"key2": 42,
"key3": true
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2023-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatseeocsoutput.md b/docs/models/components/unifiedatseeocsoutput.md deleted file mode 100644 index c1fc90f5..00000000 --- a/docs/models/components/unifiedatseeocsoutput.md +++ /dev/null @@ -1,45 +0,0 @@ -# UnifiedAtsEeocsOutput - -## Example Usage - -```typescript -import { UnifiedAtsEeocsOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsEeocsOutput = { - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - submittedAt: new Date("2024-10-01T12:00:00Z"), - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteranStatus: "I_AM_NOT_A_PROTECTED_VETERAN", - disabilityStatus: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `candidateId` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `submittedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The submission date of the EEOC | 2024-10-01T12:00:00Z | -| `race` | *string* | :heavy_minus_sign: | The race of the candidate | AMERICAN_INDIAN_OR_ALASKAN_NATIVE | -| `gender` | *string* | :heavy_minus_sign: | The gender of the candidate | MALE | -| `veteranStatus` | *string* | :heavy_minus_sign: | The veteran status of the candidate | I_AM_NOT_A_PROTECTED_VETERAN | -| `disabilityStatus` | *string* | :heavy_minus_sign: | The disability status of the candidate | YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the EEOC | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the EEOC in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the EEOC in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsinterviewinput.md b/docs/models/components/unifiedatsinterviewinput.md deleted file mode 100644 index fb15bb88..00000000 --- a/docs/models/components/unifiedatsinterviewinput.md +++ /dev/null @@ -1,42 +0,0 @@ -# UnifiedAtsInterviewInput - -## Example Usage - -```typescript -import { UnifiedAtsInterviewInput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsInterviewInput = { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `status` | *string* | :heavy_minus_sign: | The status of the interview | SCHEDULED | -| `applicationId` | *string* | :heavy_minus_sign: | The UUID of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `jobInterviewStageId` | *string* | :heavy_minus_sign: | The UUID of the job interview stage | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `organizedBy` | *string* | :heavy_minus_sign: | The UUID of the organizer | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `interviewers` | *string*[] | :heavy_minus_sign: | The UUIDs of the interviewers | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `location` | *string* | :heavy_minus_sign: | The location of the interview | San Francisco | -| `startAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date and time of the interview | 2024-10-01T12:00:00Z | -| `endAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date and time of the interview | 2024-10-01T12:00:00Z | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the interview | 2024-10-01T12:00:00Z | -| `remoteUpdatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the interview | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedatsinterviewoutput.md b/docs/models/components/unifiedatsinterviewoutput.md deleted file mode 100644 index 57d1f272..00000000 --- a/docs/models/components/unifiedatsinterviewoutput.md +++ /dev/null @@ -1,55 +0,0 @@ -# UnifiedAtsInterviewOutput - -## Example Usage - -```typescript -import { UnifiedAtsInterviewOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsInterviewOutput = { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `status` | *string* | :heavy_minus_sign: | The status of the interview | SCHEDULED | -| `applicationId` | *string* | :heavy_minus_sign: | The UUID of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `jobInterviewStageId` | *string* | :heavy_minus_sign: | The UUID of the job interview stage | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `organizedBy` | *string* | :heavy_minus_sign: | The UUID of the organizer | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `interviewers` | *string*[] | :heavy_minus_sign: | The UUIDs of the interviewers | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `location` | *string* | :heavy_minus_sign: | The location of the interview | San Francisco | -| `startAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date and time of the interview | 2024-10-01T12:00:00Z | -| `endAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date and time of the interview | 2024-10-01T12:00:00Z | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the interview | 2024-10-01T12:00:00Z | -| `remoteUpdatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the interview | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the interview | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the interview in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the interview in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsjobinterviewstageoutput.md b/docs/models/components/unifiedatsjobinterviewstageoutput.md deleted file mode 100644 index fafed92f..00000000 --- a/docs/models/components/unifiedatsjobinterviewstageoutput.md +++ /dev/null @@ -1,39 +0,0 @@ -# UnifiedAtsJobinterviewstageOutput - -## Example Usage - -```typescript -import { UnifiedAtsJobinterviewstageOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsJobinterviewstageOutput = { - name: "Second Call", - stageOrder: 1, - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the job interview stage | Second Call | -| `stageOrder` | *number* | :heavy_minus_sign: | The order of the stage | 1 | -| `jobId` | *string* | :heavy_minus_sign: | The UUID of the job | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the job interview stage | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the job interview stage in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the job interview stage in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsjoboutput.md b/docs/models/components/unifiedatsjoboutput.md deleted file mode 100644 index d3f57d69..00000000 --- a/docs/models/components/unifiedatsjoboutput.md +++ /dev/null @@ -1,66 +0,0 @@ -# UnifiedAtsJobOutput - -## Example Usage - -```typescript -import { UnifiedAtsJobOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsJobOutput = { - name: "Financial Analyst", - description: "Extract financial data and write detailed investment thesis", - code: "JOB123", - status: "OPEN", - type: "POSTING", - confidential: true, - departments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - offices: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - managers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - recruiters: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the job | Financial Analyst | -| `description` | *string* | :heavy_minus_sign: | The description of the job | Extract financial data and write detailed investment thesis | -| `code` | *string* | :heavy_minus_sign: | The code of the job | JOB123 | -| `status` | *string* | :heavy_minus_sign: | The status of the job | OPEN | -| `type` | *string* | :heavy_minus_sign: | The type of the job | POSTING | -| `confidential` | *boolean* | :heavy_minus_sign: | Whether the job is confidential | true | -| `departments` | *string*[] | :heavy_minus_sign: | The departments UUIDs associated with the job | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `offices` | *string*[] | :heavy_minus_sign: | The offices UUIDs associated with the job | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `managers` | *string*[] | :heavy_minus_sign: | The managers UUIDs associated with the job | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `recruiters` | *string*[] | :heavy_minus_sign: | The recruiters UUIDs associated with the job | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the job | 2024-10-01T12:00:00Z | -| `remoteUpdatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the job | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the job | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the job in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the job in the context of the 3rd Party | {
"key1": "value1",
"key2": 42,
"key3": true
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2023-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsofferoutput.md b/docs/models/components/unifiedatsofferoutput.md deleted file mode 100644 index 20758e97..00000000 --- a/docs/models/components/unifiedatsofferoutput.md +++ /dev/null @@ -1,47 +0,0 @@ -# UnifiedAtsOfferOutput - -## Example Usage - -```typescript -import { UnifiedAtsOfferOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsOfferOutput = { - createdBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - closedAt: new Date("2024-10-01T12:00:00Z"), - sentAt: new Date("2024-10-01T12:00:00Z"), - startDate: new Date("2024-10-01T12:00:00Z"), - status: "DRAFT", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: {}, - modifiedAt: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `createdBy` | *string* | :heavy_minus_sign: | The UUID of the creator | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the offer | 2024-10-01T12:00:00Z | -| `closedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The closing date of the offer | 2024-10-01T12:00:00Z | -| `sentAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The sending date of the offer | 2024-10-01T12:00:00Z | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the offer | 2024-10-01T12:00:00Z | -| `status` | *string* | :heavy_minus_sign: | The status of the offer | DRAFT | -| `applicationId` | *string* | :heavy_minus_sign: | The UUID of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the offer | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the offer in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the offer in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [components.UnifiedAtsOfferOutputCreatedAt](../../models/components/unifiedatsofferoutputcreatedat.md) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [components.UnifiedAtsOfferOutputModifiedAt](../../models/components/unifiedatsofferoutputmodifiedat.md) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsofferoutputcreatedat.md b/docs/models/components/unifiedatsofferoutputcreatedat.md deleted file mode 100644 index 1111b5c0..00000000 --- a/docs/models/components/unifiedatsofferoutputcreatedat.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedAtsOfferOutputCreatedAt - -The created date of the object - -## Example Usage - -```typescript -import { UnifiedAtsOfferOutputCreatedAt } from "@panora/sdk/models/components"; - -let value: UnifiedAtsOfferOutputCreatedAt = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedatsofferoutputmodifiedat.md b/docs/models/components/unifiedatsofferoutputmodifiedat.md deleted file mode 100644 index 6e3a53ea..00000000 --- a/docs/models/components/unifiedatsofferoutputmodifiedat.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedAtsOfferOutputModifiedAt - -The modified date of the object - -## Example Usage - -```typescript -import { UnifiedAtsOfferOutputModifiedAt } from "@panora/sdk/models/components"; - -let value: UnifiedAtsOfferOutputModifiedAt = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedatsofficeoutput.md b/docs/models/components/unifiedatsofficeoutput.md deleted file mode 100644 index 63906dce..00000000 --- a/docs/models/components/unifiedatsofficeoutput.md +++ /dev/null @@ -1,37 +0,0 @@ -# UnifiedAtsOfficeOutput - -## Example Usage - -```typescript -import { UnifiedAtsOfficeOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsOfficeOutput = { - name: "Condo Office 5th", - location: "New York", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the office | Condo Office 5th | -| `location` | *string* | :heavy_minus_sign: | The location of the office | New York | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the office | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the office in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the office in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsrejectreasonoutput.md b/docs/models/components/unifiedatsrejectreasonoutput.md deleted file mode 100644 index 8431d6bc..00000000 --- a/docs/models/components/unifiedatsrejectreasonoutput.md +++ /dev/null @@ -1,35 +0,0 @@ -# UnifiedAtsRejectreasonOutput - -## Example Usage - -```typescript -import { UnifiedAtsRejectreasonOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsRejectreasonOutput = { - name: "Candidate inexperienced", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the reject reason | Candidate inexperienced | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the reject reason | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the reject reason in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the reject reason in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsscorecardoutput.md b/docs/models/components/unifiedatsscorecardoutput.md deleted file mode 100644 index 84b6a897..00000000 --- a/docs/models/components/unifiedatsscorecardoutput.md +++ /dev/null @@ -1,43 +0,0 @@ -# UnifiedAtsScorecardOutput - -## Example Usage - -```typescript -import { UnifiedAtsScorecardOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsScorecardOutput = { - overallRecommendation: "YES", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - submittedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `overallRecommendation` | *string* | :heavy_minus_sign: | The overall recommendation | YES | -| `applicationId` | *string* | :heavy_minus_sign: | The UUID of the application | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `interviewId` | *string* | :heavy_minus_sign: | The UUID of the interview | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the scorecard | 2024-10-01T12:00:00Z | -| `submittedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The submission date of the scorecard | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the scorecard | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the scorecard in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the scorecard in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatstagoutput.md b/docs/models/components/unifiedatstagoutput.md deleted file mode 100644 index 893abc2a..00000000 --- a/docs/models/components/unifiedatstagoutput.md +++ /dev/null @@ -1,37 +0,0 @@ -# UnifiedAtsTagOutput - -## Example Usage - -```typescript -import { UnifiedAtsTagOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsTagOutput = { - name: "Important", - idAtsCandidate: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the tag | Important | -| `idAtsCandidate` | *string* | :heavy_minus_sign: | The UUID of the candidate | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the tag | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the tag in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the tag in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The creation date of the tag | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modification date of the tag | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedatsuseroutput.md b/docs/models/components/unifiedatsuseroutput.md deleted file mode 100644 index cb349abc..00000000 --- a/docs/models/components/unifiedatsuseroutput.md +++ /dev/null @@ -1,47 +0,0 @@ -# UnifiedAtsUserOutput - -## Example Usage - -```typescript -import { UnifiedAtsUserOutput } from "@panora/sdk/models/components"; - -let value: UnifiedAtsUserOutput = { - firstName: "John", - lastName: "Doe", - email: "john.doe@example.com", - disabled: false, - accessRole: "ADMIN", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the user | John | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the user | Doe | -| `email` | *string* | :heavy_minus_sign: | The email of the user | john.doe@example.com | -| `disabled` | *boolean* | :heavy_minus_sign: | Whether the user is disabled | false | -| `accessRole` | *string* | :heavy_minus_sign: | The access role of the user | ADMIN | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote creation date of the user | 2024-10-01T12:00:00Z | -| `remoteModifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The remote modification date of the user | 2024-10-01T12:00:00Z | -| `fieldMappings` | Record | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the user | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the user in the context of the 3rd Party | id_1 | -| `remoteData` | Record | :heavy_minus_sign: | The remote data of the user in the context of the 3rd Party | {
"fav_dish": "broccoli",
"fav_color": "red"
} | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the object | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The modified date of the object | 2024-10-01T12:00:00Z | \ No newline at end of file diff --git a/docs/models/components/unifiedcrmcontactinput.md b/docs/models/components/unifiedcrmcontactinput.md index d6fd41c5..6675c2c7 100644 --- a/docs/models/components/unifiedcrmcontactinput.md +++ b/docs/models/components/unifiedcrmcontactinput.md @@ -10,13 +10,13 @@ let value: UnifiedCrmContactInput = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Christy.Ryan21@gmail.com", + emailAddress: "Caroline.Fritsch24@gmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "(303) 616-2639 x9643", + phoneNumber: "(711) 480-8094", phoneType: "", }, ], diff --git a/docs/models/components/unifiedcrmcontactoutput.md b/docs/models/components/unifiedcrmcontactoutput.md index be57b3ac..6140c6e9 100644 --- a/docs/models/components/unifiedcrmcontactoutput.md +++ b/docs/models/components/unifiedcrmcontactoutput.md @@ -10,13 +10,13 @@ let value: UnifiedCrmContactOutput = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Wilford_Krajcik46@hotmail.com", + emailAddress: "Jacky_Auer@hotmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "861-765-1597 x5144", + phoneNumber: "734.706.6213 x35491", phoneType: "", }, ], diff --git a/docs/models/components/unifiedhrisbankinfooutput.md b/docs/models/components/unifiedhrisbankinfooutput.md deleted file mode 100644 index 428b8934..00000000 --- a/docs/models/components/unifiedhrisbankinfooutput.md +++ /dev/null @@ -1,41 +0,0 @@ -# UnifiedHrisBankinfoOutput - -## Example Usage - -```typescript -import { UnifiedHrisBankinfoOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisBankinfoOutput = { - accountType: "CHECKING", - bankName: "Bank of America", - accountNumber: "1234567890", - routingNumber: "021000021", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `accountType` | *string* | :heavy_minus_sign: | The type of the bank account | CHECKING | -| `bankName` | *string* | :heavy_minus_sign: | The name of the bank | Bank of America | -| `accountNumber` | *string* | :heavy_minus_sign: | The account number | 1234567890 | -| `routingNumber` | *string* | :heavy_minus_sign: | The routing number of the bank | 021000021 | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.FieldMappings](../../models/components/fieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_check_mark: | The UUID of the bank info record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the bank info in the context of the 3rd Party | id_1 | -| `remoteData` | [components.RemoteData](../../models/components/remotedata.md) | :heavy_minus_sign: | The remote data of the bank info in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the bank info was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The created date of the bank info record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The last modified date of the bank info record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_check_mark: | Indicates if the bank info was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisbenefitoutput.md b/docs/models/components/unifiedhrisbenefitoutput.md deleted file mode 100644 index 7609b8aa..00000000 --- a/docs/models/components/unifiedhrisbenefitoutput.md +++ /dev/null @@ -1,45 +0,0 @@ -# UnifiedHrisBenefitOutput - -## Example Usage - -```typescript -import { UnifiedHrisBenefitOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisBenefitOutput = { - providerName: "Health Insurance Provider", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeContribution: 100, - companyContribution: 200, - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-12-31T23:59:59Z"), - employerBenefitId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `providerName` | *string* | :heavy_minus_sign: | The name of the benefit provider | Health Insurance Provider | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `employeeContribution` | *number* | :heavy_minus_sign: | The employee contribution amount | 100 | -| `companyContribution` | *number* | :heavy_minus_sign: | The company contribution amount | 200 | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the benefit | 2024-01-01T00:00:00Z | -| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date of the benefit | 2024-12-31T23:59:59Z | -| `employerBenefitId` | *string* | :heavy_minus_sign: | The UUID of the associated employer benefit | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisBenefitOutputFieldMappings](../../models/components/unifiedhrisbenefitoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the benefit record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the benefit in the context of the 3rd Party | benefit_1234 | -| `remoteData` | [components.UnifiedHrisBenefitOutputRemoteData](../../models/components/unifiedhrisbenefitoutputremotedata.md) | :heavy_minus_sign: | The remote data of the benefit in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the benefit was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the benefit record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the benefit record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the benefit was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisbenefitoutputfieldmappings.md b/docs/models/components/unifiedhrisbenefitoutputfieldmappings.md deleted file mode 100644 index 0ead0f0e..00000000 --- a/docs/models/components/unifiedhrisbenefitoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisBenefitOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisBenefitOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisBenefitOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisbenefitoutputremotedata.md b/docs/models/components/unifiedhrisbenefitoutputremotedata.md deleted file mode 100644 index 444382e7..00000000 --- a/docs/models/components/unifiedhrisbenefitoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisBenefitOutputRemoteData - -The remote data of the benefit in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisBenefitOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisBenefitOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhriscompanyoutput.md b/docs/models/components/unifiedhriscompanyoutput.md deleted file mode 100644 index fcbe5879..00000000 --- a/docs/models/components/unifiedhriscompanyoutput.md +++ /dev/null @@ -1,44 +0,0 @@ -# UnifiedHrisCompanyOutput - -## Example Usage - -```typescript -import { UnifiedHrisCompanyOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisCompanyOutput = { - legalName: "Acme Corporation", - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - displayName: "Acme Corp", - eins: [ - "12-3456789", - "98-7654321", - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "company_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `legalName` | *string* | :heavy_minus_sign: | The legal name of the company | Acme Corporation | -| `locations` | *string*[] | :heavy_minus_sign: | UUIDs of the of the Location associated with the company | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `displayName` | *string* | :heavy_minus_sign: | The display name of the company | Acme Corp | -| `eins` | *string*[] | :heavy_minus_sign: | The Employer Identification Numbers (EINs) of the company | [
"12-3456789",
"98-7654321"
] | -| `fieldMappings` | [components.UnifiedHrisCompanyOutputFieldMappings](../../models/components/unifiedhriscompanyoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the company record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the company in the context of the 3rd Party | company_1234 | -| `remoteData` | [components.UnifiedHrisCompanyOutputRemoteData](../../models/components/unifiedhriscompanyoutputremotedata.md) | :heavy_minus_sign: | The remote data of the company in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the company was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the company record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the company record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the company was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhriscompanyoutputfieldmappings.md b/docs/models/components/unifiedhriscompanyoutputfieldmappings.md deleted file mode 100644 index 47930175..00000000 --- a/docs/models/components/unifiedhriscompanyoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisCompanyOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisCompanyOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisCompanyOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhriscompanyoutputremotedata.md b/docs/models/components/unifiedhriscompanyoutputremotedata.md deleted file mode 100644 index cbdedeac..00000000 --- a/docs/models/components/unifiedhriscompanyoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisCompanyOutputRemoteData - -The remote data of the company in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisCompanyOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisCompanyOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisdependentoutput.md b/docs/models/components/unifiedhrisdependentoutput.md deleted file mode 100644 index 0ec93601..00000000 --- a/docs/models/components/unifiedhrisdependentoutput.md +++ /dev/null @@ -1,53 +0,0 @@ -# UnifiedHrisDependentOutput - -## Example Usage - -```typescript -import { UnifiedHrisDependentOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisDependentOutput = { - firstName: "John", - lastName: "Doe", - middleName: "Michael", - relationship: "CHILD", - dateOfBirth: new Date("2020-01-01"), - gender: "MALE", - phoneNumber: "+1234567890", - homeLocation: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - isStudent: true, - ssn: "123-45-6789", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "dependent_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the dependent | John | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the dependent | Doe | -| `middleName` | *string* | :heavy_minus_sign: | The middle name of the dependent | Michael | -| `relationship` | *string* | :heavy_minus_sign: | The relationship of the dependent to the employee | CHILD | -| `dateOfBirth` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date of birth of the dependent | 2020-01-01 | -| `gender` | *string* | :heavy_minus_sign: | The gender of the dependent | MALE | -| `phoneNumber` | *string* | :heavy_minus_sign: | The phone number of the dependent | +1234567890 | -| `homeLocation` | *string* | :heavy_minus_sign: | The UUID of the home location | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `isStudent` | *boolean* | :heavy_minus_sign: | Indicates if the dependent is a student | true | -| `ssn` | *string* | :heavy_minus_sign: | The Social Security Number of the dependent | 123-45-6789 | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisDependentOutputFieldMappings](../../models/components/unifiedhrisdependentoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the dependent record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the dependent in the context of the 3rd Party | dependent_1234 | -| `remoteData` | [components.UnifiedHrisDependentOutputRemoteData](../../models/components/unifiedhrisdependentoutputremotedata.md) | :heavy_minus_sign: | The remote data of the dependent in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the dependent was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the dependent record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the dependent record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the dependent was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisdependentoutputfieldmappings.md b/docs/models/components/unifiedhrisdependentoutputfieldmappings.md deleted file mode 100644 index c5397c75..00000000 --- a/docs/models/components/unifiedhrisdependentoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisDependentOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisDependentOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisDependentOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisdependentoutputremotedata.md b/docs/models/components/unifiedhrisdependentoutputremotedata.md deleted file mode 100644 index c05cd26d..00000000 --- a/docs/models/components/unifiedhrisdependentoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisDependentOutputRemoteData - -The remote data of the dependent in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisDependentOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisDependentOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeeinput.md b/docs/models/components/unifiedhrisemployeeinput.md deleted file mode 100644 index 6698fb4c..00000000 --- a/docs/models/components/unifiedhrisemployeeinput.md +++ /dev/null @@ -1,71 +0,0 @@ -# UnifiedHrisEmployeeInput - -## Example Usage - -```typescript -import { UnifiedHrisEmployeeInput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeeInput = { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `groups` | *string*[] | :heavy_minus_sign: | The groups the employee belongs to | [
"Group1",
"Group2"
] | -| `locations` | *string*[] | :heavy_minus_sign: | UUIDs of the of the Location associated with the company | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `employeeNumber` | *string* | :heavy_minus_sign: | The employee number | EMP001 | -| `companyId` | *string* | :heavy_minus_sign: | The UUID of the associated company | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the employee | John | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the employee | Doe | -| `preferredName` | *string* | :heavy_minus_sign: | The preferred name of the employee | Johnny | -| `displayFullName` | *string* | :heavy_minus_sign: | The full display name of the employee | John Doe | -| `username` | *string* | :heavy_minus_sign: | The username of the employee | johndoe | -| `workEmail` | *string* | :heavy_minus_sign: | The work email of the employee | john.doe@company.com | -| `personalEmail` | *string* | :heavy_minus_sign: | The personal email of the employee | john.doe@personal.com | -| `mobilePhoneNumber` | *string* | :heavy_minus_sign: | The mobile phone number of the employee | +1234567890 | -| `employments` | *string*[] | :heavy_minus_sign: | The employments of the employee | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `ssn` | *string* | :heavy_minus_sign: | The Social Security Number of the employee | 123-45-6789 | -| `gender` | *string* | :heavy_minus_sign: | The gender of the employee | MALE | -| `ethnicity` | *string* | :heavy_minus_sign: | The ethnicity of the employee | AMERICAN_INDIAN_OR_ALASKA_NATIVE | -| `maritalStatus` | *string* | :heavy_minus_sign: | The marital status of the employee | Married | -| `dateOfBirth` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date of birth of the employee | 1990-01-01 | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the employee | 2020-01-01 | -| `employmentStatus` | *string* | :heavy_minus_sign: | The employment status of the employee | ACTIVE | -| `terminationDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The termination date of the employee | 2025-01-01 | -| `avatarUrl` | *string* | :heavy_minus_sign: | The URL of the employee's avatar | https://example.com/avatar.jpg | -| `managerId` | *string* | :heavy_minus_sign: | UUID of the manager (employee) of the employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisEmployeeInputFieldMappings](../../models/components/unifiedhrisemployeeinputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeeinputfieldmappings.md b/docs/models/components/unifiedhrisemployeeinputfieldmappings.md deleted file mode 100644 index b861f559..00000000 --- a/docs/models/components/unifiedhrisemployeeinputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployeeInputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisEmployeeInputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeeInputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeeoutput.md b/docs/models/components/unifiedhrisemployeeoutput.md deleted file mode 100644 index bd61c8a5..00000000 --- a/docs/models/components/unifiedhrisemployeeoutput.md +++ /dev/null @@ -1,85 +0,0 @@ -# UnifiedHrisEmployeeOutput - -## Example Usage - -```typescript -import { UnifiedHrisEmployeeOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeeOutput = { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employee_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `groups` | *string*[] | :heavy_minus_sign: | The groups the employee belongs to | [
"Group1",
"Group2"
] | -| `locations` | *string*[] | :heavy_minus_sign: | UUIDs of the of the Location associated with the company | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `employeeNumber` | *string* | :heavy_minus_sign: | The employee number | EMP001 | -| `companyId` | *string* | :heavy_minus_sign: | The UUID of the associated company | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `firstName` | *string* | :heavy_minus_sign: | The first name of the employee | John | -| `lastName` | *string* | :heavy_minus_sign: | The last name of the employee | Doe | -| `preferredName` | *string* | :heavy_minus_sign: | The preferred name of the employee | Johnny | -| `displayFullName` | *string* | :heavy_minus_sign: | The full display name of the employee | John Doe | -| `username` | *string* | :heavy_minus_sign: | The username of the employee | johndoe | -| `workEmail` | *string* | :heavy_minus_sign: | The work email of the employee | john.doe@company.com | -| `personalEmail` | *string* | :heavy_minus_sign: | The personal email of the employee | john.doe@personal.com | -| `mobilePhoneNumber` | *string* | :heavy_minus_sign: | The mobile phone number of the employee | +1234567890 | -| `employments` | *string*[] | :heavy_minus_sign: | The employments of the employee | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | -| `ssn` | *string* | :heavy_minus_sign: | The Social Security Number of the employee | 123-45-6789 | -| `gender` | *string* | :heavy_minus_sign: | The gender of the employee | MALE | -| `ethnicity` | *string* | :heavy_minus_sign: | The ethnicity of the employee | AMERICAN_INDIAN_OR_ALASKA_NATIVE | -| `maritalStatus` | *string* | :heavy_minus_sign: | The marital status of the employee | Married | -| `dateOfBirth` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date of birth of the employee | 1990-01-01 | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the employee | 2020-01-01 | -| `employmentStatus` | *string* | :heavy_minus_sign: | The employment status of the employee | ACTIVE | -| `terminationDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The termination date of the employee | 2025-01-01 | -| `avatarUrl` | *string* | :heavy_minus_sign: | The URL of the employee's avatar | https://example.com/avatar.jpg | -| `managerId` | *string* | :heavy_minus_sign: | UUID of the manager (employee) of the employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisEmployeeOutputFieldMappings](../../models/components/unifiedhrisemployeeoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the employee record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the employee in the context of the 3rd Party | employee_1234 | -| `remoteData` | [components.UnifiedHrisEmployeeOutputRemoteData](../../models/components/unifiedhrisemployeeoutputremotedata.md) | :heavy_minus_sign: | The remote data of the employee in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the employee was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the employee record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the employee record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the employee was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeeoutputfieldmappings.md b/docs/models/components/unifiedhrisemployeeoutputfieldmappings.md deleted file mode 100644 index 39bdda1b..00000000 --- a/docs/models/components/unifiedhrisemployeeoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployeeOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisEmployeeOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeeOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeeoutputremotedata.md b/docs/models/components/unifiedhrisemployeeoutputremotedata.md deleted file mode 100644 index eeab45dd..00000000 --- a/docs/models/components/unifiedhrisemployeeoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployeeOutputRemoteData - -The remote data of the employee in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisEmployeeOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeeOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeepayrollrunoutput.md b/docs/models/components/unifiedhrisemployeepayrollrunoutput.md deleted file mode 100644 index 242f8f76..00000000 --- a/docs/models/components/unifiedhrisemployeepayrollrunoutput.md +++ /dev/null @@ -1,68 +0,0 @@ -# UnifiedHrisEmployeepayrollrunOutput - -## Example Usage - -```typescript -import { UnifiedHrisEmployeepayrollrunOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeepayrollrunOutput = { - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - payrollRunId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - grossPay: 5000, - netPay: 4000, - startDate: new Date("2023-01-01T00:00:00Z"), - endDate: new Date("2023-01-15T23:59:59Z"), - checkDate: new Date("2023-01-20T00:00:00Z"), - deductions: [ - { - name: "Health Insurance", - employeeDeduction: 100, - companyDeduction: 200, - }, - ], - earnings: [ - { - amount: 1000, - type: "Salary", - }, - ], - taxes: [ - { - name: "Federal Income Tax", - amount: 250, - employerTax: true, - }, - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `payrollRunId` | *string* | :heavy_minus_sign: | The UUID of the associated payroll run | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `grossPay` | *number* | :heavy_minus_sign: | The gross pay amount | 5000 | -| `netPay` | *number* | :heavy_minus_sign: | The net pay amount | 4000 | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the pay period | 2023-01-01T00:00:00Z | -| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date of the pay period | 2023-01-15T23:59:59Z | -| `checkDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date the check was issued | 2023-01-20T00:00:00Z | -| `deductions` | [components.DeductionItem](../../models/components/deductionitem.md)[] | :heavy_minus_sign: | The list of deductions for this payroll run | | -| `earnings` | [components.EarningItem](../../models/components/earningitem.md)[] | :heavy_minus_sign: | The list of earnings for this payroll run | | -| `taxes` | [components.TaxItem](../../models/components/taxitem.md)[] | :heavy_minus_sign: | The list of taxes for this payroll run | | -| `fieldMappings` | [components.UnifiedHrisEmployeepayrollrunOutputFieldMappings](../../models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the employee payroll run record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the employee payroll run in the context of the 3rd Party | payroll_run_1234 | -| `remoteData` | [components.UnifiedHrisEmployeepayrollrunOutputRemoteData](../../models/components/unifiedhrisemployeepayrollrunoutputremotedata.md) | :heavy_minus_sign: | The remote data of the employee payroll run in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the employee payroll run was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the employee payroll run record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the employee payroll run record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the employee payroll run was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md b/docs/models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md deleted file mode 100644 index 317dcefb..00000000 --- a/docs/models/components/unifiedhrisemployeepayrollrunoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployeepayrollrunOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisEmployeepayrollrunOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeepayrollrunOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployeepayrollrunoutputremotedata.md b/docs/models/components/unifiedhrisemployeepayrollrunoutputremotedata.md deleted file mode 100644 index ade2187b..00000000 --- a/docs/models/components/unifiedhrisemployeepayrollrunoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployeepayrollrunOutputRemoteData - -The remote data of the employee payroll run in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisEmployeepayrollrunOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployeepayrollrunOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployerbenefitoutput.md b/docs/models/components/unifiedhrisemployerbenefitoutput.md deleted file mode 100644 index c5167cce..00000000 --- a/docs/models/components/unifiedhrisemployerbenefitoutput.md +++ /dev/null @@ -1,39 +0,0 @@ -# UnifiedHrisEmployerbenefitOutput - -## Example Usage - -```typescript -import { UnifiedHrisEmployerbenefitOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployerbenefitOutput = { - benefitPlanType: "Health Insurance", - name: "Company Health Plan", - description: "Comprehensive health insurance coverage for employees", - deductionCode: "HEALTH-001", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `benefitPlanType` | *string* | :heavy_minus_sign: | The type of the benefit plan | Health Insurance | -| `name` | *string* | :heavy_minus_sign: | The name of the employer benefit | Company Health Plan | -| `description` | *string* | :heavy_minus_sign: | The description of the employer benefit | Comprehensive health insurance coverage for employees | -| `deductionCode` | *string* | :heavy_minus_sign: | The deduction code for the employer benefit | HEALTH-001 | -| `fieldMappings` | [components.UnifiedHrisEmployerbenefitOutputFieldMappings](../../models/components/unifiedhrisemployerbenefitoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the employer benefit record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the employer benefit in the context of the 3rd Party | benefit_1234 | -| `remoteData` | [components.UnifiedHrisEmployerbenefitOutputRemoteData](../../models/components/unifiedhrisemployerbenefitoutputremotedata.md) | :heavy_minus_sign: | The remote data of the employer benefit in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the employer benefit was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the employer benefit record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the employer benefit record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the employer benefit was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployerbenefitoutputfieldmappings.md b/docs/models/components/unifiedhrisemployerbenefitoutputfieldmappings.md deleted file mode 100644 index 2384f968..00000000 --- a/docs/models/components/unifiedhrisemployerbenefitoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployerbenefitOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisEmployerbenefitOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployerbenefitOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemployerbenefitoutputremotedata.md b/docs/models/components/unifiedhrisemployerbenefitoutputremotedata.md deleted file mode 100644 index 3e2d73c7..00000000 --- a/docs/models/components/unifiedhrisemployerbenefitoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmployerbenefitOutputRemoteData - -The remote data of the employer benefit in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisEmployerbenefitOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmployerbenefitOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemploymentoutput.md b/docs/models/components/unifiedhrisemploymentoutput.md deleted file mode 100644 index de8f673e..00000000 --- a/docs/models/components/unifiedhrisemploymentoutput.md +++ /dev/null @@ -1,51 +0,0 @@ -# UnifiedHrisEmploymentOutput - -## Example Usage - -```typescript -import { UnifiedHrisEmploymentOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmploymentOutput = { - jobTitle: "Software Engineer", - payRate: 100000, - payPeriod: "MONTHLY", - payFrequency: "WEEKLY", - payCurrency: "USD", - flsaStatus: "EXEMPT", - effectiveDate: new Date("2023-01-01"), - employmentType: "FULL_TIME", - payGroupId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employment_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `jobTitle` | *string* | :heavy_minus_sign: | The job title of the employment | Software Engineer | -| `payRate` | *number* | :heavy_minus_sign: | The pay rate of the employment | 100000 | -| `payPeriod` | *string* | :heavy_minus_sign: | The pay period of the employment | MONTHLY | -| `payFrequency` | *string* | :heavy_minus_sign: | The pay frequency of the employment | WEEKLY | -| `payCurrency` | *string* | :heavy_minus_sign: | The currency of the pay | USD | -| `flsaStatus` | *string* | :heavy_minus_sign: | The FLSA status of the employment | EXEMPT | -| `effectiveDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The effective date of the employment | 2023-01-01 | -| `employmentType` | *string* | :heavy_minus_sign: | The type of employment | FULL_TIME | -| `payGroupId` | *string* | :heavy_minus_sign: | The UUID of the associated pay group | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisEmploymentOutputFieldMappings](../../models/components/unifiedhrisemploymentoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the employment record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the employment in the context of the 3rd Party | employment_1234 | -| `remoteData` | [components.UnifiedHrisEmploymentOutputRemoteData](../../models/components/unifiedhrisemploymentoutputremotedata.md) | :heavy_minus_sign: | The remote data of the employment in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the employment was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the employment record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the employment record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the employment was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemploymentoutputfieldmappings.md b/docs/models/components/unifiedhrisemploymentoutputfieldmappings.md deleted file mode 100644 index 996e323e..00000000 --- a/docs/models/components/unifiedhrisemploymentoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmploymentOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisEmploymentOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmploymentOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisemploymentoutputremotedata.md b/docs/models/components/unifiedhrisemploymentoutputremotedata.md deleted file mode 100644 index 144323b9..00000000 --- a/docs/models/components/unifiedhrisemploymentoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisEmploymentOutputRemoteData - -The remote data of the employment in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisEmploymentOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisEmploymentOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisgroupoutput.md b/docs/models/components/unifiedhrisgroupoutput.md deleted file mode 100644 index aa711cbc..00000000 --- a/docs/models/components/unifiedhrisgroupoutput.md +++ /dev/null @@ -1,37 +0,0 @@ -# UnifiedHrisGroupOutput - -## Example Usage - -```typescript -import { UnifiedHrisGroupOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisGroupOutput = { - parentGroup: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - name: "Engineering Team", - type: "DEPARTMENT", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "group_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `parentGroup` | *string* | :heavy_minus_sign: | The UUID of the parent group | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `name` | *string* | :heavy_minus_sign: | The name of the group | Engineering Team | -| `type` | *string* | :heavy_minus_sign: | The type of the group | DEPARTMENT | -| `fieldMappings` | [components.UnifiedHrisGroupOutputFieldMappings](../../models/components/unifiedhrisgroupoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the group record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the group in the context of the 3rd Party | group_1234 | -| `remoteData` | [components.UnifiedHrisGroupOutputRemoteData](../../models/components/unifiedhrisgroupoutputremotedata.md) | :heavy_minus_sign: | The remote data of the group in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the group was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the group record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the group record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the group was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisgroupoutputfieldmappings.md b/docs/models/components/unifiedhrisgroupoutputfieldmappings.md deleted file mode 100644 index 88a9326f..00000000 --- a/docs/models/components/unifiedhrisgroupoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisGroupOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisGroupOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisGroupOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrisgroupoutputremotedata.md b/docs/models/components/unifiedhrisgroupoutputremotedata.md deleted file mode 100644 index ae60dbc9..00000000 --- a/docs/models/components/unifiedhrisgroupoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisGroupOutputRemoteData - -The remote data of the group in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisGroupOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisGroupOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrislocationoutput.md b/docs/models/components/unifiedhrislocationoutput.md deleted file mode 100644 index a15e5ff8..00000000 --- a/docs/models/components/unifiedhrislocationoutput.md +++ /dev/null @@ -1,53 +0,0 @@ -# UnifiedHrisLocationOutput - -## Example Usage - -```typescript -import { UnifiedHrisLocationOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisLocationOutput = { - name: "Headquarters", - phoneNumber: "+1234567890", - street1: "123 Main St", - street2: "Suite 456", - city: "San Francisco", - state: "CA", - zipCode: "94105", - country: "USA", - locationType: "WORK", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "location_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The name of the location | Headquarters | -| `phoneNumber` | *string* | :heavy_minus_sign: | The phone number of the location | +1234567890 | -| `street1` | *string* | :heavy_minus_sign: | The first line of the street address | 123 Main St | -| `street2` | *string* | :heavy_minus_sign: | The second line of the street address | Suite 456 | -| `city` | *string* | :heavy_minus_sign: | The city of the location | San Francisco | -| `state` | *string* | :heavy_minus_sign: | The state or region of the location | CA | -| `zipCode` | *string* | :heavy_minus_sign: | The zip or postal code of the location | 94105 | -| `country` | *string* | :heavy_minus_sign: | The country of the location | USA | -| `locationType` | *string* | :heavy_minus_sign: | The type of the location | WORK | -| `companyId` | *string* | :heavy_minus_sign: | The UUID of the company associated with the location | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the employee associated with the location | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `fieldMappings` | [components.UnifiedHrisLocationOutputFieldMappings](../../models/components/unifiedhrislocationoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the location record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the location in the context of the 3rd Party | location_1234 | -| `remoteData` | [components.UnifiedHrisLocationOutputRemoteData](../../models/components/unifiedhrislocationoutputremotedata.md) | :heavy_minus_sign: | The remote data of the location in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the location was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the location record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the location record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the location was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrislocationoutputfieldmappings.md b/docs/models/components/unifiedhrislocationoutputfieldmappings.md deleted file mode 100644 index 3493c7fe..00000000 --- a/docs/models/components/unifiedhrislocationoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisLocationOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisLocationOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisLocationOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrislocationoutputremotedata.md b/docs/models/components/unifiedhrislocationoutputremotedata.md deleted file mode 100644 index 8eac5feb..00000000 --- a/docs/models/components/unifiedhrislocationoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisLocationOutputRemoteData - -The remote data of the location in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisLocationOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisLocationOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispaygroupoutput.md b/docs/models/components/unifiedhrispaygroupoutput.md deleted file mode 100644 index f03d18ae..00000000 --- a/docs/models/components/unifiedhrispaygroupoutput.md +++ /dev/null @@ -1,33 +0,0 @@ -# UnifiedHrisPaygroupOutput - -## Example Usage - -```typescript -import { UnifiedHrisPaygroupOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPaygroupOutput = { - payGroupName: "Monthly Salaried", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "paygroup_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `payGroupName` | *string* | :heavy_minus_sign: | The name of the pay group | Monthly Salaried | -| `fieldMappings` | [components.UnifiedHrisPaygroupOutputFieldMappings](../../models/components/unifiedhrispaygroupoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the pay group record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the pay group in the context of the 3rd Party | paygroup_1234 | -| `remoteData` | [components.UnifiedHrisPaygroupOutputRemoteData](../../models/components/unifiedhrispaygroupoutputremotedata.md) | :heavy_minus_sign: | The remote data of the pay group in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the pay group was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the pay group record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the pay group record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the pay group was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispaygroupoutputfieldmappings.md b/docs/models/components/unifiedhrispaygroupoutputfieldmappings.md deleted file mode 100644 index 20736715..00000000 --- a/docs/models/components/unifiedhrispaygroupoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisPaygroupOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisPaygroupOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPaygroupOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispaygroupoutputremotedata.md b/docs/models/components/unifiedhrispaygroupoutputremotedata.md deleted file mode 100644 index f33c2186..00000000 --- a/docs/models/components/unifiedhrispaygroupoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisPaygroupOutputRemoteData - -The remote data of the pay group in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisPaygroupOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPaygroupOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispayrollrunoutput.md b/docs/models/components/unifiedhrispayrollrunoutput.md deleted file mode 100644 index c47b4253..00000000 --- a/docs/models/components/unifiedhrispayrollrunoutput.md +++ /dev/null @@ -1,45 +0,0 @@ -# UnifiedHrisPayrollrunOutput - -## Example Usage - -```typescript -import { UnifiedHrisPayrollrunOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPayrollrunOutput = { - runState: "PAID", - runType: "REGULAR", - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-01-15T23:59:59Z"), - checkDate: new Date("2024-01-20T00:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - employeePayrollRuns: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `runState` | *string* | :heavy_minus_sign: | The state of the payroll run | PAID | -| `runType` | *string* | :heavy_minus_sign: | The type of the payroll run | REGULAR | -| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start date of the payroll run | 2024-01-01T00:00:00Z | -| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end date of the payroll run | 2024-01-15T23:59:59Z | -| `checkDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The check date of the payroll run | 2024-01-20T00:00:00Z | -| `fieldMappings` | [components.UnifiedHrisPayrollrunOutputFieldMappings](../../models/components/unifiedhrispayrollrunoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the payroll run record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the payroll run in the context of the 3rd Party | payroll_run_1234 | -| `remoteData` | [components.UnifiedHrisPayrollrunOutputRemoteData](../../models/components/unifiedhrispayrollrunoutputremotedata.md) | :heavy_minus_sign: | The remote data of the payroll run in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the payroll run was created in the 3rd party system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the payroll run record | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the payroll run record | 2024-10-01T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the payroll run was deleted in the remote system | false | -| `employeePayrollRuns` | *string*[] | :heavy_minus_sign: | The UUIDs of the employee payroll runs associated with this payroll run | [
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
] | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispayrollrunoutputfieldmappings.md b/docs/models/components/unifiedhrispayrollrunoutputfieldmappings.md deleted file mode 100644 index 22f44465..00000000 --- a/docs/models/components/unifiedhrispayrollrunoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisPayrollrunOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisPayrollrunOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPayrollrunOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhrispayrollrunoutputremotedata.md b/docs/models/components/unifiedhrispayrollrunoutputremotedata.md deleted file mode 100644 index babd97b8..00000000 --- a/docs/models/components/unifiedhrispayrollrunoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisPayrollrunOutputRemoteData - -The remote data of the payroll run in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisPayrollrunOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisPayrollrunOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffbalanceoutput.md b/docs/models/components/unifiedhristimeoffbalanceoutput.md deleted file mode 100644 index c9024d34..00000000 --- a/docs/models/components/unifiedhristimeoffbalanceoutput.md +++ /dev/null @@ -1,39 +0,0 @@ -# UnifiedHrisTimeoffbalanceOutput - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffbalanceOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffbalanceOutput = { - balance: 80, - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - used: 40, - policyType: "VACATION", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_balance_1234", - remoteData: {}, - remoteCreatedAt: "2024-06-15T12:00:00Z", - createdAt: "2024-06-15T12:00:00Z", - modifiedAt: "2024-06-15T12:00:00Z", - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `balance` | *number* | :heavy_minus_sign: | The current balance of time off | 80 | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `used` | *number* | :heavy_minus_sign: | The amount of time off used | 40 | -| `policyType` | *string* | :heavy_minus_sign: | The type of time off policy | VACATION | -| `fieldMappings` | [components.UnifiedHrisTimeoffbalanceOutputFieldMappings](../../models/components/unifiedhristimeoffbalanceoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the time off balance record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the time off balance in the context of the 3rd Party | timeoff_balance_1234 | -| `remoteData` | [components.UnifiedHrisTimeoffbalanceOutputRemoteData](../../models/components/unifiedhristimeoffbalanceoutputremotedata.md) | :heavy_minus_sign: | The remote data of the time off balance in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | *string* | :heavy_minus_sign: | The date when the time off balance was created in the 3rd party system | 2024-06-15T12:00:00Z | -| `createdAt` | *string* | :heavy_minus_sign: | The created date of the time off balance record | 2024-06-15T12:00:00Z | -| `modifiedAt` | *string* | :heavy_minus_sign: | The last modified date of the time off balance record | 2024-06-15T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the time off balance was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffbalanceoutputfieldmappings.md b/docs/models/components/unifiedhristimeoffbalanceoutputfieldmappings.md deleted file mode 100644 index 0f1e9612..00000000 --- a/docs/models/components/unifiedhristimeoffbalanceoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimeoffbalanceOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffbalanceOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffbalanceOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffbalanceoutputremotedata.md b/docs/models/components/unifiedhristimeoffbalanceoutputremotedata.md deleted file mode 100644 index 1acba284..00000000 --- a/docs/models/components/unifiedhristimeoffbalanceoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimeoffbalanceOutputRemoteData - -The remote data of the time off balance in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffbalanceOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffbalanceOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffinput.md b/docs/models/components/unifiedhristimeoffinput.md deleted file mode 100644 index 3f99c0a0..00000000 --- a/docs/models/components/unifiedhristimeoffinput.md +++ /dev/null @@ -1,35 +0,0 @@ -# UnifiedHrisTimeoffInput - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffInput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffInput = { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `employee` | *string* | :heavy_minus_sign: | The UUID of the employee taking time off | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `approver` | *string* | :heavy_minus_sign: | The UUID of the approver for the time off request | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `status` | *string* | :heavy_minus_sign: | The status of the time off request | REQUESTED | -| `employeeNote` | *string* | :heavy_minus_sign: | A note from the employee about the time off request | Annual vacation | -| `units` | *string* | :heavy_minus_sign: | The units used for the time off (e.g., Days, Hours) | DAYS | -| `amount` | *number* | :heavy_minus_sign: | The amount of time off requested | 5 | -| `requestType` | *string* | :heavy_minus_sign: | The type of time off request | VACATION | -| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the time off | 2024-07-01T09:00:00Z | -| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the time off | 2024-07-05T17:00:00Z | -| `fieldMappings` | [components.UnifiedHrisTimeoffInputFieldMappings](../../models/components/unifiedhristimeoffinputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffinputfieldmappings.md b/docs/models/components/unifiedhristimeoffinputfieldmappings.md deleted file mode 100644 index d64e72cf..00000000 --- a/docs/models/components/unifiedhristimeoffinputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimeoffInputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffInputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffInputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffoutput.md b/docs/models/components/unifiedhristimeoffoutput.md deleted file mode 100644 index 86b357b7..00000000 --- a/docs/models/components/unifiedhristimeoffoutput.md +++ /dev/null @@ -1,49 +0,0 @@ -# UnifiedHrisTimeoffOutput - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffOutput = { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-06-15T12:00:00Z"), - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - remoteWasDeleted: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `employee` | *string* | :heavy_minus_sign: | The UUID of the employee taking time off | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `approver` | *string* | :heavy_minus_sign: | The UUID of the approver for the time off request | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `status` | *string* | :heavy_minus_sign: | The status of the time off request | REQUESTED | -| `employeeNote` | *string* | :heavy_minus_sign: | A note from the employee about the time off request | Annual vacation | -| `units` | *string* | :heavy_minus_sign: | The units used for the time off (e.g., Days, Hours) | DAYS | -| `amount` | *number* | :heavy_minus_sign: | The amount of time off requested | 5 | -| `requestType` | *string* | :heavy_minus_sign: | The type of time off request | VACATION | -| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the time off | 2024-07-01T09:00:00Z | -| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the time off | 2024-07-05T17:00:00Z | -| `fieldMappings` | [components.UnifiedHrisTimeoffOutputFieldMappings](../../models/components/unifiedhristimeoffoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the time off record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the time off in the context of the 3rd Party | timeoff_1234 | -| `remoteData` | [components.UnifiedHrisTimeoffOutputRemoteData](../../models/components/unifiedhristimeoffoutputremotedata.md) | :heavy_minus_sign: | The remote data of the time off in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the time off was created in the 3rd party system | 2024-06-15T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the time off record | 2024-06-15T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the time off record | 2024-06-15T12:00:00Z | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the time off was deleted in the remote system | false | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffoutputfieldmappings.md b/docs/models/components/unifiedhristimeoffoutputfieldmappings.md deleted file mode 100644 index 7b0bef42..00000000 --- a/docs/models/components/unifiedhristimeoffoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimeoffOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimeoffoutputremotedata.md b/docs/models/components/unifiedhristimeoffoutputremotedata.md deleted file mode 100644 index b5c2faf1..00000000 --- a/docs/models/components/unifiedhristimeoffoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimeoffOutputRemoteData - -The remote data of the time off in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisTimeoffOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimeoffOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimesheetentryinput.md b/docs/models/components/unifiedhristimesheetentryinput.md deleted file mode 100644 index e9057a6b..00000000 --- a/docs/models/components/unifiedhristimesheetentryinput.md +++ /dev/null @@ -1,27 +0,0 @@ -# UnifiedHrisTimesheetEntryInput - -## Example Usage - -```typescript -import { UnifiedHrisTimesheetEntryInput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimesheetEntryInput = { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `hoursWorked` | *number* | :heavy_minus_sign: | The number of hours worked | 40 | -| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the timesheet entry | 2024-10-01T08:00:00Z | -| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the timesheet entry | 2024-10-01T16:00:00Z | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the timesheet entry was deleted in the remote system | false | -| `fieldMappings` | [components.UnifiedHrisTimesheetEntryInputFieldMappings](../../models/components/unifiedhristimesheetentryinputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimesheetentryinputfieldmappings.md b/docs/models/components/unifiedhristimesheetentryinputfieldmappings.md deleted file mode 100644 index 40e98127..00000000 --- a/docs/models/components/unifiedhristimesheetentryinputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimesheetEntryInputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisTimesheetEntryInputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimesheetEntryInputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimesheetentryoutput.md b/docs/models/components/unifiedhristimesheetentryoutput.md deleted file mode 100644 index b1b135a0..00000000 --- a/docs/models/components/unifiedhristimesheetentryoutput.md +++ /dev/null @@ -1,39 +0,0 @@ -# UnifiedHrisTimesheetEntryOutput - -## Example Usage - -```typescript -import { UnifiedHrisTimesheetEntryOutput } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimesheetEntryOutput = { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteData: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `hoursWorked` | *number* | :heavy_minus_sign: | The number of hours worked | 40 | -| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the timesheet entry | 2024-10-01T08:00:00Z | -| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the timesheet entry | 2024-10-01T16:00:00Z | -| `employeeId` | *string* | :heavy_minus_sign: | The UUID of the associated employee | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteWasDeleted` | *boolean* | :heavy_minus_sign: | Indicates if the timesheet entry was deleted in the remote system | false | -| `fieldMappings` | [components.UnifiedHrisTimesheetEntryOutputFieldMappings](../../models/components/unifiedhristimesheetentryoutputfieldmappings.md) | :heavy_minus_sign: | The custom field mappings of the object between the remote 3rd party & Panora | {
"custom_field_1": "value1",
"custom_field_2": "value2"
} | -| `id` | *string* | :heavy_minus_sign: | The UUID of the timesheet entry record | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteId` | *string* | :heavy_minus_sign: | The remote ID of the timesheet entry | id_1 | -| `remoteCreatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date when the timesheet entry was created in the remote system | 2024-10-01T12:00:00Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The created date of the timesheet entry | 2024-10-01T12:00:00Z | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The last modified date of the timesheet entry | 2024-10-01T12:00:00Z | -| `remoteData` | [components.UnifiedHrisTimesheetEntryOutputRemoteData](../../models/components/unifiedhristimesheetentryoutputremotedata.md) | :heavy_minus_sign: | The remote data of the timesheet entry in the context of the 3rd Party | {
"raw_data": {
"additional_field": "some value"
}
} | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimesheetentryoutputfieldmappings.md b/docs/models/components/unifiedhristimesheetentryoutputfieldmappings.md deleted file mode 100644 index 2b695c95..00000000 --- a/docs/models/components/unifiedhristimesheetentryoutputfieldmappings.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimesheetEntryOutputFieldMappings - -The custom field mappings of the object between the remote 3rd party & Panora - -## Example Usage - -```typescript -import { UnifiedHrisTimesheetEntryOutputFieldMappings } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimesheetEntryOutputFieldMappings = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedhristimesheetentryoutputremotedata.md b/docs/models/components/unifiedhristimesheetentryoutputremotedata.md deleted file mode 100644 index d4aecbeb..00000000 --- a/docs/models/components/unifiedhristimesheetentryoutputremotedata.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnifiedHrisTimesheetEntryOutputRemoteData - -The remote data of the timesheet entry in the context of the 3rd Party - -## Example Usage - -```typescript -import { UnifiedHrisTimesheetEntryOutputRemoteData } from "@panora/sdk/models/components"; - -let value: UnifiedHrisTimesheetEntryOutputRemoteData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/unifiedticketingcommentinputattachments.md b/docs/models/components/unifiedticketingcommentinputattachments.md index 7f1ef8ee..84cbfca3 100644 --- a/docs/models/components/unifiedticketingcommentinputattachments.md +++ b/docs/models/components/unifiedticketingcommentinputattachments.md @@ -1,24 +1,35 @@ # UnifiedTicketingCommentInputAttachments -## Example Usage - -```typescript -import { UnifiedTicketingCommentInputAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedTicketingCommentInputAttachments = ""; -``` ## Supported Types ### `string` ```typescript -const value: string = /* values here */ +const value: string = ""; ``` ### `components.UnifiedTicketingAttachmentOutput` ```typescript -const value: components.UnifiedTicketingAttachmentOutput = /* values here */ +const value: components.UnifiedTicketingAttachmentOutput = { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "id_1", + remoteData: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + createdAt: new Date("2024-10-01T12:00:00Z"), + modifiedAt: new Date("2024-10-01T12:00:00Z"), +}; ``` diff --git a/docs/models/components/unifiedticketingcommentoutputattachments.md b/docs/models/components/unifiedticketingcommentoutputattachments.md index 4f287989..ad6e5cde 100644 --- a/docs/models/components/unifiedticketingcommentoutputattachments.md +++ b/docs/models/components/unifiedticketingcommentoutputattachments.md @@ -1,11 +1,18 @@ # UnifiedTicketingCommentOutputAttachments -## Example Usage + +## Supported Types + +### `string` ```typescript -import { UnifiedTicketingCommentOutputAttachments } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: UnifiedTicketingCommentOutputAttachments = { +### `components.UnifiedTicketingAttachmentOutput` + +```typescript +const value: components.UnifiedTicketingAttachmentOutput = { fileName: "features_planning.pdf", fileUrl: "https://example.com/features_planning.pdf", uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", @@ -26,17 +33,3 @@ let value: UnifiedTicketingCommentOutputAttachments = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedTicketingAttachmentOutput` - -```typescript -const value: components.UnifiedTicketingAttachmentOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedticketingticketinputattachments.md b/docs/models/components/unifiedticketingticketinputattachments.md index bbdf7677..ebbcd90e 100644 --- a/docs/models/components/unifiedticketingticketinputattachments.md +++ b/docs/models/components/unifiedticketingticketinputattachments.md @@ -1,24 +1,27 @@ # UnifiedTicketingTicketInputAttachments -## Example Usage - -```typescript -import { UnifiedTicketingTicketInputAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedTicketingTicketInputAttachments = ""; -``` ## Supported Types ### `string` ```typescript -const value: string = /* values here */ +const value: string = ""; ``` ### `components.UnifiedTicketingAttachmentInput` ```typescript -const value: components.UnifiedTicketingAttachmentInput = /* values here */ +const value: components.UnifiedTicketingAttachmentInput = { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, +}; ``` diff --git a/docs/models/components/unifiedticketingticketinputcollections.md b/docs/models/components/unifiedticketingticketinputcollections.md index f45cb3fb..acbf4122 100644 --- a/docs/models/components/unifiedticketingticketinputcollections.md +++ b/docs/models/components/unifiedticketingticketinputcollections.md @@ -1,11 +1,18 @@ # UnifiedTicketingTicketInputCollections -## Example Usage + +## Supported Types + +### `string` ```typescript -import { UnifiedTicketingTicketInputCollections } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: UnifiedTicketingTicketInputCollections = { +### `components.UnifiedTicketingCollectionOutput` + +```typescript +const value: components.UnifiedTicketingCollectionOutput = { name: "My Personal Collection", description: "Collect issues", collectionType: "PROJECT", @@ -20,17 +27,3 @@ let value: UnifiedTicketingTicketInputCollections = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedTicketingCollectionOutput` - -```typescript -const value: components.UnifiedTicketingCollectionOutput = /* values here */ -``` - diff --git a/docs/models/components/unifiedticketingticketinputcommentattachments.md b/docs/models/components/unifiedticketingticketinputcommentattachments.md index 03203312..1576d971 100644 --- a/docs/models/components/unifiedticketingticketinputcommentattachments.md +++ b/docs/models/components/unifiedticketingticketinputcommentattachments.md @@ -1,24 +1,35 @@ # UnifiedTicketingTicketInputCommentAttachments -## Example Usage - -```typescript -import { UnifiedTicketingTicketInputCommentAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedTicketingTicketInputCommentAttachments = ""; -``` ## Supported Types ### `string` ```typescript -const value: string = /* values here */ +const value: string = ""; ``` ### `components.UnifiedTicketingAttachmentOutput` ```typescript -const value: components.UnifiedTicketingAttachmentOutput = /* values here */ +const value: components.UnifiedTicketingAttachmentOutput = { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "id_1", + remoteData: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + createdAt: new Date("2024-10-01T12:00:00Z"), + modifiedAt: new Date("2024-10-01T12:00:00Z"), +}; ``` diff --git a/docs/models/components/unifiedticketingticketinputtags.md b/docs/models/components/unifiedticketingticketinputtags.md index 4dd76186..42c4f31a 100644 --- a/docs/models/components/unifiedticketingticketinputtags.md +++ b/docs/models/components/unifiedticketingticketinputtags.md @@ -1,24 +1,31 @@ # UnifiedTicketingTicketInputTags -## Example Usage - -```typescript -import { UnifiedTicketingTicketInputTags } from "@panora/sdk/models/components"; - -let value: UnifiedTicketingTicketInputTags = ""; -``` ## Supported Types ### `string` ```typescript -const value: string = /* values here */ +const value: string = ""; ``` ### `components.UnifiedTicketingTagOutput` ```typescript -const value: components.UnifiedTicketingTagOutput = /* values here */ +const value: components.UnifiedTicketingTagOutput = { + name: "urgent_tag", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "id_1", + remoteData: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + createdAt: new Date("2024-10-01T12:00:00Z"), + modifiedAt: new Date("2024-10-01T12:00:00Z"), +}; ``` diff --git a/docs/models/components/unifiedticketingticketoutputattachments.md b/docs/models/components/unifiedticketingticketoutputattachments.md index 8f9b0ba8..7f26bec1 100644 --- a/docs/models/components/unifiedticketingticketoutputattachments.md +++ b/docs/models/components/unifiedticketingticketoutputattachments.md @@ -1,24 +1,35 @@ # UnifiedTicketingTicketOutputAttachments -## Example Usage - -```typescript -import { UnifiedTicketingTicketOutputAttachments } from "@panora/sdk/models/components"; - -let value: UnifiedTicketingTicketOutputAttachments = ""; -``` ## Supported Types ### `string` ```typescript -const value: string = /* values here */ +const value: string = ""; ``` ### `components.UnifiedTicketingAttachmentOutput` ```typescript -const value: components.UnifiedTicketingAttachmentOutput = /* values here */ +const value: components.UnifiedTicketingAttachmentOutput = { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteId: "id_1", + remoteData: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + createdAt: new Date("2024-10-01T12:00:00Z"), + modifiedAt: new Date("2024-10-01T12:00:00Z"), +}; ``` diff --git a/docs/models/components/updatepullfrequencydto.md b/docs/models/components/updatepullfrequencydto.md index 10c3d153..56756150 100644 --- a/docs/models/components/updatepullfrequencydto.md +++ b/docs/models/components/updatepullfrequencydto.md @@ -7,8 +7,6 @@ import { UpdatePullFrequencyDto } from "@panora/sdk/models/components"; let value: UpdatePullFrequencyDto = { crm: 1800, - ats: 3600, - hris: 7200, accounting: 14400, filestorage: 28800, ecommerce: 43200, @@ -21,8 +19,6 @@ let value: UpdatePullFrequencyDto = { | Field | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | | `crm` | *number* | :heavy_check_mark: | Frequency in seconds | 1800 | -| `ats` | *number* | :heavy_check_mark: | Frequency in seconds | 3600 | -| `hris` | *number* | :heavy_check_mark: | Frequency in seconds | 7200 | | `accounting` | *number* | :heavy_check_mark: | Frequency in seconds | 14400 | | `filestorage` | *number* | :heavy_check_mark: | Frequency in seconds | 28800 | | `ecommerce` | *number* | :heavy_check_mark: | Frequency in seconds | 43200 | diff --git a/docs/models/components/url.md b/docs/models/components/url.md deleted file mode 100644 index 54d1ea1e..00000000 --- a/docs/models/components/url.md +++ /dev/null @@ -1,19 +0,0 @@ -# Url - -## Example Usage - -```typescript -import { Url } from "@panora/sdk/models/components"; - -let value: Url = { - url: "https://prize-plier.biz", - urlType: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `url` | *string* | :heavy_check_mark: | The url. | -| `urlType` | *string* | :heavy_check_mark: | The url type. It takes [WEBSITE \| BLOG \| LINKEDIN \| GITHUB \| OTHER] | \ No newline at end of file diff --git a/docs/models/components/users.md b/docs/models/components/users.md index 630d3de2..98aca6d7 100644 --- a/docs/models/components/users.md +++ b/docs/models/components/users.md @@ -1,11 +1,18 @@ # Users -## Example Usage + +## Supported Types + +### `string` ```typescript -import { Users } from "@panora/sdk/models/components"; +const value: string = ""; +``` -let value: Users = { +### `components.UnifiedFilestorageUserOutput` + +```typescript +const value: components.UnifiedFilestorageUserOutput = { name: "Joe Doe", email: "joe.doe@gmail.com", isMe: true, @@ -24,17 +31,3 @@ let value: Users = { }; ``` -## Supported Types - -### `string` - -```typescript -const value: string = /* values here */ -``` - -### `components.UnifiedFilestorageUserOutput` - -```typescript -const value: components.UnifiedFilestorageUserOutput = /* values here */ -``` - diff --git a/docs/models/components/vertical.md b/docs/models/components/vertical.md index 8223b640..cc378f6c 100644 --- a/docs/models/components/vertical.md +++ b/docs/models/components/vertical.md @@ -13,9 +13,7 @@ let value: Vertical = Vertical.Ticketing; | Name | Value | | --------------------- | --------------------- | | `Ticketing` | ticketing | -| `Ats` | ats | | `Accounting` | accounting | -| `Hris` | hris | | `Crm` | crm | | `Filestorage` | filestorage | | `Ecommerce` | ecommerce | diff --git a/docs/models/components/webhookdto.md b/docs/models/components/webhookdto.md index 804f7e97..46b053cc 100644 --- a/docs/models/components/webhookdto.md +++ b/docs/models/components/webhookdto.md @@ -19,5 +19,5 @@ let value: WebhookDto = { | Field | Type | Required | Description | Example | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | | `url` | *string* | :heavy_check_mark: | The endpoint url of the webhook. | https://acme.com/webhook_receiver | -| `description` | *string* | :heavy_minus_sign: | The description of the webhook. | Webhook to receive connection events | +| `description` | *string* | :heavy_check_mark: | The description of the webhook. | Webhook to receive connection events | | `scope` | *string*[] | :heavy_check_mark: | The events that the webhook listen to. | [
"connection.created"
] | \ No newline at end of file diff --git a/docs/models/operations/createatsactivityrequest.md b/docs/models/operations/createatsactivityrequest.md deleted file mode 100644 index 9d3f6fb9..00000000 --- a/docs/models/operations/createatsactivityrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# CreateAtsActivityRequest - -## Example Usage - -```typescript -import { CreateAtsActivityRequest } from "@panora/sdk/models/operations"; - -let value: CreateAtsActivityRequest = { - xConnectionToken: "", - remoteData: false, - unifiedAtsActivityInput: { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | -| `unifiedAtsActivityInput` | [components.UnifiedAtsActivityInput](../../models/components/unifiedatsactivityinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createatsapplicationrequest.md b/docs/models/operations/createatsapplicationrequest.md deleted file mode 100644 index 707766f2..00000000 --- a/docs/models/operations/createatsapplicationrequest.md +++ /dev/null @@ -1,38 +0,0 @@ -# CreateAtsApplicationRequest - -## Example Usage - -```typescript -import { CreateAtsApplicationRequest } from "@panora/sdk/models/operations"; - -let value: CreateAtsApplicationRequest = { - xConnectionToken: "", - remoteData: false, - unifiedAtsApplicationInput: { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | -| `unifiedAtsApplicationInput` | [components.UnifiedAtsApplicationInput](../../models/components/unifiedatsapplicationinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createatsattachmentrequest.md b/docs/models/operations/createatsattachmentrequest.md deleted file mode 100644 index 3791e192..00000000 --- a/docs/models/operations/createatsattachmentrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# CreateAtsAttachmentRequest - -## Example Usage - -```typescript -import { CreateAtsAttachmentRequest } from "@panora/sdk/models/operations"; - -let value: CreateAtsAttachmentRequest = { - xConnectionToken: "", - remoteData: false, - unifiedAtsAttachmentInput: { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | -| `unifiedAtsAttachmentInput` | [components.UnifiedAtsAttachmentInput](../../models/components/unifiedatsattachmentinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createatscandidaterequest.md b/docs/models/operations/createatscandidaterequest.md deleted file mode 100644 index 041ff729..00000000 --- a/docs/models/operations/createatscandidaterequest.md +++ /dev/null @@ -1,64 +0,0 @@ -# CreateAtsCandidateRequest - -## Example Usage - -```typescript -import { CreateAtsCandidateRequest } from "@panora/sdk/models/operations"; - -let value: CreateAtsCandidateRequest = { - xConnectionToken: "", - remoteData: false, - unifiedAtsCandidateInput: { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | -| `unifiedAtsCandidateInput` | [components.UnifiedAtsCandidateInput](../../models/components/unifiedatscandidateinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createatsinterviewrequest.md b/docs/models/operations/createatsinterviewrequest.md deleted file mode 100644 index a1f8d726..00000000 --- a/docs/models/operations/createatsinterviewrequest.md +++ /dev/null @@ -1,38 +0,0 @@ -# CreateAtsInterviewRequest - -## Example Usage - -```typescript -import { CreateAtsInterviewRequest } from "@panora/sdk/models/operations"; - -let value: CreateAtsInterviewRequest = { - xConnectionToken: "", - remoteData: false, - unifiedAtsInterviewInput: { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | -| `unifiedAtsInterviewInput` | [components.UnifiedAtsInterviewInput](../../models/components/unifiedatsinterviewinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createcrmcontactrequest.md b/docs/models/operations/createcrmcontactrequest.md index 3db8a587..fad185eb 100644 --- a/docs/models/operations/createcrmcontactrequest.md +++ b/docs/models/operations/createcrmcontactrequest.md @@ -13,13 +13,13 @@ let value: CreateCrmContactRequest = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Reid62@yahoo.com", + emailAddress: "Jewell_Nolan-Kassulke1@hotmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "(709) 984-5906 x47004", + phoneNumber: "1-464-325-5566 x4834", phoneType: "", }, ], diff --git a/docs/models/operations/createhrisemployeerequest.md b/docs/models/operations/createhrisemployeerequest.md deleted file mode 100644 index 47aff1b4..00000000 --- a/docs/models/operations/createhrisemployeerequest.md +++ /dev/null @@ -1,53 +0,0 @@ -# CreateHrisEmployeeRequest - -## Example Usage - -```typescript -import { CreateHrisEmployeeRequest } from "@panora/sdk/models/operations"; - -let value: CreateHrisEmployeeRequest = { - xConnectionToken: "", - unifiedHrisEmployeeInput: { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, -}; -``` - -## 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 Hris software. | -| `unifiedHrisEmployeeInput` | [components.UnifiedHrisEmployeeInput](../../models/components/unifiedhrisemployeeinput.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createhristimeoffrequest.md b/docs/models/operations/createhristimeoffrequest.md deleted file mode 100644 index aaa6cde0..00000000 --- a/docs/models/operations/createhristimeoffrequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# CreateHrisTimeoffRequest - -## Example Usage - -```typescript -import { CreateHrisTimeoffRequest } from "@panora/sdk/models/operations"; - -let value: CreateHrisTimeoffRequest = { - xConnectionToken: "", - unifiedHrisTimeoffInput: { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - }, -}; -``` - -## 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 Hris software. | -| `unifiedHrisTimeoffInput` | [components.UnifiedHrisTimeoffInput](../../models/components/unifiedhristimeoffinput.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createhristimesheetentryrequest.md b/docs/models/operations/createhristimesheetentryrequest.md deleted file mode 100644 index 2bcb02ae..00000000 --- a/docs/models/operations/createhristimesheetentryrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# CreateHrisTimesheetentryRequest - -## Example Usage - -```typescript -import { CreateHrisTimesheetentryRequest } from "@panora/sdk/models/operations"; - -let value: CreateHrisTimesheetentryRequest = { - xConnectionToken: "", - unifiedHrisTimesheetEntryInput: { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - }, -}; -``` - -## 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 Hris software. | -| `unifiedHrisTimesheetEntryInput` | [components.UnifiedHrisTimesheetEntryInput](../../models/components/unifiedhristimesheetentryinput.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getretriedrequestresponserequest.md b/docs/models/operations/getretriedrequestresponserequest.md index e73ccccb..86716a67 100644 --- a/docs/models/operations/getretriedrequestresponserequest.md +++ b/docs/models/operations/getretriedrequestresponserequest.md @@ -6,7 +6,7 @@ import { GetRetriedRequestResponseRequest } from "@panora/sdk/models/operations"; let value: GetRetriedRequestResponseRequest = { - retryId: "", + retryId: "", }; ``` diff --git a/docs/models/operations/listatsactivityrequest.md b/docs/models/operations/listatsactivityrequest.md deleted file mode 100644 index bb43cc62..00000000 --- a/docs/models/operations/listatsactivityrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsActivityRequest - -## Example Usage - -```typescript -import { ListAtsActivityRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsActivityRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsactivityresponse.md b/docs/models/operations/listatsactivityresponse.md deleted file mode 100644 index ca85b856..00000000 --- a/docs/models/operations/listatsactivityresponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListAtsActivityResponse - -## Example Usage - -```typescript -import { ListAtsActivityResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsActivityResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsActivityResponseBody](../../models/operations/listatsactivityresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsactivityresponsebody.md b/docs/models/operations/listatsactivityresponsebody.md deleted file mode 100644 index ab5be110..00000000 --- a/docs/models/operations/listatsactivityresponsebody.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListAtsActivityResponseBody - -## Example Usage - -```typescript -import { ListAtsActivityResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsActivityResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsActivityOutput](../../models/components/unifiedatsactivityoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsapplicationrequest.md b/docs/models/operations/listatsapplicationrequest.md deleted file mode 100644 index f29cbb5c..00000000 --- a/docs/models/operations/listatsapplicationrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsApplicationRequest - -## Example Usage - -```typescript -import { ListAtsApplicationRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsApplicationRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsapplicationresponse.md b/docs/models/operations/listatsapplicationresponse.md deleted file mode 100644 index 1ee1a445..00000000 --- a/docs/models/operations/listatsapplicationresponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# ListAtsApplicationResponse - -## Example Usage - -```typescript -import { ListAtsApplicationResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsApplicationResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsApplicationResponseBody](../../models/operations/listatsapplicationresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsapplicationresponsebody.md b/docs/models/operations/listatsapplicationresponsebody.md deleted file mode 100644 index 02ec1ff5..00000000 --- a/docs/models/operations/listatsapplicationresponsebody.md +++ /dev/null @@ -1,48 +0,0 @@ -# ListAtsApplicationResponseBody - -## Example Usage - -```typescript -import { ListAtsApplicationResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsApplicationResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsApplicationOutput](../../models/components/unifiedatsapplicationoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsattachmentrequest.md b/docs/models/operations/listatsattachmentrequest.md deleted file mode 100644 index d11d9947..00000000 --- a/docs/models/operations/listatsattachmentrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsAttachmentRequest - -## Example Usage - -```typescript -import { ListAtsAttachmentRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsAttachmentRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsattachmentresponse.md b/docs/models/operations/listatsattachmentresponse.md deleted file mode 100644 index 33307a9e..00000000 --- a/docs/models/operations/listatsattachmentresponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListAtsAttachmentResponse - -## Example Usage - -```typescript -import { ListAtsAttachmentResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsAttachmentResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsAttachmentResponseBody](../../models/operations/listatsattachmentresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsattachmentresponsebody.md b/docs/models/operations/listatsattachmentresponsebody.md deleted file mode 100644 index 0e115ba7..00000000 --- a/docs/models/operations/listatsattachmentresponsebody.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListAtsAttachmentResponseBody - -## Example Usage - -```typescript -import { ListAtsAttachmentResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsAttachmentResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsAttachmentOutput](../../models/components/unifiedatsattachmentoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatscandidaterequest.md b/docs/models/operations/listatscandidaterequest.md deleted file mode 100644 index 39c8d085..00000000 --- a/docs/models/operations/listatscandidaterequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsCandidateRequest - -## Example Usage - -```typescript -import { ListAtsCandidateRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsCandidateRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatscandidateresponse.md b/docs/models/operations/listatscandidateresponse.md deleted file mode 100644 index a9009f0f..00000000 --- a/docs/models/operations/listatscandidateresponse.md +++ /dev/null @@ -1,74 +0,0 @@ -# ListAtsCandidateResponse - -## Example Usage - -```typescript -import { ListAtsCandidateResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsCandidateResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsCandidateResponseBody](../../models/operations/listatscandidateresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatscandidateresponsebody.md b/docs/models/operations/listatscandidateresponsebody.md deleted file mode 100644 index feca3b2d..00000000 --- a/docs/models/operations/listatscandidateresponsebody.md +++ /dev/null @@ -1,74 +0,0 @@ -# ListAtsCandidateResponseBody - -## Example Usage - -```typescript -import { ListAtsCandidateResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsCandidateResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsCandidateOutput](../../models/components/unifiedatscandidateoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsdepartmentsrequest.md b/docs/models/operations/listatsdepartmentsrequest.md deleted file mode 100644 index 340e029a..00000000 --- a/docs/models/operations/listatsdepartmentsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsDepartmentsRequest - -## Example Usage - -```typescript -import { ListAtsDepartmentsRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsDepartmentsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsdepartmentsresponse.md b/docs/models/operations/listatsdepartmentsresponse.md deleted file mode 100644 index 09382b9f..00000000 --- a/docs/models/operations/listatsdepartmentsresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsDepartmentsResponse - -## Example Usage - -```typescript -import { ListAtsDepartmentsResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsDepartmentsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Sales", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsDepartmentsResponseBody](../../models/operations/listatsdepartmentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsdepartmentsresponsebody.md b/docs/models/operations/listatsdepartmentsresponsebody.md deleted file mode 100644 index ec2e14d9..00000000 --- a/docs/models/operations/listatsdepartmentsresponsebody.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsDepartmentsResponseBody - -## Example Usage - -```typescript -import { ListAtsDepartmentsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsDepartmentsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Sales", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsDepartmentOutput](../../models/components/unifiedatsdepartmentoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatseeocsrequest.md b/docs/models/operations/listatseeocsrequest.md deleted file mode 100644 index 34c87c2d..00000000 --- a/docs/models/operations/listatseeocsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsEeocsRequest - -## Example Usage - -```typescript -import { ListAtsEeocsRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsEeocsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatseeocsresponse.md b/docs/models/operations/listatseeocsresponse.md deleted file mode 100644 index 5792940f..00000000 --- a/docs/models/operations/listatseeocsresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsEeocsResponse - -## Example Usage - -```typescript -import { ListAtsEeocsResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsEeocsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - submittedAt: new Date("2024-10-01T12:00:00Z"), - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteranStatus: "I_AM_NOT_A_PROTECTED_VETERAN", - disabilityStatus: - "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsEeocsResponseBody](../../models/operations/listatseeocsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatseeocsresponsebody.md b/docs/models/operations/listatseeocsresponsebody.md deleted file mode 100644 index e8d2b7d9..00000000 --- a/docs/models/operations/listatseeocsresponsebody.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsEeocsResponseBody - -## Example Usage - -```typescript -import { ListAtsEeocsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsEeocsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - submittedAt: new Date("2024-10-01T12:00:00Z"), - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteranStatus: "I_AM_NOT_A_PROTECTED_VETERAN", - disabilityStatus: - "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsEeocsOutput](../../models/components/unifiedatseeocsoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsinterviewrequest.md b/docs/models/operations/listatsinterviewrequest.md deleted file mode 100644 index fec999a9..00000000 --- a/docs/models/operations/listatsinterviewrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsInterviewRequest - -## Example Usage - -```typescript -import { ListAtsInterviewRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsInterviewRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsinterviewresponse.md b/docs/models/operations/listatsinterviewresponse.md deleted file mode 100644 index f4c9fce0..00000000 --- a/docs/models/operations/listatsinterviewresponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# ListAtsInterviewResponse - -## Example Usage - -```typescript -import { ListAtsInterviewResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsInterviewResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsInterviewResponseBody](../../models/operations/listatsinterviewresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsinterviewresponsebody.md b/docs/models/operations/listatsinterviewresponsebody.md deleted file mode 100644 index 9bcfc4af..00000000 --- a/docs/models/operations/listatsinterviewresponsebody.md +++ /dev/null @@ -1,48 +0,0 @@ -# ListAtsInterviewResponseBody - -## Example Usage - -```typescript -import { ListAtsInterviewResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsInterviewResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsInterviewOutput](../../models/components/unifiedatsinterviewoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsjobinterviewstagerequest.md b/docs/models/operations/listatsjobinterviewstagerequest.md deleted file mode 100644 index a46a14c5..00000000 --- a/docs/models/operations/listatsjobinterviewstagerequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsJobInterviewStageRequest - -## Example Usage - -```typescript -import { ListAtsJobInterviewStageRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsJobInterviewStageRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsjobinterviewstageresponse.md b/docs/models/operations/listatsjobinterviewstageresponse.md deleted file mode 100644 index 3b0eecc0..00000000 --- a/docs/models/operations/listatsjobinterviewstageresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListAtsJobInterviewStageResponse - -## Example Usage - -```typescript -import { ListAtsJobInterviewStageResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsJobInterviewStageResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Second Call", - stageOrder: 1, - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsJobInterviewStageResponseBody](../../models/operations/listatsjobinterviewstageresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsjobinterviewstageresponsebody.md b/docs/models/operations/listatsjobinterviewstageresponsebody.md deleted file mode 100644 index e602320f..00000000 --- a/docs/models/operations/listatsjobinterviewstageresponsebody.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListAtsJobInterviewStageResponseBody - -## Example Usage - -```typescript -import { ListAtsJobInterviewStageResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsJobInterviewStageResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Second Call", - stageOrder: 1, - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsJobinterviewstageOutput](../../models/components/unifiedatsjobinterviewstageoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsjobrequest.md b/docs/models/operations/listatsjobrequest.md deleted file mode 100644 index 84dfaae3..00000000 --- a/docs/models/operations/listatsjobrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsJobRequest - -## Example Usage - -```typescript -import { ListAtsJobRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsJobRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsjobresponse.md b/docs/models/operations/listatsjobresponse.md deleted file mode 100644 index 1ccda4e4..00000000 --- a/docs/models/operations/listatsjobresponse.md +++ /dev/null @@ -1,58 +0,0 @@ -# ListAtsJobResponse - -## Example Usage - -```typescript -import { ListAtsJobResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsJobResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Financial Analyst", - description: - "Extract financial data and write detailed investment thesis", - code: "JOB123", - status: "OPEN", - type: "POSTING", - confidential: true, - departments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - offices: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - managers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - recruiters: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsJobResponseBody](../../models/operations/listatsjobresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsjobresponsebody.md b/docs/models/operations/listatsjobresponsebody.md deleted file mode 100644 index fa7ae7f3..00000000 --- a/docs/models/operations/listatsjobresponsebody.md +++ /dev/null @@ -1,58 +0,0 @@ -# ListAtsJobResponseBody - -## Example Usage - -```typescript -import { ListAtsJobResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsJobResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Financial Analyst", - description: - "Extract financial data and write detailed investment thesis", - code: "JOB123", - status: "OPEN", - type: "POSTING", - confidential: true, - departments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - offices: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - managers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - recruiters: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "key1": "value1", - "key2": 42, - "key3": true, - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2023-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsJobOutput](../../models/components/unifiedatsjoboutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsofferrequest.md b/docs/models/operations/listatsofferrequest.md deleted file mode 100644 index 2787a27d..00000000 --- a/docs/models/operations/listatsofferrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsOfferRequest - -## Example Usage - -```typescript -import { ListAtsOfferRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsOfferRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsofferresponse.md b/docs/models/operations/listatsofferresponse.md deleted file mode 100644 index e259db2c..00000000 --- a/docs/models/operations/listatsofferresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsOfferResponse - -## Example Usage - -```typescript -import { ListAtsOfferResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsOfferResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - createdBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - closedAt: new Date("2024-10-01T12:00:00Z"), - sentAt: new Date("2024-10-01T12:00:00Z"), - startDate: new Date("2024-10-01T12:00:00Z"), - status: "DRAFT", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: {}, - modifiedAt: {}, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsOfferResponseBody](../../models/operations/listatsofferresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsofferresponsebody.md b/docs/models/operations/listatsofferresponsebody.md deleted file mode 100644 index 0e838594..00000000 --- a/docs/models/operations/listatsofferresponsebody.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsOfferResponseBody - -## Example Usage - -```typescript -import { ListAtsOfferResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsOfferResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - createdBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - closedAt: new Date("2024-10-01T12:00:00Z"), - sentAt: new Date("2024-10-01T12:00:00Z"), - startDate: new Date("2024-10-01T12:00:00Z"), - status: "DRAFT", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: {}, - modifiedAt: {}, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsOfferOutput](../../models/components/unifiedatsofferoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsofficerequest.md b/docs/models/operations/listatsofficerequest.md deleted file mode 100644 index 2641182a..00000000 --- a/docs/models/operations/listatsofficerequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsOfficeRequest - -## Example Usage - -```typescript -import { ListAtsOfficeRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsOfficeRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsofficeresponse.md b/docs/models/operations/listatsofficeresponse.md deleted file mode 100644 index 8d8e74d7..00000000 --- a/docs/models/operations/listatsofficeresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsOfficeResponse - -## Example Usage - -```typescript -import { ListAtsOfficeResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsOfficeResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Condo Office 5th", - location: "New York", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsOfficeResponseBody](../../models/operations/listatsofficeresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsofficeresponsebody.md b/docs/models/operations/listatsofficeresponsebody.md deleted file mode 100644 index 9cb8f0bf..00000000 --- a/docs/models/operations/listatsofficeresponsebody.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsOfficeResponseBody - -## Example Usage - -```typescript -import { ListAtsOfficeResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsOfficeResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Condo Office 5th", - location: "New York", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsOfficeOutput](../../models/components/unifiedatsofficeoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsrejectreasonsrequest.md b/docs/models/operations/listatsrejectreasonsrequest.md deleted file mode 100644 index 0d67ef1a..00000000 --- a/docs/models/operations/listatsrejectreasonsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsRejectReasonsRequest - -## Example Usage - -```typescript -import { ListAtsRejectReasonsRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsRejectReasonsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsrejectreasonsresponse.md b/docs/models/operations/listatsrejectreasonsresponse.md deleted file mode 100644 index 4267f87a..00000000 --- a/docs/models/operations/listatsrejectreasonsresponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListAtsRejectReasonsResponse - -## Example Usage - -```typescript -import { ListAtsRejectReasonsResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsRejectReasonsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Candidate inexperienced", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsRejectReasonsResponseBody](../../models/operations/listatsrejectreasonsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsrejectreasonsresponsebody.md b/docs/models/operations/listatsrejectreasonsresponsebody.md deleted file mode 100644 index 4bc037ce..00000000 --- a/docs/models/operations/listatsrejectreasonsresponsebody.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListAtsRejectReasonsResponseBody - -## Example Usage - -```typescript -import { ListAtsRejectReasonsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsRejectReasonsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Candidate inexperienced", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsRejectreasonOutput](../../models/components/unifiedatsrejectreasonoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsscorecardrequest.md b/docs/models/operations/listatsscorecardrequest.md deleted file mode 100644 index 5d60ada8..00000000 --- a/docs/models/operations/listatsscorecardrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsScorecardRequest - -## Example Usage - -```typescript -import { ListAtsScorecardRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsScorecardRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsscorecardresponse.md b/docs/models/operations/listatsscorecardresponse.md deleted file mode 100644 index 35a8b6ed..00000000 --- a/docs/models/operations/listatsscorecardresponse.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListAtsScorecardResponse - -## Example Usage - -```typescript -import { ListAtsScorecardResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsScorecardResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - overallRecommendation: "YES", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - submittedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsScorecardResponseBody](../../models/operations/listatsscorecardresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsscorecardresponsebody.md b/docs/models/operations/listatsscorecardresponsebody.md deleted file mode 100644 index 2fe03fdc..00000000 --- a/docs/models/operations/listatsscorecardresponsebody.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListAtsScorecardResponseBody - -## Example Usage - -```typescript -import { ListAtsScorecardResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsScorecardResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - overallRecommendation: "YES", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - submittedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsScorecardOutput](../../models/components/unifiedatsscorecardoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatstagsrequest.md b/docs/models/operations/listatstagsrequest.md deleted file mode 100644 index 520addb8..00000000 --- a/docs/models/operations/listatstagsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsTagsRequest - -## Example Usage - -```typescript -import { ListAtsTagsRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsTagsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatstagsresponse.md b/docs/models/operations/listatstagsresponse.md deleted file mode 100644 index ac20acdb..00000000 --- a/docs/models/operations/listatstagsresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsTagsResponse - -## Example Usage - -```typescript -import { ListAtsTagsResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsTagsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Important", - idAtsCandidate: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `result` | [operations.ListAtsTagsResponseBody](../../models/operations/listatstagsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatstagsresponsebody.md b/docs/models/operations/listatstagsresponsebody.md deleted file mode 100644 index 964d5b5e..00000000 --- a/docs/models/operations/listatstagsresponsebody.md +++ /dev/null @@ -1,38 +0,0 @@ -# ListAtsTagsResponseBody - -## Example Usage - -```typescript -import { ListAtsTagsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsTagsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Important", - idAtsCandidate: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsTagOutput](../../models/components/unifiedatstagoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsusersrequest.md b/docs/models/operations/listatsusersrequest.md deleted file mode 100644 index 34743014..00000000 --- a/docs/models/operations/listatsusersrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAtsUsersRequest - -## Example Usage - -```typescript -import { ListAtsUsersRequest } from "@panora/sdk/models/operations"; - -let value: ListAtsUsersRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listatsusersresponse.md b/docs/models/operations/listatsusersresponse.md deleted file mode 100644 index f1851ad6..00000000 --- a/docs/models/operations/listatsusersresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsUsersResponse - -## Example Usage - -```typescript -import { ListAtsUsersResponse } from "@panora/sdk/models/operations"; - -let value: ListAtsUsersResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "John", - lastName: "Doe", - email: "john.doe@example.com", - disabled: false, - accessRole: "ADMIN", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `result` | [operations.ListAtsUsersResponseBody](../../models/operations/listatsusersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsusersresponsebody.md b/docs/models/operations/listatsusersresponsebody.md deleted file mode 100644 index 59235c28..00000000 --- a/docs/models/operations/listatsusersresponsebody.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListAtsUsersResponseBody - -## Example Usage - -```typescript -import { ListAtsUsersResponseBody } from "@panora/sdk/models/operations"; - -let value: ListAtsUsersResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "John", - lastName: "Doe", - email: "john.doe@example.com", - disabled: false, - accessRole: "ADMIN", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedAtsUserOutput](../../models/components/unifiedatsuseroutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmcontactsresponse.md b/docs/models/operations/listcrmcontactsresponse.md index 3f46b06d..1aeb34ee 100644 --- a/docs/models/operations/listcrmcontactsresponse.md +++ b/docs/models/operations/listcrmcontactsresponse.md @@ -15,13 +15,13 @@ let value: ListCrmContactsResponse = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Jamil62@yahoo.com", + emailAddress: "Abigale_Glover96@hotmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "1-416-731-7193", + phoneNumber: "(652) 948-6283 x8586", phoneType: "", }, ], diff --git a/docs/models/operations/listcrmcontactsresponsebody.md b/docs/models/operations/listcrmcontactsresponsebody.md index 6b90a5d1..7dd7a3d5 100644 --- a/docs/models/operations/listcrmcontactsresponsebody.md +++ b/docs/models/operations/listcrmcontactsresponsebody.md @@ -14,13 +14,13 @@ let value: ListCrmContactsResponseBody = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Emerald.Mohr@hotmail.com", + emailAddress: "Blanche.Carter41@gmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "(246) 991-6261 x9652", + phoneNumber: "625.259.3617 x2150", phoneType: "", }, ], diff --git a/docs/models/operations/listhrisbankinforequest.md b/docs/models/operations/listhrisbankinforequest.md deleted file mode 100644 index 6714fd1f..00000000 --- a/docs/models/operations/listhrisbankinforequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisBankInfoRequest - -## Example Usage - -```typescript -import { ListHrisBankInfoRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisBankInfoRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisbankinforesponse.md b/docs/models/operations/listhrisbankinforesponse.md deleted file mode 100644 index 27cf9a94..00000000 --- a/docs/models/operations/listhrisbankinforesponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListHrisBankInfoResponse - -## Example Usage - -```typescript -import { ListHrisBankInfoResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisBankInfoResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - accountType: "CHECKING", - bankName: "Bank of America", - accountNumber: "1234567890", - routingNumber: "021000021", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisBankInfoResponseBody](../../models/operations/listhrisbankinforesponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisbankinforesponsebody.md b/docs/models/operations/listhrisbankinforesponsebody.md deleted file mode 100644 index ea8b9a6f..00000000 --- a/docs/models/operations/listhrisbankinforesponsebody.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListHrisBankInfoResponseBody - -## Example Usage - -```typescript -import { ListHrisBankInfoResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisBankInfoResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - accountType: "CHECKING", - bankName: "Bank of America", - accountNumber: "1234567890", - routingNumber: "021000021", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisBankinfoOutput](../../models/components/unifiedhrisbankinfooutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisbenefitsrequest.md b/docs/models/operations/listhrisbenefitsrequest.md deleted file mode 100644 index c200d2b1..00000000 --- a/docs/models/operations/listhrisbenefitsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisBenefitsRequest - -## Example Usage - -```typescript -import { ListHrisBenefitsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisBenefitsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisbenefitsresponse.md b/docs/models/operations/listhrisbenefitsresponse.md deleted file mode 100644 index f2b759c3..00000000 --- a/docs/models/operations/listhrisbenefitsresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListHrisBenefitsResponse - -## Example Usage - -```typescript -import { ListHrisBenefitsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisBenefitsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - providerName: "Health Insurance Provider", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeContribution: 100, - companyContribution: 200, - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-12-31T23:59:59Z"), - employerBenefitId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisBenefitsResponseBody](../../models/operations/listhrisbenefitsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisbenefitsresponsebody.md b/docs/models/operations/listhrisbenefitsresponsebody.md deleted file mode 100644 index 8b1e549a..00000000 --- a/docs/models/operations/listhrisbenefitsresponsebody.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListHrisBenefitsResponseBody - -## Example Usage - -```typescript -import { ListHrisBenefitsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisBenefitsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - providerName: "Health Insurance Provider", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeContribution: 100, - companyContribution: 200, - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-12-31T23:59:59Z"), - employerBenefitId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisBenefitOutput](../../models/components/unifiedhrisbenefitoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhriscompaniesrequest.md b/docs/models/operations/listhriscompaniesrequest.md deleted file mode 100644 index 90e7c389..00000000 --- a/docs/models/operations/listhriscompaniesrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisCompaniesRequest - -## Example Usage - -```typescript -import { ListHrisCompaniesRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisCompaniesRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhriscompaniesresponse.md b/docs/models/operations/listhriscompaniesresponse.md deleted file mode 100644 index 3c897f88..00000000 --- a/docs/models/operations/listhriscompaniesresponse.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListHrisCompaniesResponse - -## Example Usage - -```typescript -import { ListHrisCompaniesResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisCompaniesResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - legalName: "Acme Corporation", - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - displayName: "Acme Corp", - eins: [ - "12-3456789", - "98-7654321", - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "company_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisCompaniesResponseBody](../../models/operations/listhriscompaniesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhriscompaniesresponsebody.md b/docs/models/operations/listhriscompaniesresponsebody.md deleted file mode 100644 index 740667f9..00000000 --- a/docs/models/operations/listhriscompaniesresponsebody.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListHrisCompaniesResponseBody - -## Example Usage - -```typescript -import { ListHrisCompaniesResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisCompaniesResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - legalName: "Acme Corporation", - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - displayName: "Acme Corp", - eins: [ - "12-3456789", - "98-7654321", - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "company_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisCompanyOutput](../../models/components/unifiedhriscompanyoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisdependentsrequest.md b/docs/models/operations/listhrisdependentsrequest.md deleted file mode 100644 index 68cbe63e..00000000 --- a/docs/models/operations/listhrisdependentsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisDependentsRequest - -## Example Usage - -```typescript -import { ListHrisDependentsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisDependentsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisdependentsresponse.md b/docs/models/operations/listhrisdependentsresponse.md deleted file mode 100644 index f729568a..00000000 --- a/docs/models/operations/listhrisdependentsresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListHrisDependentsResponse - -## Example Usage - -```typescript -import { ListHrisDependentsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisDependentsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "John", - lastName: "Doe", - middleName: "Michael", - relationship: "CHILD", - dateOfBirth: new Date("2020-01-01"), - gender: "MALE", - phoneNumber: "+1234567890", - homeLocation: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - isStudent: true, - ssn: "123-45-6789", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "dependent_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListHrisDependentsResponseBody](../../models/operations/listhrisdependentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisdependentsresponsebody.md b/docs/models/operations/listhrisdependentsresponsebody.md deleted file mode 100644 index 1332a3aa..00000000 --- a/docs/models/operations/listhrisdependentsresponsebody.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListHrisDependentsResponseBody - -## Example Usage - -```typescript -import { ListHrisDependentsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisDependentsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - firstName: "John", - lastName: "Doe", - middleName: "Michael", - relationship: "CHILD", - dateOfBirth: new Date("2020-01-01"), - gender: "MALE", - phoneNumber: "+1234567890", - homeLocation: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - isStudent: true, - ssn: "123-45-6789", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "dependent_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisDependentOutput](../../models/components/unifiedhrisdependentoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeepayrollrunrequest.md b/docs/models/operations/listhrisemployeepayrollrunrequest.md deleted file mode 100644 index 2f65973a..00000000 --- a/docs/models/operations/listhrisemployeepayrollrunrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisEmployeePayrollRunRequest - -## Example Usage - -```typescript -import { ListHrisEmployeePayrollRunRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeePayrollRunRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeepayrollrunresponse.md b/docs/models/operations/listhrisemployeepayrollrunresponse.md deleted file mode 100644 index 0a14dd13..00000000 --- a/docs/models/operations/listhrisemployeepayrollrunresponse.md +++ /dev/null @@ -1,59 +0,0 @@ -# ListHrisEmployeePayrollRunResponse - -## Example Usage - -```typescript -import { ListHrisEmployeePayrollRunResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeePayrollRunResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - payrollRunId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - grossPay: 5000, - netPay: 4000, - startDate: new Date("2023-01-01T00:00:00Z"), - endDate: new Date("2023-01-15T23:59:59Z"), - checkDate: new Date("2023-01-20T00:00:00Z"), - deductions: [ - { - name: "Health Insurance", - employeeDeduction: 100, - companyDeduction: 200, - }, - ], - earnings: [ - { - amount: 1000, - type: "Salary", - }, - ], - taxes: [ - { - name: "Federal Income Tax", - amount: 250, - employerTax: true, - }, - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisEmployeePayrollRunResponseBody](../../models/operations/listhrisemployeepayrollrunresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeepayrollrunresponsebody.md b/docs/models/operations/listhrisemployeepayrollrunresponsebody.md deleted file mode 100644 index e23d7e2d..00000000 --- a/docs/models/operations/listhrisemployeepayrollrunresponsebody.md +++ /dev/null @@ -1,59 +0,0 @@ -# ListHrisEmployeePayrollRunResponseBody - -## Example Usage - -```typescript -import { ListHrisEmployeePayrollRunResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeePayrollRunResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - payrollRunId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - grossPay: 5000, - netPay: 4000, - startDate: new Date("2023-01-01T00:00:00Z"), - endDate: new Date("2023-01-15T23:59:59Z"), - checkDate: new Date("2023-01-20T00:00:00Z"), - deductions: [ - { - name: "Health Insurance", - employeeDeduction: 100, - companyDeduction: 200, - }, - ], - earnings: [ - { - amount: 1000, - type: "Salary", - }, - ], - taxes: [ - { - name: "Federal Income Tax", - amount: 250, - employerTax: true, - }, - ], - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisEmployeepayrollrunOutput](../../models/components/unifiedhrisemployeepayrollrunoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeesrequest.md b/docs/models/operations/listhrisemployeesrequest.md deleted file mode 100644 index e32199b4..00000000 --- a/docs/models/operations/listhrisemployeesrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisEmployeesRequest - -## Example Usage - -```typescript -import { ListHrisEmployeesRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeesRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeesresponse.md b/docs/models/operations/listhrisemployeesresponse.md deleted file mode 100644 index 2cf4ecde..00000000 --- a/docs/models/operations/listhrisemployeesresponse.md +++ /dev/null @@ -1,63 +0,0 @@ -# ListHrisEmployeesResponse - -## Example Usage - -```typescript -import { ListHrisEmployeesResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeesResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employee_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisEmployeesResponseBody](../../models/operations/listhrisemployeesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployeesresponsebody.md b/docs/models/operations/listhrisemployeesresponsebody.md deleted file mode 100644 index 5286852c..00000000 --- a/docs/models/operations/listhrisemployeesresponsebody.md +++ /dev/null @@ -1,63 +0,0 @@ -# ListHrisEmployeesResponseBody - -## Example Usage - -```typescript -import { ListHrisEmployeesResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployeesResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employee_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisEmployeeOutput](../../models/components/unifiedhrisemployeeoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployerbenefitsrequest.md b/docs/models/operations/listhrisemployerbenefitsrequest.md deleted file mode 100644 index 7088c69d..00000000 --- a/docs/models/operations/listhrisemployerbenefitsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisEmployerBenefitsRequest - -## Example Usage - -```typescript -import { ListHrisEmployerBenefitsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployerBenefitsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployerbenefitsresponse.md b/docs/models/operations/listhrisemployerbenefitsresponse.md deleted file mode 100644 index f5337521..00000000 --- a/docs/models/operations/listhrisemployerbenefitsresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisEmployerBenefitsResponse - -## Example Usage - -```typescript -import { ListHrisEmployerBenefitsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployerBenefitsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - benefitPlanType: "Health Insurance", - name: "Company Health Plan", - description: "Comprehensive health insurance coverage for employees", - deductionCode: "HEALTH-001", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListHrisEmployerBenefitsResponseBody](../../models/operations/listhrisemployerbenefitsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemployerbenefitsresponsebody.md b/docs/models/operations/listhrisemployerbenefitsresponsebody.md deleted file mode 100644 index 55eb992c..00000000 --- a/docs/models/operations/listhrisemployerbenefitsresponsebody.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisEmployerBenefitsResponseBody - -## Example Usage - -```typescript -import { ListHrisEmployerBenefitsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisEmployerBenefitsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - benefitPlanType: "Health Insurance", - name: "Company Health Plan", - description: "Comprehensive health insurance coverage for employees", - deductionCode: "HEALTH-001", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "benefit_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisEmployerbenefitOutput](../../models/components/unifiedhrisemployerbenefitoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemploymentsrequest.md b/docs/models/operations/listhrisemploymentsrequest.md deleted file mode 100644 index e99c5350..00000000 --- a/docs/models/operations/listhrisemploymentsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisEmploymentsRequest - -## Example Usage - -```typescript -import { ListHrisEmploymentsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisEmploymentsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisemploymentsresponse.md b/docs/models/operations/listhrisemploymentsresponse.md deleted file mode 100644 index adf46761..00000000 --- a/docs/models/operations/listhrisemploymentsresponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListHrisEmploymentsResponse - -## Example Usage - -```typescript -import { ListHrisEmploymentsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisEmploymentsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - jobTitle: "Software Engineer", - payRate: 100000, - payPeriod: "MONTHLY", - payFrequency: "WEEKLY", - payCurrency: "USD", - flsaStatus: "EXEMPT", - effectiveDate: new Date("2023-01-01"), - employmentType: "FULL_TIME", - payGroupId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employment_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisEmploymentsResponseBody](../../models/operations/listhrisemploymentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisemploymentsresponsebody.md b/docs/models/operations/listhrisemploymentsresponsebody.md deleted file mode 100644 index d5ea30eb..00000000 --- a/docs/models/operations/listhrisemploymentsresponsebody.md +++ /dev/null @@ -1,42 +0,0 @@ -# ListHrisEmploymentsResponseBody - -## Example Usage - -```typescript -import { ListHrisEmploymentsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisEmploymentsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - jobTitle: "Software Engineer", - payRate: 100000, - payPeriod: "MONTHLY", - payFrequency: "WEEKLY", - payCurrency: "USD", - flsaStatus: "EXEMPT", - effectiveDate: new Date("2023-01-01"), - employmentType: "FULL_TIME", - payGroupId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "employment_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisEmploymentOutput](../../models/components/unifiedhrisemploymentoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisgroupsrequest.md b/docs/models/operations/listhrisgroupsrequest.md deleted file mode 100644 index 75b8f6db..00000000 --- a/docs/models/operations/listhrisgroupsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisGroupsRequest - -## Example Usage - -```typescript -import { ListHrisGroupsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisGroupsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrisgroupsresponse.md b/docs/models/operations/listhrisgroupsresponse.md deleted file mode 100644 index a47ba79c..00000000 --- a/docs/models/operations/listhrisgroupsresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# ListHrisGroupsResponse - -## Example Usage - -```typescript -import { ListHrisGroupsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisGroupsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - parentGroup: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - name: "Engineering Team", - type: "DEPARTMENT", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "group_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisGroupsResponseBody](../../models/operations/listhrisgroupsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisgroupsresponsebody.md b/docs/models/operations/listhrisgroupsresponsebody.md deleted file mode 100644 index 50362a19..00000000 --- a/docs/models/operations/listhrisgroupsresponsebody.md +++ /dev/null @@ -1,35 +0,0 @@ -# ListHrisGroupsResponseBody - -## Example Usage - -```typescript -import { ListHrisGroupsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisGroupsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - parentGroup: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - name: "Engineering Team", - type: "DEPARTMENT", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "group_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisGroupOutput](../../models/components/unifiedhrisgroupoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrislocationsrequest.md b/docs/models/operations/listhrislocationsrequest.md deleted file mode 100644 index 7ba0d7ef..00000000 --- a/docs/models/operations/listhrislocationsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisLocationsRequest - -## Example Usage - -```typescript -import { ListHrisLocationsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisLocationsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrislocationsresponse.md b/docs/models/operations/listhrislocationsresponse.md deleted file mode 100644 index c1c0adfc..00000000 --- a/docs/models/operations/listhrislocationsresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListHrisLocationsResponse - -## Example Usage - -```typescript -import { ListHrisLocationsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisLocationsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Headquarters", - phoneNumber: "+1234567890", - street1: "123 Main St", - street2: "Suite 456", - city: "San Francisco", - state: "CA", - zipCode: "94105", - country: "USA", - locationType: "WORK", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "location_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisLocationsResponseBody](../../models/operations/listhrislocationsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrislocationsresponsebody.md b/docs/models/operations/listhrislocationsresponsebody.md deleted file mode 100644 index c746fae3..00000000 --- a/docs/models/operations/listhrislocationsresponsebody.md +++ /dev/null @@ -1,43 +0,0 @@ -# ListHrisLocationsResponseBody - -## Example Usage - -```typescript -import { ListHrisLocationsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisLocationsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - name: "Headquarters", - phoneNumber: "+1234567890", - street1: "123 Main St", - street2: "Suite 456", - city: "San Francisco", - state: "CA", - zipCode: "94105", - country: "USA", - locationType: "WORK", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "location_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisLocationOutput](../../models/components/unifiedhrislocationoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrispaygroupsrequest.md b/docs/models/operations/listhrispaygroupsrequest.md deleted file mode 100644 index 96cb136c..00000000 --- a/docs/models/operations/listhrispaygroupsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisPaygroupsRequest - -## Example Usage - -```typescript -import { ListHrisPaygroupsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisPaygroupsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrispaygroupsresponse.md b/docs/models/operations/listhrispaygroupsresponse.md deleted file mode 100644 index 6e2203e5..00000000 --- a/docs/models/operations/listhrispaygroupsresponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# ListHrisPaygroupsResponse - -## Example Usage - -```typescript -import { ListHrisPaygroupsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisPaygroupsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - payGroupName: "Monthly Salaried", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "paygroup_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisPaygroupsResponseBody](../../models/operations/listhrispaygroupsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrispaygroupsresponsebody.md b/docs/models/operations/listhrispaygroupsresponsebody.md deleted file mode 100644 index d9c68c51..00000000 --- a/docs/models/operations/listhrispaygroupsresponsebody.md +++ /dev/null @@ -1,33 +0,0 @@ -# ListHrisPaygroupsResponseBody - -## Example Usage - -```typescript -import { ListHrisPaygroupsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisPaygroupsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - payGroupName: "Monthly Salaried", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "paygroup_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisPaygroupOutput](../../models/components/unifiedhrispaygroupoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrispayrollrunsrequest.md b/docs/models/operations/listhrispayrollrunsrequest.md deleted file mode 100644 index c37bdb82..00000000 --- a/docs/models/operations/listhrispayrollrunsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisPayrollRunsRequest - -## Example Usage - -```typescript -import { ListHrisPayrollRunsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisPayrollRunsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhrispayrollrunsresponse.md b/docs/models/operations/listhrispayrollrunsresponse.md deleted file mode 100644 index ffaee00e..00000000 --- a/docs/models/operations/listhrispayrollrunsresponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# ListHrisPayrollRunsResponse - -## Example Usage - -```typescript -import { ListHrisPayrollRunsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisPayrollRunsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - runState: "PAID", - runType: "REGULAR", - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-01-15T23:59:59Z"), - checkDate: new Date("2024-01-20T00:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - employeePayrollRuns: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisPayrollRunsResponseBody](../../models/operations/listhrispayrollrunsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrispayrollrunsresponsebody.md b/docs/models/operations/listhrispayrollrunsresponsebody.md deleted file mode 100644 index 4ba3570e..00000000 --- a/docs/models/operations/listhrispayrollrunsresponsebody.md +++ /dev/null @@ -1,40 +0,0 @@ -# ListHrisPayrollRunsResponseBody - -## Example Usage - -```typescript -import { ListHrisPayrollRunsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisPayrollRunsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - runState: "PAID", - runType: "REGULAR", - startDate: new Date("2024-01-01T00:00:00Z"), - endDate: new Date("2024-01-15T23:59:59Z"), - checkDate: new Date("2024-01-20T00:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "payroll_run_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteWasDeleted: false, - employeePayrollRuns: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisPayrollrunOutput](../../models/components/unifiedhrispayrollrunoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffbalancesrequest.md b/docs/models/operations/listhristimeoffbalancesrequest.md deleted file mode 100644 index 4b5e9b42..00000000 --- a/docs/models/operations/listhristimeoffbalancesrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisTimeoffbalancesRequest - -## Example Usage - -```typescript -import { ListHrisTimeoffbalancesRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffbalancesRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffbalancesresponse.md b/docs/models/operations/listhristimeoffbalancesresponse.md deleted file mode 100644 index f9789680..00000000 --- a/docs/models/operations/listhristimeoffbalancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisTimeoffbalancesResponse - -## Example Usage - -```typescript -import { ListHrisTimeoffbalancesResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffbalancesResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - balance: 80, - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - used: 40, - policyType: "VACATION", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_balance_1234", - remoteData: {}, - remoteCreatedAt: "2024-06-15T12:00:00Z", - createdAt: "2024-06-15T12:00:00Z", - modifiedAt: "2024-06-15T12:00:00Z", - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisTimeoffbalancesResponseBody](../../models/operations/listhristimeoffbalancesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffbalancesresponsebody.md b/docs/models/operations/listhristimeoffbalancesresponsebody.md deleted file mode 100644 index d7c3032a..00000000 --- a/docs/models/operations/listhristimeoffbalancesresponsebody.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisTimeoffbalancesResponseBody - -## Example Usage - -```typescript -import { ListHrisTimeoffbalancesResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffbalancesResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - balance: 80, - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - used: 40, - policyType: "VACATION", - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_balance_1234", - remoteData: {}, - remoteCreatedAt: "2024-06-15T12:00:00Z", - createdAt: "2024-06-15T12:00:00Z", - modifiedAt: "2024-06-15T12:00:00Z", - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisTimeoffbalanceOutput](../../models/components/unifiedhristimeoffbalanceoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffsrequest.md b/docs/models/operations/listhristimeoffsrequest.md deleted file mode 100644 index 06cb0030..00000000 --- a/docs/models/operations/listhristimeoffsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisTimeoffsRequest - -## Example Usage - -```typescript -import { ListHrisTimeoffsRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffsRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffsresponse.md b/docs/models/operations/listhristimeoffsresponse.md deleted file mode 100644 index 02618073..00000000 --- a/docs/models/operations/listhristimeoffsresponse.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListHrisTimeoffsResponse - -## Example Usage - -```typescript -import { ListHrisTimeoffsResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffsResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-06-15T12:00:00Z"), - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - remoteWasDeleted: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [operations.ListHrisTimeoffsResponseBody](../../models/operations/listhristimeoffsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimeoffsresponsebody.md b/docs/models/operations/listhristimeoffsresponsebody.md deleted file mode 100644 index 26992912..00000000 --- a/docs/models/operations/listhristimeoffsresponsebody.md +++ /dev/null @@ -1,41 +0,0 @@ -# ListHrisTimeoffsResponseBody - -## Example Usage - -```typescript -import { ListHrisTimeoffsResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisTimeoffsResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "timeoff_1234", - remoteData: {}, - remoteCreatedAt: new Date("2024-06-15T12:00:00Z"), - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), - remoteWasDeleted: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisTimeoffOutput](../../models/components/unifiedhristimeoffoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimesheetentriesrequest.md b/docs/models/operations/listhristimesheetentriesrequest.md deleted file mode 100644 index cd4d8cd0..00000000 --- a/docs/models/operations/listhristimesheetentriesrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListHrisTimesheetentriesRequest - -## Example Usage - -```typescript -import { ListHrisTimesheetentriesRequest } from "@panora/sdk/models/operations"; - -let value: ListHrisTimesheetentriesRequest = { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original software. | true | -| `limit` | *number* | :heavy_minus_sign: | Set to get the number of records. | 10 | -| `cursor` | *string* | :heavy_minus_sign: | Set to get the number of records after this cursor. | 1b8b05bb-5273-4012-b520-8657b0b90874 | \ No newline at end of file diff --git a/docs/models/operations/listhristimesheetentriesresponse.md b/docs/models/operations/listhristimesheetentriesresponse.md deleted file mode 100644 index 037483dd..00000000 --- a/docs/models/operations/listhristimesheetentriesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisTimesheetentriesResponse - -## Example Usage - -```typescript -import { ListHrisTimesheetentriesResponse } from "@panora/sdk/models/operations"; - -let value: ListHrisTimesheetentriesResponse = { - result: { - prevCursor: "", - nextCursor: "", - data: [ - { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteData: {}, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `result` | [operations.ListHrisTimesheetentriesResponseBody](../../models/operations/listhristimesheetentriesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhristimesheetentriesresponsebody.md b/docs/models/operations/listhristimesheetentriesresponsebody.md deleted file mode 100644 index 70337c15..00000000 --- a/docs/models/operations/listhristimesheetentriesresponsebody.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListHrisTimesheetentriesResponseBody - -## Example Usage - -```typescript -import { ListHrisTimesheetentriesResponseBody } from "@panora/sdk/models/operations"; - -let value: ListHrisTimesheetentriesResponseBody = { - prevCursor: "", - nextCursor: "", - data: [ - { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteId: "id_1", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - createdAt: new Date("2024-10-01T12:00:00Z"), - modifiedAt: new Date("2024-10-01T12:00:00Z"), - remoteData: {}, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `prevCursor` | *string* | :heavy_check_mark: | N/A | -| `nextCursor` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.UnifiedHrisTimesheetEntryOutput](../../models/components/unifiedhristimesheetentryoutput.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/requestpassthroughresponsebody.md b/docs/models/operations/requestpassthroughresponsebody.md deleted file mode 100644 index 9de16f50..00000000 --- a/docs/models/operations/requestpassthroughresponsebody.md +++ /dev/null @@ -1,14 +0,0 @@ -# RequestPassthroughResponseBody - -## Example Usage - -```typescript -import { RequestPassthroughResponseBody } from "@panora/sdk/models/operations"; - -let value: RequestPassthroughResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/requestrequest.md b/docs/models/operations/requestrequest.md index 8c296c45..74aff5f5 100644 --- a/docs/models/operations/requestrequest.md +++ b/docs/models/operations/requestrequest.md @@ -9,8 +9,17 @@ import { RequestRequest } from "@panora/sdk/models/operations"; let value: RequestRequest = { xConnectionToken: "", passThroughRequestDto: { - method: PassThroughRequestDtoMethod.Get, - path: "/var/tmp", + method: PassThroughRequestDtoMethod.Post, + path: "/usr/local/src", + data: {}, + requestFormat: [ + { + "key": "", + }, + ], + overrideBaseUrl: { + "key": "", + }, }, }; ``` diff --git a/docs/models/operations/requestresponse.md b/docs/models/operations/requestresponse.md deleted file mode 100644 index 342c217a..00000000 --- a/docs/models/operations/requestresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# RequestResponse - -## Example Usage - -```typescript -import { RequestResponse } from "@panora/sdk/models/operations"; - -let value: RequestResponse = {}; -``` - -## Supported Types - -### `operations.RequestResponseBody` - -```typescript -const value: operations.RequestResponseBody = /* values here */ -``` - -### `operations.RequestPassthroughResponseBody` - -```typescript -const value: operations.RequestPassthroughResponseBody = /* values here */ -``` - diff --git a/docs/models/operations/retrieveatsactivityrequest.md b/docs/models/operations/retrieveatsactivityrequest.md deleted file mode 100644 index fcc9f920..00000000 --- a/docs/models/operations/retrieveatsactivityrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsActivityRequest - -## Example Usage - -```typescript -import { RetrieveAtsActivityRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsActivityRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the activity you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsapplicationrequest.md b/docs/models/operations/retrieveatsapplicationrequest.md deleted file mode 100644 index abfa6ae4..00000000 --- a/docs/models/operations/retrieveatsapplicationrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsApplicationRequest - -## Example Usage - -```typescript -import { RetrieveAtsApplicationRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsApplicationRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the application you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsattachmentrequest.md b/docs/models/operations/retrieveatsattachmentrequest.md deleted file mode 100644 index fdf8184a..00000000 --- a/docs/models/operations/retrieveatsattachmentrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsAttachmentRequest - -## Example Usage - -```typescript -import { RetrieveAtsAttachmentRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsAttachmentRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the attachment you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatscandidaterequest.md b/docs/models/operations/retrieveatscandidaterequest.md deleted file mode 100644 index 8cd64eba..00000000 --- a/docs/models/operations/retrieveatscandidaterequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsCandidateRequest - -## Example Usage - -```typescript -import { RetrieveAtsCandidateRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsCandidateRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the candidate you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsdepartmentrequest.md b/docs/models/operations/retrieveatsdepartmentrequest.md deleted file mode 100644 index cc79f3d1..00000000 --- a/docs/models/operations/retrieveatsdepartmentrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsDepartmentRequest - -## Example Usage - -```typescript -import { RetrieveAtsDepartmentRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsDepartmentRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the department you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatseeocsrequest.md b/docs/models/operations/retrieveatseeocsrequest.md deleted file mode 100644 index b63ddf8a..00000000 --- a/docs/models/operations/retrieveatseeocsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# RetrieveAtsEeocsRequest - -## Example Usage - -```typescript -import { RetrieveAtsEeocsRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsEeocsRequest = { - xConnectionToken: "", - id: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `id` | *string* | :heavy_check_mark: | id of the eeocs you want to retrieve. | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsinterviewrequest.md b/docs/models/operations/retrieveatsinterviewrequest.md deleted file mode 100644 index ddf2a353..00000000 --- a/docs/models/operations/retrieveatsinterviewrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsInterviewRequest - -## Example Usage - -```typescript -import { RetrieveAtsInterviewRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsInterviewRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the interview you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsjobinterviewstagerequest.md b/docs/models/operations/retrieveatsjobinterviewstagerequest.md deleted file mode 100644 index 6d7019c0..00000000 --- a/docs/models/operations/retrieveatsjobinterviewstagerequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsJobInterviewStageRequest - -## Example Usage - -```typescript -import { RetrieveAtsJobInterviewStageRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsJobInterviewStageRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the jobinterviewstage you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsjobrequest.md b/docs/models/operations/retrieveatsjobrequest.md deleted file mode 100644 index f683f5f7..00000000 --- a/docs/models/operations/retrieveatsjobrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsJobRequest - -## Example Usage - -```typescript -import { RetrieveAtsJobRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsJobRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the job you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsofferrequest.md b/docs/models/operations/retrieveatsofferrequest.md deleted file mode 100644 index 2ed03543..00000000 --- a/docs/models/operations/retrieveatsofferrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsOfferRequest - -## Example Usage - -```typescript -import { RetrieveAtsOfferRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsOfferRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the offer you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsofficerequest.md b/docs/models/operations/retrieveatsofficerequest.md deleted file mode 100644 index 0d8bf10a..00000000 --- a/docs/models/operations/retrieveatsofficerequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsOfficeRequest - -## Example Usage - -```typescript -import { RetrieveAtsOfficeRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsOfficeRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the office you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsrejectreasonrequest.md b/docs/models/operations/retrieveatsrejectreasonrequest.md deleted file mode 100644 index 82941977..00000000 --- a/docs/models/operations/retrieveatsrejectreasonrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsRejectReasonRequest - -## Example Usage - -```typescript -import { RetrieveAtsRejectReasonRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsRejectReasonRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the rejectreason you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsscorecardrequest.md b/docs/models/operations/retrieveatsscorecardrequest.md deleted file mode 100644 index 599003a3..00000000 --- a/docs/models/operations/retrieveatsscorecardrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsScorecardRequest - -## Example Usage - -```typescript -import { RetrieveAtsScorecardRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsScorecardRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the scorecard you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatstagrequest.md b/docs/models/operations/retrieveatstagrequest.md deleted file mode 100644 index 52adef37..00000000 --- a/docs/models/operations/retrieveatstagrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsTagRequest - -## Example Usage - -```typescript -import { RetrieveAtsTagRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsTagRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the tag you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrieveatsuserrequest.md b/docs/models/operations/retrieveatsuserrequest.md deleted file mode 100644 index c022eb8e..00000000 --- a/docs/models/operations/retrieveatsuserrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveAtsUserRequest - -## Example Usage - -```typescript -import { RetrieveAtsUserRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveAtsUserRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the user you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Ats software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisbankinforequest.md b/docs/models/operations/retrievehrisbankinforequest.md deleted file mode 100644 index 8cecff1b..00000000 --- a/docs/models/operations/retrievehrisbankinforequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisBankInfoRequest - -## Example Usage - -```typescript -import { RetrieveHrisBankInfoRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisBankInfoRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the bank info you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisbenefitrequest.md b/docs/models/operations/retrievehrisbenefitrequest.md deleted file mode 100644 index f993577c..00000000 --- a/docs/models/operations/retrievehrisbenefitrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisBenefitRequest - -## Example Usage - -```typescript -import { RetrieveHrisBenefitRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisBenefitRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the benefit you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehriscompanyrequest.md b/docs/models/operations/retrievehriscompanyrequest.md deleted file mode 100644 index 4ee7ffdf..00000000 --- a/docs/models/operations/retrievehriscompanyrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisCompanyRequest - -## Example Usage - -```typescript -import { RetrieveHrisCompanyRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisCompanyRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the company you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisdependentrequest.md b/docs/models/operations/retrievehrisdependentrequest.md deleted file mode 100644 index f2a82a37..00000000 --- a/docs/models/operations/retrievehrisdependentrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisDependentRequest - -## Example Usage - -```typescript -import { RetrieveHrisDependentRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisDependentRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the dependent you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisemployeepayrollrunrequest.md b/docs/models/operations/retrievehrisemployeepayrollrunrequest.md deleted file mode 100644 index 1f14a547..00000000 --- a/docs/models/operations/retrievehrisemployeepayrollrunrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisEmployeePayrollRunRequest - -## Example Usage - -```typescript -import { RetrieveHrisEmployeePayrollRunRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisEmployeePayrollRunRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the employeepayrollrun you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisemployeerequest.md b/docs/models/operations/retrievehrisemployeerequest.md deleted file mode 100644 index e92c6133..00000000 --- a/docs/models/operations/retrievehrisemployeerequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisEmployeeRequest - -## Example Usage - -```typescript -import { RetrieveHrisEmployeeRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisEmployeeRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the employee you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisemployerbenefitrequest.md b/docs/models/operations/retrievehrisemployerbenefitrequest.md deleted file mode 100644 index a98aad35..00000000 --- a/docs/models/operations/retrievehrisemployerbenefitrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisEmployerBenefitRequest - -## Example Usage - -```typescript -import { RetrieveHrisEmployerBenefitRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisEmployerBenefitRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the employer benefit you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisemploymentrequest.md b/docs/models/operations/retrievehrisemploymentrequest.md deleted file mode 100644 index a44e9b79..00000000 --- a/docs/models/operations/retrievehrisemploymentrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisEmploymentRequest - -## Example Usage - -```typescript -import { RetrieveHrisEmploymentRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisEmploymentRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the employment you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrisgrouprequest.md b/docs/models/operations/retrievehrisgrouprequest.md deleted file mode 100644 index 13b92fb4..00000000 --- a/docs/models/operations/retrievehrisgrouprequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisGroupRequest - -## Example Usage - -```typescript -import { RetrieveHrisGroupRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisGroupRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the group you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrislocationrequest.md b/docs/models/operations/retrievehrislocationrequest.md deleted file mode 100644 index d0013a13..00000000 --- a/docs/models/operations/retrievehrislocationrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisLocationRequest - -## Example Usage - -```typescript -import { RetrieveHrisLocationRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisLocationRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the location you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrispaygrouprequest.md b/docs/models/operations/retrievehrispaygrouprequest.md deleted file mode 100644 index 9479bbb4..00000000 --- a/docs/models/operations/retrievehrispaygrouprequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisPaygroupRequest - -## Example Usage - -```typescript -import { RetrieveHrisPaygroupRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisPaygroupRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the paygroup you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehrispayrollrunrequest.md b/docs/models/operations/retrievehrispayrollrunrequest.md deleted file mode 100644 index 6bfdb300..00000000 --- a/docs/models/operations/retrievehrispayrollrunrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisPayrollRunRequest - -## Example Usage - -```typescript -import { RetrieveHrisPayrollRunRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisPayrollRunRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the payroll run you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehristimeoffbalancerequest.md b/docs/models/operations/retrievehristimeoffbalancerequest.md deleted file mode 100644 index 9be00905..00000000 --- a/docs/models/operations/retrievehristimeoffbalancerequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisTimeoffbalanceRequest - -## Example Usage - -```typescript -import { RetrieveHrisTimeoffbalanceRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisTimeoffbalanceRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the timeoffbalance you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehristimeoffrequest.md b/docs/models/operations/retrievehristimeoffrequest.md deleted file mode 100644 index 205c46ed..00000000 --- a/docs/models/operations/retrievehristimeoffrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisTimeoffRequest - -## Example Usage - -```typescript -import { RetrieveHrisTimeoffRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisTimeoffRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the time off you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/retrievehristimesheetentryrequest.md b/docs/models/operations/retrievehristimesheetentryrequest.md deleted file mode 100644 index 3da1689d..00000000 --- a/docs/models/operations/retrievehristimesheetentryrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# RetrieveHrisTimesheetentryRequest - -## Example Usage - -```typescript -import { RetrieveHrisTimesheetentryRequest } from "@panora/sdk/models/operations"; - -let value: RetrieveHrisTimesheetentryRequest = { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | | -| `id` | *string* | :heavy_check_mark: | id of the timesheetentry you want to retrieve. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f | -| `remoteData` | *boolean* | :heavy_minus_sign: | Set to true to include data from the original Hris software. | false | \ No newline at end of file diff --git a/docs/models/operations/updatepullfrequencyresponsebody.md b/docs/models/operations/updatepullfrequencyresponsebody.md deleted file mode 100644 index 7fa8328e..00000000 --- a/docs/models/operations/updatepullfrequencyresponsebody.md +++ /dev/null @@ -1,14 +0,0 @@ -# UpdatePullFrequencyResponseBody - -## Example Usage - -```typescript -import { UpdatePullFrequencyResponseBody } from "@panora/sdk/models/operations"; - -let value: UpdatePullFrequencyResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/vertical.md b/docs/models/operations/vertical.md index 1590c9a3..6856c779 100644 --- a/docs/models/operations/vertical.md +++ b/docs/models/operations/vertical.md @@ -16,7 +16,5 @@ let value: Vertical = Vertical.Ticketing; | `Marketingautomation` | marketingautomation | | `Crm` | crm | | `Filestorage` | filestorage | -| `Ats` | ats | -| `Hris` | hris | | `Accounting` | accounting | | `Ecommerce` | ecommerce | \ No newline at end of file diff --git a/docs/sdks/accounts/README.md b/docs/sdks/accounts/README.md index 1b798061..bc67f6a7 100644 --- a/docs/sdks/accounts/README.md +++ b/docs/sdks/accounts/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -113,9 +112,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -148,7 +147,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -169,6 +168,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index 99a3fc77..a580ebc5 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -115,9 +114,9 @@ async function run() { remoteData: false, unifiedMarketingautomationActionInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -151,7 +150,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -172,10 +171,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -196,9 +194,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -232,7 +230,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -253,6 +251,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md deleted file mode 100644 index 1f979713..00000000 --- a/docs/sdks/activities/README.md +++ /dev/null @@ -1,280 +0,0 @@ -# Activities -(*ats.activities*) - -## Overview - -### Available Operations - -* [list](#list) - List Activities -* [create](#create) - Create Activities -* [retrieve](#retrieve) - Retrieve Activities - -## list - -List Activities - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.activities.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsActivitiesList } from "@panora/sdk/funcs/atsActivitiesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsActivitiesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsActivityResponse](../../models/operations/listatsactivityresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Activities in any supported Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.activities.create({ - xConnectionToken: "", - remoteData: false, - unifiedAtsActivityInput: { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsActivitiesCreate } from "@panora/sdk/funcs/atsActivitiesCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsActivitiesCreate(panora, { - xConnectionToken: "", - remoteData: false, - unifiedAtsActivityInput: { - activityType: "NOTE", - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: "PUBLIC", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsActivityOutput](../../models/components/unifiedatsactivityoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Activities from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.activities.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsActivitiesRetrieve } from "@panora/sdk/funcs/atsActivitiesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsActivitiesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsActivityOutput](../../models/components/unifiedatsactivityoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/addresses/README.md b/docs/sdks/addresses/README.md index d707731b..2cc4e45c 100644 --- a/docs/sdks/addresses/README.md +++ b/docs/sdks/addresses/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md deleted file mode 100644 index 084fd78b..00000000 --- a/docs/sdks/applications/README.md +++ /dev/null @@ -1,292 +0,0 @@ -# Applications -(*ats.applications*) - -## Overview - -### Available Operations - -* [list](#list) - List Applications -* [create](#create) - Create Applications -* [retrieve](#retrieve) - Retrieve Applications - -## list - -List Applications - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.applications.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsApplicationsList } from "@panora/sdk/funcs/atsApplicationsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsApplicationsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsApplicationResponse](../../models/operations/listatsapplicationresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Applications in any supported Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.applications.create({ - xConnectionToken: "", - remoteData: false, - unifiedAtsApplicationInput: { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsApplicationsCreate } from "@panora/sdk/funcs/atsApplicationsCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsApplicationsCreate(panora, { - xConnectionToken: "", - remoteData: false, - unifiedAtsApplicationInput: { - appliedAt: new Date("2024-10-01T12:00:00Z"), - rejectedAt: new Date("2024-10-01T12:00:00Z"), - offers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "12345678-1234-1234-1234-123456789012", - ], - source: "Source Name", - creditedTo: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - currentStage: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - rejectReason: "Candidate not experienced enough", - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsApplicationOutput](../../models/components/unifiedatsapplicationoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Applications from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.applications.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsApplicationsRetrieve } from "@panora/sdk/funcs/atsApplicationsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsApplicationsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsApplicationOutput](../../models/components/unifiedatsapplicationoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md deleted file mode 100644 index 0fb4c255..00000000 --- a/docs/sdks/ats/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Ats -(*ats*) \ No newline at end of file diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 2b0522d1..9b659f33 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -1,5 +1,5 @@ # Attachments -(*ats.attachments*) +(*accounting.attachments*) ## Overview @@ -23,13 +23,13 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.attachments.list({ + const result = await panora.accounting.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -45,7 +45,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { atsAttachmentsList } from "@panora/sdk/funcs/atsAttachmentsList.js"; +import { accountingAttachmentsList } from "@panora/sdk/funcs/accountingAttachmentsList.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -54,7 +54,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await atsAttachmentsList(panora, { + const res = await accountingAttachmentsList(panora, { xConnectionToken: "", remoteData: true, limit: 10, @@ -80,25 +80,24 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAtsAttachmentRequest](../../models/operations/listatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[operations.ListAtsAttachmentResponse](../../models/operations/listatsattachmentresponse.md)\>** +**Promise\<[operations.ListAccountingAttachmentsResponse](../../models/operations/listaccountingattachmentsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create -Create Attachments in any supported ATS software +Create attachments in any supported Accounting software ### Example Usage @@ -110,25 +109,19 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.attachments.create({ + const result = await panora.accounting.attachments.create({ xConnectionToken: "", remoteData: false, - unifiedAtsAttachmentInput: { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, + unifiedAccountingAttachmentInput: { + fileName: "invoice.pdf", + fileUrl: "https://example.com/files/invoice.pdf", + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -140,7 +133,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { atsAttachmentsCreate } from "@panora/sdk/funcs/atsAttachmentsCreate.js"; +import { accountingAttachmentsCreate } from "@panora/sdk/funcs/accountingAttachmentsCreate.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -149,20 +142,14 @@ const panora = new PanoraCore({ }); async function run() { - const res = await atsAttachmentsCreate(panora, { + const res = await accountingAttachmentsCreate(panora, { xConnectionToken: "", remoteData: false, - unifiedAtsAttachmentInput: { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: "RESUME", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, + unifiedAccountingAttachmentInput: { + fileName: "invoice.pdf", + fileUrl: "https://example.com/files/invoice.pdf", + accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: {}, }, }); @@ -173,7 +160,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -183,25 +170,24 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateAtsAttachmentRequest](../../models/operations/createatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[components.UnifiedAtsAttachmentOutput](../../models/components/unifiedatsattachmentoutput.md)\>** +**Promise\<[components.UnifiedAccountingAttachmentOutput](../../models/components/unifiedaccountingattachmentoutput.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve -Retrieve Attachments from any connected Ats software +Retrieve attachments from any connected Accounting software ### Example Usage @@ -213,14 +199,14 @@ const panora = new Panora({ }); async function run() { - const result = await panora.ats.attachments.retrieve({ + const result = await panora.accounting.attachments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -232,7 +218,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { atsAttachmentsRetrieve } from "@panora/sdk/funcs/atsAttachmentsRetrieve.js"; +import { accountingAttachmentsRetrieve } from "@panora/sdk/funcs/accountingAttachmentsRetrieve.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -241,7 +227,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await atsAttachmentsRetrieve(panora, { + const res = await accountingAttachmentsRetrieve(panora, { xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -254,7 +240,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -264,17 +250,17 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveAtsAttachmentRequest](../../models/operations/retrieveatsattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[components.UnifiedAtsAttachmentOutput](../../models/components/unifiedatsattachmentoutput.md)\>** +**Promise\<[components.UnifiedAccountingAttachmentOutput](../../models/components/unifiedaccountingattachmentoutput.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/automations/README.md b/docs/sdks/automations/README.md index 62e699ae..d3d54309 100644 --- a/docs/sdks/automations/README.md +++ b/docs/sdks/automations/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -115,9 +114,9 @@ async function run() { remoteData: false, unifiedMarketingautomationAutomationInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -151,7 +150,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -172,10 +171,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -196,9 +194,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -232,7 +230,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -253,6 +251,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/balancesheets/README.md b/docs/sdks/balancesheets/README.md index 6b5a044f..468b59b3 100644 --- a/docs/sdks/balancesheets/README.md +++ b/docs/sdks/balancesheets/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/bankinfos/README.md b/docs/sdks/bankinfos/README.md deleted file mode 100644 index 4edfa1df..00000000 --- a/docs/sdks/bankinfos/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Bankinfos -(*hris.bankinfos*) - -## Overview - -### Available Operations - -* [list](#list) - List Bank Info -* [retrieve](#retrieve) - Retrieve Bank Info - -## list - -List Bank Info - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.bankinfos.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisBankinfosList } from "@panora/sdk/funcs/hrisBankinfosList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisBankinfosList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListHrisBankInfoResponse](../../models/operations/listhrisbankinforesponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Bank Info from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.bankinfos.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisBankinfosRetrieve } from "@panora/sdk/funcs/hrisBankinfosRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisBankinfosRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisBankinfoOutput](../../models/components/unifiedhrisbankinfooutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/benefits/README.md b/docs/sdks/benefits/README.md deleted file mode 100644 index 4a1ed353..00000000 --- a/docs/sdks/benefits/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Benefits -(*hris.benefits*) - -## Overview - -### Available Operations - -* [list](#list) - List Benefits -* [retrieve](#retrieve) - Retrieve Benefit - -## list - -List Benefits - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.benefits.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisBenefitsList } from "@panora/sdk/funcs/hrisBenefitsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisBenefitsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisBenefitsRequest](../../models/operations/listhrisbenefitsrequest.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.ListHrisBenefitsResponse](../../models/operations/listhrisbenefitsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Benefit from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.benefits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisBenefitsRetrieve } from "@panora/sdk/funcs/hrisBenefitsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisBenefitsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisBenefitOutput](../../models/components/unifiedhrisbenefitoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/campaigns/README.md b/docs/sdks/campaigns/README.md index 967687c5..4392f491 100644 --- a/docs/sdks/campaigns/README.md +++ b/docs/sdks/campaigns/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -115,9 +114,9 @@ async function run() { remoteData: false, unifiedMarketingautomationCampaignInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -151,7 +150,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -172,10 +171,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -196,9 +194,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -232,7 +230,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -253,6 +251,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/candidates/README.md b/docs/sdks/candidates/README.md deleted file mode 100644 index 0138846e..00000000 --- a/docs/sdks/candidates/README.md +++ /dev/null @@ -1,344 +0,0 @@ -# Candidates -(*ats.candidates*) - -## Overview - -### Available Operations - -* [list](#list) - List Candidates -* [create](#create) - Create Candidates -* [retrieve](#retrieve) - Retrieve Candidates - -## list - -List Candidates - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.candidates.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsCandidatesList } from "@panora/sdk/funcs/atsCandidatesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsCandidatesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsCandidateResponse](../../models/operations/listatscandidateresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Candidates in any supported Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.candidates.create({ - xConnectionToken: "", - remoteData: false, - unifiedAtsCandidateInput: { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsCandidatesCreate } from "@panora/sdk/funcs/atsCandidatesCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsCandidatesCreate(panora, { - xConnectionToken: "", - remoteData: false, - unifiedAtsCandidateInput: { - firstName: "Joe", - lastName: "Doe", - company: "Acme", - title: "Analyst", - locations: "New York", - isPrivate: false, - emailReachable: true, - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteModifiedAt: new Date("2024-10-01T12:00:00Z"), - lastInteractionAt: new Date("2024-10-01T12:00:00Z"), - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - applications: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - tags: [ - "tag_1", - "tag_2", - ], - urls: [ - { - url: "mywebsite.com", - urlType: "WEBSITE", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660688899", - phoneType: "WORK", - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: "WORK", - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsCandidateOutput](../../models/components/unifiedatscandidateoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Candidates from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.candidates.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsCandidatesRetrieve } from "@panora/sdk/funcs/atsCandidatesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsCandidatesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsCandidateOutput](../../models/components/unifiedatscandidateoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/cashflowstatements/README.md b/docs/sdks/cashflowstatements/README.md index bc014bc5..21cfb0be 100644 --- a/docs/sdks/cashflowstatements/README.md +++ b/docs/sdks/cashflowstatements/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 5bbb2910..c7870cd7 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/comments/README.md b/docs/sdks/comments/README.md index 09cd65f9..aecada2f 100644 --- a/docs/sdks/comments/README.md +++ b/docs/sdks/comments/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -125,9 +124,9 @@ async function run() { ], }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,7 +170,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -192,10 +191,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -215,9 +213,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -250,7 +248,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -271,6 +269,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 822dadb5..8b465545 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -148,9 +147,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -217,7 +216,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -238,10 +237,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -262,9 +260,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -298,7 +296,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -319,6 +317,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/companyinfos/README.md b/docs/sdks/companyinfos/README.md index 3013d336..026bdeb5 100644 --- a/docs/sdks/companyinfos/README.md +++ b/docs/sdks/companyinfos/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index 5504e996..314a8649 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -22,9 +22,9 @@ const panora = new Panora({ async function run() { const result = await panora.connections.list(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -54,7 +54,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -74,6 +74,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index 364119a3..29720991 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -113,9 +112,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -148,7 +147,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -169,6 +168,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index 6311b097..3aba5115 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index 9da74b48..521fc754 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -113,9 +112,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -148,7 +147,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -169,6 +168,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/deals/README.md b/docs/sdks/deals/README.md index abd4fbf9..363648b3 100644 --- a/docs/sdks/deals/README.md +++ b/docs/sdks/deals/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -125,9 +124,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,7 +170,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -192,10 +191,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -216,9 +214,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -252,7 +250,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -273,6 +271,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md deleted file mode 100644 index 475ef11f..00000000 --- a/docs/sdks/departments/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Departments -(*ats.departments*) - -## Overview - -### Available Operations - -* [list](#list) - List Departments -* [retrieve](#retrieve) - Retrieve Departments - -## list - -List Departments - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.departments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsDepartmentsList } from "@panora/sdk/funcs/atsDepartmentsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsDepartmentsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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.ListAtsDepartmentsResponse](../../models/operations/listatsdepartmentsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Departments from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.departments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsDepartmentsRetrieve } from "@panora/sdk/funcs/atsDepartmentsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsDepartmentsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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\<[components.UnifiedAtsDepartmentOutput](../../models/components/unifiedatsdepartmentoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/dependents/README.md b/docs/sdks/dependents/README.md deleted file mode 100644 index c7ad7c90..00000000 --- a/docs/sdks/dependents/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Dependents -(*hris.dependents*) - -## Overview - -### Available Operations - -* [list](#list) - List Dependents -* [retrieve](#retrieve) - Retrieve Dependent - -## list - -List Dependents - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.dependents.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisDependentsList } from "@panora/sdk/funcs/hrisDependentsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisDependentsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListHrisDependentsResponse](../../models/operations/listhrisdependentsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Dependent from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.dependents.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisDependentsRetrieve } from "@panora/sdk/funcs/hrisDependentsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisDependentsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisDependentOutput](../../models/components/unifiedhrisdependentoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/eeocs/README.md b/docs/sdks/eeocs/README.md deleted file mode 100644 index c4db112b..00000000 --- a/docs/sdks/eeocs/README.md +++ /dev/null @@ -1,174 +0,0 @@ -# Eeocs -(*ats.eeocs*) - -## Overview - -### Available Operations - -* [list](#list) - List Eeocss -* [retrieve](#retrieve) - Retrieve Eeocs - -## list - -List Eeocss - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.eeocs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsEeocsList } from "@panora/sdk/funcs/atsEeocsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsEeocsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsEeocsResponse](../../models/operations/listatseeocsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a eeocs from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.eeocs.retrieve({ - xConnectionToken: "", - id: "", - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsEeocsRetrieve } from "@panora/sdk/funcs/atsEeocsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsEeocsRetrieve(panora, { - xConnectionToken: "", - id: "", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsEeocsOutput](../../models/components/unifiedatseeocsoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/emails/README.md b/docs/sdks/emails/README.md index 5a38b188..786591d5 100644 --- a/docs/sdks/emails/README.md +++ b/docs/sdks/emails/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/employeepayrollruns/README.md b/docs/sdks/employeepayrollruns/README.md deleted file mode 100644 index be87eba7..00000000 --- a/docs/sdks/employeepayrollruns/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Employeepayrollruns -(*hris.employeepayrollruns*) - -## Overview - -### Available Operations - -* [list](#list) - List Employee Payroll Runs -* [retrieve](#retrieve) - Retrieve Employee Payroll Run - -## list - -List Employee Payroll Runs - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employeepayrollruns.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployeepayrollrunsList } from "@panora/sdk/funcs/hrisEmployeepayrollrunsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployeepayrollrunsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListHrisEmployeePayrollRunResponse](../../models/operations/listhrisemployeepayrollrunresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Employee Payroll Run from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employeepayrollruns.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployeepayrollrunsRetrieve } from "@panora/sdk/funcs/hrisEmployeepayrollrunsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployeepayrollrunsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisEmployeepayrollrunOutput](../../models/components/unifiedhrisemployeepayrollrunoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md deleted file mode 100644 index 9d9ede8d..00000000 --- a/docs/sdks/employees/README.md +++ /dev/null @@ -1,322 +0,0 @@ -# Employees -(*hris.employees*) - -## Overview - -### Available Operations - -* [list](#list) - List Employees -* [create](#create) - Create Employees -* [retrieve](#retrieve) - Retrieve Employee - -## list - -List Employees - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employees.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployeesList } from "@panora/sdk/funcs/hrisEmployeesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployeesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisEmployeesRequest](../../models/operations/listhrisemployeesrequest.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.ListHrisEmployeesResponse](../../models/operations/listhrisemployeesresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Employees in any supported Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employees.create({ - xConnectionToken: "", - unifiedHrisEmployeeInput: { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployeesCreate } from "@panora/sdk/funcs/hrisEmployeesCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployeesCreate(panora, { - xConnectionToken: "", - unifiedHrisEmployeeInput: { - groups: [ - "Group1", - "Group2", - ], - locations: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - employeeNumber: "EMP001", - companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - firstName: "John", - lastName: "Doe", - preferredName: "Johnny", - displayFullName: "John Doe", - username: "johndoe", - workEmail: "john.doe@company.com", - personalEmail: "john.doe@personal.com", - mobilePhoneNumber: "+1234567890", - employments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - ssn: "123-45-6789", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "Married", - dateOfBirth: new Date("1990-01-01"), - startDate: new Date("2020-01-01"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2025-01-01"), - avatarUrl: "https://example.com/avatar.jpg", - managerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisEmployeeOutput](../../models/components/unifiedhrisemployeeoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve an Employee from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employees.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployeesRetrieve } from "@panora/sdk/funcs/hrisEmployeesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployeesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisEmployeeOutput](../../models/components/unifiedhrisemployeeoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/employerbenefits/README.md b/docs/sdks/employerbenefits/README.md deleted file mode 100644 index d90d9384..00000000 --- a/docs/sdks/employerbenefits/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Employerbenefits -(*hris.employerbenefits*) - -## Overview - -### Available Operations - -* [list](#list) - List Employer Benefits -* [retrieve](#retrieve) - Retrieve Employer Benefit - -## list - -List Employer Benefits - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employerbenefits.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployerbenefitsList } from "@panora/sdk/funcs/hrisEmployerbenefitsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployerbenefitsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisEmployerBenefitsRequest](../../models/operations/listhrisemployerbenefitsrequest.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.ListHrisEmployerBenefitsResponse](../../models/operations/listhrisemployerbenefitsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve an Employer Benefit from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employerbenefits.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmployerbenefitsRetrieve } from "@panora/sdk/funcs/hrisEmployerbenefitsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmployerbenefitsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisEmployerbenefitOutput](../../models/components/unifiedhrisemployerbenefitoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/employments/README.md b/docs/sdks/employments/README.md deleted file mode 100644 index ccc525fb..00000000 --- a/docs/sdks/employments/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Employments -(*hris.employments*) - -## Overview - -### Available Operations - -* [list](#list) - List Employments -* [retrieve](#retrieve) - Retrieve Employment - -## list - -List Employments - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmploymentsList } from "@panora/sdk/funcs/hrisEmploymentsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmploymentsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisEmploymentsRequest](../../models/operations/listhrisemploymentsrequest.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.ListHrisEmploymentsResponse](../../models/operations/listhrisemploymentsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve an Employment from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.employments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisEmploymentsRetrieve } from "@panora/sdk/funcs/hrisEmploymentsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisEmploymentsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisEmploymentOutput](../../models/components/unifiedhrisemploymentoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/engagements/README.md b/docs/sdks/engagements/README.md index a7e87d4c..a36a9b1d 100644 --- a/docs/sdks/engagements/README.md +++ b/docs/sdks/engagements/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -131,9 +130,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -183,7 +182,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -204,10 +203,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -228,9 +226,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -264,7 +262,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -285,6 +283,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index ce7eb92e..9a309af6 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -22,9 +22,9 @@ const panora = new Panora({ async function run() { const result = await panora.events.getPanoraCoreEvents({}); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -54,7 +54,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -75,6 +75,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 170a928d..6be2279c 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -143,9 +142,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -207,7 +206,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -228,10 +227,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -252,9 +250,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -288,7 +286,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -309,6 +307,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/fieldmappings/README.md b/docs/sdks/fieldmappings/README.md index c4a8a785..912b60d7 100644 --- a/docs/sdks/fieldmappings/README.md +++ b/docs/sdks/fieldmappings/README.md @@ -27,6 +27,8 @@ const panora = new Panora({ async function run() { await panora.fieldMappings.getFieldMappingValues(); + + } run(); @@ -75,10 +77,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## getFieldMappingsEntities @@ -95,6 +96,8 @@ const panora = new Panora({ async function run() { await panora.fieldMappings.getFieldMappingsEntities(); + + } run(); @@ -143,10 +146,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## getFieldMappings @@ -163,6 +165,8 @@ const panora = new Panora({ async function run() { await panora.fieldMappings.getFieldMappings(); + + } run(); @@ -211,10 +215,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## definitions @@ -237,9 +240,9 @@ async function run() { description: "My favorite dish", dataType: DataType.String, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -275,7 +278,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -296,10 +299,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## defineCustomField @@ -325,9 +327,9 @@ async function run() { sourceProvider: "hubspot", linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -366,7 +368,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -387,10 +389,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## map @@ -412,9 +413,9 @@ async function run() { sourceProvider: "hubspot", linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -449,7 +450,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -470,6 +471,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 94e227f9..b4d8386e 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -127,9 +126,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -175,7 +174,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -196,10 +195,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -220,9 +218,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -256,7 +254,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -277,6 +275,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index f482b01c..e586d9bc 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -128,9 +127,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -177,7 +176,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -198,10 +197,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -222,9 +220,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -258,7 +256,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -279,6 +277,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/fulfillments/README.md b/docs/sdks/fulfillments/README.md index 03bd8e83..d0de33d3 100644 --- a/docs/sdks/fulfillments/README.md +++ b/docs/sdks/fulfillments/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -113,9 +112,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -148,7 +147,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -169,6 +168,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/groups/README.md b/docs/sdks/groups/README.md index 2f4093b2..f9233f01 100644 --- a/docs/sdks/groups/README.md +++ b/docs/sdks/groups/README.md @@ -1,16 +1,16 @@ # Groups -(*hris.groups*) +(*filestorage.groups*) ## Overview ### Available Operations -* [list](#list) - List Groups -* [retrieve](#retrieve) - Retrieve Group +* [list](#list) - List Groups +* [retrieve](#retrieve) - Retrieve Groups ## list -List Groups +List Groups ### Example Usage @@ -22,13 +22,13 @@ const panora = new Panora({ }); async function run() { - const result = await panora.hris.groups.list({ + const result = await panora.filestorage.groups.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -44,7 +44,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisGroupsList } from "@panora/sdk/funcs/hrisGroupsList.js"; +import { filestorageGroupsList } from "@panora/sdk/funcs/filestorageGroupsList.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -53,7 +53,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await hrisGroupsList(panora, { + const res = await filestorageGroupsList(panora, { xConnectionToken: "", remoteData: true, limit: 10, @@ -79,25 +79,24 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisGroupsRequest](../../models/operations/listhrisgroupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[operations.ListHrisGroupsResponse](../../models/operations/listhrisgroupsresponse.md)\>** +**Promise\<[operations.ListFilestorageGroupResponse](../../models/operations/listfilestoragegroupresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve -Retrieve a Group from any connected Hris software +Retrieve Groups from any connected Filestorage software ### Example Usage @@ -109,14 +108,14 @@ const panora = new Panora({ }); async function run() { - const result = await panora.hris.groups.retrieve({ + const result = await panora.filestorage.groups.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -128,7 +127,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisGroupsRetrieve } from "@panora/sdk/funcs/hrisGroupsRetrieve.js"; +import { filestorageGroupsRetrieve } from "@panora/sdk/funcs/filestorageGroupsRetrieve.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -137,7 +136,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await hrisGroupsRetrieve(panora, { + const res = await filestorageGroupsRetrieve(panora, { xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -160,17 +159,17 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveHrisGroupRequest](../../models/operations/retrievehrisgrouprequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[components.UnifiedHrisGroupOutput](../../models/components/unifiedhrisgroupoutput.md)\>** +**Promise\<[components.UnifiedFilestorageGroupOutput](../../models/components/unifiedfilestoragegroupoutput.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md deleted file mode 100644 index e556f5f6..00000000 --- a/docs/sdks/hris/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Hris -(*hris*) \ No newline at end of file diff --git a/docs/sdks/incomestatements/README.md b/docs/sdks/incomestatements/README.md index 058025b8..a52c5ce2 100644 --- a/docs/sdks/incomestatements/README.md +++ b/docs/sdks/incomestatements/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/interviews/README.md b/docs/sdks/interviews/README.md deleted file mode 100644 index a1095bb0..00000000 --- a/docs/sdks/interviews/README.md +++ /dev/null @@ -1,292 +0,0 @@ -# Interviews -(*ats.interviews*) - -## Overview - -### Available Operations - -* [list](#list) - List Interviews -* [create](#create) - Create Interviews -* [retrieve](#retrieve) - Retrieve Interviews - -## list - -List Interviews - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.interviews.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsInterviewsList } from "@panora/sdk/funcs/atsInterviewsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsInterviewsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsInterviewResponse](../../models/operations/listatsinterviewresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Interviews in any supported Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.interviews.create({ - xConnectionToken: "", - remoteData: false, - unifiedAtsInterviewInput: { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsInterviewsCreate } from "@panora/sdk/funcs/atsInterviewsCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsInterviewsCreate(panora, { - xConnectionToken: "", - remoteData: false, - unifiedAtsInterviewInput: { - status: "SCHEDULED", - applicationId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - jobInterviewStageId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - organizedBy: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - interviewers: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - location: "San Francisco", - startAt: new Date("2024-10-01T12:00:00Z"), - endAt: new Date("2024-10-01T12:00:00Z"), - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - remoteUpdatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsInterviewOutput](../../models/components/unifiedatsinterviewoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Interviews from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.interviews.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsInterviewsRetrieve } from "@panora/sdk/funcs/atsInterviewsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsInterviewsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsInterviewOutput](../../models/components/unifiedatsinterviewoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 3fa3c84d..ca70c3ed 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -150,9 +149,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -221,7 +220,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -242,10 +241,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -266,9 +264,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -302,7 +300,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -323,6 +321,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/items/README.md b/docs/sdks/items/README.md index 1b35d615..0dc11824 100644 --- a/docs/sdks/items/README.md +++ b/docs/sdks/items/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/jobinterviewstages/README.md b/docs/sdks/jobinterviewstages/README.md deleted file mode 100644 index b337ba34..00000000 --- a/docs/sdks/jobinterviewstages/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Jobinterviewstages -(*ats.jobinterviewstages*) - -## Overview - -### Available Operations - -* [list](#list) - List JobInterviewStages -* [retrieve](#retrieve) - Retrieve Job Interview Stages - -## list - -List JobInterviewStages - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.jobinterviewstages.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsJobinterviewstagesList } from "@panora/sdk/funcs/atsJobinterviewstagesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsJobinterviewstagesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsJobInterviewStageResponse](../../models/operations/listatsjobinterviewstageresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Job Interview Stages from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.jobinterviewstages.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsJobinterviewstagesRetrieve } from "@panora/sdk/funcs/atsJobinterviewstagesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsJobinterviewstagesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsJobinterviewstageOutput](../../models/components/unifiedatsjobinterviewstageoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md deleted file mode 100644 index 45bb5e84..00000000 --- a/docs/sdks/jobs/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Jobs -(*ats.jobs*) - -## Overview - -### Available Operations - -* [list](#list) - List Jobs -* [retrieve](#retrieve) - Retrieve Jobs - -## list - -List Jobs - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.jobs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsJobsList } from "@panora/sdk/funcs/atsJobsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsJobsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsJobResponse](../../models/operations/listatsjobresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Jobs from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.jobs.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsJobsRetrieve } from "@panora/sdk/funcs/atsJobsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsJobsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsJobOutput](../../models/components/unifiedatsjoboutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index 5063482f..97dcdec8 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -149,9 +148,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -219,7 +218,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -240,10 +239,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -264,9 +262,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -300,7 +298,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -321,6 +319,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/linkedusers/README.md b/docs/sdks/linkedusers/README.md index 6ef8b51c..88d1b81e 100644 --- a/docs/sdks/linkedusers/README.md +++ b/docs/sdks/linkedusers/README.md @@ -28,9 +28,9 @@ async function run() { const result = await panora.linkedUsers.remoteId({ remoteId: "id_1", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -62,7 +62,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -83,10 +83,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -106,9 +105,9 @@ async function run() { linkedUserOriginId: "id_1", alias: "acme", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -141,7 +140,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -162,10 +161,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -182,9 +180,9 @@ const panora = new Panora({ async function run() { const result = await panora.linkedUsers.list(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -214,7 +212,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -234,10 +232,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## importBatch @@ -259,9 +256,9 @@ async function run() { ], alias: "acme", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -296,7 +293,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -317,10 +314,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -339,9 +335,9 @@ async function run() { const result = await panora.linkedUsers.retrieve({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -373,7 +369,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -394,6 +390,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/lists/README.md b/docs/sdks/lists/README.md index 6718342c..8a8cb26d 100644 --- a/docs/sdks/lists/README.md +++ b/docs/sdks/lists/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -114,9 +113,9 @@ async function run() { xConnectionToken: "", unifiedMarketingautomationListInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -149,7 +148,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -170,10 +169,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -194,9 +192,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -230,7 +228,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -251,6 +249,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md deleted file mode 100644 index cda27951..00000000 --- a/docs/sdks/locations/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Locations -(*hris.locations*) - -## Overview - -### Available Operations - -* [list](#list) - List Locations -* [retrieve](#retrieve) - Retrieve Location - -## list - -List Locations - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.locations.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisLocationsList } from "@panora/sdk/funcs/hrisLocationsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisLocationsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisLocationsRequest](../../models/operations/listhrislocationsrequest.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.ListHrisLocationsResponse](../../models/operations/listhrislocationsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Location from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.locations.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisLocationsRetrieve } from "@panora/sdk/funcs/hrisLocationsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisLocationsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisLocationOutput](../../models/components/unifiedhrislocationoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/login/README.md b/docs/sdks/login/README.md index 78aa0467..b911be7c 100644 --- a/docs/sdks/login/README.md +++ b/docs/sdks/login/README.md @@ -22,9 +22,12 @@ const panora = new Panora({ async function run() { await panora.auth.login.signIn({ + idUser: "", email: "Oda.Treutel97@hotmail.com", passwordHash: "", }); + + } run(); @@ -46,6 +49,7 @@ const panora = new PanoraCore({ async function run() { const res = await authLoginSignIn(panora, { + idUser: "", email: "Oda.Treutel97@hotmail.com", passwordHash: "", }); @@ -77,6 +81,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index a1f2b10c..5d35fd2f 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index 250b10ff..8030f6fd 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -125,9 +124,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,7 +170,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -192,10 +191,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -216,9 +214,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -252,7 +250,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -273,6 +271,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/offers/README.md b/docs/sdks/offers/README.md deleted file mode 100644 index 267924bf..00000000 --- a/docs/sdks/offers/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Offers -(*ats.offers*) - -## Overview - -### Available Operations - -* [list](#list) - List Offers -* [retrieve](#retrieve) - Retrieve Offers - -## list - -List Offers - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.offers.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsOffersList } from "@panora/sdk/funcs/atsOffersList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsOffersList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsOfferResponse](../../models/operations/listatsofferresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Offers from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.offers.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsOffersRetrieve } from "@panora/sdk/funcs/atsOffersRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsOffersRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsOfferOutput](../../models/components/unifiedatsofferoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/offices/README.md b/docs/sdks/offices/README.md deleted file mode 100644 index f0750177..00000000 --- a/docs/sdks/offices/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Offices -(*ats.offices*) - -## Overview - -### Available Operations - -* [list](#list) - List Offices -* [retrieve](#retrieve) - Retrieve Offices - -## list - -List Offices - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.offices.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsOfficesList } from "@panora/sdk/funcs/atsOfficesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsOfficesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsOfficeResponse](../../models/operations/listatsofficeresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Offices from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.offices.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsOfficesRetrieve } from "@panora/sdk/funcs/atsOfficesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsOfficesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsOfficeOutput](../../models/components/unifiedatsofficeoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index c025a379..b1d01c02 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -140,9 +139,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -201,7 +200,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -222,10 +221,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -245,9 +243,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -280,7 +278,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -301,6 +299,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panora/README.md b/docs/sdks/panora/README.md index 06dc20a2..c00a595f 100644 --- a/docs/sdks/panora/README.md +++ b/docs/sdks/panora/README.md @@ -22,9 +22,9 @@ const panora = new Panora({ async function run() { const result = await panora.hello(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -54,7 +54,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -74,10 +74,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## health @@ -92,9 +91,9 @@ const panora = new Panora({ async function run() { const result = await panora.health(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -124,7 +123,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -144,6 +143,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoraaccountingcontacts/README.md b/docs/sdks/panoraaccountingcontacts/README.md index 4e2aa592..d06d1350 100644 --- a/docs/sdks/panoraaccountingcontacts/README.md +++ b/docs/sdks/panoraaccountingcontacts/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -126,9 +125,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -173,7 +172,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -194,10 +193,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -218,9 +216,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -254,7 +252,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -275,6 +273,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoraaccounts/README.md b/docs/sdks/panoraaccounts/README.md index 7383b418..2ec5d17f 100644 --- a/docs/sdks/panoraaccounts/README.md +++ b/docs/sdks/panoraaccounts/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -127,9 +126,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -175,7 +174,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -196,10 +195,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -220,9 +218,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -256,7 +254,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -277,6 +275,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoraatsusers/README.md b/docs/sdks/panoraatsusers/README.md deleted file mode 100644 index b66ff663..00000000 --- a/docs/sdks/panoraatsusers/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# PanoraAtsUsers -(*ats.users*) - -## Overview - -### Available Operations - -* [list](#list) - List Users -* [retrieve](#retrieve) - Retrieve Users - -## list - -List Users - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.users.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsUsersList } from "@panora/sdk/funcs/atsUsersList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsUsersList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsUsersResponse](../../models/operations/listatsusersresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Users from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.users.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsUsersRetrieve } from "@panora/sdk/funcs/atsUsersRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsUsersRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsUserOutput](../../models/components/unifiedatsuseroutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/panoraattachments/README.md b/docs/sdks/panoraattachments/README.md index ba9bb1b0..447d581e 100644 --- a/docs/sdks/panoraattachments/README.md +++ b/docs/sdks/panoraattachments/README.md @@ -1,5 +1,5 @@ # PanoraAttachments -(*accounting.attachments*) +(*ticketing.attachments*) ## Overview @@ -23,13 +23,13 @@ const panora = new Panora({ }); async function run() { - const result = await panora.accounting.attachments.list({ + const result = await panora.ticketing.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -45,7 +45,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { accountingAttachmentsList } from "@panora/sdk/funcs/accountingAttachmentsList.js"; +import { ticketingAttachmentsList } from "@panora/sdk/funcs/ticketingAttachmentsList.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -54,7 +54,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await accountingAttachmentsList(panora, { + const res = await ticketingAttachmentsList(panora, { xConnectionToken: "", remoteData: true, limit: 10, @@ -80,25 +80,24 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAccountingAttachmentsRequest](../../models/operations/listaccountingattachmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[operations.ListAccountingAttachmentsResponse](../../models/operations/listaccountingattachmentsresponse.md)\>** +**Promise\<[operations.ListTicketingAttachmentsResponse](../../models/operations/listticketingattachmentsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create -Create attachments in any supported Accounting software +Create Attachments in any supported Ticketing software ### Example Usage @@ -110,19 +109,23 @@ const panora = new Panora({ }); async function run() { - const result = await panora.accounting.attachments.create({ + const result = await panora.ticketing.attachments.create({ xConnectionToken: "", - remoteData: false, - unifiedAccountingAttachmentInput: { - fileName: "invoice.pdf", - fileUrl: "https://example.com/files/invoice.pdf", - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, + unifiedTicketingAttachmentInput: { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -134,7 +137,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { accountingAttachmentsCreate } from "@panora/sdk/funcs/accountingAttachmentsCreate.js"; +import { ticketingAttachmentsCreate } from "@panora/sdk/funcs/ticketingAttachmentsCreate.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -143,14 +146,18 @@ const panora = new PanoraCore({ }); async function run() { - const res = await accountingAttachmentsCreate(panora, { + const res = await ticketingAttachmentsCreate(panora, { xConnectionToken: "", - remoteData: false, - unifiedAccountingAttachmentInput: { - fileName: "invoice.pdf", - fileUrl: "https://example.com/files/invoice.pdf", - accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, + unifiedTicketingAttachmentInput: { + fileName: "features_planning.pdf", + fileUrl: "https://example.com/features_planning.pdf", + uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, }, }); @@ -161,7 +168,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,25 +178,24 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateAccountingAttachmentRequest](../../models/operations/createaccountingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[components.UnifiedAccountingAttachmentOutput](../../models/components/unifiedaccountingattachmentoutput.md)\>** +**Promise\<[components.UnifiedTicketingAttachmentOutput](../../models/components/unifiedticketingattachmentoutput.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve -Retrieve attachments from any connected Accounting software +Retrieve Attachments from any connected Ticketing software ### Example Usage @@ -201,14 +207,14 @@ const panora = new Panora({ }); async function run() { - const result = await panora.accounting.attachments.retrieve({ + const result = await panora.ticketing.attachments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -220,7 +226,7 @@ The standalone function version of this method: ```typescript import { PanoraCore } from "@panora/sdk/core.js"; -import { accountingAttachmentsRetrieve } from "@panora/sdk/funcs/accountingAttachmentsRetrieve.js"; +import { ticketingAttachmentsRetrieve } from "@panora/sdk/funcs/ticketingAttachmentsRetrieve.js"; // Use `PanoraCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -229,7 +235,7 @@ const panora = new PanoraCore({ }); async function run() { - const res = await accountingAttachmentsRetrieve(panora, { + const res = await ticketingAttachmentsRetrieve(panora, { xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -242,7 +248,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -252,17 +258,17 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveAccountingAttachmentRequest](../../models/operations/retrieveaccountingattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `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 -**Promise\<[components.UnifiedAccountingAttachmentOutput](../../models/components/unifiedaccountingattachmentoutput.md)\>** +**Promise\<[components.UnifiedTicketingAttachmentOutput](../../models/components/unifiedticketingattachmentoutput.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoracompanies/README.md b/docs/sdks/panoracompanies/README.md deleted file mode 100644 index c2e46fbf..00000000 --- a/docs/sdks/panoracompanies/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# PanoraCompanies -(*hris.companies*) - -## Overview - -### Available Operations - -* [list](#list) - List Companies -* [retrieve](#retrieve) - Retrieve Company - -## list - -List Companies - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.companies.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisCompaniesList } from "@panora/sdk/funcs/hrisCompaniesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisCompaniesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisCompaniesRequest](../../models/operations/listhriscompaniesrequest.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.ListHrisCompaniesResponse](../../models/operations/listhriscompaniesresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Company from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.companies.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisCompaniesRetrieve } from "@panora/sdk/funcs/hrisCompaniesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisCompaniesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveHrisCompanyRequest](../../models/operations/retrievehriscompanyrequest.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\<[components.UnifiedHrisCompanyOutput](../../models/components/unifiedhriscompanyoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/panoracontacts/README.md b/docs/sdks/panoracontacts/README.md index 41164496..dd1e773b 100644 --- a/docs/sdks/panoracontacts/README.md +++ b/docs/sdks/panoracontacts/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -147,9 +146,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -215,7 +214,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -236,10 +235,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -260,9 +258,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -296,7 +294,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -317,6 +315,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoraevents/README.md b/docs/sdks/panoraevents/README.md index cd93086b..62677842 100644 --- a/docs/sdks/panoraevents/README.md +++ b/docs/sdks/panoraevents/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panorafilestorageusers/README.md b/docs/sdks/panorafilestorageusers/README.md index 721a8931..202c8527 100644 --- a/docs/sdks/panorafilestorageusers/README.md +++ b/docs/sdks/panorafilestorageusers/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoragroups/README.md b/docs/sdks/panoragroups/README.md deleted file mode 100644 index 53c161c7..00000000 --- a/docs/sdks/panoragroups/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# PanoraGroups -(*filestorage.groups*) - -## Overview - -### Available Operations - -* [list](#list) - List Groups -* [retrieve](#retrieve) - Retrieve Groups - -## list - -List Groups - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.filestorage.groups.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { filestorageGroupsList } from "@panora/sdk/funcs/filestorageGroupsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await filestorageGroupsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListFilestorageGroupResponse](../../models/operations/listfilestoragegroupresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Groups from any connected Filestorage software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.filestorage.groups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { filestorageGroupsRetrieve } from "@panora/sdk/funcs/filestorageGroupsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await filestorageGroupsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedFilestorageGroupOutput](../../models/components/unifiedfilestoragegroupoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/panoramarketingautomationcontacts/README.md b/docs/sdks/panoramarketingautomationcontacts/README.md index 166fc557..8ebf2555 100644 --- a/docs/sdks/panoramarketingautomationcontacts/README.md +++ b/docs/sdks/panoramarketingautomationcontacts/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -115,9 +114,9 @@ async function run() { remoteData: false, unifiedMarketingautomationContactInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -151,7 +150,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -172,10 +171,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -196,9 +194,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -232,7 +230,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -253,6 +251,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoramarketingautomationusers/README.md b/docs/sdks/panoramarketingautomationusers/README.md index 6a8fe192..d7d3dd66 100644 --- a/docs/sdks/panoramarketingautomationusers/README.md +++ b/docs/sdks/panoramarketingautomationusers/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/panoratags/README.md b/docs/sdks/panoratags/README.md deleted file mode 100644 index 6acf148d..00000000 --- a/docs/sdks/panoratags/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# PanoraTags -(*ats.tags*) - -## Overview - -### Available Operations - -* [list](#list) - List Tags -* [retrieve](#retrieve) - Retrieve Tags - -## list - -List Tags - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.tags.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsTagsList } from "@panora/sdk/funcs/atsTagsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsTagsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsTagsResponse](../../models/operations/listatstagsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Tags from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.tags.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsTagsRetrieve } from "@panora/sdk/funcs/atsTagsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsTagsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsTagOutput](../../models/components/unifiedatstagoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/panoraticketingattachments/README.md b/docs/sdks/panoraticketingattachments/README.md deleted file mode 100644 index b54c585e..00000000 --- a/docs/sdks/panoraticketingattachments/README.md +++ /dev/null @@ -1,276 +0,0 @@ -# PanoraTicketingAttachments -(*ticketing.attachments*) - -## Overview - -### Available Operations - -* [list](#list) - List Attachments -* [create](#create) - Create Attachments -* [retrieve](#retrieve) - Retrieve Attachments - -## list - -List Attachments - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ticketing.attachments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { ticketingAttachmentsList } from "@panora/sdk/funcs/ticketingAttachmentsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await ticketingAttachmentsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListTicketingAttachmentsResponse](../../models/operations/listticketingattachmentsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Attachments in any supported Ticketing software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ticketing.attachments.create({ - xConnectionToken: "", - unifiedTicketingAttachmentInput: { - fileName: "features_planning.pdf", - fileUrl: "https://example.com/features_planning.pdf", - uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { ticketingAttachmentsCreate } from "@panora/sdk/funcs/ticketingAttachmentsCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await ticketingAttachmentsCreate(panora, { - xConnectionToken: "", - unifiedTicketingAttachmentInput: { - fileName: "features_planning.pdf", - fileUrl: "https://example.com/features_planning.pdf", - uploader: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - commentId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedTicketingAttachmentOutput](../../models/components/unifiedticketingattachmentoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Attachments from any connected Ticketing software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ticketing.attachments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { ticketingAttachmentsRetrieve } from "@panora/sdk/funcs/ticketingAttachmentsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await ticketingAttachmentsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedTicketingAttachmentOutput](../../models/components/unifiedticketingattachmentoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/panorausers/README.md b/docs/sdks/panorausers/README.md index d0fda2f9..0344de01 100644 --- a/docs/sdks/panorausers/README.md +++ b/docs/sdks/panorausers/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "b008e199-eda9-4629-bd41-a01b6195864a", remoteData: true, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/passthrough/README.md b/docs/sdks/passthrough/README.md index 0bd4a43e..b9a4b2fc 100644 --- a/docs/sdks/passthrough/README.md +++ b/docs/sdks/passthrough/README.md @@ -27,11 +27,18 @@ async function run() { passThroughRequestDto: { method: PassThroughRequestDtoMethod.Get, path: "/dev", + data: {}, + requestFormat: { + + }, + overrideBaseUrl: { + "key": "https://equatorial-government.com/", + }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -58,6 +65,13 @@ async function run() { passThroughRequestDto: { method: PassThroughRequestDtoMethod.Get, path: "/dev", + data: {}, + requestFormat: { + + }, + overrideBaseUrl: { + "key": "https://equatorial-government.com/", + }, }, }); @@ -68,7 +82,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -85,10 +99,10 @@ run(); ### Response -**Promise\<[operations.RequestResponse](../../models/operations/requestresponse.md)\>** +**Promise\<[operations.RequestResponseBody](../../models/operations/requestresponsebody.md)\>** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/paygroups/README.md b/docs/sdks/paygroups/README.md deleted file mode 100644 index 7f54c510..00000000 --- a/docs/sdks/paygroups/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Paygroups -(*hris.paygroups*) - -## Overview - -### Available Operations - -* [list](#list) - List Pay Groups -* [retrieve](#retrieve) - Retrieve Pay Group - -## list - -List Pay Groups - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.paygroups.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisPaygroupsList } from "@panora/sdk/funcs/hrisPaygroupsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisPaygroupsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisPaygroupsRequest](../../models/operations/listhrispaygroupsrequest.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.ListHrisPaygroupsResponse](../../models/operations/listhrispaygroupsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Pay Group from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.paygroups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisPaygroupsRetrieve } from "@panora/sdk/funcs/hrisPaygroupsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisPaygroupsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisPaygroupOutput](../../models/components/unifiedhrispaygroupoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 9a9d1d38..e4319349 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -143,9 +142,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -207,7 +206,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -228,10 +227,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -252,9 +250,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -288,7 +286,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -309,6 +307,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/payrollruns/README.md b/docs/sdks/payrollruns/README.md deleted file mode 100644 index 088c58ed..00000000 --- a/docs/sdks/payrollruns/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Payrollruns -(*hris.payrollruns*) - -## Overview - -### Available Operations - -* [list](#list) - List Payroll Runs -* [retrieve](#retrieve) - Retrieve Payroll Run - -## list - -List Payroll Runs - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.payrollruns.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisPayrollrunsList } from "@panora/sdk/funcs/hrisPayrollrunsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisPayrollrunsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListHrisPayrollRunsResponse](../../models/operations/listhrispayrollrunsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Payroll Run from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.payrollruns.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisPayrollrunsRetrieve } from "@panora/sdk/funcs/hrisPayrollrunsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisPayrollrunsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveHrisPayrollRunRequest](../../models/operations/retrievehrispayrollrunrequest.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\<[components.UnifiedHrisPayrollrunOutput](../../models/components/unifiedhrispayrollrunoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index c815ee38..60e7de2b 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index a121ef26..e2f0b4c6 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -131,9 +130,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -183,7 +182,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -204,10 +203,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -227,9 +225,9 @@ async function run() { xConnectionToken: "", id: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -262,7 +260,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -283,6 +281,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/projects/README.md b/docs/sdks/projects/README.md index 3e550875..7e850848 100644 --- a/docs/sdks/projects/README.md +++ b/docs/sdks/projects/README.md @@ -23,9 +23,9 @@ const panora = new Panora({ async function run() { const result = await panora.projects.getProjects(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -55,7 +55,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -75,10 +75,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -99,9 +98,9 @@ async function run() { idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -135,7 +134,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -156,6 +155,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index 7dc426d2..61491a83 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -146,9 +145,9 @@ async function run() { fieldMappings: {}, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -213,7 +212,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -234,10 +233,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -258,9 +256,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -294,7 +292,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -315,6 +313,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/rag/README.md b/docs/sdks/rag/README.md index f0b59080..76271b6a 100644 --- a/docs/sdks/rag/README.md +++ b/docs/sdks/rag/README.md @@ -28,9 +28,9 @@ async function run() { topK: 3, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -66,7 +66,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -87,6 +87,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/rejectreasons/README.md b/docs/sdks/rejectreasons/README.md deleted file mode 100644 index 6418dd4a..00000000 --- a/docs/sdks/rejectreasons/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Rejectreasons -(*ats.rejectreasons*) - -## Overview - -### Available Operations - -* [list](#list) - List RejectReasons -* [retrieve](#retrieve) - Retrieve Reject Reasons - -## list - -List RejectReasons - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.rejectreasons.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsRejectreasonsList } from "@panora/sdk/funcs/atsRejectreasonsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsRejectreasonsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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.ListAtsRejectReasonsResponse](../../models/operations/listatsrejectreasonsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Reject Reasons from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.rejectreasons.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsRejectreasonsRetrieve } from "@panora/sdk/funcs/atsRejectreasonsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsRejectreasonsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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\<[components.UnifiedAtsRejectreasonOutput](../../models/components/unifiedatsrejectreasonoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/retryid/README.md b/docs/sdks/retryid/README.md index 6ed86121..02032334 100644 --- a/docs/sdks/retryid/README.md +++ b/docs/sdks/retryid/README.md @@ -24,6 +24,8 @@ async function run() { await panora.passthrough.retryid.getRetriedRequestResponse({ retryId: "", }); + + } run(); @@ -75,6 +77,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/scorecards/README.md b/docs/sdks/scorecards/README.md deleted file mode 100644 index cad68cf0..00000000 --- a/docs/sdks/scorecards/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Scorecards -(*ats.scorecards*) - -## Overview - -### Available Operations - -* [list](#list) - List ScoreCards -* [retrieve](#retrieve) - Retrieve Score Cards - -## list - -List ScoreCards - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.scorecards.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsScorecardsList } from "@panora/sdk/funcs/atsScorecardsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsScorecardsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListAtsScorecardResponse](../../models/operations/listatsscorecardresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Score Cards from any connected Ats software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.ats.scorecards.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { atsScorecardsRetrieve } from "@panora/sdk/funcs/atsScorecardsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await atsScorecardsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedAtsScorecardOutput](../../models/components/unifiedatsscorecardoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/stages/README.md b/docs/sdks/stages/README.md index e3f6807d..b27d65f1 100644 --- a/docs/sdks/stages/README.md +++ b/docs/sdks/stages/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/sync/README.md b/docs/sdks/sync/README.md index cfcdd509..d4170ae0 100644 --- a/docs/sdks/sync/README.md +++ b/docs/sdks/sync/README.md @@ -28,6 +28,8 @@ async function run() { await panora.sync.status({ vertical: Vertical.Ticketing, }); + + } run(); @@ -80,10 +82,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## resync @@ -100,9 +101,9 @@ const panora = new Panora({ async function run() { const result = await panora.sync.resync(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -132,7 +133,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -152,10 +153,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## updatePullFrequency @@ -171,18 +171,15 @@ const panora = new Panora({ }); async function run() { - const result = await panora.sync.updatePullFrequency({ + await panora.sync.updatePullFrequency({ crm: 1800, - ats: 3600, - hris: 7200, accounting: 14400, filestorage: 28800, ecommerce: 43200, ticketing: 86400, }); - - // Handle the result - console.log(result) + + } run(); @@ -205,8 +202,6 @@ const panora = new PanoraCore({ async function run() { const res = await syncUpdatePullFrequency(panora, { crm: 1800, - ats: 3600, - hris: 7200, accounting: 14400, filestorage: 28800, ecommerce: 43200, @@ -219,8 +214,7 @@ async function run() { const { value: result } = res; - // Handle the result - console.log(result) + } run(); @@ -237,14 +231,13 @@ run(); ### Response -**Promise\<[operations.UpdatePullFrequencyResponseBody](../../models/operations/updatepullfrequencyresponsebody.md)\>** +**Promise\** ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## getPullFrequency @@ -261,9 +254,9 @@ const panora = new Panora({ async function run() { const result = await panora.sync.getPullFrequency(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -293,7 +286,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -313,6 +306,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 5033e05a..19b67413 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/tasks/README.md b/docs/sdks/tasks/README.md index afebef6e..f0d70563 100644 --- a/docs/sdks/tasks/README.md +++ b/docs/sdks/tasks/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -127,9 +126,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -175,7 +174,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -196,10 +195,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -220,9 +218,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -256,7 +254,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -277,6 +275,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index be2f5c08..1554d2da 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index 968bf777..2066b7ac 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/templates/README.md b/docs/sdks/templates/README.md index ab036cf5..2445ed40 100644 --- a/docs/sdks/templates/README.md +++ b/docs/sdks/templates/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -114,9 +113,9 @@ async function run() { xConnectionToken: "", unifiedMarketingautomationTemplateInput: {}, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -149,7 +148,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -170,10 +169,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -194,9 +192,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -230,7 +228,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -251,6 +249,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/tickets/README.md b/docs/sdks/tickets/README.md index 24c718de..655b7108 100644 --- a/docs/sdks/tickets/README.md +++ b/docs/sdks/tickets/README.md @@ -29,7 +29,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -91,10 +91,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -155,9 +154,9 @@ async function run() { }, }, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -231,7 +230,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -252,10 +251,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -276,9 +274,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -312,7 +310,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -333,6 +331,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/timeoffbalances/README.md b/docs/sdks/timeoffbalances/README.md deleted file mode 100644 index da83e9a1..00000000 --- a/docs/sdks/timeoffbalances/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Timeoffbalances -(*hris.timeoffbalances*) - -## Overview - -### Available Operations - -* [list](#list) - List TimeoffBalances -* [retrieve](#retrieve) - Retrieve Time off Balances - -## list - -List TimeoffBalances - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timeoffbalances.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimeoffbalancesList } from "@panora/sdk/funcs/hrisTimeoffbalancesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimeoffbalancesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisTimeoffbalancesRequest](../../models/operations/listhristimeoffbalancesrequest.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.ListHrisTimeoffbalancesResponse](../../models/operations/listhristimeoffbalancesresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve Time off Balances from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timeoffbalances.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimeoffbalancesRetrieve } from "@panora/sdk/funcs/hrisTimeoffbalancesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimeoffbalancesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisTimeoffbalanceOutput](../../models/components/unifiedhristimeoffbalanceoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/timeoffs/README.md b/docs/sdks/timeoffs/README.md deleted file mode 100644 index f5aaa738..00000000 --- a/docs/sdks/timeoffs/README.md +++ /dev/null @@ -1,278 +0,0 @@ -# Timeoffs -(*hris.timeoffs*) - -## Overview - -### Available Operations - -* [list](#list) - List Time Offs -* [create](#create) - Create Timeoffs -* [retrieve](#retrieve) - Retrieve Time Off - -## list - -List Time Offs - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timeoffs.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimeoffsList } from "@panora/sdk/funcs/hrisTimeoffsList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimeoffsList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[operations.ListHrisTimeoffsResponse](../../models/operations/listhristimeoffsresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Timeoffs in any supported Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timeoffs.create({ - xConnectionToken: "", - unifiedHrisTimeoffInput: { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimeoffsCreate } from "@panora/sdk/funcs/hrisTimeoffsCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimeoffsCreate(panora, { - xConnectionToken: "", - unifiedHrisTimeoffInput: { - employee: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - approver: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - status: "REQUESTED", - employeeNote: "Annual vacation", - units: "DAYS", - amount: 5, - requestType: "VACATION", - startTime: new Date("2024-07-01T09:00:00Z"), - endTime: new Date("2024-07-05T17:00:00Z"), - fieldMappings: {}, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisTimeoffOutput](../../models/components/unifiedhristimeoffoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve a Time Off from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timeoffs.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimeoffsRetrieve } from "@panora/sdk/funcs/hrisTimeoffsRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimeoffsRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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 - -**Promise\<[components.UnifiedHrisTimeoffOutput](../../models/components/unifiedhristimeoffoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/timesheetentries/README.md b/docs/sdks/timesheetentries/README.md deleted file mode 100644 index 4097facb..00000000 --- a/docs/sdks/timesheetentries/README.md +++ /dev/null @@ -1,270 +0,0 @@ -# Timesheetentries -(*hris.timesheetentries*) - -## Overview - -### Available Operations - -* [list](#list) - List Timesheetentries -* [create](#create) - Create Timesheetentrys -* [retrieve](#retrieve) - Retrieve Timesheetentry - -## list - -List Timesheetentries - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timesheetentries.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimesheetentriesList } from "@panora/sdk/funcs/hrisTimesheetentriesList.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimesheetentriesList(panora, { - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHrisTimesheetentriesRequest](../../models/operations/listhristimesheetentriesrequest.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.ListHrisTimesheetentriesResponse](../../models/operations/listhristimesheetentriesresponse.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## create - -Create Timesheetentrys in any supported Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timesheetentries.create({ - xConnectionToken: "", - unifiedHrisTimesheetEntryInput: { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - }, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimesheetentriesCreate } from "@panora/sdk/funcs/hrisTimesheetentriesCreate.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimesheetentriesCreate(panora, { - xConnectionToken: "", - unifiedHrisTimesheetEntryInput: { - hoursWorked: 40, - startTime: new Date("2024-10-01T08:00:00Z"), - endTime: new Date("2024-10-01T16:00:00Z"), - employeeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteWasDeleted: false, - fieldMappings: {}, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateHrisTimesheetentryRequest](../../models/operations/createhristimesheetentryrequest.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\<[components.UnifiedHrisTimesheetEntryOutput](../../models/components/unifiedhristimesheetentryoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - - -## retrieve - -Retrieve an Timesheetentry from any connected Hris software - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.hris.timesheetentries.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { hrisTimesheetentriesRetrieve } from "@panora/sdk/funcs/hrisTimesheetentriesRetrieve.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await hrisTimesheetentriesRetrieve(panora, { - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RetrieveHrisTimesheetentryRequest](../../models/operations/retrievehristimesheetentryrequest.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\<[components.UnifiedHrisTimesheetEntryOutput](../../models/components/unifiedhristimesheetentryoutput.md)\>** - -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index 0d5d27ee..7de1e606 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/transactions/README.md b/docs/sdks/transactions/README.md index 9e4c116c..9dbd50e8 100644 --- a/docs/sdks/transactions/README.md +++ b/docs/sdks/transactions/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index f7afc12a..2bddcf27 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/vendorcredits/README.md b/docs/sdks/vendorcredits/README.md index 8ad00472..1e0c8476 100644 --- a/docs/sdks/vendorcredits/README.md +++ b/docs/sdks/vendorcredits/README.md @@ -28,7 +28,7 @@ async function run() { limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - + for await (const page of result) { // Handle the page console.log(page); @@ -90,10 +90,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## retrieve @@ -114,9 +113,9 @@ async function run() { id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -150,7 +149,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -171,6 +170,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 81516cab..dfc1cb0a 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -26,9 +26,9 @@ const panora = new Panora({ async function run() { const result = await panora.webhooks.list(); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -58,7 +58,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -78,10 +78,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## create @@ -104,9 +103,9 @@ async function run() { "connection.created", ], }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -142,7 +141,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -163,10 +162,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## delete @@ -185,9 +183,9 @@ async function run() { const result = await panora.webhooks.delete({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -219,7 +217,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -240,10 +238,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## updateStatus @@ -262,9 +259,9 @@ async function run() { const result = await panora.webhooks.updateStatus({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -296,7 +293,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -317,10 +314,9 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - +| errors.SDKError | 4XX, 5XX | \*/\* | ## verifyEvent @@ -338,14 +334,14 @@ const panora = new Panora({ async function run() { const result = await panora.webhooks.verifyEvent({ payload: { - + }, signature: "", secret: "", }); - + // Handle the result - console.log(result) + console.log(result); } run(); @@ -381,7 +377,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); @@ -402,6 +398,6 @@ run(); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/jsr.json b/jsr.json index f8605d44..8daa85d0 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.13.8", + "version": "0.14.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index d7446427..7e02d305 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.13.8", + "version": "0.14.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.13.8", + "version": "0.14.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index c3da76a3..5d2d6ce1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.13.8", + "version": "0.14.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/accountingAccountsCreate.ts b/src/funcs/accountingAccountsCreate.ts index a06e6860..416282b8 100644 --- a/src/funcs/accountingAccountsCreate.ts +++ b/src/funcs/accountingAccountsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create accounts in any supported Accounting software */ export async function accountingAccountsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingAccountRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingAccountsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingAccountRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingAccountRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingAccountInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingAccountInput, { explode: true, }); - const path$ = pathToFunc("/accounting/accounts")(); + const path = pathToFunc("/accounting/accounts")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingAccount", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingAccountOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingAccountsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingAccountOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingAccountOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingAccountsList.ts b/src/funcs/accountingAccountsList.ts index fb5d6198..c74cfd49 100644 --- a/src/funcs/accountingAccountsList.ts +++ b/src/funcs/accountingAccountsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Accounts */ export async function accountingAccountsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingAccountsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingAccountsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingAccountsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingAccountsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/accounts")(); + const path = pathToFunc("/accounting/accounts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingAccounts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingAccountsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingAccountsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingAccountsResponse$inboundSchema, { + M.json(200, operations.ListAccountingAccountsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingAccountsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingAccountsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingAccountsRetrieve.ts b/src/funcs/accountingAccountsRetrieve.ts index 086eff3e..4e9eb455 100644 --- a/src/funcs/accountingAccountsRetrieve.ts +++ b/src/funcs/accountingAccountsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Accounts from any connected Accounting software */ export async function accountingAccountsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingAccountRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingAccountsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingAccountRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingAccountRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/accounts/{id}")(pathParams$); + const path = pathToFunc("/accounting/accounts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingAccount", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingAccountOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingAccountsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingAccountOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingAccountOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingAddressesList.ts b/src/funcs/accountingAddressesList.ts index e9879987..8c137cc7 100644 --- a/src/funcs/accountingAddressesList.ts +++ b/src/funcs/accountingAddressesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Addresss */ export async function accountingAddressesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingAddressRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingAddressesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingAddressRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingAddressRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/addresses")(); + const path = pathToFunc("/accounting/addresses")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingAddress", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingAddressResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingAddressesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingAddressResponse$inboundSchema, { + M.json(200, operations.ListAccountingAddressResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingAddressesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingAddressesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingAddressesRetrieve.ts b/src/funcs/accountingAddressesRetrieve.ts index 6d66e7a6..42a701ad 100644 --- a/src/funcs/accountingAddressesRetrieve.ts +++ b/src/funcs/accountingAddressesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Addresses from any connected Accounting software */ export async function accountingAddressesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingAddressRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingAddressesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingAddressRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingAddressRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/addresses/{id}")(pathParams$); + const path = pathToFunc("/accounting/addresses/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingAddress", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingAddressOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingAddressesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingAddressOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingAddressOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingAttachmentsCreate.ts b/src/funcs/accountingAttachmentsCreate.ts index 7d76344d..fd9def2e 100644 --- a/src/funcs/accountingAttachmentsCreate.ts +++ b/src/funcs/accountingAttachmentsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create attachments in any supported Accounting software */ export async function accountingAttachmentsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingAttachmentRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingAttachmentsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingAttachmentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingAttachmentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingAttachmentInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingAttachmentInput, { explode: true, }); - const path$ = pathToFunc("/accounting/attachments")(); + const path = pathToFunc("/accounting/attachments")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingAttachment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingAttachmentOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingAttachmentsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingAttachmentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingAttachmentsList.ts b/src/funcs/accountingAttachmentsList.ts index ad93c373..14211533 100644 --- a/src/funcs/accountingAttachmentsList.ts +++ b/src/funcs/accountingAttachmentsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Attachments */ export async function accountingAttachmentsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingAttachmentsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingAttachmentsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingAttachmentsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingAttachmentsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/attachments")(); + const path = pathToFunc("/accounting/attachments")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingAttachments", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingAttachmentsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingAttachmentsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingAttachmentsResponse$inboundSchema, { + M.json(200, operations.ListAccountingAttachmentsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingAttachmentsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingAttachmentsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingAttachmentsRetrieve.ts b/src/funcs/accountingAttachmentsRetrieve.ts index 1ffa90e1..9c2238c7 100644 --- a/src/funcs/accountingAttachmentsRetrieve.ts +++ b/src/funcs/accountingAttachmentsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve attachments from any connected Accounting software */ export async function accountingAttachmentsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingAttachmentRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingAttachmentsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingAttachmentRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/attachments/{id}")(pathParams$); + const path = pathToFunc("/accounting/attachments/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingAttachment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingAttachmentOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingAttachmentsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingAttachmentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingBalancesheetsList.ts b/src/funcs/accountingBalancesheetsList.ts index 8a385bc0..f58a25b6 100644 --- a/src/funcs/accountingBalancesheetsList.ts +++ b/src/funcs/accountingBalancesheetsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List BalanceSheets */ export async function accountingBalancesheetsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingBalanceSheetsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,82 @@ export async function accountingBalancesheetsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingBalanceSheetsRequest$outboundSchema.parse( - value$, - ), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingBalanceSheetsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/balancesheets")(); + const path = pathToFunc("/accounting/balancesheets")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingBalanceSheets", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingBalanceSheetsResponse, | SDKError | SDKValidationError @@ -134,13 +134,13 @@ export async function accountingBalancesheetsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingBalanceSheetsResponse$inboundSchema, { + M.json(200, operations.ListAccountingBalanceSheetsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -158,22 +158,21 @@ export async function accountingBalancesheetsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingBalancesheetsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingBalancesheetsRetrieve.ts b/src/funcs/accountingBalancesheetsRetrieve.ts index 6de504cb..364e4efc 100644 --- a/src/funcs/accountingBalancesheetsRetrieve.ts +++ b/src/funcs/accountingBalancesheetsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve BalanceSheets from any connected Accounting software */ export async function accountingBalancesheetsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingBalanceSheetRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingBalancesheetsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingBalanceSheetRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/balancesheets/{id}")(pathParams$); + const path = pathToFunc("/accounting/balancesheets/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingBalanceSheet", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingBalancesheetOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingBalancesheetsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingBalancesheetOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingBalancesheetOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingCashflowstatementsList.ts b/src/funcs/accountingCashflowstatementsList.ts index 04a1fe68..0947482e 100644 --- a/src/funcs/accountingCashflowstatementsList.ts +++ b/src/funcs/accountingCashflowstatementsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List CashflowStatements */ export async function accountingCashflowstatementsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingCashflowStatementRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function accountingCashflowstatementsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListAccountingCashflowStatementRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/cashflowstatements")(); + const path = pathToFunc("/accounting/cashflowstatements")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingCashflowStatement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingCashflowStatementResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function accountingCashflowstatementsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListAccountingCashflowStatementResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function accountingCashflowstatementsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingCashflowstatementsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCashflowstatementsRetrieve.ts b/src/funcs/accountingCashflowstatementsRetrieve.ts index daea1244..31672093 100644 --- a/src/funcs/accountingCashflowstatementsRetrieve.ts +++ b/src/funcs/accountingCashflowstatementsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Cashflow Statements from any connected Accounting software */ export async function accountingCashflowstatementsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingCashflowStatementRequest, options?: RequestOptions, ): Promise< @@ -47,79 +44,84 @@ export async function accountingCashflowstatementsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingCashflowStatementRequest$outboundSchema - .parse(value$), + .parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/cashflowstatements/{id}")(pathParams$); + const path = pathToFunc("/accounting/cashflowstatements/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingCashflowStatement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingCashflowstatementOutput, | SDKError | SDKValidationError @@ -129,15 +131,15 @@ export async function accountingCashflowstatementsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedAccountingCashflowstatementOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingCompanyinfosList.ts b/src/funcs/accountingCompanyinfosList.ts index 02d3dc04..1fec9270 100644 --- a/src/funcs/accountingCompanyinfosList.ts +++ b/src/funcs/accountingCompanyinfosList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List CompanyInfos */ export async function accountingCompanyinfosList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingCompanyInfosRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingCompanyinfosList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingCompanyInfosRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingCompanyInfosRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/companyinfos")(); + const path = pathToFunc("/accounting/companyinfos")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingCompanyInfos", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingCompanyInfosResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingCompanyinfosList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingCompanyInfosResponse$inboundSchema, { + M.json(200, operations.ListAccountingCompanyInfosResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingCompanyinfosList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingCompanyinfosList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCompanyinfosRetrieve.ts b/src/funcs/accountingCompanyinfosRetrieve.ts index ac6316e4..29613b33 100644 --- a/src/funcs/accountingCompanyinfosRetrieve.ts +++ b/src/funcs/accountingCompanyinfosRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Company Infos from any connected Accounting software */ export async function accountingCompanyinfosRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingCompanyInfoRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingCompanyinfosRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingCompanyInfoRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/companyinfos/{id}")(pathParams$); + const path = pathToFunc("/accounting/companyinfos/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingCompanyInfo", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingCompanyinfoOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingCompanyinfosRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingCompanyinfoOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingCompanyinfoOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingContactsCreate.ts b/src/funcs/accountingContactsCreate.ts index a7af8f8c..1df899a4 100644 --- a/src/funcs/accountingContactsCreate.ts +++ b/src/funcs/accountingContactsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create contacts in any supported Accounting software */ export async function accountingContactsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingContactRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingContactsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingContactRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingContactRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingContactInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingContactInput, { explode: true, }); - const path$ = pathToFunc("/accounting/contacts")(); + const path = pathToFunc("/accounting/contacts")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingContactOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingContactsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingContactOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingContactOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingContactsList.ts b/src/funcs/accountingContactsList.ts index 719778ec..52b9dde7 100644 --- a/src/funcs/accountingContactsList.ts +++ b/src/funcs/accountingContactsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Contacts */ export async function accountingContactsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingContactsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingContactsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingContactsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingContactsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/contacts")(); + const path = pathToFunc("/accounting/contacts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingContacts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingContactsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingContactsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingContactsResponse$inboundSchema, { + M.json(200, operations.ListAccountingContactsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingContactsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingContactsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingContactsRetrieve.ts b/src/funcs/accountingContactsRetrieve.ts index e6b08a8b..09cf35a2 100644 --- a/src/funcs/accountingContactsRetrieve.ts +++ b/src/funcs/accountingContactsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Contacts from any connected Accounting software */ export async function accountingContactsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingContactRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingContactsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingContactRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingContactRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/contacts/{id}")(pathParams$); + const path = pathToFunc("/accounting/contacts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingContactOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingContactsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingContactOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingContactOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingCreditnotesList.ts b/src/funcs/accountingCreditnotesList.ts index 9ff300aa..85f005f3 100644 --- a/src/funcs/accountingCreditnotesList.ts +++ b/src/funcs/accountingCreditnotesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List CreditNotes */ export async function accountingCreditnotesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingCreditNoteRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingCreditnotesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingCreditNoteRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingCreditNoteRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/creditnotes")(); + const path = pathToFunc("/accounting/creditnotes")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingCreditNote", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingCreditNoteResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingCreditnotesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingCreditNoteResponse$inboundSchema, { + M.json(200, operations.ListAccountingCreditNoteResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingCreditnotesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingCreditnotesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCreditnotesRetrieve.ts b/src/funcs/accountingCreditnotesRetrieve.ts index 46057350..5140a16e 100644 --- a/src/funcs/accountingCreditnotesRetrieve.ts +++ b/src/funcs/accountingCreditnotesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Credit Notes from any connected Accounting software */ export async function accountingCreditnotesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingCreditNoteRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingCreditnotesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingCreditNoteRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/creditnotes/{id}")(pathParams$); + const path = pathToFunc("/accounting/creditnotes/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingCreditNote", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingCreditnoteOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingCreditnotesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingCreditnoteOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingCreditnoteOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingExpensesCreate.ts b/src/funcs/accountingExpensesCreate.ts index 99535285..9cea02fc 100644 --- a/src/funcs/accountingExpensesCreate.ts +++ b/src/funcs/accountingExpensesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Expenses in any supported Accounting software */ export async function accountingExpensesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingExpenseRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingExpensesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingExpenseRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingExpenseRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingExpenseInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingExpenseInput, { explode: true, }); - const path$ = pathToFunc("/accounting/expenses")(); + const path = pathToFunc("/accounting/expenses")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingExpense", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingExpenseOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingExpensesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingExpenseOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingExpenseOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingExpensesList.ts b/src/funcs/accountingExpensesList.ts index b065f5ae..f8bec92c 100644 --- a/src/funcs/accountingExpensesList.ts +++ b/src/funcs/accountingExpensesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Expenses */ export async function accountingExpensesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingExpenseRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingExpensesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingExpenseRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingExpenseRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/expenses")(); + const path = pathToFunc("/accounting/expenses")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingExpense", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingExpenseResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingExpensesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingExpenseResponse$inboundSchema, { + M.json(200, operations.ListAccountingExpenseResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingExpensesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingExpensesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingExpensesRetrieve.ts b/src/funcs/accountingExpensesRetrieve.ts index 57862a1e..b8899b88 100644 --- a/src/funcs/accountingExpensesRetrieve.ts +++ b/src/funcs/accountingExpensesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Expenses from any connected Accounting software */ export async function accountingExpensesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingExpenseRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingExpensesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingExpenseRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingExpenseRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/expenses/{id}")(pathParams$); + const path = pathToFunc("/accounting/expenses/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingExpense", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingExpenseOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingExpensesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingExpenseOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingExpenseOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingIncomestatementsList.ts b/src/funcs/accountingIncomestatementsList.ts index af101e29..f0aa7d63 100644 --- a/src/funcs/accountingIncomestatementsList.ts +++ b/src/funcs/accountingIncomestatementsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List IncomeStatements */ export async function accountingIncomestatementsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingIncomeStatementRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function accountingIncomestatementsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListAccountingIncomeStatementRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/incomestatements")(); + const path = pathToFunc("/accounting/incomestatements")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingIncomeStatement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingIncomeStatementResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function accountingIncomestatementsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListAccountingIncomeStatementResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function accountingIncomestatementsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingIncomestatementsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingIncomestatementsRetrieve.ts b/src/funcs/accountingIncomestatementsRetrieve.ts index 15e5cef2..636ee350 100644 --- a/src/funcs/accountingIncomestatementsRetrieve.ts +++ b/src/funcs/accountingIncomestatementsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Income Statements from any connected Accounting software */ export async function accountingIncomestatementsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingIncomeStatementRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingIncomestatementsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingIncomeStatementRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/incomestatements/{id}")(pathParams$); + const path = pathToFunc("/accounting/incomestatements/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingIncomeStatement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingIncomestatementOutput, | SDKError | SDKValidationError @@ -130,15 +132,15 @@ export async function accountingIncomestatementsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedAccountingIncomestatementOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingInvoicesCreate.ts b/src/funcs/accountingInvoicesCreate.ts index d0b68613..97938d03 100644 --- a/src/funcs/accountingInvoicesCreate.ts +++ b/src/funcs/accountingInvoicesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create invoices in any supported Accounting software */ export async function accountingInvoicesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingInvoiceRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingInvoicesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingInvoiceRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingInvoiceRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingInvoiceInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingInvoiceInput, { explode: true, }); - const path$ = pathToFunc("/accounting/invoices")(); + const path = pathToFunc("/accounting/invoices")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingInvoice", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingInvoiceOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingInvoicesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingInvoiceOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingInvoiceOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingInvoicesList.ts b/src/funcs/accountingInvoicesList.ts index 8bcd227c..ba88a944 100644 --- a/src/funcs/accountingInvoicesList.ts +++ b/src/funcs/accountingInvoicesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Invoices */ export async function accountingInvoicesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingInvoiceRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingInvoicesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingInvoiceRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingInvoiceRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/invoices")(); + const path = pathToFunc("/accounting/invoices")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingInvoice", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingInvoiceResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingInvoicesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingInvoiceResponse$inboundSchema, { + M.json(200, operations.ListAccountingInvoiceResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingInvoicesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingInvoicesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingInvoicesRetrieve.ts b/src/funcs/accountingInvoicesRetrieve.ts index 95874eba..d717c235 100644 --- a/src/funcs/accountingInvoicesRetrieve.ts +++ b/src/funcs/accountingInvoicesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Invoices from any connected Accounting software */ export async function accountingInvoicesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingInvoiceRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingInvoicesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingInvoiceRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingInvoiceRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/invoices/{id}")(pathParams$); + const path = pathToFunc("/accounting/invoices/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingInvoice", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingInvoiceOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingInvoicesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingInvoiceOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingInvoiceOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingItemsList.ts b/src/funcs/accountingItemsList.ts index 0f5acb57..f26f810d 100644 --- a/src/funcs/accountingItemsList.ts +++ b/src/funcs/accountingItemsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Items */ export async function accountingItemsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingItemRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,81 @@ export async function accountingItemsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingItemRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListAccountingItemRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/items")(); + const path = pathToFunc("/accounting/items")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingItem", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingItemResponse, | SDKError | SDKValidationError @@ -132,13 +133,13 @@ export async function accountingItemsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingItemResponse$inboundSchema, { + M.json(200, operations.ListAccountingItemResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +157,21 @@ export async function accountingItemsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingItemsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingItemsRetrieve.ts b/src/funcs/accountingItemsRetrieve.ts index bdf5f766..fd1d7063 100644 --- a/src/funcs/accountingItemsRetrieve.ts +++ b/src/funcs/accountingItemsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Items from any connected Accounting software */ export async function accountingItemsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingItemRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingItemsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingItemRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingItemRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/items/{id}")(pathParams$); + const path = pathToFunc("/accounting/items/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingItem", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingItemOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingItemsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingItemOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingItemOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingJournalentriesCreate.ts b/src/funcs/accountingJournalentriesCreate.ts index f521a8ae..a8799493 100644 --- a/src/funcs/accountingJournalentriesCreate.ts +++ b/src/funcs/accountingJournalentriesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Journal Entries in any supported Accounting software */ export async function accountingJournalentriesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingJournalEntryRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,81 @@ export async function accountingJournalentriesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateAccountingJournalEntryRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( - "body", - payload$.UnifiedAccountingJournalentryInput, - { explode: true }, - ); + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingJournalentryInput, { + explode: true, + }); - const path$ = pathToFunc("/accounting/journalentries")(); + const path = pathToFunc("/accounting/journalentries")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingJournalEntry", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingJournalentryOutput, | SDKError | SDKValidationError @@ -129,12 +128,12 @@ export async function accountingJournalentriesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingJournalentryOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingJournalentryOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingJournalentriesList.ts b/src/funcs/accountingJournalentriesList.ts index df1520f1..b96905fd 100644 --- a/src/funcs/accountingJournalentriesList.ts +++ b/src/funcs/accountingJournalentriesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List JournalEntrys */ export async function accountingJournalentriesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingJournalEntryRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingJournalentriesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingJournalEntryRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingJournalEntryRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/journalentries")(); + const path = pathToFunc("/accounting/journalentries")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingJournalEntry", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingJournalEntryResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingJournalentriesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingJournalEntryResponse$inboundSchema, { + M.json(200, operations.ListAccountingJournalEntryResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingJournalentriesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingJournalentriesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingJournalentriesRetrieve.ts b/src/funcs/accountingJournalentriesRetrieve.ts index 19291f97..2cf58e61 100644 --- a/src/funcs/accountingJournalentriesRetrieve.ts +++ b/src/funcs/accountingJournalentriesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Journal Entries from any connected Accounting software */ export async function accountingJournalentriesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingJournalEntryRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingJournalentriesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingJournalEntryRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/journalentries/{id}")(pathParams$); + const path = pathToFunc("/accounting/journalentries/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingJournalEntry", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingJournalentryOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingJournalentriesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingJournalentryOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingJournalentryOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingPaymentsCreate.ts b/src/funcs/accountingPaymentsCreate.ts index 64c3bb33..269a53fd 100644 --- a/src/funcs/accountingPaymentsCreate.ts +++ b/src/funcs/accountingPaymentsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Payments in any supported Accounting software */ export async function accountingPaymentsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingPaymentRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function accountingPaymentsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAccountingPaymentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateAccountingPaymentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAccountingPaymentInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingPaymentInput, { explode: true, }); - const path$ = pathToFunc("/accounting/payments")(); + const path = pathToFunc("/accounting/payments")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingPayment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingPaymentOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function accountingPaymentsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingPaymentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingPaymentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingPaymentsList.ts b/src/funcs/accountingPaymentsList.ts index 428f337d..368c77b1 100644 --- a/src/funcs/accountingPaymentsList.ts +++ b/src/funcs/accountingPaymentsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Payments */ export async function accountingPaymentsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingPaymentRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingPaymentsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingPaymentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingPaymentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/payments")(); + const path = pathToFunc("/accounting/payments")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingPayment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingPaymentResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingPaymentsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingPaymentResponse$inboundSchema, { + M.json(200, operations.ListAccountingPaymentResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingPaymentsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingPaymentsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPaymentsRetrieve.ts b/src/funcs/accountingPaymentsRetrieve.ts index d4a018c4..0298ddc8 100644 --- a/src/funcs/accountingPaymentsRetrieve.ts +++ b/src/funcs/accountingPaymentsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Payments from any connected Accounting software */ export async function accountingPaymentsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingPaymentRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingPaymentsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingPaymentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingPaymentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/payments/{id}")(pathParams$); + const path = pathToFunc("/accounting/payments/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingPayment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingPaymentOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingPaymentsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingPaymentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingPaymentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingPhonenumbersList.ts b/src/funcs/accountingPhonenumbersList.ts index cf5f78d6..9ec43a80 100644 --- a/src/funcs/accountingPhonenumbersList.ts +++ b/src/funcs/accountingPhonenumbersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List PhoneNumbers */ export async function accountingPhonenumbersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingPhonenumberRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingPhonenumbersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingPhonenumberRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingPhonenumberRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/phonenumbers")(); + const path = pathToFunc("/accounting/phonenumbers")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingPhonenumber", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingPhonenumberResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingPhonenumbersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingPhonenumberResponse$inboundSchema, { + M.json(200, operations.ListAccountingPhonenumberResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingPhonenumbersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingPhonenumbersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPhonenumbersRetrieve.ts b/src/funcs/accountingPhonenumbersRetrieve.ts index f290c257..1edcd7c8 100644 --- a/src/funcs/accountingPhonenumbersRetrieve.ts +++ b/src/funcs/accountingPhonenumbersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Phone Numbers from any connected Accounting software */ export async function accountingPhonenumbersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingPhonenumberRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingPhonenumbersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingPhonenumberRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/phonenumbers/{id}")(pathParams$); + const path = pathToFunc("/accounting/phonenumbers/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingPhonenumber", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingPhonenumberOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingPhonenumbersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingPhonenumberOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingPhonenumberOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingPurchaseordersCreate.ts b/src/funcs/accountingPurchaseordersCreate.ts index cc1dadda..8834be29 100644 --- a/src/funcs/accountingPurchaseordersCreate.ts +++ b/src/funcs/accountingPurchaseordersCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Purchase Orders in any supported Accounting software */ export async function accountingPurchaseordersCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateAccountingPurchaseOrderRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,81 @@ export async function accountingPurchaseordersCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateAccountingPurchaseOrderRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( - "body", - payload$.UnifiedAccountingPurchaseorderInput, - { explode: true }, - ); + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedAccountingPurchaseorderInput, { + explode: true, + }); - const path$ = pathToFunc("/accounting/purchaseorders")(); + const path = pathToFunc("/accounting/purchaseorders")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createAccountingPurchaseOrder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingPurchaseorderOutput, | SDKError | SDKValidationError @@ -129,12 +128,12 @@ export async function accountingPurchaseordersCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedAccountingPurchaseorderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedAccountingPurchaseorderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingPurchaseordersList.ts b/src/funcs/accountingPurchaseordersList.ts index a79c0b66..a87e23fa 100644 --- a/src/funcs/accountingPurchaseordersList.ts +++ b/src/funcs/accountingPurchaseordersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List PurchaseOrders */ export async function accountingPurchaseordersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingPurchaseOrderRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,82 @@ export async function accountingPurchaseordersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingPurchaseOrderRequest$outboundSchema.parse( - value$, - ), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingPurchaseOrderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/purchaseorders")(); + const path = pathToFunc("/accounting/purchaseorders")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingPurchaseOrder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingPurchaseOrderResponse, | SDKError | SDKValidationError @@ -134,13 +134,13 @@ export async function accountingPurchaseordersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingPurchaseOrderResponse$inboundSchema, { + M.json(200, operations.ListAccountingPurchaseOrderResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -158,22 +158,21 @@ export async function accountingPurchaseordersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingPurchaseordersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPurchaseordersRetrieve.ts b/src/funcs/accountingPurchaseordersRetrieve.ts index d95d7493..52d6d600 100644 --- a/src/funcs/accountingPurchaseordersRetrieve.ts +++ b/src/funcs/accountingPurchaseordersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Purchase Orders from any connected Accounting software */ export async function accountingPurchaseordersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingPurchaseOrderRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingPurchaseordersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingPurchaseOrderRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/purchaseorders/{id}")(pathParams$); + const path = pathToFunc("/accounting/purchaseorders/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingPurchaseOrder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingPurchaseorderOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingPurchaseordersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingPurchaseorderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingPurchaseorderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingTaxratesList.ts b/src/funcs/accountingTaxratesList.ts index 8fc67e46..d485cf31 100644 --- a/src/funcs/accountingTaxratesList.ts +++ b/src/funcs/accountingTaxratesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List TaxRates */ export async function accountingTaxratesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingTaxRateRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingTaxratesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingTaxRateRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingTaxRateRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/taxrates")(); + const path = pathToFunc("/accounting/taxrates")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingTaxRate", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingTaxRateResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingTaxratesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingTaxRateResponse$inboundSchema, { + M.json(200, operations.ListAccountingTaxRateResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingTaxratesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingTaxratesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTaxratesRetrieve.ts b/src/funcs/accountingTaxratesRetrieve.ts index 0b4a139e..a7ffc1d2 100644 --- a/src/funcs/accountingTaxratesRetrieve.ts +++ b/src/funcs/accountingTaxratesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Tax Rates from any connected Accounting software */ export async function accountingTaxratesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingTaxRateRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function accountingTaxratesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAccountingTaxRateRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveAccountingTaxRateRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/taxrates/{id}")(pathParams$); + const path = pathToFunc("/accounting/taxrates/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingTaxRate", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingTaxrateOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function accountingTaxratesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingTaxrateOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingTaxrateOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingTrackingcategoriesList.ts b/src/funcs/accountingTrackingcategoriesList.ts index c7a1487f..835d2065 100644 --- a/src/funcs/accountingTrackingcategoriesList.ts +++ b/src/funcs/accountingTrackingcategoriesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List TrackingCategorys */ export async function accountingTrackingcategoriesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingTrackingCategorysRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function accountingTrackingcategoriesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListAccountingTrackingCategorysRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/trackingcategories")(); + const path = pathToFunc("/accounting/trackingcategories")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingTrackingCategorys", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingTrackingCategorysResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function accountingTrackingcategoriesList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListAccountingTrackingCategorysResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function accountingTrackingcategoriesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingTrackingcategoriesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTrackingcategoriesRetrieve.ts b/src/funcs/accountingTrackingcategoriesRetrieve.ts index 3eb628ee..84063d19 100644 --- a/src/funcs/accountingTrackingcategoriesRetrieve.ts +++ b/src/funcs/accountingTrackingcategoriesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Tracking Categories from any connected Accounting software */ export async function accountingTrackingcategoriesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingTrackingCategoryRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingTrackingcategoriesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingTrackingCategoryRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/trackingcategories/{id}")(pathParams$); + const path = pathToFunc("/accounting/trackingcategories/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingTrackingCategory", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingTrackingcategoryOutput, | SDKError | SDKValidationError @@ -130,15 +132,15 @@ export async function accountingTrackingcategoriesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedAccountingTrackingcategoryOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingTransactionsList.ts b/src/funcs/accountingTransactionsList.ts index b29f1a04..3a931955 100644 --- a/src/funcs/accountingTransactionsList.ts +++ b/src/funcs/accountingTransactionsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Transactions */ export async function accountingTransactionsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingTransactionRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingTransactionsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingTransactionRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingTransactionRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/transactions")(); + const path = pathToFunc("/accounting/transactions")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingTransaction", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingTransactionResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingTransactionsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingTransactionResponse$inboundSchema, { + M.json(200, operations.ListAccountingTransactionResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingTransactionsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingTransactionsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTransactionsRetrieve.ts b/src/funcs/accountingTransactionsRetrieve.ts index f5b27574..d91934af 100644 --- a/src/funcs/accountingTransactionsRetrieve.ts +++ b/src/funcs/accountingTransactionsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Transactions from any connected Accounting software */ export async function accountingTransactionsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingTransactionRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingTransactionsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingTransactionRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/transactions/{id}")(pathParams$); + const path = pathToFunc("/accounting/transactions/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingTransaction", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingTransactionOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingTransactionsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingTransactionOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingTransactionOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/accountingVendorcreditsList.ts b/src/funcs/accountingVendorcreditsList.ts index 354779f3..e624a70b 100644 --- a/src/funcs/accountingVendorcreditsList.ts +++ b/src/funcs/accountingVendorcreditsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List VendorCredits */ export async function accountingVendorcreditsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListAccountingVendorCreditRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function accountingVendorcreditsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAccountingVendorCreditRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListAccountingVendorCreditRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/accounting/vendorcredits")(); + const path = pathToFunc("/accounting/vendorcredits")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listAccountingVendorCredit", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListAccountingVendorCreditResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function accountingVendorcreditsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListAccountingVendorCreditResponse$inboundSchema, { + M.json(200, operations.ListAccountingVendorCreditResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function accountingVendorcreditsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => accountingVendorcreditsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingVendorcreditsRetrieve.ts b/src/funcs/accountingVendorcreditsRetrieve.ts index b5faf755..bfc9fde5 100644 --- a/src/funcs/accountingVendorcreditsRetrieve.ts +++ b/src/funcs/accountingVendorcreditsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Vendor Credits from any connected Accounting software */ export async function accountingVendorcreditsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveAccountingVendorCreditRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function accountingVendorcreditsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveAccountingVendorCreditRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/accounting/vendorcredits/{id}")(pathParams$); + const path = pathToFunc("/accounting/vendorcredits/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveAccountingVendorCredit", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedAccountingVendorcreditOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function accountingVendorcreditsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedAccountingVendorcreditOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedAccountingVendorcreditOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/atsActivitiesCreate.ts b/src/funcs/atsActivitiesCreate.ts deleted file mode 100644 index 83c1f742..00000000 --- a/src/funcs/atsActivitiesCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Activities - * - * @remarks - * Create Activities in any supported Ats software - */ -export async function atsActivitiesCreate( - client$: PanoraCore, - request: operations.CreateAtsActivityRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsActivityOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAtsActivityRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAtsActivityInput, { - explode: true, - }); - - const path$ = pathToFunc("/ats/activities")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createAtsActivity", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsActivityOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedAtsActivityOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsActivitiesList.ts b/src/funcs/atsActivitiesList.ts deleted file mode 100644 index 43210bee..00000000 --- a/src/funcs/atsActivitiesList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Activities - */ -export async function atsActivitiesList( - client$: PanoraCore, - request: operations.ListAtsActivityRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsActivityResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsActivityRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/activities")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsActivity", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsActivityResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsActivityResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsActivityResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsActivitiesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsActivitiesRetrieve.ts b/src/funcs/atsActivitiesRetrieve.ts deleted file mode 100644 index 00d29fb0..00000000 --- a/src/funcs/atsActivitiesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Activities - * - * @remarks - * Retrieve Activities from any connected Ats software - */ -export async function atsActivitiesRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsActivityRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsActivityOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsActivityRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/activities/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsActivity", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsActivityOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsActivityOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsApplicationsCreate.ts b/src/funcs/atsApplicationsCreate.ts deleted file mode 100644 index e5ea5677..00000000 --- a/src/funcs/atsApplicationsCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Applications - * - * @remarks - * Create Applications in any supported Ats software - */ -export async function atsApplicationsCreate( - client$: PanoraCore, - request: operations.CreateAtsApplicationRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsApplicationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAtsApplicationRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAtsApplicationInput, { - explode: true, - }); - - const path$ = pathToFunc("/ats/applications")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createAtsApplication", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsApplicationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedAtsApplicationOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsApplicationsList.ts b/src/funcs/atsApplicationsList.ts deleted file mode 100644 index 65341ab7..00000000 --- a/src/funcs/atsApplicationsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Applications - */ -export async function atsApplicationsList( - client$: PanoraCore, - request: operations.ListAtsApplicationRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsApplicationResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAtsApplicationRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/applications")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsApplication", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsApplicationResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsApplicationResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsApplicationResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsApplicationsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsApplicationsRetrieve.ts b/src/funcs/atsApplicationsRetrieve.ts deleted file mode 100644 index 551a1595..00000000 --- a/src/funcs/atsApplicationsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Applications - * - * @remarks - * Retrieve Applications from any connected Ats software - */ -export async function atsApplicationsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsApplicationRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsApplicationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsApplicationRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/applications/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsApplication", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsApplicationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsApplicationOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsAttachmentsCreate.ts b/src/funcs/atsAttachmentsCreate.ts deleted file mode 100644 index f1cc3ffb..00000000 --- a/src/funcs/atsAttachmentsCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Attachments - * - * @remarks - * Create Attachments in any supported ATS software - */ -export async function atsAttachmentsCreate( - client$: PanoraCore, - request: operations.CreateAtsAttachmentRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsAttachmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAtsAttachmentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAtsAttachmentInput, { - explode: true, - }); - - const path$ = pathToFunc("/ats/attachments")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createAtsAttachment", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsAttachmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedAtsAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsAttachmentsList.ts b/src/funcs/atsAttachmentsList.ts deleted file mode 100644 index f18092f7..00000000 --- a/src/funcs/atsAttachmentsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Attachments - */ -export async function atsAttachmentsList( - client$: PanoraCore, - request: operations.ListAtsAttachmentRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsAttachmentResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAtsAttachmentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/attachments")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsAttachment", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsAttachmentResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsAttachmentResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsAttachmentResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsAttachmentsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsAttachmentsRetrieve.ts b/src/funcs/atsAttachmentsRetrieve.ts deleted file mode 100644 index 85980553..00000000 --- a/src/funcs/atsAttachmentsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Attachments - * - * @remarks - * Retrieve Attachments from any connected Ats software - */ -export async function atsAttachmentsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsAttachmentRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsAttachmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsAttachmentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/attachments/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsAttachment", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsAttachmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsCandidatesCreate.ts b/src/funcs/atsCandidatesCreate.ts deleted file mode 100644 index 6949bb91..00000000 --- a/src/funcs/atsCandidatesCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Candidates - * - * @remarks - * Create Candidates in any supported Ats software - */ -export async function atsCandidatesCreate( - client$: PanoraCore, - request: operations.CreateAtsCandidateRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsCandidateOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAtsCandidateRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAtsCandidateInput, { - explode: true, - }); - - const path$ = pathToFunc("/ats/candidates")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createAtsCandidate", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsCandidateOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedAtsCandidateOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsCandidatesList.ts b/src/funcs/atsCandidatesList.ts deleted file mode 100644 index e14f2a03..00000000 --- a/src/funcs/atsCandidatesList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Candidates - */ -export async function atsCandidatesList( - client$: PanoraCore, - request: operations.ListAtsCandidateRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsCandidateResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsCandidateRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/candidates")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsCandidate", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsCandidateResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsCandidateResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsCandidateResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsCandidatesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsCandidatesRetrieve.ts b/src/funcs/atsCandidatesRetrieve.ts deleted file mode 100644 index c383af1e..00000000 --- a/src/funcs/atsCandidatesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Candidates - * - * @remarks - * Retrieve Candidates from any connected Ats software - */ -export async function atsCandidatesRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsCandidateRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsCandidateOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsCandidateRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/candidates/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsCandidate", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsCandidateOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsCandidateOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsDepartmentsList.ts b/src/funcs/atsDepartmentsList.ts deleted file mode 100644 index 09b644d3..00000000 --- a/src/funcs/atsDepartmentsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Departments - */ -export async function atsDepartmentsList( - client$: PanoraCore, - request: operations.ListAtsDepartmentsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsDepartmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAtsDepartmentsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/departments")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsDepartments", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsDepartmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsDepartmentsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsDepartmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsDepartmentsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsDepartmentsRetrieve.ts b/src/funcs/atsDepartmentsRetrieve.ts deleted file mode 100644 index 1c3a5da4..00000000 --- a/src/funcs/atsDepartmentsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Departments - * - * @remarks - * Retrieve Departments from any connected Ats software - */ -export async function atsDepartmentsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsDepartmentRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsDepartmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsDepartmentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/departments/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsDepartment", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsDepartmentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsDepartmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsEeocsList.ts b/src/funcs/atsEeocsList.ts deleted file mode 100644 index a92897ed..00000000 --- a/src/funcs/atsEeocsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Eeocss - */ -export async function atsEeocsList( - client$: PanoraCore, - request: operations.ListAtsEeocsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsEeocsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsEeocsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/eeocs")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsEeocs", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsEeocsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsEeocsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsEeocsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsEeocsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsEeocsRetrieve.ts b/src/funcs/atsEeocsRetrieve.ts deleted file mode 100644 index 261267b9..00000000 --- a/src/funcs/atsEeocsRetrieve.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Eeocs - * - * @remarks - * Retrieve a eeocs from any connected Ats software - */ -export async function atsEeocsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsEeocsRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsEeocsOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveAtsEeocsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/eeocs/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsEeocs", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsEeocsOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsEeocsOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsInterviewsCreate.ts b/src/funcs/atsInterviewsCreate.ts deleted file mode 100644 index 4c9dc04c..00000000 --- a/src/funcs/atsInterviewsCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Interviews - * - * @remarks - * Create Interviews in any supported Ats software - */ -export async function atsInterviewsCreate( - client$: PanoraCore, - request: operations.CreateAtsInterviewRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsInterviewOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateAtsInterviewRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedAtsInterviewInput, { - explode: true, - }); - - const path$ = pathToFunc("/ats/interviews")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createAtsInterview", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsInterviewOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedAtsInterviewOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsInterviewsList.ts b/src/funcs/atsInterviewsList.ts deleted file mode 100644 index 54fade9b..00000000 --- a/src/funcs/atsInterviewsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Interviews - */ -export async function atsInterviewsList( - client$: PanoraCore, - request: operations.ListAtsInterviewRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsInterviewResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsInterviewRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/interviews")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsInterview", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsInterviewResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsInterviewResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsInterviewResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsInterviewsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsInterviewsRetrieve.ts b/src/funcs/atsInterviewsRetrieve.ts deleted file mode 100644 index 3797b759..00000000 --- a/src/funcs/atsInterviewsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Interviews - * - * @remarks - * Retrieve Interviews from any connected Ats software - */ -export async function atsInterviewsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsInterviewRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsInterviewOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsInterviewRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/interviews/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsInterview", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsInterviewOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsInterviewOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsJobinterviewstagesList.ts b/src/funcs/atsJobinterviewstagesList.ts deleted file mode 100644 index 2d3abf01..00000000 --- a/src/funcs/atsJobinterviewstagesList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List JobInterviewStages - */ -export async function atsJobinterviewstagesList( - client$: PanoraCore, - request: operations.ListAtsJobInterviewStageRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsJobInterviewStageResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAtsJobInterviewStageRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/jobinterviewstages")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsJobInterviewStage", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsJobInterviewStageResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsJobInterviewStageResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsJobInterviewStageResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsJobinterviewstagesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsJobinterviewstagesRetrieve.ts b/src/funcs/atsJobinterviewstagesRetrieve.ts deleted file mode 100644 index 69fe0c6d..00000000 --- a/src/funcs/atsJobinterviewstagesRetrieve.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Job Interview Stages - * - * @remarks - * Retrieve Job Interview Stages from any connected Ats software - */ -export async function atsJobinterviewstagesRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsJobInterviewStageRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsJobinterviewstageOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsJobInterviewStageRequest$outboundSchema.parse( - value$, - ), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/jobinterviewstages/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsJobInterviewStage", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsJobinterviewstageOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsJobinterviewstageOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsJobsList.ts b/src/funcs/atsJobsList.ts deleted file mode 100644 index 8d27ee2e..00000000 --- a/src/funcs/atsJobsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Jobs - */ -export async function atsJobsList( - client$: PanoraCore, - request: operations.ListAtsJobRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsJobResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsJobRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/jobs")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsJob", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsJobResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsJobResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsJobResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsJobsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsJobsRetrieve.ts b/src/funcs/atsJobsRetrieve.ts deleted file mode 100644 index 4f770f14..00000000 --- a/src/funcs/atsJobsRetrieve.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Jobs - * - * @remarks - * Retrieve Jobs from any connected Ats software - */ -export async function atsJobsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsJobRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsJobOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveAtsJobRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/jobs/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsJob", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsJobOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsJobOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsOffersList.ts b/src/funcs/atsOffersList.ts deleted file mode 100644 index ef9b57a7..00000000 --- a/src/funcs/atsOffersList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Offers - */ -export async function atsOffersList( - client$: PanoraCore, - request: operations.ListAtsOfferRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsOfferResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsOfferRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/offers")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsOffer", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsOfferResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsOfferResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsOfferResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsOffersList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsOffersRetrieve.ts b/src/funcs/atsOffersRetrieve.ts deleted file mode 100644 index 2621985a..00000000 --- a/src/funcs/atsOffersRetrieve.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Offers - * - * @remarks - * Retrieve Offers from any connected Ats software - */ -export async function atsOffersRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsOfferRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsOfferOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveAtsOfferRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/offers/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsOffer", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsOfferOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsOfferOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsOfficesList.ts b/src/funcs/atsOfficesList.ts deleted file mode 100644 index fec287cd..00000000 --- a/src/funcs/atsOfficesList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Offices - */ -export async function atsOfficesList( - client$: PanoraCore, - request: operations.ListAtsOfficeRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsOfficeResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsOfficeRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/offices")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsOffice", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsOfficeResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsOfficeResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsOfficeResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsOfficesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsOfficesRetrieve.ts b/src/funcs/atsOfficesRetrieve.ts deleted file mode 100644 index 89af4006..00000000 --- a/src/funcs/atsOfficesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Offices - * - * @remarks - * Retrieve Offices from any connected Ats software - */ -export async function atsOfficesRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsOfficeRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsOfficeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsOfficeRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/offices/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsOffice", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsOfficeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsOfficeOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsRejectreasonsList.ts b/src/funcs/atsRejectreasonsList.ts deleted file mode 100644 index f9e6f42e..00000000 --- a/src/funcs/atsRejectreasonsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List RejectReasons - */ -export async function atsRejectreasonsList( - client$: PanoraCore, - request: operations.ListAtsRejectReasonsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsRejectReasonsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListAtsRejectReasonsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/rejectreasons")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsRejectReasons", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsRejectReasonsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsRejectReasonsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsRejectReasonsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsRejectreasonsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsRejectreasonsRetrieve.ts b/src/funcs/atsRejectreasonsRetrieve.ts deleted file mode 100644 index 2411611e..00000000 --- a/src/funcs/atsRejectreasonsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Reject Reasons - * - * @remarks - * Retrieve Reject Reasons from any connected Ats software - */ -export async function atsRejectreasonsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsRejectReasonRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsRejectreasonOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsRejectReasonRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/rejectreasons/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsRejectReason", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsRejectreasonOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsRejectreasonOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsScorecardsList.ts b/src/funcs/atsScorecardsList.ts deleted file mode 100644 index 2cefeebe..00000000 --- a/src/funcs/atsScorecardsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ScoreCards - */ -export async function atsScorecardsList( - client$: PanoraCore, - request: operations.ListAtsScorecardRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsScorecardResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsScorecardRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/scorecards")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsScorecard", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsScorecardResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsScorecardResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsScorecardResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsScorecardsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsScorecardsRetrieve.ts b/src/funcs/atsScorecardsRetrieve.ts deleted file mode 100644 index 48ff74f1..00000000 --- a/src/funcs/atsScorecardsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Score Cards - * - * @remarks - * Retrieve Score Cards from any connected Ats software - */ -export async function atsScorecardsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsScorecardRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsScorecardOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveAtsScorecardRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/scorecards/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsScorecard", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsScorecardOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsScorecardOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsTagsList.ts b/src/funcs/atsTagsList.ts deleted file mode 100644 index 8132bf62..00000000 --- a/src/funcs/atsTagsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Tags - */ -export async function atsTagsList( - client$: PanoraCore, - request: operations.ListAtsTagsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsTagsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsTagsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/tags")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsTags", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsTagsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsTagsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsTagsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsTagsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsTagsRetrieve.ts b/src/funcs/atsTagsRetrieve.ts deleted file mode 100644 index ed4bf95b..00000000 --- a/src/funcs/atsTagsRetrieve.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Tags - * - * @remarks - * Retrieve Tags from any connected Ats software - */ -export async function atsTagsRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsTagRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsTagOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveAtsTagRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/tags/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsTag", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsTagOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsTagOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/atsUsersList.ts b/src/funcs/atsUsersList.ts deleted file mode 100644 index f755d75b..00000000 --- a/src/funcs/atsUsersList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Users - */ -export async function atsUsersList( - client$: PanoraCore, - request: operations.ListAtsUsersRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListAtsUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListAtsUsersRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/ats/users")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listAtsUsers", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListAtsUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListAtsUsersResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListAtsUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - atsUsersList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/atsUsersRetrieve.ts b/src/funcs/atsUsersRetrieve.ts deleted file mode 100644 index 064c1b15..00000000 --- a/src/funcs/atsUsersRetrieve.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Users - * - * @remarks - * Retrieve Users from any connected Ats software - */ -export async function atsUsersRetrieve( - client$: PanoraCore, - request: operations.RetrieveAtsUserRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedAtsUserOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveAtsUserRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/ats/users/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveAtsUser", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedAtsUserOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedAtsUserOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/authLoginSignIn.ts b/src/funcs/authLoginSignIn.ts index 96271410..e2f1c5ff 100644 --- a/src/funcs/authLoginSignIn.ts +++ b/src/funcs/authLoginSignIn.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Log In */ export async function authLoginSignIn( - client$: PanoraCore, + client: PanoraCore, request: components.LoginDto, options?: RequestOptions, ): Promise< @@ -41,61 +41,66 @@ export async function authLoginSignIn( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.LoginDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.LoginDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/auth/login")(); + const path = pathToFunc("/auth/login")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "signIn", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -105,12 +110,12 @@ export async function authLoginSignIn( | RequestTimeoutError | ConnectionError >( - m$.nil(201, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(201, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/connectionsList.ts b/src/funcs/connectionsList.ts index 989d9095..0ab75ad7 100644 --- a/src/funcs/connectionsList.ts +++ b/src/funcs/connectionsList.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -24,7 +24,7 @@ import { Result } from "../types/fp.js"; * List Connections */ export async function connectionsList( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -38,46 +38,53 @@ export async function connectionsList( | ConnectionError > > { - const path$ = pathToFunc("/connections")(); + const path = pathToFunc("/connections")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listConnections", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -87,12 +94,12 @@ export async function connectionsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.array(components.Connection$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(200, z.array(components.Connection$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmCompaniesCreate.ts b/src/funcs/crmCompaniesCreate.ts index b8281fd0..d5757fdb 100644 --- a/src/funcs/crmCompaniesCreate.ts +++ b/src/funcs/crmCompaniesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Companies in any supported CRM software */ export async function crmCompaniesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmCompanyRequest, options?: RequestOptions, ): Promise< @@ -48,73 +44,78 @@ export async function crmCompaniesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.CreateCrmCompanyRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.CreateCrmCompanyRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmCompanyInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmCompanyInput, { explode: true, }); - const path$ = pathToFunc("/crm/companies")(); + const path = pathToFunc("/crm/companies")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmCompany", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmCompanyOutput, | SDKError | SDKValidationError @@ -124,12 +125,12 @@ export async function crmCompaniesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmCompanyOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmCompanyOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmCompaniesList.ts b/src/funcs/crmCompaniesList.ts index 49edd764..ef311c09 100644 --- a/src/funcs/crmCompaniesList.ts +++ b/src/funcs/crmCompaniesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Companies */ export async function crmCompaniesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmCompanyRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmCompaniesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmCompanyRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmCompanyRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/companies")(); + const path = pathToFunc("/crm/companies")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmCompany", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmCompanyResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmCompaniesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmCompanyResponse$inboundSchema, { + M.json(200, operations.ListCrmCompanyResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmCompaniesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmCompaniesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmCompaniesRetrieve.ts b/src/funcs/crmCompaniesRetrieve.ts index 5b881575..a8f76979 100644 --- a/src/funcs/crmCompaniesRetrieve.ts +++ b/src/funcs/crmCompaniesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Companies from any connected Crm software */ export async function crmCompaniesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmCompanyRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,82 @@ export async function crmCompaniesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveCrmCompanyRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmCompanyRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/companies/{id}")(pathParams$); + const path = pathToFunc("/crm/companies/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmCompany", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmCompanyOutput, | SDKError | SDKValidationError @@ -128,12 +129,12 @@ export async function crmCompaniesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmCompanyOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmCompanyOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmContactsCreate.ts b/src/funcs/crmContactsCreate.ts index ab407081..dbdb4615 100644 --- a/src/funcs/crmContactsCreate.ts +++ b/src/funcs/crmContactsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Contacts in any supported CRM */ export async function crmContactsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmContactRequest, options?: RequestOptions, ): Promise< @@ -48,73 +44,78 @@ export async function crmContactsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.CreateCrmContactRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.CreateCrmContactRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmContactInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmContactInput, { explode: true, }); - const path$ = pathToFunc("/crm/contacts")(); + const path = pathToFunc("/crm/contacts")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmContactOutput, | SDKError | SDKValidationError @@ -124,12 +125,12 @@ export async function crmContactsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmContactOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmContactOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmContactsList.ts b/src/funcs/crmContactsList.ts index f92347d7..93e47121 100644 --- a/src/funcs/crmContactsList.ts +++ b/src/funcs/crmContactsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List CRM Contacts */ export async function crmContactsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmContactsRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmContactsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmContactsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmContactsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/contacts")(); + const path = pathToFunc("/crm/contacts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmContacts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmContactsResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmContactsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmContactsResponse$inboundSchema, { + M.json(200, operations.ListCrmContactsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmContactsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmContactsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmContactsRetrieve.ts b/src/funcs/crmContactsRetrieve.ts index 2ac26717..742b44b0 100644 --- a/src/funcs/crmContactsRetrieve.ts +++ b/src/funcs/crmContactsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Contacts from any connected CRM */ export async function crmContactsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmContactRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,82 @@ export async function crmContactsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveCrmContactRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmContactRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/contacts/{id}")(pathParams$); + const path = pathToFunc("/crm/contacts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmContactOutput, | SDKError | SDKValidationError @@ -128,12 +129,12 @@ export async function crmContactsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmContactOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmContactOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmDealsCreate.ts b/src/funcs/crmDealsCreate.ts index 074f75d6..99058b58 100644 --- a/src/funcs/crmDealsCreate.ts +++ b/src/funcs/crmDealsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Deals in any supported Crm software */ export async function crmDealsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmDealRequest, options?: RequestOptions, ): Promise< @@ -48,73 +44,78 @@ export async function crmDealsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.CreateCrmDealRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.CreateCrmDealRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmDealInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmDealInput, { explode: true, }); - const path$ = pathToFunc("/crm/deals")(); + const path = pathToFunc("/crm/deals")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmDeal", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmDealOutput, | SDKError | SDKValidationError @@ -124,12 +125,12 @@ export async function crmDealsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmDealOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmDealOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmDealsList.ts b/src/funcs/crmDealsList.ts index 8c4dcf80..067b2222 100644 --- a/src/funcs/crmDealsList.ts +++ b/src/funcs/crmDealsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Deals */ export async function crmDealsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmDealsRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmDealsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmDealsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmDealsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/deals")(); + const path = pathToFunc("/crm/deals")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmDeals", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmDealsResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmDealsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmDealsResponse$inboundSchema, { + M.json(200, operations.ListCrmDealsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmDealsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmDealsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmDealsRetrieve.ts b/src/funcs/crmDealsRetrieve.ts index 929658ca..03ef5fa2 100644 --- a/src/funcs/crmDealsRetrieve.ts +++ b/src/funcs/crmDealsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Deals from any connected Crm software */ export async function crmDealsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmDealRequest, options?: RequestOptions, ): Promise< @@ -47,77 +44,82 @@ export async function crmDealsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveCrmDealRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmDealRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/deals/{id}")(pathParams$); + const path = pathToFunc("/crm/deals/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmDeal", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmDealOutput, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function crmDealsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmDealOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmDealOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmEngagementsCreate.ts b/src/funcs/crmEngagementsCreate.ts index d2380724..18d2dc85 100644 --- a/src/funcs/crmEngagementsCreate.ts +++ b/src/funcs/crmEngagementsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Engagements in any supported Crm software */ export async function crmEngagementsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmEngagementRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function crmEngagementsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateCrmEngagementRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateCrmEngagementRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmEngagementInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmEngagementInput, { explode: true, }); - const path$ = pathToFunc("/crm/engagements")(); + const path = pathToFunc("/crm/engagements")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmEngagement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmEngagementOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function crmEngagementsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmEngagementOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmEngagementOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmEngagementsList.ts b/src/funcs/crmEngagementsList.ts index a5943ac8..87bba9b6 100644 --- a/src/funcs/crmEngagementsList.ts +++ b/src/funcs/crmEngagementsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Engagements */ export async function crmEngagementsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmEngagementsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,81 @@ export async function crmEngagementsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListCrmEngagementsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmEngagementsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/engagements")(); + const path = pathToFunc("/crm/engagements")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmEngagements", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmEngagementsResponse, | SDKError | SDKValidationError @@ -132,13 +133,13 @@ export async function crmEngagementsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmEngagementsResponse$inboundSchema, { + M.json(200, operations.ListCrmEngagementsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +157,21 @@ export async function crmEngagementsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmEngagementsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmEngagementsRetrieve.ts b/src/funcs/crmEngagementsRetrieve.ts index 39a53970..43a61a49 100644 --- a/src/funcs/crmEngagementsRetrieve.ts +++ b/src/funcs/crmEngagementsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Engagements from any connected Crm software */ export async function crmEngagementsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmEngagementRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function crmEngagementsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveCrmEngagementRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveCrmEngagementRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/engagements/{id}")(pathParams$); + const path = pathToFunc("/crm/engagements/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmEngagement", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmEngagementOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function crmEngagementsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmEngagementOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmEngagementOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmNotesCreate.ts b/src/funcs/crmNotesCreate.ts index 524940be..0f71d007 100644 --- a/src/funcs/crmNotesCreate.ts +++ b/src/funcs/crmNotesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Notes in any supported Crm software */ export async function crmNotesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmNoteRequest, options?: RequestOptions, ): Promise< @@ -48,73 +44,78 @@ export async function crmNotesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.CreateCrmNoteRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.CreateCrmNoteRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmNoteInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmNoteInput, { explode: true, }); - const path$ = pathToFunc("/crm/notes")(); + const path = pathToFunc("/crm/notes")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmNote", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmNoteOutput, | SDKError | SDKValidationError @@ -124,12 +125,12 @@ export async function crmNotesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmNoteOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmNoteOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmNotesList.ts b/src/funcs/crmNotesList.ts index df5adb7a..b2982ce3 100644 --- a/src/funcs/crmNotesList.ts +++ b/src/funcs/crmNotesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Notes */ export async function crmNotesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmNoteRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmNotesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmNoteRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmNoteRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/notes")(); + const path = pathToFunc("/crm/notes")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmNote", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmNoteResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmNotesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmNoteResponse$inboundSchema, { + M.json(200, operations.ListCrmNoteResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmNotesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmNotesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmNotesRetrieve.ts b/src/funcs/crmNotesRetrieve.ts index 6f7fadc5..4477a889 100644 --- a/src/funcs/crmNotesRetrieve.ts +++ b/src/funcs/crmNotesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Notes from any connected Crm software */ export async function crmNotesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmNoteRequest, options?: RequestOptions, ): Promise< @@ -47,77 +44,82 @@ export async function crmNotesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveCrmNoteRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmNoteRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/notes/{id}")(pathParams$); + const path = pathToFunc("/crm/notes/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmNote", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmNoteOutput, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function crmNotesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmNoteOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmNoteOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmStagesList.ts b/src/funcs/crmStagesList.ts index 9a9e352d..ed5e17a6 100644 --- a/src/funcs/crmStagesList.ts +++ b/src/funcs/crmStagesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Stages */ export async function crmStagesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmStagesRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmStagesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmStagesRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmStagesRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/stages")(); + const path = pathToFunc("/crm/stages")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmStages", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmStagesResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmStagesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmStagesResponse$inboundSchema, { + M.json(200, operations.ListCrmStagesResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmStagesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmStagesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmStagesRetrieve.ts b/src/funcs/crmStagesRetrieve.ts index 6731cc3c..c2d38f14 100644 --- a/src/funcs/crmStagesRetrieve.ts +++ b/src/funcs/crmStagesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Stages from any connected Crm software */ export async function crmStagesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmStageRequest, options?: RequestOptions, ): Promise< @@ -47,77 +44,82 @@ export async function crmStagesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveCrmStageRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmStageRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/stages/{id}")(pathParams$); + const path = pathToFunc("/crm/stages/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmStage", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmStageOutput, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function crmStagesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmStageOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmStageOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmTasksCreate.ts b/src/funcs/crmTasksCreate.ts index d88d90b2..32208b61 100644 --- a/src/funcs/crmTasksCreate.ts +++ b/src/funcs/crmTasksCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Tasks in any supported Crm software */ export async function crmTasksCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateCrmTaskRequest, options?: RequestOptions, ): Promise< @@ -48,73 +44,78 @@ export async function crmTasksCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.CreateCrmTaskRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.CreateCrmTaskRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedCrmTaskInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedCrmTaskInput, { explode: true, }); - const path$ = pathToFunc("/crm/tasks")(); + const path = pathToFunc("/crm/tasks")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createCrmTask", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmTaskOutput, | SDKError | SDKValidationError @@ -124,12 +125,12 @@ export async function crmTasksCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedCrmTaskOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedCrmTaskOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmTasksList.ts b/src/funcs/crmTasksList.ts index 90288f70..3fabc5a9 100644 --- a/src/funcs/crmTasksList.ts +++ b/src/funcs/crmTasksList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Tasks */ export async function crmTasksList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmTaskRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmTasksList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmTaskRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmTaskRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/tasks")(); + const path = pathToFunc("/crm/tasks")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmTask", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmTaskResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmTasksList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmTaskResponse$inboundSchema, { + M.json(200, operations.ListCrmTaskResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmTasksList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmTasksList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmTasksRetrieve.ts b/src/funcs/crmTasksRetrieve.ts index e73c07bb..6f2c40a8 100644 --- a/src/funcs/crmTasksRetrieve.ts +++ b/src/funcs/crmTasksRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Tasks from any connected Crm software */ export async function crmTasksRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmTaskRequest, options?: RequestOptions, ): Promise< @@ -47,77 +44,82 @@ export async function crmTasksRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveCrmTaskRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmTaskRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/tasks/{id}")(pathParams$); + const path = pathToFunc("/crm/tasks/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmTask", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmTaskOutput, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function crmTasksRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmTaskOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmTaskOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/crmUsersList.ts b/src/funcs/crmUsersList.ts index 1c269264..f3349940 100644 --- a/src/funcs/crmUsersList.ts +++ b/src/funcs/crmUsersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Users */ export async function crmUsersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListCrmUsersRequest, options?: RequestOptions, ): Promise< @@ -52,76 +49,81 @@ export async function crmUsersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListCrmUsersRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListCrmUsersRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/crm/users")(); + const path = pathToFunc("/crm/users")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listCrmUsers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListCrmUsersResponse, | SDKError | SDKValidationError @@ -131,13 +133,13 @@ export async function crmUsersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListCrmUsersResponse$inboundSchema, { + M.json(200, operations.ListCrmUsersResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -155,22 +157,21 @@ export async function crmUsersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => crmUsersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmUsersRetrieve.ts b/src/funcs/crmUsersRetrieve.ts index bd6559fd..15af06d7 100644 --- a/src/funcs/crmUsersRetrieve.ts +++ b/src/funcs/crmUsersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Users from any connected Crm software */ export async function crmUsersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCrmUserRequest, options?: RequestOptions, ): Promise< @@ -47,77 +44,82 @@ export async function crmUsersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RetrieveCrmUserRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCrmUserRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/crm/users/{id}")(pathParams$); + const path = pathToFunc("/crm/users/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCrmUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedCrmUserOutput, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function crmUsersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedCrmUserOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedCrmUserOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceCustomersList.ts b/src/funcs/ecommerceCustomersList.ts index bcbfca22..7ecf0377 100644 --- a/src/funcs/ecommerceCustomersList.ts +++ b/src/funcs/ecommerceCustomersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Customers */ export async function ecommerceCustomersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListEcommerceCustomersRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ecommerceCustomersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListEcommerceCustomersRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListEcommerceCustomersRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ecommerce/customers")(); + const path = pathToFunc("/ecommerce/customers")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listEcommerceCustomers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListEcommerceCustomersResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ecommerceCustomersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListEcommerceCustomersResponse$inboundSchema, { + M.json(200, operations.ListEcommerceCustomersResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ecommerceCustomersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ecommerceCustomersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceCustomersRetrieve.ts b/src/funcs/ecommerceCustomersRetrieve.ts index c5d53e4e..1bfa4125 100644 --- a/src/funcs/ecommerceCustomersRetrieve.ts +++ b/src/funcs/ecommerceCustomersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve customers from any connected Ats software */ export async function ecommerceCustomersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveEcommerceCustomerRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ecommerceCustomersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveEcommerceCustomerRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveEcommerceCustomerRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ecommerce/customers/{id}")(pathParams$); + const path = pathToFunc("/ecommerce/customers/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveEcommerceCustomer", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceCustomerOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ecommerceCustomersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedEcommerceCustomerOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedEcommerceCustomerOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceFulfillmentsList.ts b/src/funcs/ecommerceFulfillmentsList.ts index 0ee6e6bd..19b8011b 100644 --- a/src/funcs/ecommerceFulfillmentsList.ts +++ b/src/funcs/ecommerceFulfillmentsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Fulfillments */ export async function ecommerceFulfillmentsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListEcommerceFulfillmentsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ecommerceFulfillmentsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListEcommerceFulfillmentsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListEcommerceFulfillmentsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ecommerce/fulfillments")(); + const path = pathToFunc("/ecommerce/fulfillments")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listEcommerceFulfillments", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListEcommerceFulfillmentsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ecommerceFulfillmentsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListEcommerceFulfillmentsResponse$inboundSchema, { + M.json(200, operations.ListEcommerceFulfillmentsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ecommerceFulfillmentsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ecommerceFulfillmentsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceFulfillmentsRetrieve.ts b/src/funcs/ecommerceFulfillmentsRetrieve.ts index 847b2a1a..2b038bd6 100644 --- a/src/funcs/ecommerceFulfillmentsRetrieve.ts +++ b/src/funcs/ecommerceFulfillmentsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve fulfillments from any connected Ats software */ export async function ecommerceFulfillmentsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveEcommerceFulfillmentRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function ecommerceFulfillmentsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveEcommerceFulfillmentRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ecommerce/fulfillments/{id}")(pathParams$); + const path = pathToFunc("/ecommerce/fulfillments/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveEcommerceFulfillment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceFulfillmentOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function ecommerceFulfillmentsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedEcommerceFulfillmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedEcommerceFulfillmentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceOrdersCreate.ts b/src/funcs/ecommerceOrdersCreate.ts index c65c1839..428844ae 100644 --- a/src/funcs/ecommerceOrdersCreate.ts +++ b/src/funcs/ecommerceOrdersCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Orders in any supported Ecommerce software */ export async function ecommerceOrdersCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateEcommerceOrderRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function ecommerceOrdersCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateEcommerceOrderRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateEcommerceOrderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedEcommerceOrderInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedEcommerceOrderInput, { explode: true, }); - const path$ = pathToFunc("/ecommerce/orders")(); + const path = pathToFunc("/ecommerce/orders")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createEcommerceOrder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceOrderOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function ecommerceOrdersCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedEcommerceOrderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedEcommerceOrderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceOrdersList.ts b/src/funcs/ecommerceOrdersList.ts index 7ab550a7..155b7260 100644 --- a/src/funcs/ecommerceOrdersList.ts +++ b/src/funcs/ecommerceOrdersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Orders */ export async function ecommerceOrdersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListEcommerceOrdersRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ecommerceOrdersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListEcommerceOrdersRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListEcommerceOrdersRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ecommerce/orders")(); + const path = pathToFunc("/ecommerce/orders")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listEcommerceOrders", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListEcommerceOrdersResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ecommerceOrdersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListEcommerceOrdersResponse$inboundSchema, { + M.json(200, operations.ListEcommerceOrdersResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ecommerceOrdersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ecommerceOrdersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceOrdersRetrieve.ts b/src/funcs/ecommerceOrdersRetrieve.ts index 168cb1aa..020e6f61 100644 --- a/src/funcs/ecommerceOrdersRetrieve.ts +++ b/src/funcs/ecommerceOrdersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve orders from any connected Ats software */ export async function ecommerceOrdersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveEcommerceOrderRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ecommerceOrdersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveEcommerceOrderRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveEcommerceOrderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ecommerce/orders/{id}")(pathParams$); + const path = pathToFunc("/ecommerce/orders/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveEcommerceOrder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceOrderOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ecommerceOrdersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedEcommerceOrderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedEcommerceOrderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceProductsCreate.ts b/src/funcs/ecommerceProductsCreate.ts index e5928dac..e384e887 100644 --- a/src/funcs/ecommerceProductsCreate.ts +++ b/src/funcs/ecommerceProductsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Products in any supported Ecommerce software */ export async function ecommerceProductsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateEcommerceProductRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function ecommerceProductsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateEcommerceProductRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateEcommerceProductRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedEcommerceProductInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedEcommerceProductInput, { explode: true, }); - const path$ = pathToFunc("/ecommerce/products")(); + const path = pathToFunc("/ecommerce/products")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createEcommerceProduct", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceProductOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function ecommerceProductsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedEcommerceProductOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedEcommerceProductOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ecommerceProductsList.ts b/src/funcs/ecommerceProductsList.ts index ab5683fe..db4a2539 100644 --- a/src/funcs/ecommerceProductsList.ts +++ b/src/funcs/ecommerceProductsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Products */ export async function ecommerceProductsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListEcommerceProductsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ecommerceProductsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListEcommerceProductsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListEcommerceProductsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ecommerce/products")(); + const path = pathToFunc("/ecommerce/products")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listEcommerceProducts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListEcommerceProductsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ecommerceProductsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListEcommerceProductsResponse$inboundSchema, { + M.json(200, operations.ListEcommerceProductsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ecommerceProductsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ecommerceProductsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceProductsRetrieve.ts b/src/funcs/ecommerceProductsRetrieve.ts index 47f1680e..d6da5c8f 100644 --- a/src/funcs/ecommerceProductsRetrieve.ts +++ b/src/funcs/ecommerceProductsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve products from any connected Ats software */ export async function ecommerceProductsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveEcommerceProductRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ecommerceProductsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveEcommerceProductRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveEcommerceProductRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ecommerce/products/{id}")(pathParams$); + const path = pathToFunc("/ecommerce/products/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveEcommerceProduct", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedEcommerceProductOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ecommerceProductsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedEcommerceProductOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedEcommerceProductOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/eventsGetPanoraCoreEvents.ts b/src/funcs/eventsGetPanoraCoreEvents.ts index 411fae8c..0dce5704 100644 --- a/src/funcs/eventsGetPanoraCoreEvents.ts +++ b/src/funcs/eventsGetPanoraCoreEvents.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -27,7 +27,7 @@ import { Result } from "../types/fp.js"; * List Events */ export async function eventsGetPanoraCoreEvents( - client$: PanoraCore, + client: PanoraCore, request: operations.GetPanoraCoreEventsRequest, options?: RequestOptions, ): Promise< @@ -42,67 +42,72 @@ export async function eventsGetPanoraCoreEvents( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.GetPanoraCoreEventsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.GetPanoraCoreEventsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/events")(); + const path = pathToFunc("/events")(); - const query$ = encodeFormQuery$({ - "limit": payload$.limit, - "page": payload$.page, + const query = encodeFormQuery({ + "limit": payload.limit, + "page": payload.page, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getPanoraCoreEvents", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -112,12 +117,12 @@ export async function eventsGetPanoraCoreEvents( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.array(components.EventResponse$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(200, z.array(components.EventResponse$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsDefineCustomField.ts b/src/funcs/fieldMappingsDefineCustomField.ts index c62ab9c3..5014c81d 100644 --- a/src/funcs/fieldMappingsDefineCustomField.ts +++ b/src/funcs/fieldMappingsDefineCustomField.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Create Custom Field */ export async function fieldMappingsDefineCustomField( - client$: PanoraCore, + client: PanoraCore, request: components.CustomFieldCreateDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function fieldMappingsDefineCustomField( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.CustomFieldCreateDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.CustomFieldCreateDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/field_mappings")(); + const path = pathToFunc("/field_mappings")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "defineCustomField", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.CustomFieldResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function fieldMappingsDefineCustomField( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.CustomFieldResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.CustomFieldResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsDefinitions.ts b/src/funcs/fieldMappingsDefinitions.ts index 2c1fe18c..78d7747a 100644 --- a/src/funcs/fieldMappingsDefinitions.ts +++ b/src/funcs/fieldMappingsDefinitions.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Define target Field */ export async function fieldMappingsDefinitions( - client$: PanoraCore, + client: PanoraCore, request: components.DefineTargetFieldDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function fieldMappingsDefinitions( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.DefineTargetFieldDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.DefineTargetFieldDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/field_mappings/define")(); + const path = pathToFunc("/field_mappings/define")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "definitions", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.CustomFieldResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function fieldMappingsDefinitions( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.CustomFieldResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.CustomFieldResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsGetFieldMappingValues.ts b/src/funcs/fieldMappingsGetFieldMappingValues.ts index 03b176a0..7770973d 100644 --- a/src/funcs/fieldMappingsGetFieldMappingValues.ts +++ b/src/funcs/fieldMappingsGetFieldMappingValues.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -23,7 +23,7 @@ import { Result } from "../types/fp.js"; * Retrieve field mappings values */ export async function fieldMappingsGetFieldMappingValues( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -37,46 +37,53 @@ export async function fieldMappingsGetFieldMappingValues( | ConnectionError > > { - const path$ = pathToFunc("/field_mappings/values")(); + const path = pathToFunc("/field_mappings/values")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getFieldMappingValues", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -86,12 +93,12 @@ export async function fieldMappingsGetFieldMappingValues( | RequestTimeoutError | ConnectionError >( - m$.nil(200, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsGetFieldMappings.ts b/src/funcs/fieldMappingsGetFieldMappings.ts index bf53aef1..4d0599c8 100644 --- a/src/funcs/fieldMappingsGetFieldMappings.ts +++ b/src/funcs/fieldMappingsGetFieldMappings.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -23,7 +23,7 @@ import { Result } from "../types/fp.js"; * Retrieve field mappings */ export async function fieldMappingsGetFieldMappings( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -37,46 +37,53 @@ export async function fieldMappingsGetFieldMappings( | ConnectionError > > { - const path$ = pathToFunc("/field_mappings/attributes")(); + const path = pathToFunc("/field_mappings/attributes")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getFieldMappings", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -86,12 +93,12 @@ export async function fieldMappingsGetFieldMappings( | RequestTimeoutError | ConnectionError >( - m$.nil(200, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsGetFieldMappingsEntities.ts b/src/funcs/fieldMappingsGetFieldMappingsEntities.ts index 0f32da87..16633582 100644 --- a/src/funcs/fieldMappingsGetFieldMappingsEntities.ts +++ b/src/funcs/fieldMappingsGetFieldMappingsEntities.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -23,7 +23,7 @@ import { Result } from "../types/fp.js"; * Retrieve field mapping entities */ export async function fieldMappingsGetFieldMappingsEntities( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -37,46 +37,53 @@ export async function fieldMappingsGetFieldMappingsEntities( | ConnectionError > > { - const path$ = pathToFunc("/field_mappings/entities")(); + const path = pathToFunc("/field_mappings/entities")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getFieldMappingsEntities", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -86,12 +93,12 @@ export async function fieldMappingsGetFieldMappingsEntities( | RequestTimeoutError | ConnectionError >( - m$.nil(200, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/fieldMappingsMap.ts b/src/funcs/fieldMappingsMap.ts index bad87bbc..8fe09faa 100644 --- a/src/funcs/fieldMappingsMap.ts +++ b/src/funcs/fieldMappingsMap.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Map Custom Field */ export async function fieldMappingsMap( - client$: PanoraCore, + client: PanoraCore, request: components.MapFieldToProviderDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function fieldMappingsMap( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.MapFieldToProviderDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.MapFieldToProviderDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/field_mappings/map")(); + const path = pathToFunc("/field_mappings/map")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "map", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.CustomFieldResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function fieldMappingsMap( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.CustomFieldResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.CustomFieldResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageFilesCreate.ts b/src/funcs/filestorageFilesCreate.ts index 39221e77..da6a5279 100644 --- a/src/funcs/filestorageFilesCreate.ts +++ b/src/funcs/filestorageFilesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Files in any supported Filestorage software */ export async function filestorageFilesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateFilestorageFileRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function filestorageFilesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateFilestorageFileRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateFilestorageFileRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedFilestorageFileInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedFilestorageFileInput, { explode: true, }); - const path$ = pathToFunc("/filestorage/files")(); + const path = pathToFunc("/filestorage/files")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createFilestorageFile", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageFileOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function filestorageFilesCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedFilestorageFileOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedFilestorageFileOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageFilesList.ts b/src/funcs/filestorageFilesList.ts index f043e5c6..a8d31652 100644 --- a/src/funcs/filestorageFilesList.ts +++ b/src/funcs/filestorageFilesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Files */ export async function filestorageFilesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListFilestorageFileRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function filestorageFilesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListFilestorageFileRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListFilestorageFileRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/filestorage/files")(); + const path = pathToFunc("/filestorage/files")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listFilestorageFile", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListFilestorageFileResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function filestorageFilesList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListFilestorageFileResponse$inboundSchema, { + M.json(200, operations.ListFilestorageFileResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function filestorageFilesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => filestorageFilesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageFilesRetrieve.ts b/src/funcs/filestorageFilesRetrieve.ts index 76d45d76..6d0f0660 100644 --- a/src/funcs/filestorageFilesRetrieve.ts +++ b/src/funcs/filestorageFilesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Files from any connected Filestorage software */ export async function filestorageFilesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveFilestorageFileRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function filestorageFilesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveFilestorageFileRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveFilestorageFileRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/filestorage/files/{id}")(pathParams$); + const path = pathToFunc("/filestorage/files/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveFilestorageFile", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageFileOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function filestorageFilesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedFilestorageFileOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedFilestorageFileOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageFoldersCreate.ts b/src/funcs/filestorageFoldersCreate.ts index 4e4524b1..8a8cabc5 100644 --- a/src/funcs/filestorageFoldersCreate.ts +++ b/src/funcs/filestorageFoldersCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Folders in any supported Filestorage software */ export async function filestorageFoldersCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateFilestorageFolderRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function filestorageFoldersCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateFilestorageFolderRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateFilestorageFolderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedFilestorageFolderInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedFilestorageFolderInput, { explode: true, }); - const path$ = pathToFunc("/filestorage/folders")(); + const path = pathToFunc("/filestorage/folders")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createFilestorageFolder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageFolderOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function filestorageFoldersCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedFilestorageFolderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedFilestorageFolderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageFoldersList.ts b/src/funcs/filestorageFoldersList.ts index 3390f4eb..fcc9bb18 100644 --- a/src/funcs/filestorageFoldersList.ts +++ b/src/funcs/filestorageFoldersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Folders */ export async function filestorageFoldersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListFilestorageFolderRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function filestorageFoldersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListFilestorageFolderRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListFilestorageFolderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/filestorage/folders")(); + const path = pathToFunc("/filestorage/folders")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listFilestorageFolder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListFilestorageFolderResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function filestorageFoldersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListFilestorageFolderResponse$inboundSchema, { + M.json(200, operations.ListFilestorageFolderResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function filestorageFoldersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => filestorageFoldersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageFoldersRetrieve.ts b/src/funcs/filestorageFoldersRetrieve.ts index 7f8dfe7e..0f294e60 100644 --- a/src/funcs/filestorageFoldersRetrieve.ts +++ b/src/funcs/filestorageFoldersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Folders from any connected Filestorage software */ export async function filestorageFoldersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveFilestorageFolderRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function filestorageFoldersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveFilestorageFolderRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveFilestorageFolderRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/filestorage/folders/{id}")(pathParams$); + const path = pathToFunc("/filestorage/folders/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveFilestorageFolder", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageFolderOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function filestorageFoldersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedFilestorageFolderOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedFilestorageFolderOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageGroupsList.ts b/src/funcs/filestorageGroupsList.ts index 8bb77f9a..82a4ba50 100644 --- a/src/funcs/filestorageGroupsList.ts +++ b/src/funcs/filestorageGroupsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Groups */ export async function filestorageGroupsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListFilestorageGroupRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function filestorageGroupsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListFilestorageGroupRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListFilestorageGroupRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/filestorage/groups")(); + const path = pathToFunc("/filestorage/groups")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listFilestorageGroup", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListFilestorageGroupResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function filestorageGroupsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListFilestorageGroupResponse$inboundSchema, { + M.json(200, operations.ListFilestorageGroupResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function filestorageGroupsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => filestorageGroupsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageGroupsRetrieve.ts b/src/funcs/filestorageGroupsRetrieve.ts index c101b7f7..bc22678a 100644 --- a/src/funcs/filestorageGroupsRetrieve.ts +++ b/src/funcs/filestorageGroupsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Groups from any connected Filestorage software */ export async function filestorageGroupsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveFilestorageGroupRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function filestorageGroupsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveFilestorageGroupRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveFilestorageGroupRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/filestorage/groups/{id}")(pathParams$); + const path = pathToFunc("/filestorage/groups/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveFilestorageGroup", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageGroupOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function filestorageGroupsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedFilestorageGroupOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedFilestorageGroupOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/filestorageUsersList.ts b/src/funcs/filestorageUsersList.ts index 6be6ecf2..52bb8103 100644 --- a/src/funcs/filestorageUsersList.ts +++ b/src/funcs/filestorageUsersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Users */ export async function filestorageUsersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListFilestorageUsersRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function filestorageUsersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListFilestorageUsersRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListFilestorageUsersRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/filestorage/users")(); + const path = pathToFunc("/filestorage/users")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listFilestorageUsers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListFilestorageUsersResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function filestorageUsersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListFilestorageUsersResponse$inboundSchema, { + M.json(200, operations.ListFilestorageUsersResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function filestorageUsersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => filestorageUsersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageUsersRetrieve.ts b/src/funcs/filestorageUsersRetrieve.ts index c331a9cc..1e585d2c 100644 --- a/src/funcs/filestorageUsersRetrieve.ts +++ b/src/funcs/filestorageUsersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Users from any connected Filestorage software */ export async function filestorageUsersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveFilestorageUserRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function filestorageUsersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveFilestorageUserRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveFilestorageUserRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/filestorage/users/{id}")(pathParams$); + const path = pathToFunc("/filestorage/users/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveFilestorageUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedFilestorageUserOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function filestorageUsersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedFilestorageUserOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedFilestorageUserOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/health.ts b/src/funcs/health.ts index 4b6c39d0..15b61d81 100644 --- a/src/funcs/health.ts +++ b/src/funcs/health.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -20,7 +20,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { Result } from "../types/fp.js"; export async function health( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -34,46 +34,53 @@ export async function health( | ConnectionError > > { - const path$ = pathToFunc("/health")(); + const path = pathToFunc("/health")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "health", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< number, | SDKError | SDKValidationError @@ -83,12 +90,12 @@ export async function health( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.number()), - m$.fail(["4XX", "5XX"]), + M.json(200, z.number()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/hello.ts b/src/funcs/hello.ts index a24862c1..64fae881 100644 --- a/src/funcs/hello.ts +++ b/src/funcs/hello.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -20,7 +20,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { Result } from "../types/fp.js"; export async function hello( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -34,46 +34,53 @@ export async function hello( | ConnectionError > > { - const path$ = pathToFunc("/")(); + const path = pathToFunc("/")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "text/plain", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "hello", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< string, | SDKError | SDKValidationError @@ -83,12 +90,12 @@ export async function hello( | RequestTimeoutError | ConnectionError >( - m$.text(200, z.string()), - m$.fail(["4XX", "5XX"]), + M.text(200, z.string()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/hrisBankinfosList.ts b/src/funcs/hrisBankinfosList.ts deleted file mode 100644 index 0a545772..00000000 --- a/src/funcs/hrisBankinfosList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Bank Info - */ -export async function hrisBankinfosList( - client$: PanoraCore, - request: operations.ListHrisBankInfoRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisBankInfoResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListHrisBankInfoRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/bankinfos")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisBankInfo", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisBankInfoResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisBankInfoResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisBankInfoResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisBankinfosList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisBankinfosRetrieve.ts b/src/funcs/hrisBankinfosRetrieve.ts deleted file mode 100644 index 2139f25b..00000000 --- a/src/funcs/hrisBankinfosRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Bank Info - * - * @remarks - * Retrieve Bank Info from any connected Hris software - */ -export async function hrisBankinfosRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisBankInfoRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisBankinfoOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisBankInfoRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/bankinfos/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisBankInfo", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisBankinfoOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisBankinfoOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisBenefitsList.ts b/src/funcs/hrisBenefitsList.ts deleted file mode 100644 index 0b142dfe..00000000 --- a/src/funcs/hrisBenefitsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Benefits - */ -export async function hrisBenefitsList( - client$: PanoraCore, - request: operations.ListHrisBenefitsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListHrisBenefitsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/benefits")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisBenefits", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisBenefitsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisBenefitsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisBenefitsRetrieve.ts b/src/funcs/hrisBenefitsRetrieve.ts deleted file mode 100644 index 3c9b3b3c..00000000 --- a/src/funcs/hrisBenefitsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Benefit - * - * @remarks - * Retrieve a Benefit from any connected Hris software - */ -export async function hrisBenefitsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisBenefitRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisBenefitOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisBenefitRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/benefits/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisBenefit", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisBenefitOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisBenefitOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisCompaniesList.ts b/src/funcs/hrisCompaniesList.ts deleted file mode 100644 index c8798712..00000000 --- a/src/funcs/hrisCompaniesList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Companies - */ -export async function hrisCompaniesList( - client$: PanoraCore, - request: operations.ListHrisCompaniesRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisCompaniesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisCompaniesRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/companies")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisCompanies", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisCompaniesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisCompaniesResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisCompaniesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisCompaniesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisCompaniesRetrieve.ts b/src/funcs/hrisCompaniesRetrieve.ts deleted file mode 100644 index 4c7e31fb..00000000 --- a/src/funcs/hrisCompaniesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Company - * - * @remarks - * Retrieve a Company from any connected Hris software - */ -export async function hrisCompaniesRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisCompanyRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisCompanyOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisCompanyRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/companies/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisCompany", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisCompanyOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisCompanyOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisDependentsList.ts b/src/funcs/hrisDependentsList.ts deleted file mode 100644 index 88f49ab3..00000000 --- a/src/funcs/hrisDependentsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Dependents - */ -export async function hrisDependentsList( - client$: PanoraCore, - request: operations.ListHrisDependentsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisDependentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisDependentsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/dependents")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisDependents", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisDependentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisDependentsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisDependentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisDependentsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisDependentsRetrieve.ts b/src/funcs/hrisDependentsRetrieve.ts deleted file mode 100644 index 2bfc5388..00000000 --- a/src/funcs/hrisDependentsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Dependent - * - * @remarks - * Retrieve a Dependent from any connected Hris software - */ -export async function hrisDependentsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisDependentRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisDependentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisDependentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/dependents/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisDependent", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisDependentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisDependentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisEmployeepayrollrunsList.ts b/src/funcs/hrisEmployeepayrollrunsList.ts deleted file mode 100644 index 11cbdafc..00000000 --- a/src/funcs/hrisEmployeepayrollrunsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Employee Payroll Runs - */ -export async function hrisEmployeepayrollrunsList( - client$: PanoraCore, - request: operations.ListHrisEmployeePayrollRunRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisEmployeePayrollRunResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisEmployeePayrollRunRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/employeepayrollruns")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisEmployeePayrollRun", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisEmployeePayrollRunResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisEmployeePayrollRunResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisEmployeePayrollRunResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisEmployeepayrollrunsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisEmployeepayrollrunsRetrieve.ts b/src/funcs/hrisEmployeepayrollrunsRetrieve.ts deleted file mode 100644 index e3f16ad7..00000000 --- a/src/funcs/hrisEmployeepayrollrunsRetrieve.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Employee Payroll Run - * - * @remarks - * Retrieve Employee Payroll Run from any connected Hris software - */ -export async function hrisEmployeepayrollrunsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisEmployeePayrollRunRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisEmployeepayrollrunOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisEmployeePayrollRunRequest$outboundSchema.parse( - value$, - ), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/employeepayrollruns/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisEmployeePayrollRun", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisEmployeepayrollrunOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisEmployeepayrollrunOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisEmployeesCreate.ts b/src/funcs/hrisEmployeesCreate.ts deleted file mode 100644 index 2f1b1f5c..00000000 --- a/src/funcs/hrisEmployeesCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Employees - * - * @remarks - * Create Employees in any supported Hris software - */ -export async function hrisEmployeesCreate( - client$: PanoraCore, - request: operations.CreateHrisEmployeeRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisEmployeeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateHrisEmployeeRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedHrisEmployeeInput, { - explode: true, - }); - - const path$ = pathToFunc("/hris/employees")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createHrisEmployee", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisEmployeeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedHrisEmployeeOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisEmployeesList.ts b/src/funcs/hrisEmployeesList.ts deleted file mode 100644 index 413ec9c0..00000000 --- a/src/funcs/hrisEmployeesList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Employees - */ -export async function hrisEmployeesList( - client$: PanoraCore, - request: operations.ListHrisEmployeesRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisEmployeesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisEmployeesRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/employees")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisEmployees", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisEmployeesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisEmployeesResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisEmployeesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisEmployeesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisEmployeesRetrieve.ts b/src/funcs/hrisEmployeesRetrieve.ts deleted file mode 100644 index 13a61232..00000000 --- a/src/funcs/hrisEmployeesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Employee - * - * @remarks - * Retrieve an Employee from any connected Hris software - */ -export async function hrisEmployeesRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisEmployeeRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisEmployeeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisEmployeeRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/employees/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisEmployee", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisEmployeeOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisEmployeeOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisEmployerbenefitsList.ts b/src/funcs/hrisEmployerbenefitsList.ts deleted file mode 100644 index 51a6fc5f..00000000 --- a/src/funcs/hrisEmployerbenefitsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Employer Benefits - */ -export async function hrisEmployerbenefitsList( - client$: PanoraCore, - request: operations.ListHrisEmployerBenefitsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisEmployerBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisEmployerBenefitsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/employerbenefits")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisEmployerBenefits", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisEmployerBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisEmployerBenefitsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisEmployerBenefitsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisEmployerbenefitsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisEmployerbenefitsRetrieve.ts b/src/funcs/hrisEmployerbenefitsRetrieve.ts deleted file mode 100644 index 475c45d2..00000000 --- a/src/funcs/hrisEmployerbenefitsRetrieve.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Employer Benefit - * - * @remarks - * Retrieve an Employer Benefit from any connected Hris software - */ -export async function hrisEmployerbenefitsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisEmployerBenefitRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisEmployerbenefitOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisEmployerBenefitRequest$outboundSchema.parse( - value$, - ), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/employerbenefits/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisEmployerBenefit", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisEmployerbenefitOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisEmployerbenefitOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisEmploymentsList.ts b/src/funcs/hrisEmploymentsList.ts deleted file mode 100644 index f1459637..00000000 --- a/src/funcs/hrisEmploymentsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Employments - */ -export async function hrisEmploymentsList( - client$: PanoraCore, - request: operations.ListHrisEmploymentsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisEmploymentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisEmploymentsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/employments")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisEmployments", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisEmploymentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisEmploymentsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisEmploymentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisEmploymentsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisEmploymentsRetrieve.ts b/src/funcs/hrisEmploymentsRetrieve.ts deleted file mode 100644 index 2743cccf..00000000 --- a/src/funcs/hrisEmploymentsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Employment - * - * @remarks - * Retrieve an Employment from any connected Hris software - */ -export async function hrisEmploymentsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisEmploymentRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisEmploymentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisEmploymentRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/employments/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisEmployment", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisEmploymentOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisEmploymentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisGroupsList.ts b/src/funcs/hrisGroupsList.ts deleted file mode 100644 index 3c33b0ca..00000000 --- a/src/funcs/hrisGroupsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Groups - */ -export async function hrisGroupsList( - client$: PanoraCore, - request: operations.ListHrisGroupsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisGroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListHrisGroupsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/groups")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisGroups", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisGroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisGroupsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisGroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisGroupsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisGroupsRetrieve.ts b/src/funcs/hrisGroupsRetrieve.ts deleted file mode 100644 index f3ed24d5..00000000 --- a/src/funcs/hrisGroupsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Group - * - * @remarks - * Retrieve a Group from any connected Hris software - */ -export async function hrisGroupsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisGroupRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisGroupOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisGroupRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/groups/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisGroup", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisGroupOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisGroupOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisLocationsList.ts b/src/funcs/hrisLocationsList.ts deleted file mode 100644 index 45e19b4c..00000000 --- a/src/funcs/hrisLocationsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Locations - */ -export async function hrisLocationsList( - client$: PanoraCore, - request: operations.ListHrisLocationsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisLocationsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisLocationsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/locations")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisLocations", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisLocationsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisLocationsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisLocationsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisLocationsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisLocationsRetrieve.ts b/src/funcs/hrisLocationsRetrieve.ts deleted file mode 100644 index b52d631d..00000000 --- a/src/funcs/hrisLocationsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Location - * - * @remarks - * Retrieve a Location from any connected Hris software - */ -export async function hrisLocationsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisLocationRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisLocationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisLocationRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/locations/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisLocation", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisLocationOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisLocationOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisPaygroupsList.ts b/src/funcs/hrisPaygroupsList.ts deleted file mode 100644 index 592d66b5..00000000 --- a/src/funcs/hrisPaygroupsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Pay Groups - */ -export async function hrisPaygroupsList( - client$: PanoraCore, - request: operations.ListHrisPaygroupsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisPaygroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisPaygroupsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/paygroups")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisPaygroups", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisPaygroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisPaygroupsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisPaygroupsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisPaygroupsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisPaygroupsRetrieve.ts b/src/funcs/hrisPaygroupsRetrieve.ts deleted file mode 100644 index b00d5692..00000000 --- a/src/funcs/hrisPaygroupsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Pay Group - * - * @remarks - * Retrieve a Pay Group from any connected Hris software - */ -export async function hrisPaygroupsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisPaygroupRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisPaygroupOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisPaygroupRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/paygroups/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisPaygroup", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisPaygroupOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisPaygroupOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisPayrollrunsList.ts b/src/funcs/hrisPayrollrunsList.ts deleted file mode 100644 index cf424b9f..00000000 --- a/src/funcs/hrisPayrollrunsList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Payroll Runs - */ -export async function hrisPayrollrunsList( - client$: PanoraCore, - request: operations.ListHrisPayrollRunsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisPayrollRunsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisPayrollRunsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/payrollruns")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisPayrollRuns", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisPayrollRunsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisPayrollRunsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisPayrollRunsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisPayrollrunsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisPayrollrunsRetrieve.ts b/src/funcs/hrisPayrollrunsRetrieve.ts deleted file mode 100644 index 201382a1..00000000 --- a/src/funcs/hrisPayrollrunsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Payroll Run - * - * @remarks - * Retrieve a Payroll Run from any connected Hris software - */ -export async function hrisPayrollrunsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisPayrollRunRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisPayrollrunOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisPayrollRunRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/payrollruns/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisPayrollRun", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisPayrollrunOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisPayrollrunOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisTimeoffbalancesList.ts b/src/funcs/hrisTimeoffbalancesList.ts deleted file mode 100644 index b310f3d8..00000000 --- a/src/funcs/hrisTimeoffbalancesList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List TimeoffBalances - */ -export async function hrisTimeoffbalancesList( - client$: PanoraCore, - request: operations.ListHrisTimeoffbalancesRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisTimeoffbalancesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisTimeoffbalancesRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/timeoffbalances")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisTimeoffbalances", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisTimeoffbalancesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisTimeoffbalancesResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisTimeoffbalancesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisTimeoffbalancesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisTimeoffbalancesRetrieve.ts b/src/funcs/hrisTimeoffbalancesRetrieve.ts deleted file mode 100644 index ca14fcd1..00000000 --- a/src/funcs/hrisTimeoffbalancesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Time off Balances - * - * @remarks - * Retrieve Time off Balances from any connected Hris software - */ -export async function hrisTimeoffbalancesRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisTimeoffbalanceRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisTimeoffbalanceOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisTimeoffbalanceRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/timeoffbalances/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisTimeoffbalance", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisTimeoffbalanceOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisTimeoffbalanceOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisTimeoffsCreate.ts b/src/funcs/hrisTimeoffsCreate.ts deleted file mode 100644 index 4dcd03e6..00000000 --- a/src/funcs/hrisTimeoffsCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Timeoffs - * - * @remarks - * Create Timeoffs in any supported Hris software - */ -export async function hrisTimeoffsCreate( - client$: PanoraCore, - request: operations.CreateHrisTimeoffRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisTimeoffOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateHrisTimeoffRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedHrisTimeoffInput, { - explode: true, - }); - - const path$ = pathToFunc("/hris/timeoffs")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createHrisTimeoff", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisTimeoffOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedHrisTimeoffOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisTimeoffsList.ts b/src/funcs/hrisTimeoffsList.ts deleted file mode 100644 index b78bf7b3..00000000 --- a/src/funcs/hrisTimeoffsList.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Time Offs - */ -export async function hrisTimeoffsList( - client$: PanoraCore, - request: operations.ListHrisTimeoffsRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisTimeoffsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.ListHrisTimeoffsRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/timeoffs")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisTimeoffs", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisTimeoffsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisTimeoffsResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisTimeoffsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisTimeoffsList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisTimeoffsRetrieve.ts b/src/funcs/hrisTimeoffsRetrieve.ts deleted file mode 100644 index 8f25b2fa..00000000 --- a/src/funcs/hrisTimeoffsRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Time Off - * - * @remarks - * Retrieve a Time Off from any connected Hris software - */ -export async function hrisTimeoffsRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisTimeoffRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisTimeoffOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisTimeoffRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/timeoffs/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisTimeoff", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisTimeoffOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisTimeoffOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisTimesheetentriesCreate.ts b/src/funcs/hrisTimesheetentriesCreate.ts deleted file mode 100644 index 1e611dc4..00000000 --- a/src/funcs/hrisTimesheetentriesCreate.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Timesheetentrys - * - * @remarks - * Create Timesheetentrys in any supported Hris software - */ -export async function hrisTimesheetentriesCreate( - client$: PanoraCore, - request: operations.CreateHrisTimesheetentryRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisTimesheetEntryOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateHrisTimesheetentryRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedHrisTimesheetEntryInput, { - explode: true, - }); - - const path$ = pathToFunc("/hris/timesheetentries")(); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - 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" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "createHrisTimesheetentry", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisTimesheetEntryOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(201, components.UnifiedHrisTimesheetEntryOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/hrisTimesheetentriesList.ts b/src/funcs/hrisTimesheetentriesList.ts deleted file mode 100644 index 18fde378..00000000 --- a/src/funcs/hrisTimesheetentriesList.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List Timesheetentries - */ -export async function hrisTimesheetentriesList( - client$: PanoraCore, - request: operations.ListHrisTimesheetentriesRequest, - options?: RequestOptions, -): Promise< - PageIterator< - Result< - operations.ListHrisTimesheetentriesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListHrisTimesheetentriesRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return haltIterator(parsed$); - } - const payload$ = parsed$.value; - const body$ = null; - - const path$ = pathToFunc("/hris/timesheetentries")(); - - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "listHrisTimesheetentries", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return haltIterator(requestRes); - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return haltIterator(doResult); - } - const response = doResult.value; - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$, raw$] = await m$.match< - operations.ListHrisTimesheetentriesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, operations.ListHrisTimesheetentriesResponse$inboundSchema, { - key: "Result", - }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); - } - - const nextFunc = ( - responseData: unknown, - ): Paginator< - Result< - operations.ListHrisTimesheetentriesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { - const nextCursor = dlv(responseData, "next_cursor"); - - if (nextCursor == null) { - return () => null; - } - - return () => - hrisTimesheetentriesList( - client$, - { - ...input$, - cursor: nextCursor, - }, - options, - ); - }; - - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; -} diff --git a/src/funcs/hrisTimesheetentriesRetrieve.ts b/src/funcs/hrisTimesheetentriesRetrieve.ts deleted file mode 100644 index 9c772793..00000000 --- a/src/funcs/hrisTimesheetentriesRetrieve.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Retrieve Timesheetentry - * - * @remarks - * Retrieve an Timesheetentry from any connected Hris software - */ -export async function hrisTimesheetentriesRetrieve( - client$: PanoraCore, - request: operations.RetrieveHrisTimesheetentryRequest, - options?: RequestOptions, -): Promise< - Result< - components.UnifiedHrisTimesheetEntryOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveHrisTimesheetentryRequest$outboundSchema.parse(value$), - "Input validation failed", - ); - if (!parsed$.ok) { - return parsed$; - } - const payload$ = parsed$.value; - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path$ = pathToFunc("/hris/timesheetentries/{id}")(pathParams$); - - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, - }); - - const headers$ = new Headers({ - Accept: "application/json", - "x-connection-token": encodeSimple$( - "x-connection-token", - payload$["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; - const context = { - operationID: "retrieveHrisTimesheetentry", - oAuth2Scopes: [], - securitySource: client$.options$.apiKey, - }; - const securitySettings$ = resolveGlobalSecurity(security$); - - const requestRes = client$.createRequest$(context, { - security: securitySettings$, - method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const request$ = requestRes.value; - - const doResult = await client$.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result$] = await m$.match< - components.UnifiedHrisTimesheetEntryOutput, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - m$.json(200, components.UnifiedHrisTimesheetEntryOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), - )(response); - if (!result$.ok) { - return result$; - } - - return result$; -} diff --git a/src/funcs/linkedUsersCreate.ts b/src/funcs/linkedUsersCreate.ts index fc448b1a..e16ad67d 100644 --- a/src/funcs/linkedUsersCreate.ts +++ b/src/funcs/linkedUsersCreate.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Create Linked Users */ export async function linkedUsersCreate( - client$: PanoraCore, + client: PanoraCore, request: components.CreateLinkedUserDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function linkedUsersCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.CreateLinkedUserDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.CreateLinkedUserDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/linked_users")(); + const path = pathToFunc("/linked_users")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createLinkedUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.LinkedUserResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function linkedUsersCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.LinkedUserResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.LinkedUserResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/linkedUsersImportBatch.ts b/src/funcs/linkedUsersImportBatch.ts index 03a5c5ae..0218de7a 100644 --- a/src/funcs/linkedUsersImportBatch.ts +++ b/src/funcs/linkedUsersImportBatch.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Add Batch Linked Users */ export async function linkedUsersImportBatch( - client$: PanoraCore, + client: PanoraCore, request: components.CreateBatchLinkedUserDto, options?: RequestOptions, ): Promise< @@ -41,62 +41,66 @@ export async function linkedUsersImportBatch( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - components.CreateBatchLinkedUserDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.CreateBatchLinkedUserDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/linked_users/batch")(); + const path = pathToFunc("/linked_users/batch")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "importBatch", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -106,12 +110,12 @@ export async function linkedUsersImportBatch( | RequestTimeoutError | ConnectionError >( - m$.json(201, z.array(components.LinkedUserResponse$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(201, z.array(components.LinkedUserResponse$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/linkedUsersList.ts b/src/funcs/linkedUsersList.ts index 41e2ab24..4fe54b75 100644 --- a/src/funcs/linkedUsersList.ts +++ b/src/funcs/linkedUsersList.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -24,7 +24,7 @@ import { Result } from "../types/fp.js"; * List Linked Users */ export async function linkedUsersList( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -38,46 +38,53 @@ export async function linkedUsersList( | ConnectionError > > { - const path$ = pathToFunc("/linked_users")(); + const path = pathToFunc("/linked_users")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listLinkedUsers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -87,12 +94,12 @@ export async function linkedUsersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.array(components.LinkedUserResponse$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(200, z.array(components.LinkedUserResponse$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/linkedUsersRemoteId.ts b/src/funcs/linkedUsersRemoteId.ts index fda1976e..186119d2 100644 --- a/src/funcs/linkedUsersRemoteId.ts +++ b/src/funcs/linkedUsersRemoteId.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Linked User From A Remote Id */ export async function linkedUsersRemoteId( - client$: PanoraCore, + client: PanoraCore, request: operations.RemoteIdRequest, options?: RequestOptions, ): Promise< @@ -41,65 +41,70 @@ export async function linkedUsersRemoteId( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RemoteIdRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RemoteIdRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/linked_users/fromRemoteId")(); + const path = pathToFunc("/linked_users/fromRemoteId")(); - const query$ = encodeFormQuery$({ - "remoteId": payload$.remoteId, + const query = encodeFormQuery({ + "remoteId": payload.remoteId, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "remoteId", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.LinkedUserResponse, | SDKError | SDKValidationError @@ -109,12 +114,12 @@ export async function linkedUsersRemoteId( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.LinkedUserResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.LinkedUserResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/linkedUsersRetrieve.ts b/src/funcs/linkedUsersRetrieve.ts index 508a28bc..4bc6edc2 100644 --- a/src/funcs/linkedUsersRetrieve.ts +++ b/src/funcs/linkedUsersRetrieve.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Retrieve Linked Users */ export async function linkedUsersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveLinkedUserRequest, options?: RequestOptions, ): Promise< @@ -41,68 +41,72 @@ export async function linkedUsersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveLinkedUserRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveLinkedUserRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/linked_users/{id}")(pathParams$); + const path = pathToFunc("/linked_users/{id}")(pathParams); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveLinkedUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.LinkedUserResponse, | SDKError | SDKValidationError @@ -112,12 +116,12 @@ export async function linkedUsersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.LinkedUserResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.LinkedUserResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationActionsCreate.ts b/src/funcs/marketingautomationActionsCreate.ts index b0fc46bc..056c55c8 100644 --- a/src/funcs/marketingautomationActionsCreate.ts +++ b/src/funcs/marketingautomationActionsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create a action in any supported Marketingautomation software */ export async function marketingautomationActionsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingautomationActionRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,83 @@ export async function marketingautomationActionsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingautomationActionRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( + const payload = parsed.value; + const body = encodeJSON( "body", - payload$.UnifiedMarketingautomationActionInput, + payload.UnifiedMarketingautomationActionInput, { explode: true }, ); - const path$ = pathToFunc("/marketingautomation/actions")(); + const path = pathToFunc("/marketingautomation/actions")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingautomationAction", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationActionOutput, | SDKError | SDKValidationError @@ -129,15 +130,15 @@ export async function marketingautomationActionsCreate( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 201, components.UnifiedMarketingautomationActionOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationActionsList.ts b/src/funcs/marketingautomationActionsList.ts index 50125b31..98ae8546 100644 --- a/src/funcs/marketingautomationActionsList.ts +++ b/src/funcs/marketingautomationActionsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Actions */ export async function marketingautomationActionsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationActionRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationActionsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationActionRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/actions")(); + const path = pathToFunc("/marketingautomation/actions")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationAction", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationActionResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationActionsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationActionResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationActionsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationActionsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationActionsRetrieve.ts b/src/funcs/marketingautomationActionsRetrieve.ts index 2929dcec..86f4708b 100644 --- a/src/funcs/marketingautomationActionsRetrieve.ts +++ b/src/funcs/marketingautomationActionsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Actions from any connected Marketingautomation software */ export async function marketingautomationActionsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationActionRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationActionsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationActionRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/actions/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/actions/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationAction", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationActionOutput, | SDKError | SDKValidationError @@ -130,15 +132,15 @@ export async function marketingautomationActionsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationActionOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationAutomationsCreate.ts b/src/funcs/marketingautomationAutomationsCreate.ts index d4803933..5a46bb8c 100644 --- a/src/funcs/marketingautomationAutomationsCreate.ts +++ b/src/funcs/marketingautomationAutomationsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create a automation in any supported Marketingautomation software */ export async function marketingautomationAutomationsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingautomationAutomationRequest, options?: RequestOptions, ): Promise< @@ -48,77 +44,82 @@ export async function marketingautomationAutomationsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingautomationAutomationRequest$outboundSchema - .parse(value$), + .parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( + const payload = parsed.value; + const body = encodeJSON( "body", - payload$.UnifiedMarketingautomationAutomationInput, + payload.UnifiedMarketingautomationAutomationInput, { explode: true }, ); - const path$ = pathToFunc("/marketingautomation/automations")(); + const path = pathToFunc("/marketingautomation/automations")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingautomationAutomation", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationAutomationOutput, | SDKError | SDKValidationError @@ -128,15 +129,15 @@ export async function marketingautomationAutomationsCreate( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 201, components.UnifiedMarketingautomationAutomationOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationAutomationsList.ts b/src/funcs/marketingautomationAutomationsList.ts index 186d2290..1c3374b5 100644 --- a/src/funcs/marketingautomationAutomationsList.ts +++ b/src/funcs/marketingautomationAutomationsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Automations */ export async function marketingautomationAutomationsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationAutomationsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationAutomationsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationAutomationsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/automations")(); + const path = pathToFunc("/marketingautomation/automations")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationAutomations", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationAutomationsResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationAutomationsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationAutomationsResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationAutomationsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationAutomationsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationAutomationsRetrieve.ts b/src/funcs/marketingautomationAutomationsRetrieve.ts index 32a5d87e..24fea9d6 100644 --- a/src/funcs/marketingautomationAutomationsRetrieve.ts +++ b/src/funcs/marketingautomationAutomationsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve an Automation from any connected Marketingautomation software */ export async function marketingautomationAutomationsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationAutomationRequest, options?: RequestOptions, ): Promise< @@ -47,81 +44,84 @@ export async function marketingautomationAutomationsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationAutomationRequest$outboundSchema - .parse(value$), + .parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/automations/{id}")( - pathParams$, - ); + const path = pathToFunc("/marketingautomation/automations/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationAutomation", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationAutomationOutput, | SDKError | SDKValidationError @@ -131,15 +131,15 @@ export async function marketingautomationAutomationsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationAutomationOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationCampaignsCreate.ts b/src/funcs/marketingautomationCampaignsCreate.ts index cba2cfa4..0cf91bc6 100644 --- a/src/funcs/marketingautomationCampaignsCreate.ts +++ b/src/funcs/marketingautomationCampaignsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create a campaign in any supported Marketingautomation software */ export async function marketingautomationCampaignsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingautomationCampaignRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,83 @@ export async function marketingautomationCampaignsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingautomationCampaignRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( + const payload = parsed.value; + const body = encodeJSON( "body", - payload$.UnifiedMarketingautomationCampaignInput, + payload.UnifiedMarketingautomationCampaignInput, { explode: true }, ); - const path$ = pathToFunc("/marketingautomation/campaigns")(); + const path = pathToFunc("/marketingautomation/campaigns")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingautomationCampaign", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationCampaignOutput, | SDKError | SDKValidationError @@ -129,15 +130,15 @@ export async function marketingautomationCampaignsCreate( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 201, components.UnifiedMarketingautomationCampaignOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationCampaignsList.ts b/src/funcs/marketingautomationCampaignsList.ts index fefb2f28..67c0a383 100644 --- a/src/funcs/marketingautomationCampaignsList.ts +++ b/src/funcs/marketingautomationCampaignsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Campaigns */ export async function marketingautomationCampaignsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationCampaignsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationCampaignsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationCampaignsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/campaigns")(); + const path = pathToFunc("/marketingautomation/campaigns")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationCampaigns", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationCampaignsResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationCampaignsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationCampaignsResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationCampaignsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationCampaignsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationCampaignsRetrieve.ts b/src/funcs/marketingautomationCampaignsRetrieve.ts index 1f486f89..e25f5f82 100644 --- a/src/funcs/marketingautomationCampaignsRetrieve.ts +++ b/src/funcs/marketingautomationCampaignsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Campaign from any connected Marketingautomation software */ export async function marketingautomationCampaignsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationCampaignRequest, options?: RequestOptions, ): Promise< @@ -47,79 +44,84 @@ export async function marketingautomationCampaignsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationCampaignRequest$outboundSchema - .parse(value$), + .parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/campaigns/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/campaigns/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationCampaign", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationCampaignOutput, | SDKError | SDKValidationError @@ -129,15 +131,15 @@ export async function marketingautomationCampaignsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationCampaignOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationContactsCreate.ts b/src/funcs/marketingautomationContactsCreate.ts index 79776761..be96f85a 100644 --- a/src/funcs/marketingautomationContactsCreate.ts +++ b/src/funcs/marketingautomationContactsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create a contact in any supported Marketingautomation software */ export async function marketingautomationContactsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingAutomationContactRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,83 @@ export async function marketingautomationContactsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingAutomationContactRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( + const payload = parsed.value; + const body = encodeJSON( "body", - payload$.UnifiedMarketingautomationContactInput, + payload.UnifiedMarketingautomationContactInput, { explode: true }, ); - const path$ = pathToFunc("/marketingautomation/contacts")(); + const path = pathToFunc("/marketingautomation/contacts")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingAutomationContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationContactOutput, | SDKError | SDKValidationError @@ -129,15 +130,15 @@ export async function marketingautomationContactsCreate( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 201, components.UnifiedMarketingautomationContactOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationContactsList.ts b/src/funcs/marketingautomationContactsList.ts index 2674cc8c..32808b1b 100644 --- a/src/funcs/marketingautomationContactsList.ts +++ b/src/funcs/marketingautomationContactsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Contacts */ export async function marketingautomationContactsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingAutomationContactsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationContactsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingAutomationContactsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/contacts")(); + const path = pathToFunc("/marketingautomation/contacts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingAutomationContacts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingAutomationContactsResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationContactsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingAutomationContactsResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationContactsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationContactsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationContactsRetrieve.ts b/src/funcs/marketingautomationContactsRetrieve.ts index 4c6f0888..e8d9b613 100644 --- a/src/funcs/marketingautomationContactsRetrieve.ts +++ b/src/funcs/marketingautomationContactsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Contacts from any connected Marketingautomation software */ export async function marketingautomationContactsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingAutomationContactRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationContactsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingAutomationContactRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/contacts/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/contacts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingAutomationContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationContactOutput, | SDKError | SDKValidationError @@ -130,15 +132,15 @@ export async function marketingautomationContactsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationContactOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationEmailsList.ts b/src/funcs/marketingautomationEmailsList.ts index 7fe23b7d..51641411 100644 --- a/src/funcs/marketingautomationEmailsList.ts +++ b/src/funcs/marketingautomationEmailsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Emails */ export async function marketingautomationEmailsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationEmailsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationEmailsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationEmailsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/emails")(); + const path = pathToFunc("/marketingautomation/emails")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationEmails", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationEmailsResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationEmailsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationEmailsResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationEmailsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationEmailsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationEmailsRetrieve.ts b/src/funcs/marketingautomationEmailsRetrieve.ts index 8a0dd39f..272ed635 100644 --- a/src/funcs/marketingautomationEmailsRetrieve.ts +++ b/src/funcs/marketingautomationEmailsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve an Email from any connected Marketingautomation software */ export async function marketingautomationEmailsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationEmailRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationEmailsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationEmailRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/emails/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/emails/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationEmail", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationEmailOutput, | SDKError | SDKValidationError @@ -130,15 +132,12 @@ export async function marketingautomationEmailsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( - 200, - components.UnifiedMarketingautomationEmailOutput$inboundSchema, - ), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedMarketingautomationEmailOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationEventsList.ts b/src/funcs/marketingautomationEventsList.ts index 07c0ebaf..665fa358 100644 --- a/src/funcs/marketingautomationEventsList.ts +++ b/src/funcs/marketingautomationEventsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Events */ export async function marketingautomationEventsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingAutomationEventsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationEventsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingAutomationEventsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/events")(); + const path = pathToFunc("/marketingautomation/events")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingAutomationEvents", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingAutomationEventsResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationEventsList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingAutomationEventsResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationEventsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationEventsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationEventsRetrieve.ts b/src/funcs/marketingautomationEventsRetrieve.ts index d49c7635..ce912675 100644 --- a/src/funcs/marketingautomationEventsRetrieve.ts +++ b/src/funcs/marketingautomationEventsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve an Event from any connected Marketingautomation software */ export async function marketingautomationEventsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationEventRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationEventsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationEventRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/events/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/events/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationEvent", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationEventOutput, | SDKError | SDKValidationError @@ -130,15 +132,12 @@ export async function marketingautomationEventsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( - 200, - components.UnifiedMarketingautomationEventOutput$inboundSchema, - ), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedMarketingautomationEventOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationListsCreate.ts b/src/funcs/marketingautomationListsCreate.ts index aa0ee772..ba20b0b9 100644 --- a/src/funcs/marketingautomationListsCreate.ts +++ b/src/funcs/marketingautomationListsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Lists in any supported Marketingautomation software */ export async function marketingautomationListsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingautomationListRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,81 @@ export async function marketingautomationListsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingautomationListRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( - "body", - payload$.UnifiedMarketingautomationListInput, - { explode: true }, - ); + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedMarketingautomationListInput, { + explode: true, + }); - const path$ = pathToFunc("/marketingautomation/lists")(); + const path = pathToFunc("/marketingautomation/lists")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingautomationList", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationListOutput, | SDKError | SDKValidationError @@ -129,12 +128,12 @@ export async function marketingautomationListsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedMarketingautomationListOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedMarketingautomationListOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationListsList.ts b/src/funcs/marketingautomationListsList.ts index 9a1891ac..f83598e9 100644 --- a/src/funcs/marketingautomationListsList.ts +++ b/src/funcs/marketingautomationListsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Lists */ export async function marketingautomationListsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationListsRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationListsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationListsRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/lists")(); + const path = pathToFunc("/marketingautomation/lists")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationLists", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationListsResponse, | SDKError | SDKValidationError @@ -134,15 +136,13 @@ export async function marketingautomationListsList( | RequestTimeoutError | ConnectionError >( - m$.json( - 200, - operations.ListMarketingautomationListsResponse$inboundSchema, - { key: "Result" }, - ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.json(200, operations.ListMarketingautomationListsResponse$inboundSchema, { + key: "Result", + }), + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +160,21 @@ export async function marketingautomationListsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationListsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationListsRetrieve.ts b/src/funcs/marketingautomationListsRetrieve.ts index 81d409ee..004fd96a 100644 --- a/src/funcs/marketingautomationListsRetrieve.ts +++ b/src/funcs/marketingautomationListsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve a List from any connected Marketingautomation software */ export async function marketingautomationListsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationListRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationListsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationListRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/lists/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/lists/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationList", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationListOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function marketingautomationListsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedMarketingautomationListOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedMarketingautomationListOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationMessagesList.ts b/src/funcs/marketingautomationMessagesList.ts index 2fc00a17..da0686e5 100644 --- a/src/funcs/marketingautomationMessagesList.ts +++ b/src/funcs/marketingautomationMessagesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Messages */ export async function marketingautomationMessagesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationMessagesRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationMessagesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationMessagesRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/messages")(); + const path = pathToFunc("/marketingautomation/messages")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationMessages", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationMessagesResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationMessagesList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationMessagesResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationMessagesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationMessagesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationMessagesRetrieve.ts b/src/funcs/marketingautomationMessagesRetrieve.ts index d35b6c0f..7f0005c6 100644 --- a/src/funcs/marketingautomationMessagesRetrieve.ts +++ b/src/funcs/marketingautomationMessagesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Messages from any connected Marketingautomation software */ export async function marketingautomationMessagesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationMessageRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationMessagesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationMessageRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/messages/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/messages/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationMessage", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationMessageOutput, | SDKError | SDKValidationError @@ -130,15 +132,15 @@ export async function marketingautomationMessagesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationMessageOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationTemplatesCreate.ts b/src/funcs/marketingautomationTemplatesCreate.ts index 7932aec5..13809fa8 100644 --- a/src/funcs/marketingautomationTemplatesCreate.ts +++ b/src/funcs/marketingautomationTemplatesCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create a template in any supported Marketingautomation software */ export async function marketingautomationTemplatesCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateMarketingautomationTemplateRequest, options?: RequestOptions, ): Promise< @@ -48,78 +44,83 @@ export async function marketingautomationTemplatesCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.CreateMarketingautomationTemplateRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$( + const payload = parsed.value; + const body = encodeJSON( "body", - payload$.UnifiedMarketingautomationTemplateInput, + payload.UnifiedMarketingautomationTemplateInput, { explode: true }, ); - const path$ = pathToFunc("/marketingautomation/templates")(); + const path = pathToFunc("/marketingautomation/templates")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createMarketingautomationTemplate", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationTemplateOutput, | SDKError | SDKValidationError @@ -129,15 +130,15 @@ export async function marketingautomationTemplatesCreate( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 201, components.UnifiedMarketingautomationTemplateOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationTemplatesList.ts b/src/funcs/marketingautomationTemplatesList.ts index 5d8c8db6..2fd46925 100644 --- a/src/funcs/marketingautomationTemplatesList.ts +++ b/src/funcs/marketingautomationTemplatesList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Templates */ export async function marketingautomationTemplatesList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingautomationTemplatesRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationTemplatesList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingautomationTemplatesRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/templates")(); + const path = pathToFunc("/marketingautomation/templates")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingautomationTemplates", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingautomationTemplatesResponse, | SDKError | SDKValidationError @@ -134,15 +136,15 @@ export async function marketingautomationTemplatesList( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, operations.ListMarketingautomationTemplatesResponse$inboundSchema, { key: "Result" }, ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +162,21 @@ export async function marketingautomationTemplatesList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationTemplatesList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationTemplatesRetrieve.ts b/src/funcs/marketingautomationTemplatesRetrieve.ts index 0c70f737..5e79cd92 100644 --- a/src/funcs/marketingautomationTemplatesRetrieve.ts +++ b/src/funcs/marketingautomationTemplatesRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Template from any connected Marketingautomation software */ export async function marketingautomationTemplatesRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingautomationTemplateRequest, options?: RequestOptions, ): Promise< @@ -47,79 +44,84 @@ export async function marketingautomationTemplatesRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingautomationTemplateRequest$outboundSchema - .parse(value$), + .parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/templates/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/templates/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingautomationTemplate", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationTemplateOutput, | SDKError | SDKValidationError @@ -129,15 +131,15 @@ export async function marketingautomationTemplatesRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json( + M.json( 200, components.UnifiedMarketingautomationTemplateOutput$inboundSchema, ), - m$.fail(["4XX", "5XX"]), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/marketingautomationUsersList.ts b/src/funcs/marketingautomationUsersList.ts index 3ab5d9b0..3335d309 100644 --- a/src/funcs/marketingautomationUsersList.ts +++ b/src/funcs/marketingautomationUsersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Users */ export async function marketingautomationUsersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListMarketingAutomationUsersRequest, options?: RequestOptions, ): Promise< @@ -52,79 +49,84 @@ export async function marketingautomationUsersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.ListMarketingAutomationUsersRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/marketingautomation/users")(); + const path = pathToFunc("/marketingautomation/users")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listMarketingAutomationUsers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListMarketingAutomationUsersResponse, | SDKError | SDKValidationError @@ -134,15 +136,13 @@ export async function marketingautomationUsersList( | RequestTimeoutError | ConnectionError >( - m$.json( - 200, - operations.ListMarketingAutomationUsersResponse$inboundSchema, - { key: "Result" }, - ), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.json(200, operations.ListMarketingAutomationUsersResponse$inboundSchema, { + key: "Result", + }), + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -160,22 +160,21 @@ export async function marketingautomationUsersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => marketingautomationUsersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationUsersRetrieve.ts b/src/funcs/marketingautomationUsersRetrieve.ts index 407df99e..3b83c981 100644 --- a/src/funcs/marketingautomationUsersRetrieve.ts +++ b/src/funcs/marketingautomationUsersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Users from any connected Marketingautomation software */ export async function marketingautomationUsersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveMarketingAutomationUserRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,85 @@ export async function marketingautomationUsersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => + const parsed = safeParse( + request, + (value) => operations.RetrieveMarketingAutomationUserRequest$outboundSchema.parse( - value$, + value, ), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/marketingautomation/users/{id}")(pathParams$); + const path = pathToFunc("/marketingautomation/users/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveMarketingAutomationUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedMarketingautomationUserOutput, | SDKError | SDKValidationError @@ -130,12 +132,12 @@ export async function marketingautomationUsersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedMarketingautomationUserOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedMarketingautomationUserOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/passthroughRequest.ts b/src/funcs/passthroughRequest.ts index d3b49bd3..b2343c71 100644 --- a/src/funcs/passthroughRequest.ts +++ b/src/funcs/passthroughRequest.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -28,12 +25,12 @@ import { Result } from "../types/fp.js"; * Make a passthrough request */ export async function passthroughRequest( - client$: PanoraCore, + client: PanoraCore, request: operations.RequestRequest, options?: RequestOptions, ): Promise< Result< - operations.RequestResponse, + operations.RequestResponseBody, | SDKError | SDKValidationError | UnexpectedClientError @@ -43,69 +40,74 @@ export async function passthroughRequest( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.RequestRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RequestRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.PassThroughRequestDto, { + const payload = parsed.value; + const body = encodeJSON("body", payload.PassThroughRequestDto, { explode: true, }); - const path$ = pathToFunc("/passthrough")(); + const path = pathToFunc("/passthrough")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "request", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< - operations.RequestResponse, + const [result] = await M.match< + operations.RequestResponseBody, | SDKError | SDKValidationError | UnexpectedClientError @@ -114,13 +116,12 @@ export async function passthroughRequest( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.RequestResponse$inboundSchema), - m$.json(201, operations.RequestResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, operations.RequestResponseBody$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/passthroughRetryidGetRetriedRequestResponse.ts b/src/funcs/passthroughRetryidGetRetriedRequestResponse.ts index f162bca3..8d1fc579 100644 --- a/src/funcs/passthroughRetryidGetRetriedRequestResponse.ts +++ b/src/funcs/passthroughRetryidGetRetriedRequestResponse.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Retrieve response of a failed passthrough request due to rate limits */ export async function passthroughRetryidGetRetriedRequestResponse( - client$: PanoraCore, + client: PanoraCore, request: operations.GetRetriedRequestResponseRequest, options?: RequestOptions, ): Promise< @@ -41,68 +41,73 @@ export async function passthroughRetryidGetRetriedRequestResponse( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.GetRetriedRequestResponseRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.GetRetriedRequestResponseRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - retryId: encodeSimple$("retryId", payload$.retryId, { + const pathParams = { + retryId: encodeSimple("retryId", payload.retryId, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/passthrough/{retryId}")(pathParams$); + const path = pathToFunc("/passthrough/{retryId}")(pathParams); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getRetriedRequestResponse", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -112,12 +117,12 @@ export async function passthroughRetryidGetRetriedRequestResponse( | RequestTimeoutError | ConnectionError >( - m$.nil(200, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/projectsCreate.ts b/src/funcs/projectsCreate.ts index 65cfd3d3..4516717f 100644 --- a/src/funcs/projectsCreate.ts +++ b/src/funcs/projectsCreate.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Create a project */ export async function projectsCreate( - client$: PanoraCore, + client: PanoraCore, request: components.CreateProjectDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function projectsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.CreateProjectDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.CreateProjectDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/projects")(); + const path = pathToFunc("/projects")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createProject", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.ProjectResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function projectsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.ProjectResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.ProjectResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/projectsGetProjects.ts b/src/funcs/projectsGetProjects.ts index 12f88324..54dc4a88 100644 --- a/src/funcs/projectsGetProjects.ts +++ b/src/funcs/projectsGetProjects.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -24,7 +24,7 @@ import { Result } from "../types/fp.js"; * Retrieve projects */ export async function projectsGetProjects( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -38,46 +38,53 @@ export async function projectsGetProjects( | ConnectionError > > { - const path$ = pathToFunc("/projects")(); + const path = pathToFunc("/projects")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getProjects", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -87,12 +94,12 @@ export async function projectsGetProjects( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.array(components.ProjectResponse$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(200, z.array(components.ProjectResponse$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ragQuery.ts b/src/funcs/ragQuery.ts index e84fa4a7..4d718bd2 100644 --- a/src/funcs/ragQuery.ts +++ b/src/funcs/ragQuery.ts @@ -4,12 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +30,7 @@ import { Result } from "../types/fp.js"; * Query across your connected data sources using RAG Search */ export async function ragQuery( - client$: PanoraCore, + client: PanoraCore, request: operations.QueryRequest, options?: RequestOptions, ): Promise< @@ -48,66 +45,71 @@ export async function ragQuery( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.QueryRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.QueryRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.QueryBody, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload.QueryBody, { explode: true }); - const path$ = pathToFunc("/rag/query")(); + const path = pathToFunc("/rag/query")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "query", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -117,12 +119,12 @@ export async function ragQuery( | RequestTimeoutError | ConnectionError >( - m$.json(201, z.array(components.RagQueryOutput$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(201, z.array(components.RagQueryOutput$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/syncGetPullFrequency.ts b/src/funcs/syncGetPullFrequency.ts index a7cbc79a..4021fe31 100644 --- a/src/funcs/syncGetPullFrequency.ts +++ b/src/funcs/syncGetPullFrequency.ts @@ -3,7 +3,7 @@ */ import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -23,7 +23,7 @@ import { Result } from "../types/fp.js"; * Get pull frequency for verticals */ export async function syncGetPullFrequency( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -37,46 +37,53 @@ export async function syncGetPullFrequency( | ConnectionError > > { - const path$ = pathToFunc("/sync/pull_frequencies")(); + const path = pathToFunc("/sync/pull_frequencies")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "getPullFrequency", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UpdatePullFrequencyDto, | SDKError | SDKValidationError @@ -86,12 +93,12 @@ export async function syncGetPullFrequency( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UpdatePullFrequencyDto$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UpdatePullFrequencyDto$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/syncResync.ts b/src/funcs/syncResync.ts index b67c7e1d..a55c15c1 100644 --- a/src/funcs/syncResync.ts +++ b/src/funcs/syncResync.ts @@ -3,7 +3,7 @@ */ import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -23,7 +23,7 @@ import { Result } from "../types/fp.js"; * Resync common objects across a vertical */ export async function syncResync( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -37,46 +37,53 @@ export async function syncResync( | ConnectionError > > { - const path$ = pathToFunc("/sync/resync")(); + const path = pathToFunc("/sync/resync")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "resync", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.ResyncStatusDto, | SDKError | SDKValidationError @@ -86,12 +93,12 @@ export async function syncResync( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.ResyncStatusDto$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.ResyncStatusDto$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/syncStatus.ts b/src/funcs/syncStatus.ts index 2883b573..492947e5 100644 --- a/src/funcs/syncStatus.ts +++ b/src/funcs/syncStatus.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Retrieve sync status of a certain vertical */ export async function syncStatus( - client$: PanoraCore, + client: PanoraCore, request: operations.StatusRequest, options?: RequestOptions, ): Promise< @@ -41,67 +41,72 @@ export async function syncStatus( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.StatusRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.StatusRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - vertical: encodeSimple$("vertical", payload$.vertical, { + const pathParams = { + vertical: encodeSimple("vertical", payload.vertical, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/sync/status/{vertical}")(pathParams$); + const path = pathToFunc("/sync/status/{vertical}")(pathParams); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "status", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< void, | SDKError | SDKValidationError @@ -111,12 +116,12 @@ export async function syncStatus( | RequestTimeoutError | ConnectionError >( - m$.nil(200, z.void()), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/syncUpdatePullFrequency.ts b/src/funcs/syncUpdatePullFrequency.ts index 546ac412..585d82e5 100644 --- a/src/funcs/syncUpdatePullFrequency.ts +++ b/src/funcs/syncUpdatePullFrequency.ts @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -19,19 +20,18 @@ import { } from "../models/errors/httpclienterrors.js"; import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; /** * Update pull frequency for verticals */ export async function syncUpdatePullFrequency( - client$: PanoraCore, + client: PanoraCore, request: components.UpdatePullFrequencyDto, options?: RequestOptions, ): Promise< Result< - operations.UpdatePullFrequencyResponseBody | undefined, + void, | SDKError | SDKValidationError | UnexpectedClientError @@ -41,62 +41,67 @@ export async function syncUpdatePullFrequency( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.UpdatePullFrequencyDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.UpdatePullFrequencyDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/sync/pull_frequencies")(); + const path = pathToFunc("/sync/pull_frequencies")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", - Accept: "application/json", + Accept: "*/*", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "updatePullFrequency", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< - operations.UpdatePullFrequencyResponseBody | undefined, + const [result] = await M.match< + void, | SDKError | SDKValidationError | UnexpectedClientError @@ -105,19 +110,12 @@ export async function syncUpdatePullFrequency( | RequestTimeoutError | ConnectionError >( - m$.nil( - 200, - operations.UpdatePullFrequencyResponseBody$inboundSchema.optional(), - ), - m$.json( - 201, - operations.UpdatePullFrequencyResponseBody$inboundSchema.optional(), - ), - m$.fail(["4XX", "5XX"]), + M.nil(200, z.void()), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingAccountsList.ts b/src/funcs/ticketingAccountsList.ts index 1c6aba3f..9fe8fc83 100644 --- a/src/funcs/ticketingAccountsList.ts +++ b/src/funcs/ticketingAccountsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Accounts */ export async function ticketingAccountsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingAccountRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingAccountsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingAccountRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingAccountRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/accounts")(); + const path = pathToFunc("/ticketing/accounts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingAccount", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingAccountResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingAccountsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingAccountResponse$inboundSchema, { + M.json(200, operations.ListTicketingAccountResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingAccountsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingAccountsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingAccountsRetrieve.ts b/src/funcs/ticketingAccountsRetrieve.ts index a8d8935a..b1fa0df6 100644 --- a/src/funcs/ticketingAccountsRetrieve.ts +++ b/src/funcs/ticketingAccountsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Accounts from any connected Ticketing software */ export async function ticketingAccountsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingAccountRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ticketingAccountsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingAccountRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingAccountRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/accounts/{id}")(pathParams$); + const path = pathToFunc("/ticketing/accounts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingAccount", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingAccountOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ticketingAccountsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingAccountOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingAccountOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingAttachmentsCreate.ts b/src/funcs/ticketingAttachmentsCreate.ts index 07c71ca8..90339ae7 100644 --- a/src/funcs/ticketingAttachmentsCreate.ts +++ b/src/funcs/ticketingAttachmentsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Attachments in any supported Ticketing software */ export async function ticketingAttachmentsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateTicketingAttachmentRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function ticketingAttachmentsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateTicketingAttachmentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateTicketingAttachmentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedTicketingAttachmentInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedTicketingAttachmentInput, { explode: true, }); - const path$ = pathToFunc("/ticketing/attachments")(); + const path = pathToFunc("/ticketing/attachments")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createTicketingAttachment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingAttachmentOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function ticketingAttachmentsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedTicketingAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedTicketingAttachmentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingAttachmentsList.ts b/src/funcs/ticketingAttachmentsList.ts index 61c4122e..e869e15a 100644 --- a/src/funcs/ticketingAttachmentsList.ts +++ b/src/funcs/ticketingAttachmentsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Attachments */ export async function ticketingAttachmentsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingAttachmentsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingAttachmentsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingAttachmentsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingAttachmentsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/attachments")(); + const path = pathToFunc("/ticketing/attachments")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingAttachments", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingAttachmentsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingAttachmentsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingAttachmentsResponse$inboundSchema, { + M.json(200, operations.ListTicketingAttachmentsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingAttachmentsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingAttachmentsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingAttachmentsRetrieve.ts b/src/funcs/ticketingAttachmentsRetrieve.ts index 8cf7cbea..5ea9de5f 100644 --- a/src/funcs/ticketingAttachmentsRetrieve.ts +++ b/src/funcs/ticketingAttachmentsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Attachments from any connected Ticketing software */ export async function ticketingAttachmentsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingAttachmentRequest, options?: RequestOptions, ): Promise< @@ -47,80 +44,83 @@ export async function ticketingAttachmentsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingAttachmentRequest$outboundSchema.parse( - value$, - ), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingAttachmentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/attachments/{id}")(pathParams$); + const path = pathToFunc("/ticketing/attachments/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingAttachment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingAttachmentOutput, | SDKError | SDKValidationError @@ -130,12 +130,12 @@ export async function ticketingAttachmentsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingAttachmentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingAttachmentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingCollectionsList.ts b/src/funcs/ticketingCollectionsList.ts index 6247d1dc..5e6c96c4 100644 --- a/src/funcs/ticketingCollectionsList.ts +++ b/src/funcs/ticketingCollectionsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Collections */ export async function ticketingCollectionsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingCollectionsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingCollectionsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingCollectionsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingCollectionsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/collections")(); + const path = pathToFunc("/ticketing/collections")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingCollections", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingCollectionsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingCollectionsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingCollectionsResponse$inboundSchema, { + M.json(200, operations.ListTicketingCollectionsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingCollectionsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingCollectionsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingCollectionsRetrieve.ts b/src/funcs/ticketingCollectionsRetrieve.ts index 685e0b1b..cc059bd7 100644 --- a/src/funcs/ticketingCollectionsRetrieve.ts +++ b/src/funcs/ticketingCollectionsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Collections from any connected Ticketing software */ export async function ticketingCollectionsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveCollectionRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,82 @@ export async function ticketingCollectionsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveCollectionRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.RetrieveCollectionRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/collections/{id}")(pathParams$); + const path = pathToFunc("/ticketing/collections/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveCollection", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingCollectionOutput, | SDKError | SDKValidationError @@ -128,12 +129,12 @@ export async function ticketingCollectionsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingCollectionOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingCollectionOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingCommentsCreate.ts b/src/funcs/ticketingCommentsCreate.ts index 3e7d5bba..86319705 100644 --- a/src/funcs/ticketingCommentsCreate.ts +++ b/src/funcs/ticketingCommentsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Comments in any supported Ticketing software */ export async function ticketingCommentsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateTicketingCommentRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function ticketingCommentsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateTicketingCommentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateTicketingCommentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedTicketingCommentInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedTicketingCommentInput, { explode: true, }); - const path$ = pathToFunc("/ticketing/comments")(); + const path = pathToFunc("/ticketing/comments")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createTicketingComment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingCommentOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function ticketingCommentsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedTicketingCommentOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedTicketingCommentOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingCommentsList.ts b/src/funcs/ticketingCommentsList.ts index 041b93a0..c4f13c61 100644 --- a/src/funcs/ticketingCommentsList.ts +++ b/src/funcs/ticketingCommentsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Comments */ export async function ticketingCommentsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingCommentsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingCommentsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingCommentsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingCommentsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/comments")(); + const path = pathToFunc("/ticketing/comments")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingComments", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingCommentsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingCommentsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingCommentsResponse$inboundSchema, { + M.json(200, operations.ListTicketingCommentsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingCommentsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingCommentsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingCommentsRetrieve.ts b/src/funcs/ticketingCommentsRetrieve.ts index 1fed8c43..9a1a18ac 100644 --- a/src/funcs/ticketingCommentsRetrieve.ts +++ b/src/funcs/ticketingCommentsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -31,7 +28,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Comment from any connected Ticketing software */ export async function ticketingCommentsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingCommentRequest, options?: RequestOptions, ): Promise< @@ -46,78 +43,83 @@ export async function ticketingCommentsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingCommentRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingCommentRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/comments/{id}")(pathParams$); + const path = pathToFunc("/ticketing/comments/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingComment", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< operations.RetrieveTicketingCommentResponseBody, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function ticketingCommentsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.RetrieveTicketingCommentResponseBody$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, operations.RetrieveTicketingCommentResponseBody$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingContactsList.ts b/src/funcs/ticketingContactsList.ts index d6a787b3..29eb972a 100644 --- a/src/funcs/ticketingContactsList.ts +++ b/src/funcs/ticketingContactsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Contacts */ export async function ticketingContactsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingContactsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingContactsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingContactsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingContactsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/contacts")(); + const path = pathToFunc("/ticketing/contacts")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingContacts", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingContactsResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingContactsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingContactsResponse$inboundSchema, { + M.json(200, operations.ListTicketingContactsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingContactsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingContactsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingContactsRetrieve.ts b/src/funcs/ticketingContactsRetrieve.ts index f2ef53eb..098fdf55 100644 --- a/src/funcs/ticketingContactsRetrieve.ts +++ b/src/funcs/ticketingContactsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -31,7 +28,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Contact from any connected Ticketing software */ export async function ticketingContactsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingContactRequest, options?: RequestOptions, ): Promise< @@ -46,78 +43,83 @@ export async function ticketingContactsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingContactRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingContactRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/contacts/{id}")(pathParams$); + const path = pathToFunc("/ticketing/contacts/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingContact", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< operations.RetrieveTicketingContactResponseBody, | SDKError | SDKValidationError @@ -127,12 +129,12 @@ export async function ticketingContactsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.RetrieveTicketingContactResponseBody$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, operations.RetrieveTicketingContactResponseBody$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingTagsList.ts b/src/funcs/ticketingTagsList.ts index 0d04121d..f1777fd0 100644 --- a/src/funcs/ticketingTagsList.ts +++ b/src/funcs/ticketingTagsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Tags */ export async function ticketingTagsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingTagsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,81 @@ export async function ticketingTagsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingTagsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListTicketingTagsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/tags")(); + const path = pathToFunc("/ticketing/tags")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingTags", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingTagsResponse, | SDKError | SDKValidationError @@ -132,13 +133,13 @@ export async function ticketingTagsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingTagsResponse$inboundSchema, { + M.json(200, operations.ListTicketingTagsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +157,21 @@ export async function ticketingTagsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingTagsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTagsRetrieve.ts b/src/funcs/ticketingTagsRetrieve.ts index 04de4310..b11a6e43 100644 --- a/src/funcs/ticketingTagsRetrieve.ts +++ b/src/funcs/ticketingTagsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve a Tag from any connected Ticketing software */ export async function ticketingTagsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingTagRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ticketingTagsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingTagRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingTagRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/tags/{id}")(pathParams$); + const path = pathToFunc("/ticketing/tags/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingTag", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingTagOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ticketingTagsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingTagOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingTagOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingTeamsList.ts b/src/funcs/ticketingTeamsList.ts index c2283bd2..f6d32522 100644 --- a/src/funcs/ticketingTeamsList.ts +++ b/src/funcs/ticketingTeamsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Teams */ export async function ticketingTeamsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingTeamsRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,81 @@ export async function ticketingTeamsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingTeamsRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListTicketingTeamsRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/teams")(); + const path = pathToFunc("/ticketing/teams")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingTeams", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingTeamsResponse, | SDKError | SDKValidationError @@ -132,13 +133,13 @@ export async function ticketingTeamsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingTeamsResponse$inboundSchema, { + M.json(200, operations.ListTicketingTeamsResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +157,21 @@ export async function ticketingTeamsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingTeamsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTeamsRetrieve.ts b/src/funcs/ticketingTeamsRetrieve.ts index 9dff7c36..57c0fe73 100644 --- a/src/funcs/ticketingTeamsRetrieve.ts +++ b/src/funcs/ticketingTeamsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Teams from any connected Ticketing software */ export async function ticketingTeamsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingTeamRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ticketingTeamsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingTeamRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingTeamRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/teams/{id}")(pathParams$); + const path = pathToFunc("/ticketing/teams/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingTeam", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingTeamOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ticketingTeamsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingTeamOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingTeamOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingTicketsCreate.ts b/src/funcs/ticketingTicketsCreate.ts index 1ca7dc32..2c121c47 100644 --- a/src/funcs/ticketingTicketsCreate.ts +++ b/src/funcs/ticketingTicketsCreate.ts @@ -3,13 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeJSON as encodeJSON$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -33,7 +29,7 @@ import { Result } from "../types/fp.js"; * Create Tickets in any supported Ticketing software */ export async function ticketingTicketsCreate( - client$: PanoraCore, + client: PanoraCore, request: operations.CreateTicketingTicketRequest, options?: RequestOptions, ): Promise< @@ -48,74 +44,79 @@ export async function ticketingTicketsCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.CreateTicketingTicketRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.CreateTicketingTicketRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$.UnifiedTicketingTicketInput, { + const payload = parsed.value; + const body = encodeJSON("body", payload.UnifiedTicketingTicketInput, { explode: true, }); - const path$ = pathToFunc("/ticketing/tickets")(); + const path = pathToFunc("/ticketing/tickets")(); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createTicketingTicket", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingTicketOutput, | SDKError | SDKValidationError @@ -125,12 +126,12 @@ export async function ticketingTicketsCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.UnifiedTicketingTicketOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.UnifiedTicketingTicketOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingTicketsList.ts b/src/funcs/ticketingTicketsList.ts index a9d4268e..aa46c914 100644 --- a/src/funcs/ticketingTicketsList.ts +++ b/src/funcs/ticketingTicketsList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Tickets */ export async function ticketingTicketsList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingTicketRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,82 @@ export async function ticketingTicketsList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingTicketRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.ListTicketingTicketRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/tickets")(); + const path = pathToFunc("/ticketing/tickets")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingTicket", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingTicketResponse, | SDKError | SDKValidationError @@ -132,13 +134,13 @@ export async function ticketingTicketsList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingTicketResponse$inboundSchema, { + M.json(200, operations.ListTicketingTicketResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +158,21 @@ export async function ticketingTicketsList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingTicketsList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTicketsRetrieve.ts b/src/funcs/ticketingTicketsRetrieve.ts index fe3b4ec4..ba8910ff 100644 --- a/src/funcs/ticketingTicketsRetrieve.ts +++ b/src/funcs/ticketingTicketsRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve Tickets from any connected Ticketing software */ export async function ticketingTicketsRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingTicketRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ticketingTicketsRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingTicketRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingTicketRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/tickets/{id}")(pathParams$); + const path = pathToFunc("/ticketing/tickets/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingTicket", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingTicketOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ticketingTicketsRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingTicketOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingTicketOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/ticketingUsersList.ts b/src/funcs/ticketingUsersList.ts index fe22eb43..d37cb631 100644 --- a/src/funcs/ticketingUsersList.ts +++ b/src/funcs/ticketingUsersList.ts @@ -4,12 +4,9 @@ import { PanoraCore } from "../core.js"; import { dlv } from "../lib/dlv.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -35,7 +32,7 @@ import { * List Users */ export async function ticketingUsersList( - client$: PanoraCore, + client: PanoraCore, request: operations.ListTicketingUsersRequest, options?: RequestOptions, ): Promise< @@ -52,77 +49,81 @@ export async function ticketingUsersList( > > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.ListTicketingUsersRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.ListTicketingUsersRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return haltIterator(parsed$); + if (!parsed.ok) { + return haltIterator(parsed); } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const path$ = pathToFunc("/ticketing/users")(); + const path = pathToFunc("/ticketing/users")(); - const query$ = encodeFormQuery$({ - "cursor": payload$.cursor, - "limit": payload$.limit, - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "cursor": payload.cursor, + "limit": payload.limit, + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listTicketingUsers", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return haltIterator(requestRes); } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return haltIterator(doResult); } const response = doResult.value; - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, + const responseFields = { + HttpMeta: { Response: response, Request: req }, }; - const [result$, raw$] = await m$.match< + const [result, raw] = await M.match< operations.ListTicketingUsersResponse, | SDKError | SDKValidationError @@ -132,13 +133,13 @@ export async function ticketingUsersList( | RequestTimeoutError | ConnectionError >( - m$.json(200, operations.ListTicketingUsersResponse$inboundSchema, { + M.json(200, operations.ListTicketingUsersResponse$inboundSchema, { key: "Result", }), - m$.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields$ }); - if (!result$.ok) { - return haltIterator(result$); + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return haltIterator(result); } const nextFunc = ( @@ -156,22 +157,21 @@ export async function ticketingUsersList( > > => { const nextCursor = dlv(responseData, "next_cursor"); - if (nextCursor == null) { return () => null; } return () => ticketingUsersList( - client$, + client, { - ...input$, + ...request, cursor: nextCursor, }, options, ); }; - const page$ = { ...result$, next: nextFunc(raw$) }; - return { ...page$, ...createPageIterator(page$, (v) => !v.ok) }; + const page = { ...result, next: nextFunc(raw) }; + return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingUsersRetrieve.ts b/src/funcs/ticketingUsersRetrieve.ts index 41189aba..914d906e 100644 --- a/src/funcs/ticketingUsersRetrieve.ts +++ b/src/funcs/ticketingUsersRetrieve.ts @@ -3,12 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { - encodeFormQuery as encodeFormQuery$, - encodeSimple as encodeSimple$, -} from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,7 +29,7 @@ import { Result } from "../types/fp.js"; * Retrieve a User from any connected Ticketing software */ export async function ticketingUsersRetrieve( - client$: PanoraCore, + client: PanoraCore, request: operations.RetrieveTicketingUserRequest, options?: RequestOptions, ): Promise< @@ -47,78 +44,83 @@ export async function ticketingUsersRetrieve( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - operations.RetrieveTicketingUserRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => + operations.RetrieveTicketingUserRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/ticketing/users/{id}")(pathParams$); + const path = pathToFunc("/ticketing/users/{id}")(pathParams); - const query$ = encodeFormQuery$({ - "remote_data": payload$.remote_data, + const query = encodeFormQuery({ + "remote_data": payload.remote_data, }); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", - "x-connection-token": encodeSimple$( + "x-connection-token": encodeSimple( "x-connection-token", - payload$["x-connection-token"], + payload["x-connection-token"], { explode: false, charEncoding: "none" }, ), }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "retrieveTicketingUser", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.UnifiedTicketingUserOutput, | SDKError | SDKValidationError @@ -128,12 +130,12 @@ export async function ticketingUsersRetrieve( | RequestTimeoutError | ConnectionError >( - m$.json(200, components.UnifiedTicketingUserOutput$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(200, components.UnifiedTicketingUserOutput$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/webhooksCreate.ts b/src/funcs/webhooksCreate.ts index 5a4b8825..01c5312c 100644 --- a/src/funcs/webhooksCreate.ts +++ b/src/funcs/webhooksCreate.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -25,7 +25,7 @@ import { Result } from "../types/fp.js"; * Create webhook */ export async function webhooksCreate( - client$: PanoraCore, + client: PanoraCore, request: components.WebhookDto, options?: RequestOptions, ): Promise< @@ -40,61 +40,66 @@ export async function webhooksCreate( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => components.WebhookDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.WebhookDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/webhooks")(); + const path = pathToFunc("/webhooks")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "createWebhookPublic", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< components.WebhookResponse, | SDKError | SDKValidationError @@ -104,12 +109,12 @@ export async function webhooksCreate( | RequestTimeoutError | ConnectionError >( - m$.json(201, components.WebhookResponse$inboundSchema), - m$.fail(["4XX", "5XX"]), + M.json(201, components.WebhookResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/webhooksDelete.ts b/src/funcs/webhooksDelete.ts index 7e9f1564..e1b9a20e 100644 --- a/src/funcs/webhooksDelete.ts +++ b/src/funcs/webhooksDelete.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,12 +26,12 @@ import { Result } from "../types/fp.js"; * Delete Webhook */ export async function webhooksDelete( - client$: PanoraCore, + client: PanoraCore, request: operations.DeleteRequest, options?: RequestOptions, ): Promise< Result< - components.WebhookResponse | undefined, + components.WebhookResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -41,68 +41,73 @@ export async function webhooksDelete( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.DeleteRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.DeleteRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/webhooks/{id}")(pathParams$); + const path = pathToFunc("/webhooks/{id}")(pathParams); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "delete", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "DELETE", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< - components.WebhookResponse | undefined, + const [result] = await M.match< + components.WebhookResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -111,13 +116,12 @@ export async function webhooksDelete( | RequestTimeoutError | ConnectionError >( - m$.nil(200, components.WebhookResponse$inboundSchema.optional()), - m$.json(201, components.WebhookResponse$inboundSchema.optional()), - m$.fail(["4XX", "5XX"]), + M.json(201, components.WebhookResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/webhooksList.ts b/src/funcs/webhooksList.ts index bd977309..7bc8466d 100644 --- a/src/funcs/webhooksList.ts +++ b/src/funcs/webhooksList.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import * as m$ from "../lib/matchers.js"; +import * as M from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -24,7 +24,7 @@ import { Result } from "../types/fp.js"; * List webhooks */ export async function webhooksList( - client$: PanoraCore, + client: PanoraCore, options?: RequestOptions, ): Promise< Result< @@ -38,46 +38,53 @@ export async function webhooksList( | ConnectionError > > { - const path$ = pathToFunc("/webhooks")(); + const path = pathToFunc("/webhooks")(); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "listWebhooks", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "GET", - path: path$, - headers: headers$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< Array, | SDKError | SDKValidationError @@ -87,12 +94,12 @@ export async function webhooksList( | RequestTimeoutError | ConnectionError >( - m$.json(200, z.array(components.WebhookResponse$inboundSchema)), - m$.fail(["4XX", "5XX"]), + M.json(200, z.array(components.WebhookResponse$inboundSchema)), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/webhooksUpdateStatus.ts b/src/funcs/webhooksUpdateStatus.ts index 16ffd005..b1dd352b 100644 --- a/src/funcs/webhooksUpdateStatus.ts +++ b/src/funcs/webhooksUpdateStatus.ts @@ -3,9 +3,9 @@ */ import { PanoraCore } from "../core.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,12 +26,12 @@ import { Result } from "../types/fp.js"; * Update webhook status */ export async function webhooksUpdateStatus( - client$: PanoraCore, + client: PanoraCore, request: operations.UpdateStatusRequest, options?: RequestOptions, ): Promise< Result< - components.WebhookResponse | undefined, + components.WebhookResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -41,68 +41,73 @@ export async function webhooksUpdateStatus( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => operations.UpdateStatusRequest$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => operations.UpdateStatusRequest$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = null; + const payload = parsed.value; + const body = null; - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { + const pathParams = { + id: encodeSimple("id", payload.id, { explode: false, charEncoding: "percent", }), }; - const path$ = pathToFunc("/webhooks/{id}")(pathParams$); + const path = pathToFunc("/webhooks/{id}")(pathParams); - const headers$ = new Headers({ + const headers = new Headers({ Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "updateStatus", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "PUT", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< - components.WebhookResponse | undefined, + const [result] = await M.match< + components.WebhookResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -111,13 +116,12 @@ export async function webhooksUpdateStatus( | RequestTimeoutError | ConnectionError >( - m$.nil(200, components.WebhookResponse$inboundSchema.optional()), - m$.json(201, components.WebhookResponse$inboundSchema.optional()), - m$.fail(["4XX", "5XX"]), + M.json(201, components.WebhookResponse$inboundSchema), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/funcs/webhooksVerifyEvent.ts b/src/funcs/webhooksVerifyEvent.ts index cbe1267d..56114f91 100644 --- a/src/funcs/webhooksVerifyEvent.ts +++ b/src/funcs/webhooksVerifyEvent.ts @@ -4,9 +4,9 @@ import * as z from "zod"; import { PanoraCore } from "../core.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import * as m$ from "../lib/matchers.js"; -import * as schemas$ from "../lib/schemas.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -26,7 +26,7 @@ import { Result } from "../types/fp.js"; * Verify payload signature of the webhook */ export async function webhooksVerifyEvent( - client$: PanoraCore, + client: PanoraCore, request: components.SignatureVerificationDto, options?: RequestOptions, ): Promise< @@ -41,62 +41,66 @@ export async function webhooksVerifyEvent( | ConnectionError > > { - const input$ = request; - - const parsed$ = schemas$.safeParse( - input$, - (value$) => - components.SignatureVerificationDto$outboundSchema.parse(value$), + const parsed = safeParse( + request, + (value) => components.SignatureVerificationDto$outboundSchema.parse(value), "Input validation failed", ); - if (!parsed$.ok) { - return parsed$; + if (!parsed.ok) { + return parsed; } - const payload$ = parsed$.value; - const body$ = encodeJSON$("body", payload$, { explode: true }); + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); - const path$ = pathToFunc("/webhooks/verifyEvent")(); + const path = pathToFunc("/webhooks/verifyEvent")(); - const headers$ = new Headers({ + const headers = new Headers({ "Content-Type": "application/json", Accept: "application/json", }); - const apiKey$ = await extractSecurity(client$.options$.apiKey); - const security$ = apiKey$ == null ? {} : { apiKey: apiKey$ }; + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + const context = { operationID: "verifyEvent", oAuth2Scopes: [], - securitySource: client$.options$.apiKey, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }; - const securitySettings$ = resolveGlobalSecurity(security$); - const requestRes = client$.createRequest$(context, { - security: securitySettings$, + const requestRes = client._createRequest(context, { + security: requestSecurity, method: "POST", - path: path$, - headers: headers$, - body: body$, - timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1, + path: path, + headers: headers, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { return requestRes; } - const request$ = requestRes.value; + const req = requestRes.value; - const doResult = await client$.do$(request$, { + const doResult = await client._do(req, { context, errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries - || client$.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, }); if (!doResult.ok) { return doResult; } const response = doResult.value; - const [result$] = await m$.match< + const [result] = await M.match< { [k: string]: any }, | SDKError | SDKValidationError @@ -106,12 +110,12 @@ export async function webhooksVerifyEvent( | RequestTimeoutError | ConnectionError >( - m$.json(201, z.record(z.any())), - m$.fail(["4XX", "5XX"]), + M.json(201, z.record(z.any())), + M.fail(["4XX", "5XX"]), )(response); - if (!result$.ok) { - return result$; + if (!result.ok) { + return result; } - return result$; + return result; } diff --git a/src/hooks/types.ts b/src/hooks/types.ts index 656b9e37..df5237dc 100644 --- a/src/hooks/types.ts +++ b/src/hooks/types.ts @@ -3,11 +3,15 @@ */ import { HTTPClient, RequestInput } from "../lib/http.js"; +import { RetryConfig } from "../lib/retries.js"; +import { SecurityState } from "../lib/security.js"; export type HookContext = { operationID: string; oAuth2Scopes?: string[]; securitySource?: any | (() => Promise); + retryConfig: RetryConfig; + resolvedSecurity: SecurityState | null; }; export type Awaitable = T | Promise; diff --git a/src/lib/config.ts b/src/lib/config.ts index 72813222..e149af20 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.13.8", - genVersion: "2.420.2", - userAgent: "speakeasy-sdk/typescript 0.13.8 2.420.2 1.0 @panora/sdk", + sdkVersion: "0.14.0", + genVersion: "2.460.1", + userAgent: "speakeasy-sdk/typescript 0.14.0 2.460.1 1.0 @panora/sdk", } as const; diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 55a9e14b..19b46b33 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -205,7 +205,7 @@ export function match( raw = await response.json(); break; case "bytes": - raw = await response.arrayBuffer(); + raw = new Uint8Array(await response.arrayBuffer()); break; case "stream": raw = response.body; diff --git a/src/lib/primitives.ts b/src/lib/primitives.ts index 23794a2b..48b28674 100644 --- a/src/lib/primitives.ts +++ b/src/lib/primitives.ts @@ -2,6 +2,26 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +class InvariantError extends Error { + constructor(message: string) { + super(message); + this.name = "InvariantError"; + } +} + +export function invariant( + condition: unknown, + message: string, +): asserts condition { + if (!condition) { + throw new InvariantError(message); + } +} + +export type ExactPartial = { + [P in keyof T]?: T[P] | undefined; +}; + export type Remap = { [k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */ ? Mapping[k] diff --git a/src/lib/retries.ts b/src/lib/retries.ts index df3e0bc2..93ebc8de 100644 --- a/src/lib/retries.ts +++ b/src/lib/retries.ts @@ -26,23 +26,44 @@ export type RetryConfig = retryConnectionErrors?: boolean; }; -class PermanentError extends Error { - inner: unknown; +/** + * PermanentError is an error that is not recoverable. Throwing this error will + * cause a retry loop to terminate. + */ +export class PermanentError extends Error { + /** The underlying cause of the error. */ + override readonly cause: unknown; + + constructor(message: string, options?: { cause?: unknown }) { + let msg = message; + if (options?.cause) { + msg += `: ${options.cause}`; + } - constructor(inner: unknown) { - super("Permanent error"); - this.inner = inner; + super(msg, options); + this.name = "PermanentError"; + // In older runtimes, the cause field would not have been assigned through + // the super() call. + if (typeof this.cause === "undefined") { + this.cause = options?.cause; + } Object.setPrototypeOf(this, PermanentError.prototype); } } -class TemporaryError extends Error { - res: Response; +/** + * TemporaryError is an error is used to signal that an HTTP request can be + * retried as part of a retry loop. If retry attempts are exhausted and this + * error is thrown, the response will be returned to the caller. + */ +export class TemporaryError extends Error { + response: Response; - constructor(res: Response) { - super("Temporary error"); - this.res = res; + constructor(message: string, response: Response) { + super(message); + this.response = response; + this.name = "TemporaryError"; Object.setPrototypeOf(this, TemporaryError.prototype); } @@ -80,11 +101,14 @@ function wrapFetcher( try { const res = await fn(); if (isRetryableResponse(res, options.statusCodes)) { - throw new TemporaryError(res); + throw new TemporaryError( + "Response failed with retryable status code", + res, + ); } return res; - } catch (err) { + } catch (err: unknown) { if (err instanceof TemporaryError) { throw err; } @@ -96,7 +120,7 @@ function wrapFetcher( throw err; } - throw new PermanentError(err); + throw new PermanentError("Permanent error", { cause: err }); } }; } @@ -139,37 +163,25 @@ async function retryBackoff( try { const res = await fn(); return res; - } catch (err) { + } catch (err: unknown) { if (err instanceof PermanentError) { - throw err.inner; + throw err.cause; } const elapsed = Date.now() - start; if (elapsed > maxElapsedTime) { if (err instanceof TemporaryError) { - return err.res; + return err.response; } throw err; } let retryInterval = 0; - if (err instanceof TemporaryError && err.res && err.res.headers) { - const retryVal = err.res.headers.get("retry-after") || ""; - if (retryVal != "") { - const parsedNumber = Number(retryVal); - if (!isNaN(parsedNumber) && Number.isInteger(parsedNumber)) { - retryInterval = parsedNumber * 1000; - } else { - const parsedDate = Date.parse(retryVal); - if (!isNaN(parsedDate)) { - const deltaMS = parsedDate - Date.now(); - retryInterval = deltaMS > 0 ? Math.ceil(deltaMS) : 0; - } - } - } + if (err instanceof TemporaryError) { + retryInterval = retryIntervalFromResponse(err.response); } - if (retryInterval == 0) { + if (retryInterval <= 0) { retryInterval = initialInterval * Math.pow(x, exponent) + Math.random() * 1000; } @@ -182,6 +194,26 @@ async function retryBackoff( } } +function retryIntervalFromResponse(res: Response): number { + const retryVal = res.headers.get("retry-after") || ""; + if (!retryVal) { + return 0; + } + + const parsedNumber = Number(retryVal); + if (Number.isInteger(parsedNumber)) { + return parsedNumber * 1000; + } + + const parsedDate = Date.parse(retryVal); + if (Number.isInteger(parsedDate)) { + const deltaMS = parsedDate - Date.now(); + return deltaMS > 0 ? Math.ceil(deltaMS) : 0; + } + + return 0; +} + async function delay(delay: number): Promise { return new Promise((resolve) => setTimeout(resolve, delay)); } diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index 5e2a8909..2ce720a9 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -71,11 +71,11 @@ const isBrowserLike = webWorkerLike || (typeof window === "object" && typeof window.document !== "undefined"); export class ClientSDK { - private readonly httpClient: HTTPClient; - protected readonly baseURL: URL | null; - protected readonly hooks$: SDKHooks; - protected readonly logger?: Logger | undefined; - public readonly options$: SDKOptions & { hooks?: SDKHooks }; + readonly #httpClient: HTTPClient; + readonly #hooks: SDKHooks; + readonly #logger?: Logger | undefined; + protected readonly _baseURL: URL | null; + public readonly _options: SDKOptions & { hooks?: SDKHooks }; constructor(options: SDKOptions = {}) { const opt = options as unknown; @@ -85,33 +85,33 @@ export class ClientSDK { && "hooks" in opt && opt.hooks instanceof SDKHooks ) { - this.hooks$ = opt.hooks; + this.#hooks = opt.hooks; } else { - this.hooks$ = new SDKHooks(); + this.#hooks = new SDKHooks(); } - this.options$ = { ...options, hooks: this.hooks$ }; + this._options = { ...options, hooks: this.#hooks }; const url = serverURLFromOptions(options); if (url) { url.pathname = url.pathname.replace(/\/+$/, "") + "/"; } - const { baseURL, client } = this.hooks$.sdkInit({ + const { baseURL, client } = this.#hooks.sdkInit({ baseURL: url, client: options.httpClient || new HTTPClient(), }); - this.baseURL = baseURL; - this.httpClient = client; - this.logger = options.debugLogger; + this._baseURL = baseURL; + this.#httpClient = client; + this.#logger = options.debugLogger; } - public createRequest$( + public _createRequest( context: HookContext, conf: RequestConfig, options?: RequestOptions, ): Result { const { method, path, query, headers: opHeaders, security } = conf; - const base = conf.baseURL ?? this.baseURL; + const base = conf.baseURL ?? this._baseURL; if (!base) { return ERR(new InvalidRequestError("No base URL provided for operation")); } @@ -195,7 +195,7 @@ export class ClientSDK { let input; try { - input = this.hooks$.beforeCreateRequest(context, { + input = this.#hooks.beforeCreateRequest(context, { url: reqURL, options: { ...fetchOptions, @@ -215,13 +215,13 @@ export class ClientSDK { return OK(new Request(input.url, input.options)); } - public async do$( + public async _do( request: Request, options: { context: HookContext; errorCodes: number | string | (number | string)[]; - retryConfig?: RetryConfig | undefined; - retryCodes?: string[] | undefined; + retryConfig: RetryConfig; + retryCodes: string[]; }, ): Promise< Result< @@ -233,34 +233,38 @@ export class ClientSDK { > > { const { context, errorCodes } = options; - const retryConfig = options.retryConfig || { strategy: "none" }; - const retryCodes = options.retryCodes || []; return retry( async () => { - const req = await this.hooks$.beforeRequest(context, request.clone()); - await logRequest(this.logger, req).catch((e) => - this.logger?.log("Failed to log request:", e) + const req = await this.#hooks.beforeRequest(context, request.clone()); + await logRequest(this.#logger, req).catch((e) => + this.#logger?.log("Failed to log request:", e) ); - let response = await this.httpClient.request(req); + let response = await this.#httpClient.request(req); - if (matchStatusCode(response, errorCodes)) { - const result = await this.hooks$.afterError(context, response, null); - if (result.error) { - throw result.error; + try { + 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); } - response = result.response || response; - } else { - response = await this.hooks$.afterSuccess(context, response); + } finally { + await logResponse(this.#logger, response, req) + .catch(e => this.#logger?.log("Failed to log response:", e)); } - await logResponse(this.logger, response, req) - .catch(e => this.logger?.log("Failed to log response:", e)); - return response; }, - { config: retryConfig, statusCodes: retryCodes }, + { config: options.retryConfig, statusCodes: options.retryCodes }, ).then( (r) => OK(r), (err) => { diff --git a/src/lib/security.ts b/src/lib/security.ts index f566ad95..ef74696e 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -4,6 +4,14 @@ import * as components from "../models/components/index.js"; +type OAuth2PasswordFlow = { + username: string; + password?: string | undefined; + clientID: string; + clientSecret?: string | undefined; + tokenURL: string; +}; + export enum SecurityErrorCode { Incomplete = "incomplete", UnrecognisedSecurityType = "unrecognized_security_type", @@ -37,6 +45,7 @@ export type SecurityState = { headers: Record; queryParams: Record; cookies: Record; + oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" }; }; type SecurityInputBasic = { @@ -73,7 +82,18 @@ type SecurityInputOAuth2 = { type SecurityInputOAuth2ClientCredentials = { type: "oauth2:client_credentials"; - value: string | null | undefined; + value: + | { clientID?: string | undefined; clientSecret?: string | undefined } + | null + | undefined; +}; + +type SecurityInputOAuth2PasswordCredentials = { + type: "oauth2:password"; + value: + | string + | null + | undefined; fieldName: string; }; @@ -89,6 +109,7 @@ export type SecurityInput = | SecurityInputAPIKey | SecurityInputOAuth2 | SecurityInputOAuth2ClientCredentials + | SecurityInputOAuth2PasswordCredentials | SecurityInputOIDC | SecurityInputCustom; @@ -100,6 +121,7 @@ export function resolveSecurity( headers: {}, queryParams: {}, cookies: {}, + oauth2: { type: "none" }, }; const option = options.find((opts) => { @@ -110,6 +132,12 @@ export function resolveSecurity( return o.value.username != null || o.value.password != null; } else if (o.type === "http:custom") { return null; + } else if (o.type === "oauth2:password") { + return ( + typeof o.value === "string" && !!o.value + ); + } else if (o.type === "oauth2:client_credentials") { + return o.value.clientID != null || o.value.clientSecret != null; } else if (typeof o.value === "string") { return !!o.value; } else { @@ -152,6 +180,9 @@ export function resolveSecurity( case "oauth2": applyBearer(state, spec); break; + case "oauth2:password": + applyBearer(state, spec); + break; case "oauth2:client_credentials": break; case "openIdConnect": @@ -179,9 +210,13 @@ function applyBasic( function applyBearer( state: SecurityState, - spec: SecurityInputBearer | SecurityInputOAuth2 | SecurityInputOIDC, + spec: + | SecurityInputBearer + | SecurityInputOAuth2 + | SecurityInputOIDC + | SecurityInputOAuth2PasswordCredentials, ) { - if (spec.value == null) { + if (typeof spec.value !== "string" || !spec.value) { return; } @@ -192,6 +227,7 @@ function applyBearer( state.headers[spec.fieldName] = value; } + export function resolveGlobalSecurity( security: Partial | null | undefined, ): SecurityState | null { diff --git a/src/models/components/address.ts b/src/models/components/address.ts index dc26e3dc..3be67381 100644 --- a/src/models/components/address.ts +++ b/src/models/components/address.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Address = { /** @@ -109,3 +112,17 @@ export namespace Address$ { /** @deprecated use `Address$Outbound` instead. */ export type Outbound = Address$Outbound; } + +export function addressToJSON(address: Address): string { + return JSON.stringify(Address$outboundSchema.parse(address)); +} + +export function addressFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Address$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Address' from JSON`, + ); +} diff --git a/src/models/components/connection.ts b/src/models/components/connection.ts index 5c12608a..5ecb88ff 100644 --- a/src/models/components/connection.ts +++ b/src/models/components/connection.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Strategy type @@ -189,3 +192,17 @@ export namespace Connection$ { /** @deprecated use `Connection$Outbound` instead. */ export type Outbound = Connection$Outbound; } + +export function connectionToJSON(connection: Connection): string { + return JSON.stringify(Connection$outboundSchema.parse(connection)); +} + +export function connectionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Connection$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Connection' from JSON`, + ); +} diff --git a/src/models/components/createbatchlinkeduserdto.ts b/src/models/components/createbatchlinkeduserdto.ts index 5ca6df3e..e88b1849 100644 --- a/src/models/components/createbatchlinkeduserdto.ts +++ b/src/models/components/createbatchlinkeduserdto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateBatchLinkedUserDto = { /** @@ -62,3 +65,21 @@ export namespace CreateBatchLinkedUserDto$ { /** @deprecated use `CreateBatchLinkedUserDto$Outbound` instead. */ export type Outbound = CreateBatchLinkedUserDto$Outbound; } + +export function createBatchLinkedUserDtoToJSON( + createBatchLinkedUserDto: CreateBatchLinkedUserDto, +): string { + return JSON.stringify( + CreateBatchLinkedUserDto$outboundSchema.parse(createBatchLinkedUserDto), + ); +} + +export function createBatchLinkedUserDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateBatchLinkedUserDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateBatchLinkedUserDto' from JSON`, + ); +} diff --git a/src/models/components/createlinkeduserdto.ts b/src/models/components/createlinkeduserdto.ts index 9180fef4..be9224fa 100644 --- a/src/models/components/createlinkeduserdto.ts +++ b/src/models/components/createlinkeduserdto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateLinkedUserDto = { /** @@ -62,3 +65,21 @@ export namespace CreateLinkedUserDto$ { /** @deprecated use `CreateLinkedUserDto$Outbound` instead. */ export type Outbound = CreateLinkedUserDto$Outbound; } + +export function createLinkedUserDtoToJSON( + createLinkedUserDto: CreateLinkedUserDto, +): string { + return JSON.stringify( + CreateLinkedUserDto$outboundSchema.parse(createLinkedUserDto), + ); +} + +export function createLinkedUserDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateLinkedUserDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateLinkedUserDto' from JSON`, + ); +} diff --git a/src/models/components/createprojectdto.ts b/src/models/components/createprojectdto.ts index 71e55bbf..161b243b 100644 --- a/src/models/components/createprojectdto.ts +++ b/src/models/components/createprojectdto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateProjectDto = { /** @@ -71,3 +74,21 @@ export namespace CreateProjectDto$ { /** @deprecated use `CreateProjectDto$Outbound` instead. */ export type Outbound = CreateProjectDto$Outbound; } + +export function createProjectDtoToJSON( + createProjectDto: CreateProjectDto, +): string { + return JSON.stringify( + CreateProjectDto$outboundSchema.parse(createProjectDto), + ); +} + +export function createProjectDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateProjectDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateProjectDto' from JSON`, + ); +} diff --git a/src/models/components/customfieldcreatedto.ts b/src/models/components/customfieldcreatedto.ts index 57520258..4a0bc4ee 100644 --- a/src/models/components/customfieldcreatedto.ts +++ b/src/models/components/customfieldcreatedto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum CustomFieldCreateDtoObjectTypeOwner { Company = "company", @@ -170,3 +173,21 @@ export namespace CustomFieldCreateDto$ { /** @deprecated use `CustomFieldCreateDto$Outbound` instead. */ export type Outbound = CustomFieldCreateDto$Outbound; } + +export function customFieldCreateDtoToJSON( + customFieldCreateDto: CustomFieldCreateDto, +): string { + return JSON.stringify( + CustomFieldCreateDto$outboundSchema.parse(customFieldCreateDto), + ); +} + +export function customFieldCreateDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CustomFieldCreateDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CustomFieldCreateDto' from JSON`, + ); +} diff --git a/src/models/components/customfieldresponse.ts b/src/models/components/customfieldresponse.ts index be947682..aab2c990 100644 --- a/src/models/components/customfieldresponse.ts +++ b/src/models/components/customfieldresponse.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Attribute Data Type @@ -195,3 +198,21 @@ export namespace CustomFieldResponse$ { /** @deprecated use `CustomFieldResponse$Outbound` instead. */ export type Outbound = CustomFieldResponse$Outbound; } + +export function customFieldResponseToJSON( + customFieldResponse: CustomFieldResponse, +): string { + return JSON.stringify( + CustomFieldResponse$outboundSchema.parse(customFieldResponse), + ); +} + +export function customFieldResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CustomFieldResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CustomFieldResponse' from JSON`, + ); +} diff --git a/src/models/components/deductionitem.ts b/src/models/components/deductionitem.ts deleted file mode 100644 index ce1309a3..00000000 --- a/src/models/components/deductionitem.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type DeductionItem = { - /** - * The name of the deduction - */ - name?: string | null | undefined; - /** - * The amount of employee deduction - */ - employeeDeduction?: number | null | undefined; - /** - * The amount of company deduction - */ - companyDeduction?: number | null | undefined; -}; - -/** @internal */ -export const DeductionItem$inboundSchema: z.ZodType< - DeductionItem, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - employee_deduction: z.nullable(z.number()).optional(), - company_deduction: z.nullable(z.number()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_deduction": "employeeDeduction", - "company_deduction": "companyDeduction", - }); -}); - -/** @internal */ -export type DeductionItem$Outbound = { - name?: string | null | undefined; - employee_deduction?: number | null | undefined; - company_deduction?: number | null | undefined; -}; - -/** @internal */ -export const DeductionItem$outboundSchema: z.ZodType< - DeductionItem$Outbound, - z.ZodTypeDef, - DeductionItem -> = z.object({ - name: z.nullable(z.string()).optional(), - employeeDeduction: z.nullable(z.number()).optional(), - companyDeduction: z.nullable(z.number()).optional(), -}).transform((v) => { - return remap$(v, { - employeeDeduction: "employee_deduction", - companyDeduction: "company_deduction", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeductionItem$ { - /** @deprecated use `DeductionItem$inboundSchema` instead. */ - export const inboundSchema = DeductionItem$inboundSchema; - /** @deprecated use `DeductionItem$outboundSchema` instead. */ - export const outboundSchema = DeductionItem$outboundSchema; - /** @deprecated use `DeductionItem$Outbound` instead. */ - export type Outbound = DeductionItem$Outbound; -} diff --git a/src/models/components/definetargetfielddto.ts b/src/models/components/definetargetfielddto.ts index 98716797..f0b032b2 100644 --- a/src/models/components/definetargetfielddto.ts +++ b/src/models/components/definetargetfielddto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum ObjectTypeOwner { Company = "company", @@ -135,3 +138,21 @@ export namespace DefineTargetFieldDto$ { /** @deprecated use `DefineTargetFieldDto$Outbound` instead. */ export type Outbound = DefineTargetFieldDto$Outbound; } + +export function defineTargetFieldDtoToJSON( + defineTargetFieldDto: DefineTargetFieldDto, +): string { + return JSON.stringify( + DefineTargetFieldDto$outboundSchema.parse(defineTargetFieldDto), + ); +} + +export function defineTargetFieldDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DefineTargetFieldDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DefineTargetFieldDto' from JSON`, + ); +} diff --git a/src/models/components/earningitem.ts b/src/models/components/earningitem.ts deleted file mode 100644 index e9586fc9..00000000 --- a/src/models/components/earningitem.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export type EarningItem = { - /** - * The amount of the earning - */ - amount?: number | null | undefined; - /** - * The type of the earning - */ - type?: string | null | undefined; -}; - -/** @internal */ -export const EarningItem$inboundSchema: z.ZodType< - EarningItem, - z.ZodTypeDef, - unknown -> = z.object({ - amount: z.nullable(z.number()).optional(), - type: z.nullable(z.string()).optional(), -}); - -/** @internal */ -export type EarningItem$Outbound = { - amount?: number | null | undefined; - type?: string | null | undefined; -}; - -/** @internal */ -export const EarningItem$outboundSchema: z.ZodType< - EarningItem$Outbound, - z.ZodTypeDef, - EarningItem -> = z.object({ - amount: z.nullable(z.number()).optional(), - type: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EarningItem$ { - /** @deprecated use `EarningItem$inboundSchema` instead. */ - export const inboundSchema = EarningItem$inboundSchema; - /** @deprecated use `EarningItem$outboundSchema` instead. */ - export const outboundSchema = EarningItem$outboundSchema; - /** @deprecated use `EarningItem$Outbound` instead. */ - export type Outbound = EarningItem$Outbound; -} diff --git a/src/models/components/email.ts b/src/models/components/email.ts index f1302af1..4b30fdfe 100644 --- a/src/models/components/email.ts +++ b/src/models/components/email.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The owner type of an email @@ -97,3 +100,17 @@ export namespace Email$ { /** @deprecated use `Email$Outbound` instead. */ export type Outbound = Email$Outbound; } + +export function emailToJSON(email: Email): string { + return JSON.stringify(Email$outboundSchema.parse(email)); +} + +export function emailFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Email$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Email' from JSON`, + ); +} diff --git a/src/models/components/eventresponse.ts b/src/models/components/eventresponse.ts index e67becf6..40868fa7 100644 --- a/src/models/components/eventresponse.ts +++ b/src/models/components/eventresponse.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Scope of the event @@ -271,3 +274,17 @@ export namespace EventResponse$ { /** @deprecated use `EventResponse$Outbound` instead. */ export type Outbound = EventResponse$Outbound; } + +export function eventResponseToJSON(eventResponse: EventResponse): string { + return JSON.stringify(EventResponse$outboundSchema.parse(eventResponse)); +} + +export function eventResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EventResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EventResponse' from JSON`, + ); +} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 00274dfc..b2f4fc9b 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -9,9 +9,7 @@ export * from "./createlinkeduserdto.js"; export * from "./createprojectdto.js"; export * from "./customfieldcreatedto.js"; export * from "./customfieldresponse.js"; -export * from "./deductionitem.js"; export * from "./definetargetfielddto.js"; -export * from "./earningitem.js"; export * from "./email.js"; export * from "./eventresponse.js"; export * from "./lineitem.js"; @@ -26,7 +24,6 @@ export * from "./ragqueryoutput.js"; export * from "./resyncstatusdto.js"; export * from "./security.js"; export * from "./signatureverificationdto.js"; -export * from "./taxitem.js"; export * from "./unifiedaccountingaccountinput.js"; export * from "./unifiedaccountingaccountoutput.js"; export * from "./unifiedaccountingaddressoutput.js"; @@ -55,26 +52,6 @@ export * from "./unifiedaccountingtaxrateoutput.js"; export * from "./unifiedaccountingtrackingcategoryoutput.js"; export * from "./unifiedaccountingtransactionoutput.js"; export * from "./unifiedaccountingvendorcreditoutput.js"; -export * from "./unifiedatsactivityinput.js"; -export * from "./unifiedatsactivityoutput.js"; -export * from "./unifiedatsapplicationinput.js"; -export * from "./unifiedatsapplicationoutput.js"; -export * from "./unifiedatsattachmentinput.js"; -export * from "./unifiedatsattachmentoutput.js"; -export * from "./unifiedatscandidateinput.js"; -export * from "./unifiedatscandidateoutput.js"; -export * from "./unifiedatsdepartmentoutput.js"; -export * from "./unifiedatseeocsoutput.js"; -export * from "./unifiedatsinterviewinput.js"; -export * from "./unifiedatsinterviewoutput.js"; -export * from "./unifiedatsjobinterviewstageoutput.js"; -export * from "./unifiedatsjoboutput.js"; -export * from "./unifiedatsofferoutput.js"; -export * from "./unifiedatsofficeoutput.js"; -export * from "./unifiedatsrejectreasonoutput.js"; -export * from "./unifiedatsscorecardoutput.js"; -export * from "./unifiedatstagoutput.js"; -export * from "./unifiedatsuseroutput.js"; export * from "./unifiedcrmcompanyinput.js"; export * from "./unifiedcrmcompanyoutput.js"; export * from "./unifiedcrmcontactinput.js"; @@ -101,24 +78,6 @@ export * from "./unifiedfilestoragefolderinput.js"; export * from "./unifiedfilestoragefolderoutput.js"; export * from "./unifiedfilestoragegroupoutput.js"; export * from "./unifiedfilestorageuseroutput.js"; -export * from "./unifiedhrisbankinfooutput.js"; -export * from "./unifiedhrisbenefitoutput.js"; -export * from "./unifiedhriscompanyoutput.js"; -export * from "./unifiedhrisdependentoutput.js"; -export * from "./unifiedhrisemployeeinput.js"; -export * from "./unifiedhrisemployeeoutput.js"; -export * from "./unifiedhrisemployeepayrollrunoutput.js"; -export * from "./unifiedhrisemployerbenefitoutput.js"; -export * from "./unifiedhrisemploymentoutput.js"; -export * from "./unifiedhrisgroupoutput.js"; -export * from "./unifiedhrislocationoutput.js"; -export * from "./unifiedhrispaygroupoutput.js"; -export * from "./unifiedhrispayrollrunoutput.js"; -export * from "./unifiedhristimeoffbalanceoutput.js"; -export * from "./unifiedhristimeoffinput.js"; -export * from "./unifiedhristimeoffoutput.js"; -export * from "./unifiedhristimesheetentryinput.js"; -export * from "./unifiedhristimesheetentryoutput.js"; export * from "./unifiedmarketingautomationactioninput.js"; export * from "./unifiedmarketingautomationactionoutput.js"; export * from "./unifiedmarketingautomationautomationinput.js"; @@ -148,7 +107,6 @@ export * from "./unifiedticketingticketinput.js"; export * from "./unifiedticketingticketoutput.js"; export * from "./unifiedticketinguseroutput.js"; export * from "./updatepullfrequencydto.js"; -export * from "./url.js"; export * from "./variant.js"; export * from "./webhookdto.js"; export * from "./webhookresponse.js"; diff --git a/src/models/components/lineitem.ts b/src/models/components/lineitem.ts index 5e94c15b..d04794ca 100644 --- a/src/models/components/lineitem.ts +++ b/src/models/components/lineitem.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LineItem = { /** @@ -126,3 +129,17 @@ export namespace LineItem$ { /** @deprecated use `LineItem$Outbound` instead. */ export type Outbound = LineItem$Outbound; } + +export function lineItemToJSON(lineItem: LineItem): string { + return JSON.stringify(LineItem$outboundSchema.parse(lineItem)); +} + +export function lineItemFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LineItem$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LineItem' from JSON`, + ); +} diff --git a/src/models/components/linkeduserresponse.ts b/src/models/components/linkeduserresponse.ts index 15a6fe9e..a647fbbd 100644 --- a/src/models/components/linkeduserresponse.ts +++ b/src/models/components/linkeduserresponse.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LinkedUserResponse = { idLinkedUser: string | null; @@ -68,3 +71,21 @@ export namespace LinkedUserResponse$ { /** @deprecated use `LinkedUserResponse$Outbound` instead. */ export type Outbound = LinkedUserResponse$Outbound; } + +export function linkedUserResponseToJSON( + linkedUserResponse: LinkedUserResponse, +): string { + return JSON.stringify( + LinkedUserResponse$outboundSchema.parse(linkedUserResponse), + ); +} + +export function linkedUserResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LinkedUserResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LinkedUserResponse' from JSON`, + ); +} diff --git a/src/models/components/logindto.ts b/src/models/components/logindto.ts index c4bbc6d6..b2d6a2c5 100644 --- a/src/models/components/logindto.ts +++ b/src/models/components/logindto.ts @@ -4,9 +4,12 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LoginDto = { - idUser?: string | undefined; + idUser: string; email: string; passwordHash: string; }; @@ -17,7 +20,7 @@ export const LoginDto$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - id_user: z.string().optional(), + id_user: z.string(), email: z.string(), password_hash: z.string(), }).transform((v) => { @@ -29,7 +32,7 @@ export const LoginDto$inboundSchema: z.ZodType< /** @internal */ export type LoginDto$Outbound = { - id_user?: string | undefined; + id_user: string; email: string; password_hash: string; }; @@ -40,7 +43,7 @@ export const LoginDto$outboundSchema: z.ZodType< z.ZodTypeDef, LoginDto > = z.object({ - idUser: z.string().optional(), + idUser: z.string(), email: z.string(), passwordHash: z.string(), }).transform((v) => { @@ -62,3 +65,17 @@ export namespace LoginDto$ { /** @deprecated use `LoginDto$Outbound` instead. */ export type Outbound = LoginDto$Outbound; } + +export function loginDtoToJSON(loginDto: LoginDto): string { + return JSON.stringify(LoginDto$outboundSchema.parse(loginDto)); +} + +export function loginDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LoginDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LoginDto' from JSON`, + ); +} diff --git a/src/models/components/mapfieldtoproviderdto.ts b/src/models/components/mapfieldtoproviderdto.ts index 6b4af803..34cc338c 100644 --- a/src/models/components/mapfieldtoproviderdto.ts +++ b/src/models/components/mapfieldtoproviderdto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type MapFieldToProviderDto = { /** @@ -80,3 +83,21 @@ export namespace MapFieldToProviderDto$ { /** @deprecated use `MapFieldToProviderDto$Outbound` instead. */ export type Outbound = MapFieldToProviderDto$Outbound; } + +export function mapFieldToProviderDtoToJSON( + mapFieldToProviderDto: MapFieldToProviderDto, +): string { + return JSON.stringify( + MapFieldToProviderDto$outboundSchema.parse(mapFieldToProviderDto), + ); +} + +export function mapFieldToProviderDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => MapFieldToProviderDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'MapFieldToProviderDto' from JSON`, + ); +} diff --git a/src/models/components/passthroughrequestdto.ts b/src/models/components/passthroughrequestdto.ts index 46ed03fc..f8a7dcbb 100644 --- a/src/models/components/passthroughrequestdto.ts +++ b/src/models/components/passthroughrequestdto.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum PassThroughRequestDtoMethod { Get = "GET", @@ -14,19 +17,12 @@ export type Data = {}; export type RequestFormat = { [k: string]: any } | Array<{ [k: string]: any }>; -export type Headers = {}; - export type PassThroughRequestDto = { method: PassThroughRequestDtoMethod; path: string | null; - data?: Data | undefined; - requestFormat?: - | { [k: string]: any } - | Array<{ [k: string]: any }> - | null - | undefined; - overrideBaseUrl?: { [k: string]: any } | null | undefined; - headers?: Headers | undefined; + data: Data; + requestFormat: { [k: string]: any } | Array<{ [k: string]: any }> | null; + overrideBaseUrl: { [k: string]: any } | null; }; /** @internal */ @@ -74,6 +70,20 @@ export namespace Data$ { export type Outbound = Data$Outbound; } +export function dataToJSON(data: Data): string { + return JSON.stringify(Data$outboundSchema.parse(data)); +} + +export function dataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Data$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Data' from JSON`, + ); +} + /** @internal */ export const RequestFormat$inboundSchema: z.ZodType< RequestFormat, @@ -106,31 +116,18 @@ export namespace RequestFormat$ { export type Outbound = RequestFormat$Outbound; } -/** @internal */ -export const Headers$inboundSchema: z.ZodType = - z.object({}); - -/** @internal */ -export type Headers$Outbound = {}; - -/** @internal */ -export const Headers$outboundSchema: z.ZodType< - Headers$Outbound, - z.ZodTypeDef, - Headers -> = z.object({}); +export function requestFormatToJSON(requestFormat: RequestFormat): string { + return JSON.stringify(RequestFormat$outboundSchema.parse(requestFormat)); +} -/** - * @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; +export function requestFormatFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestFormat$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestFormat' from JSON`, + ); } /** @internal */ @@ -141,12 +138,11 @@ export const PassThroughRequestDto$inboundSchema: z.ZodType< > = z.object({ method: PassThroughRequestDtoMethod$inboundSchema, path: z.nullable(z.string()), - data: z.lazy(() => Data$inboundSchema).optional(), + data: z.lazy(() => Data$inboundSchema), request_format: z.nullable( z.union([z.record(z.any()), z.array(z.record(z.any()))]), - ).optional(), - overrideBaseUrl: z.nullable(z.record(z.any())).optional(), - headers: z.lazy(() => Headers$inboundSchema).optional(), + ), + overrideBaseUrl: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { "request_format": "requestFormat", @@ -157,14 +153,9 @@ export const PassThroughRequestDto$inboundSchema: z.ZodType< export type PassThroughRequestDto$Outbound = { method: string; path: string | null; - data?: Data$Outbound | undefined; - request_format?: - | { [k: string]: any } - | Array<{ [k: string]: any }> - | null - | undefined; - overrideBaseUrl?: { [k: string]: any } | null | undefined; - headers?: Headers$Outbound | undefined; + data: Data$Outbound; + request_format: { [k: string]: any } | Array<{ [k: string]: any }> | null; + overrideBaseUrl: { [k: string]: any } | null; }; /** @internal */ @@ -175,12 +166,11 @@ export const PassThroughRequestDto$outboundSchema: z.ZodType< > = z.object({ method: PassThroughRequestDtoMethod$outboundSchema, path: z.nullable(z.string()), - data: z.lazy(() => Data$outboundSchema).optional(), + data: z.lazy(() => Data$outboundSchema), requestFormat: z.nullable( z.union([z.record(z.any()), z.array(z.record(z.any()))]), - ).optional(), - overrideBaseUrl: z.nullable(z.record(z.any())).optional(), - headers: z.lazy(() => Headers$outboundSchema).optional(), + ), + overrideBaseUrl: z.nullable(z.record(z.any())), }).transform((v) => { return remap$(v, { requestFormat: "request_format", @@ -199,3 +189,21 @@ export namespace PassThroughRequestDto$ { /** @deprecated use `PassThroughRequestDto$Outbound` instead. */ export type Outbound = PassThroughRequestDto$Outbound; } + +export function passThroughRequestDtoToJSON( + passThroughRequestDto: PassThroughRequestDto, +): string { + return JSON.stringify( + PassThroughRequestDto$outboundSchema.parse(passThroughRequestDto), + ); +} + +export function passThroughRequestDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PassThroughRequestDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PassThroughRequestDto' from JSON`, + ); +} diff --git a/src/models/components/phone.ts b/src/models/components/phone.ts index 14c32488..3cf0c893 100644 --- a/src/models/components/phone.ts +++ b/src/models/components/phone.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Phone = { /** @@ -70,3 +73,17 @@ export namespace Phone$ { /** @deprecated use `Phone$Outbound` instead. */ export type Outbound = Phone$Outbound; } + +export function phoneToJSON(phone: Phone): string { + return JSON.stringify(Phone$outboundSchema.parse(phone)); +} + +export function phoneFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Phone$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Phone' from JSON`, + ); +} diff --git a/src/models/components/projectresponse.ts b/src/models/components/projectresponse.ts index b82b2a6a..6f77c3fa 100644 --- a/src/models/components/projectresponse.ts +++ b/src/models/components/projectresponse.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ProjectResponse = { /** @@ -21,11 +24,11 @@ export type ProjectResponse = { /** * Frequency of pulling data in seconds */ - pullFrequency?: number | undefined; + pullFrequency: number; /** * Redirect URL for the project */ - redirectUrl?: string | undefined; + redirectUrl: string; /** * User ID associated with the project */ @@ -45,8 +48,8 @@ export const ProjectResponse$inboundSchema: z.ZodType< id_project: z.string(), name: z.string(), sync_mode: z.string(), - pull_frequency: z.number().optional(), - redirect_url: z.string().optional(), + pull_frequency: z.number(), + redirect_url: z.string(), id_user: z.string(), id_connector_set: z.string(), }).transform((v) => { @@ -65,8 +68,8 @@ export type ProjectResponse$Outbound = { id_project: string; name: string; sync_mode: string; - pull_frequency?: number | undefined; - redirect_url?: string | undefined; + pull_frequency: number; + redirect_url: string; id_user: string; id_connector_set: string; }; @@ -80,8 +83,8 @@ export const ProjectResponse$outboundSchema: z.ZodType< idProject: z.string(), name: z.string(), syncMode: z.string(), - pullFrequency: z.number().optional(), - redirectUrl: z.string().optional(), + pullFrequency: z.number(), + redirectUrl: z.string(), idUser: z.string(), idConnectorSet: z.string(), }).transform((v) => { @@ -107,3 +110,19 @@ export namespace ProjectResponse$ { /** @deprecated use `ProjectResponse$Outbound` instead. */ export type Outbound = ProjectResponse$Outbound; } + +export function projectResponseToJSON( + projectResponse: ProjectResponse, +): string { + return JSON.stringify(ProjectResponse$outboundSchema.parse(projectResponse)); +} + +export function projectResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectResponse' from JSON`, + ); +} diff --git a/src/models/components/querybody.ts b/src/models/components/querybody.ts index 562deba1..cb931ccf 100644 --- a/src/models/components/querybody.ts +++ b/src/models/components/querybody.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type QueryBody = { /** @@ -53,3 +56,17 @@ export namespace QueryBody$ { /** @deprecated use `QueryBody$Outbound` instead. */ export type Outbound = QueryBody$Outbound; } + +export function queryBodyToJSON(queryBody: QueryBody): string { + return JSON.stringify(QueryBody$outboundSchema.parse(queryBody)); +} + +export function queryBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => QueryBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'QueryBody' from JSON`, + ); +} diff --git a/src/models/components/ragqueryoutput.ts b/src/models/components/ragqueryoutput.ts index 909914d8..18f9eaf3 100644 --- a/src/models/components/ragqueryoutput.ts +++ b/src/models/components/ragqueryoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RagQueryOutput = { /** @@ -67,3 +70,17 @@ export namespace RagQueryOutput$ { /** @deprecated use `RagQueryOutput$Outbound` instead. */ export type Outbound = RagQueryOutput$Outbound; } + +export function ragQueryOutputToJSON(ragQueryOutput: RagQueryOutput): string { + return JSON.stringify(RagQueryOutput$outboundSchema.parse(ragQueryOutput)); +} + +export function ragQueryOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RagQueryOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RagQueryOutput' from JSON`, + ); +} diff --git a/src/models/components/resyncstatusdto.ts b/src/models/components/resyncstatusdto.ts index 47f3d88f..9e43c406 100644 --- a/src/models/components/resyncstatusdto.ts +++ b/src/models/components/resyncstatusdto.ts @@ -3,12 +3,13 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum Vertical { Ticketing = "ticketing", - Ats = "ats", Accounting = "accounting", - Hris = "hris", Crm = "crm", Filestorage = "filestorage", Ecommerce = "ecommerce", @@ -111,3 +112,19 @@ export namespace ResyncStatusDto$ { /** @deprecated use `ResyncStatusDto$Outbound` instead. */ export type Outbound = ResyncStatusDto$Outbound; } + +export function resyncStatusDtoToJSON( + resyncStatusDto: ResyncStatusDto, +): string { + return JSON.stringify(ResyncStatusDto$outboundSchema.parse(resyncStatusDto)); +} + +export function resyncStatusDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ResyncStatusDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ResyncStatusDto' from JSON`, + ); +} diff --git a/src/models/components/security.ts b/src/models/components/security.ts index 35f7a375..f8ae5360 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Security = { apiKey: string; @@ -52,3 +55,17 @@ export namespace Security$ { /** @deprecated use `Security$Outbound` instead. */ export type Outbound = Security$Outbound; } + +export function securityToJSON(security: Security): string { + return JSON.stringify(Security$outboundSchema.parse(security)); +} + +export function securityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Security$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Security' from JSON`, + ); +} diff --git a/src/models/components/signatureverificationdto.ts b/src/models/components/signatureverificationdto.ts index 1d649baf..1f5a7b48 100644 --- a/src/models/components/signatureverificationdto.ts +++ b/src/models/components/signatureverificationdto.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SignatureVerificationDto = { /** @@ -60,3 +63,21 @@ export namespace SignatureVerificationDto$ { /** @deprecated use `SignatureVerificationDto$Outbound` instead. */ export type Outbound = SignatureVerificationDto$Outbound; } + +export function signatureVerificationDtoToJSON( + signatureVerificationDto: SignatureVerificationDto, +): string { + return JSON.stringify( + SignatureVerificationDto$outboundSchema.parse(signatureVerificationDto), + ); +} + +export function signatureVerificationDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SignatureVerificationDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SignatureVerificationDto' from JSON`, + ); +} diff --git a/src/models/components/taxitem.ts b/src/models/components/taxitem.ts deleted file mode 100644 index 19babd9d..00000000 --- a/src/models/components/taxitem.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type TaxItem = { - /** - * The name of the tax - */ - name?: string | null | undefined; - /** - * The amount of the tax - */ - amount?: number | null | undefined; - /** - * Indicates if this is an employer tax - */ - employerTax?: boolean | null | undefined; -}; - -/** @internal */ -export const TaxItem$inboundSchema: z.ZodType = - z.object({ - name: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - employer_tax: z.nullable(z.boolean()).optional(), - }).transform((v) => { - return remap$(v, { - "employer_tax": "employerTax", - }); - }); - -/** @internal */ -export type TaxItem$Outbound = { - name?: string | null | undefined; - amount?: number | null | undefined; - employer_tax?: boolean | null | undefined; -}; - -/** @internal */ -export const TaxItem$outboundSchema: z.ZodType< - TaxItem$Outbound, - z.ZodTypeDef, - TaxItem -> = z.object({ - name: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - employerTax: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - employerTax: "employer_tax", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TaxItem$ { - /** @deprecated use `TaxItem$inboundSchema` instead. */ - export const inboundSchema = TaxItem$inboundSchema; - /** @deprecated use `TaxItem$outboundSchema` instead. */ - export const outboundSchema = TaxItem$outboundSchema; - /** @deprecated use `TaxItem$Outbound` instead. */ - export type Outbound = TaxItem$Outbound; -} diff --git a/src/models/components/unifiedaccountingaccountinput.ts b/src/models/components/unifiedaccountingaccountinput.ts index a6cf7676..c0bbdc44 100644 --- a/src/models/components/unifiedaccountingaccountinput.ts +++ b/src/models/components/unifiedaccountingaccountinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -88,6 +91,33 @@ export namespace UnifiedAccountingAccountInputFieldMappings$ { export type Outbound = UnifiedAccountingAccountInputFieldMappings$Outbound; } +export function unifiedAccountingAccountInputFieldMappingsToJSON( + unifiedAccountingAccountInputFieldMappings: + UnifiedAccountingAccountInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingAccountInputFieldMappings$outboundSchema.parse( + unifiedAccountingAccountInputFieldMappings, + ), + ); +} + +export function unifiedAccountingAccountInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAccountInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAccountInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAccountInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAccountInput$inboundSchema: z.ZodType< UnifiedAccountingAccountInput, @@ -176,3 +206,23 @@ export namespace UnifiedAccountingAccountInput$ { /** @deprecated use `UnifiedAccountingAccountInput$Outbound` instead. */ export type Outbound = UnifiedAccountingAccountInput$Outbound; } + +export function unifiedAccountingAccountInputToJSON( + unifiedAccountingAccountInput: UnifiedAccountingAccountInput, +): string { + return JSON.stringify( + UnifiedAccountingAccountInput$outboundSchema.parse( + unifiedAccountingAccountInput, + ), + ); +} + +export function unifiedAccountingAccountInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingAccountInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingAccountInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingaccountoutput.ts b/src/models/components/unifiedaccountingaccountoutput.ts index 7c3375ea..b0ad6443 100644 --- a/src/models/components/unifiedaccountingaccountoutput.ts +++ b/src/models/components/unifiedaccountingaccountoutput.ts @@ -4,16 +4,19 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora */ -export type UnifiedAccountingAccountOutputFieldMappings = {}; +export type FieldMappings = {}; /** * The remote data of the account in the context of the 3rd Party */ -export type UnifiedAccountingAccountOutputRemoteData = {}; +export type RemoteData = {}; export type UnifiedAccountingAccountOutput = { /** @@ -59,10 +62,7 @@ export type UnifiedAccountingAccountOutput = { /** * The custom field mappings of the object between the remote 3rd party & Panora */ - fieldMappings?: - | UnifiedAccountingAccountOutputFieldMappings - | null - | undefined; + fieldMappings?: FieldMappings | null | undefined; /** * The UUID of the account record */ @@ -74,7 +74,7 @@ export type UnifiedAccountingAccountOutput = { /** * The remote data of the account in the context of the 3rd Party */ - remoteData?: UnifiedAccountingAccountOutputRemoteData | null | undefined; + remoteData?: RemoteData | null | undefined; /** * The created date of the account record */ @@ -86,69 +86,91 @@ export type UnifiedAccountingAccountOutput = { }; /** @internal */ -export const UnifiedAccountingAccountOutputFieldMappings$inboundSchema: - z.ZodType< - UnifiedAccountingAccountOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); +export const FieldMappings$inboundSchema: z.ZodType< + FieldMappings, + z.ZodTypeDef, + unknown +> = z.object({}); /** @internal */ -export type UnifiedAccountingAccountOutputFieldMappings$Outbound = {}; +export type FieldMappings$Outbound = {}; /** @internal */ -export const UnifiedAccountingAccountOutputFieldMappings$outboundSchema: - z.ZodType< - UnifiedAccountingAccountOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedAccountingAccountOutputFieldMappings - > = z.object({}); +export const FieldMappings$outboundSchema: z.ZodType< + FieldMappings$Outbound, + z.ZodTypeDef, + FieldMappings +> = 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 UnifiedAccountingAccountOutputFieldMappings$ { - /** @deprecated use `UnifiedAccountingAccountOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedAccountingAccountOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedAccountingAccountOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedAccountingAccountOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedAccountingAccountOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedAccountingAccountOutputFieldMappings$Outbound; +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; +} + +export function fieldMappingsToJSON(fieldMappings: FieldMappings): string { + return JSON.stringify(FieldMappings$outboundSchema.parse(fieldMappings)); +} + +export function fieldMappingsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => FieldMappings$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FieldMappings' from JSON`, + ); } /** @internal */ -export const UnifiedAccountingAccountOutputRemoteData$inboundSchema: z.ZodType< - UnifiedAccountingAccountOutputRemoteData, +export const RemoteData$inboundSchema: z.ZodType< + RemoteData, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type UnifiedAccountingAccountOutputRemoteData$Outbound = {}; +export type RemoteData$Outbound = {}; /** @internal */ -export const UnifiedAccountingAccountOutputRemoteData$outboundSchema: z.ZodType< - UnifiedAccountingAccountOutputRemoteData$Outbound, +export const RemoteData$outboundSchema: z.ZodType< + RemoteData$Outbound, z.ZodTypeDef, - UnifiedAccountingAccountOutputRemoteData + RemoteData > = 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 UnifiedAccountingAccountOutputRemoteData$ { - /** @deprecated use `UnifiedAccountingAccountOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedAccountingAccountOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedAccountingAccountOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedAccountingAccountOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedAccountingAccountOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedAccountingAccountOutputRemoteData$Outbound; +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; +} + +export function remoteDataToJSON(remoteData: RemoteData): string { + return JSON.stringify(RemoteData$outboundSchema.parse(remoteData)); +} + +export function remoteDataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RemoteData$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoteData' from JSON`, + ); } /** @internal */ @@ -167,14 +189,11 @@ export const UnifiedAccountingAccountOutput$inboundSchema: z.ZodType< account_number: z.nullable(z.string()).optional(), parent_account: z.nullable(z.string()).optional(), company_info_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedAccountingAccountOutputFieldMappings$inboundSchema), - ).optional(), + field_mappings: z.nullable(z.lazy(() => FieldMappings$inboundSchema)) + .optional(), id: z.nullable(z.string()).optional(), remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedAccountingAccountOutputRemoteData$inboundSchema), - ).optional(), + remote_data: z.nullable(z.lazy(() => RemoteData$inboundSchema)).optional(), created_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), @@ -207,16 +226,10 @@ export type UnifiedAccountingAccountOutput$Outbound = { account_number?: string | null | undefined; parent_account?: string | null | undefined; company_info_id?: string | null | undefined; - field_mappings?: - | UnifiedAccountingAccountOutputFieldMappings$Outbound - | null - | undefined; + field_mappings?: FieldMappings$Outbound | null | undefined; id?: string | null | undefined; remote_id?: string | null | undefined; - remote_data?: - | UnifiedAccountingAccountOutputRemoteData$Outbound - | null - | undefined; + remote_data?: RemoteData$Outbound | null | undefined; created_at?: string | null | undefined; modified_at?: string | null | undefined; }; @@ -237,14 +250,11 @@ export const UnifiedAccountingAccountOutput$outboundSchema: z.ZodType< accountNumber: z.nullable(z.string()).optional(), parentAccount: z.nullable(z.string()).optional(), companyInfoId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedAccountingAccountOutputFieldMappings$outboundSchema), - ).optional(), + fieldMappings: z.nullable(z.lazy(() => FieldMappings$outboundSchema)) + .optional(), id: z.nullable(z.string()).optional(), remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedAccountingAccountOutputRemoteData$outboundSchema), - ).optional(), + remoteData: z.nullable(z.lazy(() => RemoteData$outboundSchema)).optional(), createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), }).transform((v) => { @@ -273,3 +283,23 @@ export namespace UnifiedAccountingAccountOutput$ { /** @deprecated use `UnifiedAccountingAccountOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingAccountOutput$Outbound; } + +export function unifiedAccountingAccountOutputToJSON( + unifiedAccountingAccountOutput: UnifiedAccountingAccountOutput, +): string { + return JSON.stringify( + UnifiedAccountingAccountOutput$outboundSchema.parse( + unifiedAccountingAccountOutput, + ), + ); +} + +export function unifiedAccountingAccountOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingAccountOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingAccountOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingaddressoutput.ts b/src/models/components/unifiedaccountingaddressoutput.ts index 2dcf6668..04f11a8f 100644 --- a/src/models/components/unifiedaccountingaddressoutput.ts +++ b/src/models/components/unifiedaccountingaddressoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -119,6 +122,33 @@ export namespace UnifiedAccountingAddressOutputFieldMappings$ { export type Outbound = UnifiedAccountingAddressOutputFieldMappings$Outbound; } +export function unifiedAccountingAddressOutputFieldMappingsToJSON( + unifiedAccountingAddressOutputFieldMappings: + UnifiedAccountingAddressOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingAddressOutputFieldMappings$outboundSchema.parse( + unifiedAccountingAddressOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingAddressOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAddressOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAddressOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAddressOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAddressOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingAddressOutputRemoteData, @@ -151,6 +181,33 @@ export namespace UnifiedAccountingAddressOutputRemoteData$ { export type Outbound = UnifiedAccountingAddressOutputRemoteData$Outbound; } +export function unifiedAccountingAddressOutputRemoteDataToJSON( + unifiedAccountingAddressOutputRemoteData: + UnifiedAccountingAddressOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingAddressOutputRemoteData$outboundSchema.parse( + unifiedAccountingAddressOutputRemoteData, + ), + ); +} + +export function unifiedAccountingAddressOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAddressOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAddressOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAddressOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAddressOutput$inboundSchema: z.ZodType< UnifiedAccountingAddressOutput, @@ -275,3 +332,23 @@ export namespace UnifiedAccountingAddressOutput$ { /** @deprecated use `UnifiedAccountingAddressOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingAddressOutput$Outbound; } + +export function unifiedAccountingAddressOutputToJSON( + unifiedAccountingAddressOutput: UnifiedAccountingAddressOutput, +): string { + return JSON.stringify( + UnifiedAccountingAddressOutput$outboundSchema.parse( + unifiedAccountingAddressOutput, + ), + ); +} + +export function unifiedAccountingAddressOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingAddressOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingAddressOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingattachmentinput.ts b/src/models/components/unifiedaccountingattachmentinput.ts index 89397618..352ba441 100644 --- a/src/models/components/unifiedaccountingattachmentinput.ts +++ b/src/models/components/unifiedaccountingattachmentinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -66,6 +69,33 @@ export namespace UnifiedAccountingAttachmentInputFieldMappings$ { export type Outbound = UnifiedAccountingAttachmentInputFieldMappings$Outbound; } +export function unifiedAccountingAttachmentInputFieldMappingsToJSON( + unifiedAccountingAttachmentInputFieldMappings: + UnifiedAccountingAttachmentInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingAttachmentInputFieldMappings$outboundSchema.parse( + unifiedAccountingAttachmentInputFieldMappings, + ), + ); +} + +export function unifiedAccountingAttachmentInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAttachmentInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAttachmentInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAttachmentInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAttachmentInput$inboundSchema: z.ZodType< UnifiedAccountingAttachmentInput, @@ -131,3 +161,23 @@ export namespace UnifiedAccountingAttachmentInput$ { /** @deprecated use `UnifiedAccountingAttachmentInput$Outbound` instead. */ export type Outbound = UnifiedAccountingAttachmentInput$Outbound; } + +export function unifiedAccountingAttachmentInputToJSON( + unifiedAccountingAttachmentInput: UnifiedAccountingAttachmentInput, +): string { + return JSON.stringify( + UnifiedAccountingAttachmentInput$outboundSchema.parse( + unifiedAccountingAttachmentInput, + ), + ); +} + +export function unifiedAccountingAttachmentInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingAttachmentInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingAttachmentInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingattachmentoutput.ts b/src/models/components/unifiedaccountingattachmentoutput.ts index b65f76af..49524737 100644 --- a/src/models/components/unifiedaccountingattachmentoutput.ts +++ b/src/models/components/unifiedaccountingattachmentoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -92,6 +95,33 @@ export namespace UnifiedAccountingAttachmentOutputFieldMappings$ { UnifiedAccountingAttachmentOutputFieldMappings$Outbound; } +export function unifiedAccountingAttachmentOutputFieldMappingsToJSON( + unifiedAccountingAttachmentOutputFieldMappings: + UnifiedAccountingAttachmentOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingAttachmentOutputFieldMappings$outboundSchema.parse( + unifiedAccountingAttachmentOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingAttachmentOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAttachmentOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAttachmentOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAttachmentOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAttachmentOutputRemoteData$inboundSchema: z.ZodType< @@ -126,6 +156,33 @@ export namespace UnifiedAccountingAttachmentOutputRemoteData$ { export type Outbound = UnifiedAccountingAttachmentOutputRemoteData$Outbound; } +export function unifiedAccountingAttachmentOutputRemoteDataToJSON( + unifiedAccountingAttachmentOutputRemoteData: + UnifiedAccountingAttachmentOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingAttachmentOutputRemoteData$outboundSchema.parse( + unifiedAccountingAttachmentOutputRemoteData, + ), + ); +} + +export function unifiedAccountingAttachmentOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingAttachmentOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingAttachmentOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingAttachmentOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingAttachmentOutput$inboundSchema: z.ZodType< UnifiedAccountingAttachmentOutput, @@ -226,3 +283,23 @@ export namespace UnifiedAccountingAttachmentOutput$ { /** @deprecated use `UnifiedAccountingAttachmentOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingAttachmentOutput$Outbound; } + +export function unifiedAccountingAttachmentOutputToJSON( + unifiedAccountingAttachmentOutput: UnifiedAccountingAttachmentOutput, +): string { + return JSON.stringify( + UnifiedAccountingAttachmentOutput$outboundSchema.parse( + unifiedAccountingAttachmentOutput, + ), + ); +} + +export function unifiedAccountingAttachmentOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingAttachmentOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingAttachmentOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingbalancesheetoutput.ts b/src/models/components/unifiedaccountingbalancesheetoutput.ts index 796a66fc..f881d346 100644 --- a/src/models/components/unifiedaccountingbalancesheetoutput.ts +++ b/src/models/components/unifiedaccountingbalancesheetoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -126,6 +129,33 @@ export namespace UnifiedAccountingBalancesheetOutputFieldMappings$ { UnifiedAccountingBalancesheetOutputFieldMappings$Outbound; } +export function unifiedAccountingBalancesheetOutputFieldMappingsToJSON( + unifiedAccountingBalancesheetOutputFieldMappings: + UnifiedAccountingBalancesheetOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingBalancesheetOutputFieldMappings$outboundSchema.parse( + unifiedAccountingBalancesheetOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingBalancesheetOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingBalancesheetOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingBalancesheetOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingBalancesheetOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingBalancesheetOutputRemoteData$inboundSchema: z.ZodType< @@ -160,6 +190,33 @@ export namespace UnifiedAccountingBalancesheetOutputRemoteData$ { export type Outbound = UnifiedAccountingBalancesheetOutputRemoteData$Outbound; } +export function unifiedAccountingBalancesheetOutputRemoteDataToJSON( + unifiedAccountingBalancesheetOutputRemoteData: + UnifiedAccountingBalancesheetOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingBalancesheetOutputRemoteData$outboundSchema.parse( + unifiedAccountingBalancesheetOutputRemoteData, + ), + ); +} + +export function unifiedAccountingBalancesheetOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingBalancesheetOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingBalancesheetOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingBalancesheetOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingBalancesheetOutput$inboundSchema: z.ZodType< UnifiedAccountingBalancesheetOutput, @@ -293,3 +350,24 @@ export namespace UnifiedAccountingBalancesheetOutput$ { /** @deprecated use `UnifiedAccountingBalancesheetOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingBalancesheetOutput$Outbound; } + +export function unifiedAccountingBalancesheetOutputToJSON( + unifiedAccountingBalancesheetOutput: UnifiedAccountingBalancesheetOutput, +): string { + return JSON.stringify( + UnifiedAccountingBalancesheetOutput$outboundSchema.parse( + unifiedAccountingBalancesheetOutput, + ), + ); +} + +export function unifiedAccountingBalancesheetOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingBalancesheetOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingBalancesheetOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingcashflowstatementoutput.ts b/src/models/components/unifiedaccountingcashflowstatementoutput.ts index 78860598..5d095899 100644 --- a/src/models/components/unifiedaccountingcashflowstatementoutput.ts +++ b/src/models/components/unifiedaccountingcashflowstatementoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -125,6 +128,33 @@ export namespace UnifiedAccountingCashflowstatementOutputFieldMappings$ { UnifiedAccountingCashflowstatementOutputFieldMappings$Outbound; } +export function unifiedAccountingCashflowstatementOutputFieldMappingsToJSON( + unifiedAccountingCashflowstatementOutputFieldMappings: + UnifiedAccountingCashflowstatementOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingCashflowstatementOutputFieldMappings$outboundSchema.parse( + unifiedAccountingCashflowstatementOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingCashflowstatementOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCashflowstatementOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCashflowstatementOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCashflowstatementOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCashflowstatementOutputRemoteData$inboundSchema: z.ZodType< @@ -160,6 +190,33 @@ export namespace UnifiedAccountingCashflowstatementOutputRemoteData$ { UnifiedAccountingCashflowstatementOutputRemoteData$Outbound; } +export function unifiedAccountingCashflowstatementOutputRemoteDataToJSON( + unifiedAccountingCashflowstatementOutputRemoteData: + UnifiedAccountingCashflowstatementOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingCashflowstatementOutputRemoteData$outboundSchema.parse( + unifiedAccountingCashflowstatementOutputRemoteData, + ), + ); +} + +export function unifiedAccountingCashflowstatementOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCashflowstatementOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCashflowstatementOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCashflowstatementOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCashflowstatementOutput$inboundSchema: z.ZodType< UnifiedAccountingCashflowstatementOutput, @@ -302,3 +359,30 @@ export namespace UnifiedAccountingCashflowstatementOutput$ { /** @deprecated use `UnifiedAccountingCashflowstatementOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingCashflowstatementOutput$Outbound; } + +export function unifiedAccountingCashflowstatementOutputToJSON( + unifiedAccountingCashflowstatementOutput: + UnifiedAccountingCashflowstatementOutput, +): string { + return JSON.stringify( + UnifiedAccountingCashflowstatementOutput$outboundSchema.parse( + unifiedAccountingCashflowstatementOutput, + ), + ); +} + +export function unifiedAccountingCashflowstatementOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCashflowstatementOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCashflowstatementOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCashflowstatementOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingcompanyinfooutput.ts b/src/models/components/unifiedaccountingcompanyinfooutput.ts index df8e6bf6..0da23dfe 100644 --- a/src/models/components/unifiedaccountingcompanyinfooutput.ts +++ b/src/models/components/unifiedaccountingcompanyinfooutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -116,6 +119,33 @@ export namespace UnifiedAccountingCompanyinfoOutputFieldMappings$ { UnifiedAccountingCompanyinfoOutputFieldMappings$Outbound; } +export function unifiedAccountingCompanyinfoOutputFieldMappingsToJSON( + unifiedAccountingCompanyinfoOutputFieldMappings: + UnifiedAccountingCompanyinfoOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingCompanyinfoOutputFieldMappings$outboundSchema.parse( + unifiedAccountingCompanyinfoOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingCompanyinfoOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCompanyinfoOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCompanyinfoOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCompanyinfoOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCompanyinfoOutputRemoteData$inboundSchema: z.ZodType< @@ -150,6 +180,33 @@ export namespace UnifiedAccountingCompanyinfoOutputRemoteData$ { export type Outbound = UnifiedAccountingCompanyinfoOutputRemoteData$Outbound; } +export function unifiedAccountingCompanyinfoOutputRemoteDataToJSON( + unifiedAccountingCompanyinfoOutputRemoteData: + UnifiedAccountingCompanyinfoOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingCompanyinfoOutputRemoteData$outboundSchema.parse( + unifiedAccountingCompanyinfoOutputRemoteData, + ), + ); +} + +export function unifiedAccountingCompanyinfoOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCompanyinfoOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCompanyinfoOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCompanyinfoOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCompanyinfoOutput$inboundSchema: z.ZodType< UnifiedAccountingCompanyinfoOutput, @@ -279,3 +336,24 @@ export namespace UnifiedAccountingCompanyinfoOutput$ { /** @deprecated use `UnifiedAccountingCompanyinfoOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingCompanyinfoOutput$Outbound; } + +export function unifiedAccountingCompanyinfoOutputToJSON( + unifiedAccountingCompanyinfoOutput: UnifiedAccountingCompanyinfoOutput, +): string { + return JSON.stringify( + UnifiedAccountingCompanyinfoOutput$outboundSchema.parse( + unifiedAccountingCompanyinfoOutput, + ), + ); +} + +export function unifiedAccountingCompanyinfoOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCompanyinfoOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingCompanyinfoOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingcontactinput.ts b/src/models/components/unifiedaccountingcontactinput.ts index 96a2b7f7..704b7236 100644 --- a/src/models/components/unifiedaccountingcontactinput.ts +++ b/src/models/components/unifiedaccountingcontactinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -84,6 +87,33 @@ export namespace UnifiedAccountingContactInputFieldMappings$ { export type Outbound = UnifiedAccountingContactInputFieldMappings$Outbound; } +export function unifiedAccountingContactInputFieldMappingsToJSON( + unifiedAccountingContactInputFieldMappings: + UnifiedAccountingContactInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingContactInputFieldMappings$outboundSchema.parse( + unifiedAccountingContactInputFieldMappings, + ), + ); +} + +export function unifiedAccountingContactInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingContactInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingContactInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingContactInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingContactInput$inboundSchema: z.ZodType< UnifiedAccountingContactInput, @@ -173,3 +203,23 @@ export namespace UnifiedAccountingContactInput$ { /** @deprecated use `UnifiedAccountingContactInput$Outbound` instead. */ export type Outbound = UnifiedAccountingContactInput$Outbound; } + +export function unifiedAccountingContactInputToJSON( + unifiedAccountingContactInput: UnifiedAccountingContactInput, +): string { + return JSON.stringify( + UnifiedAccountingContactInput$outboundSchema.parse( + unifiedAccountingContactInput, + ), + ); +} + +export function unifiedAccountingContactInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingContactInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingContactInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingcontactoutput.ts b/src/models/components/unifiedaccountingcontactoutput.ts index 81e8c159..c0d6a62d 100644 --- a/src/models/components/unifiedaccountingcontactoutput.ts +++ b/src/models/components/unifiedaccountingcontactoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -115,6 +118,33 @@ export namespace UnifiedAccountingContactOutputFieldMappings$ { export type Outbound = UnifiedAccountingContactOutputFieldMappings$Outbound; } +export function unifiedAccountingContactOutputFieldMappingsToJSON( + unifiedAccountingContactOutputFieldMappings: + UnifiedAccountingContactOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingContactOutputFieldMappings$outboundSchema.parse( + unifiedAccountingContactOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingContactOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingContactOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingContactOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingContactOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingContactOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingContactOutputRemoteData, @@ -147,6 +177,33 @@ export namespace UnifiedAccountingContactOutputRemoteData$ { export type Outbound = UnifiedAccountingContactOutputRemoteData$Outbound; } +export function unifiedAccountingContactOutputRemoteDataToJSON( + unifiedAccountingContactOutputRemoteData: + UnifiedAccountingContactOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingContactOutputRemoteData$outboundSchema.parse( + unifiedAccountingContactOutputRemoteData, + ), + ); +} + +export function unifiedAccountingContactOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingContactOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingContactOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingContactOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingContactOutput$inboundSchema: z.ZodType< UnifiedAccountingContactOutput, @@ -270,3 +327,23 @@ export namespace UnifiedAccountingContactOutput$ { /** @deprecated use `UnifiedAccountingContactOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingContactOutput$Outbound; } + +export function unifiedAccountingContactOutputToJSON( + unifiedAccountingContactOutput: UnifiedAccountingContactOutput, +): string { + return JSON.stringify( + UnifiedAccountingContactOutput$outboundSchema.parse( + unifiedAccountingContactOutput, + ), + ); +} + +export function unifiedAccountingContactOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingContactOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingContactOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingcreditnoteoutput.ts b/src/models/components/unifiedaccountingcreditnoteoutput.ts index cdb17f66..220d8730 100644 --- a/src/models/components/unifiedaccountingcreditnoteoutput.ts +++ b/src/models/components/unifiedaccountingcreditnoteoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -140,6 +143,33 @@ export namespace UnifiedAccountingCreditnoteOutputFieldMappings$ { UnifiedAccountingCreditnoteOutputFieldMappings$Outbound; } +export function unifiedAccountingCreditnoteOutputFieldMappingsToJSON( + unifiedAccountingCreditnoteOutputFieldMappings: + UnifiedAccountingCreditnoteOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingCreditnoteOutputFieldMappings$outboundSchema.parse( + unifiedAccountingCreditnoteOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingCreditnoteOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCreditnoteOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCreditnoteOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCreditnoteOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCreditnoteOutputRemoteData$inboundSchema: z.ZodType< @@ -174,6 +204,33 @@ export namespace UnifiedAccountingCreditnoteOutputRemoteData$ { export type Outbound = UnifiedAccountingCreditnoteOutputRemoteData$Outbound; } +export function unifiedAccountingCreditnoteOutputRemoteDataToJSON( + unifiedAccountingCreditnoteOutputRemoteData: + UnifiedAccountingCreditnoteOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingCreditnoteOutputRemoteData$outboundSchema.parse( + unifiedAccountingCreditnoteOutputRemoteData, + ), + ); +} + +export function unifiedAccountingCreditnoteOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingCreditnoteOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingCreditnoteOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingCreditnoteOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingCreditnoteOutput$inboundSchema: z.ZodType< UnifiedAccountingCreditnoteOutput, @@ -335,3 +392,23 @@ export namespace UnifiedAccountingCreditnoteOutput$ { /** @deprecated use `UnifiedAccountingCreditnoteOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingCreditnoteOutput$Outbound; } + +export function unifiedAccountingCreditnoteOutputToJSON( + unifiedAccountingCreditnoteOutput: UnifiedAccountingCreditnoteOutput, +): string { + return JSON.stringify( + UnifiedAccountingCreditnoteOutput$outboundSchema.parse( + unifiedAccountingCreditnoteOutput, + ), + ); +} + +export function unifiedAccountingCreditnoteOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingCreditnoteOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingCreditnoteOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingexpenseinput.ts b/src/models/components/unifiedaccountingexpenseinput.ts index 513e6079..a5ef0c62 100644 --- a/src/models/components/unifiedaccountingexpenseinput.ts +++ b/src/models/components/unifiedaccountingexpenseinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -102,6 +105,33 @@ export namespace UnifiedAccountingExpenseInputFieldMappings$ { export type Outbound = UnifiedAccountingExpenseInputFieldMappings$Outbound; } +export function unifiedAccountingExpenseInputFieldMappingsToJSON( + unifiedAccountingExpenseInputFieldMappings: + UnifiedAccountingExpenseInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingExpenseInputFieldMappings$outboundSchema.parse( + unifiedAccountingExpenseInputFieldMappings, + ), + ); +} + +export function unifiedAccountingExpenseInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingExpenseInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingExpenseInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingExpenseInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingExpenseInput$inboundSchema: z.ZodType< UnifiedAccountingExpenseInput, @@ -211,3 +241,23 @@ export namespace UnifiedAccountingExpenseInput$ { /** @deprecated use `UnifiedAccountingExpenseInput$Outbound` instead. */ export type Outbound = UnifiedAccountingExpenseInput$Outbound; } + +export function unifiedAccountingExpenseInputToJSON( + unifiedAccountingExpenseInput: UnifiedAccountingExpenseInput, +): string { + return JSON.stringify( + UnifiedAccountingExpenseInput$outboundSchema.parse( + unifiedAccountingExpenseInput, + ), + ); +} + +export function unifiedAccountingExpenseInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingExpenseInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingExpenseInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingexpenseoutput.ts b/src/models/components/unifiedaccountingexpenseoutput.ts index d7d0efdd..c3709793 100644 --- a/src/models/components/unifiedaccountingexpenseoutput.ts +++ b/src/models/components/unifiedaccountingexpenseoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -137,6 +140,33 @@ export namespace UnifiedAccountingExpenseOutputFieldMappings$ { export type Outbound = UnifiedAccountingExpenseOutputFieldMappings$Outbound; } +export function unifiedAccountingExpenseOutputFieldMappingsToJSON( + unifiedAccountingExpenseOutputFieldMappings: + UnifiedAccountingExpenseOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingExpenseOutputFieldMappings$outboundSchema.parse( + unifiedAccountingExpenseOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingExpenseOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingExpenseOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingExpenseOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingExpenseOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingExpenseOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingExpenseOutputRemoteData, @@ -169,6 +199,33 @@ export namespace UnifiedAccountingExpenseOutputRemoteData$ { export type Outbound = UnifiedAccountingExpenseOutputRemoteData$Outbound; } +export function unifiedAccountingExpenseOutputRemoteDataToJSON( + unifiedAccountingExpenseOutputRemoteData: + UnifiedAccountingExpenseOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingExpenseOutputRemoteData$outboundSchema.parse( + unifiedAccountingExpenseOutputRemoteData, + ), + ); +} + +export function unifiedAccountingExpenseOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingExpenseOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingExpenseOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingExpenseOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingExpenseOutput$inboundSchema: z.ZodType< UnifiedAccountingExpenseOutput, @@ -320,3 +377,23 @@ export namespace UnifiedAccountingExpenseOutput$ { /** @deprecated use `UnifiedAccountingExpenseOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingExpenseOutput$Outbound; } + +export function unifiedAccountingExpenseOutputToJSON( + unifiedAccountingExpenseOutput: UnifiedAccountingExpenseOutput, +): string { + return JSON.stringify( + UnifiedAccountingExpenseOutput$outboundSchema.parse( + unifiedAccountingExpenseOutput, + ), + ); +} + +export function unifiedAccountingExpenseOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingExpenseOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingExpenseOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingincomestatementoutput.ts b/src/models/components/unifiedaccountingincomestatementoutput.ts index 4e9b0c90..2297cf04 100644 --- a/src/models/components/unifiedaccountingincomestatementoutput.ts +++ b/src/models/components/unifiedaccountingincomestatementoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -111,6 +114,33 @@ export namespace UnifiedAccountingIncomestatementOutputFieldMappings$ { UnifiedAccountingIncomestatementOutputFieldMappings$Outbound; } +export function unifiedAccountingIncomestatementOutputFieldMappingsToJSON( + unifiedAccountingIncomestatementOutputFieldMappings: + UnifiedAccountingIncomestatementOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingIncomestatementOutputFieldMappings$outboundSchema.parse( + unifiedAccountingIncomestatementOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingIncomestatementOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingIncomestatementOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingIncomestatementOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingIncomestatementOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingIncomestatementOutputRemoteData$inboundSchema: z.ZodType< @@ -146,6 +176,33 @@ export namespace UnifiedAccountingIncomestatementOutputRemoteData$ { UnifiedAccountingIncomestatementOutputRemoteData$Outbound; } +export function unifiedAccountingIncomestatementOutputRemoteDataToJSON( + unifiedAccountingIncomestatementOutputRemoteData: + UnifiedAccountingIncomestatementOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingIncomestatementOutputRemoteData$outboundSchema.parse( + unifiedAccountingIncomestatementOutputRemoteData, + ), + ); +} + +export function unifiedAccountingIncomestatementOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingIncomestatementOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingIncomestatementOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingIncomestatementOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingIncomestatementOutput$inboundSchema: z.ZodType< UnifiedAccountingIncomestatementOutput, @@ -275,3 +332,25 @@ export namespace UnifiedAccountingIncomestatementOutput$ { /** @deprecated use `UnifiedAccountingIncomestatementOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingIncomestatementOutput$Outbound; } + +export function unifiedAccountingIncomestatementOutputToJSON( + unifiedAccountingIncomestatementOutput: + UnifiedAccountingIncomestatementOutput, +): string { + return JSON.stringify( + UnifiedAccountingIncomestatementOutput$outboundSchema.parse( + unifiedAccountingIncomestatementOutput, + ), + ); +} + +export function unifiedAccountingIncomestatementOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingIncomestatementOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingIncomestatementOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountinginvoiceinput.ts b/src/models/components/unifiedaccountinginvoiceinput.ts index a46f4a7d..07e891c2 100644 --- a/src/models/components/unifiedaccountinginvoiceinput.ts +++ b/src/models/components/unifiedaccountinginvoiceinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -126,6 +129,33 @@ export namespace UnifiedAccountingInvoiceInputFieldMappings$ { export type Outbound = UnifiedAccountingInvoiceInputFieldMappings$Outbound; } +export function unifiedAccountingInvoiceInputFieldMappingsToJSON( + unifiedAccountingInvoiceInputFieldMappings: + UnifiedAccountingInvoiceInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingInvoiceInputFieldMappings$outboundSchema.parse( + unifiedAccountingInvoiceInputFieldMappings, + ), + ); +} + +export function unifiedAccountingInvoiceInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingInvoiceInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingInvoiceInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingInvoiceInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingInvoiceInput$inboundSchema: z.ZodType< UnifiedAccountingInvoiceInput, @@ -260,3 +290,23 @@ export namespace UnifiedAccountingInvoiceInput$ { /** @deprecated use `UnifiedAccountingInvoiceInput$Outbound` instead. */ export type Outbound = UnifiedAccountingInvoiceInput$Outbound; } + +export function unifiedAccountingInvoiceInputToJSON( + unifiedAccountingInvoiceInput: UnifiedAccountingInvoiceInput, +): string { + return JSON.stringify( + UnifiedAccountingInvoiceInput$outboundSchema.parse( + unifiedAccountingInvoiceInput, + ), + ); +} + +export function unifiedAccountingInvoiceInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingInvoiceInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingInvoiceInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountinginvoiceoutput.ts b/src/models/components/unifiedaccountinginvoiceoutput.ts index 759c259a..58bb14b6 100644 --- a/src/models/components/unifiedaccountinginvoiceoutput.ts +++ b/src/models/components/unifiedaccountinginvoiceoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -161,6 +164,33 @@ export namespace UnifiedAccountingInvoiceOutputFieldMappings$ { export type Outbound = UnifiedAccountingInvoiceOutputFieldMappings$Outbound; } +export function unifiedAccountingInvoiceOutputFieldMappingsToJSON( + unifiedAccountingInvoiceOutputFieldMappings: + UnifiedAccountingInvoiceOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingInvoiceOutputFieldMappings$outboundSchema.parse( + unifiedAccountingInvoiceOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingInvoiceOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingInvoiceOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingInvoiceOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingInvoiceOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingInvoiceOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingInvoiceOutputRemoteData, @@ -193,6 +223,33 @@ export namespace UnifiedAccountingInvoiceOutputRemoteData$ { export type Outbound = UnifiedAccountingInvoiceOutputRemoteData$Outbound; } +export function unifiedAccountingInvoiceOutputRemoteDataToJSON( + unifiedAccountingInvoiceOutputRemoteData: + UnifiedAccountingInvoiceOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingInvoiceOutputRemoteData$outboundSchema.parse( + unifiedAccountingInvoiceOutputRemoteData, + ), + ); +} + +export function unifiedAccountingInvoiceOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingInvoiceOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingInvoiceOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingInvoiceOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingInvoiceOutput$inboundSchema: z.ZodType< UnifiedAccountingInvoiceOutput, @@ -369,3 +426,23 @@ export namespace UnifiedAccountingInvoiceOutput$ { /** @deprecated use `UnifiedAccountingInvoiceOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingInvoiceOutput$Outbound; } + +export function unifiedAccountingInvoiceOutputToJSON( + unifiedAccountingInvoiceOutput: UnifiedAccountingInvoiceOutput, +): string { + return JSON.stringify( + UnifiedAccountingInvoiceOutput$outboundSchema.parse( + unifiedAccountingInvoiceOutput, + ), + ); +} + +export function unifiedAccountingInvoiceOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingInvoiceOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingInvoiceOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingitemoutput.ts b/src/models/components/unifiedaccountingitemoutput.ts index 4fa88573..0268e17b 100644 --- a/src/models/components/unifiedaccountingitemoutput.ts +++ b/src/models/components/unifiedaccountingitemoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -106,6 +109,33 @@ export namespace UnifiedAccountingItemOutputFieldMappings$ { export type Outbound = UnifiedAccountingItemOutputFieldMappings$Outbound; } +export function unifiedAccountingItemOutputFieldMappingsToJSON( + unifiedAccountingItemOutputFieldMappings: + UnifiedAccountingItemOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingItemOutputFieldMappings$outboundSchema.parse( + unifiedAccountingItemOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingItemOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingItemOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingItemOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingItemOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingItemOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingItemOutputRemoteData, @@ -138,6 +168,27 @@ export namespace UnifiedAccountingItemOutputRemoteData$ { export type Outbound = UnifiedAccountingItemOutputRemoteData$Outbound; } +export function unifiedAccountingItemOutputRemoteDataToJSON( + unifiedAccountingItemOutputRemoteData: UnifiedAccountingItemOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingItemOutputRemoteData$outboundSchema.parse( + unifiedAccountingItemOutputRemoteData, + ), + ); +} + +export function unifiedAccountingItemOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingItemOutputRemoteData$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingItemOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingItemOutput$inboundSchema: z.ZodType< UnifiedAccountingItemOutput, @@ -261,3 +312,23 @@ export namespace UnifiedAccountingItemOutput$ { /** @deprecated use `UnifiedAccountingItemOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingItemOutput$Outbound; } + +export function unifiedAccountingItemOutputToJSON( + unifiedAccountingItemOutput: UnifiedAccountingItemOutput, +): string { + return JSON.stringify( + UnifiedAccountingItemOutput$outboundSchema.parse( + unifiedAccountingItemOutput, + ), + ); +} + +export function unifiedAccountingItemOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingItemOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingItemOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingjournalentryinput.ts b/src/models/components/unifiedaccountingjournalentryinput.ts index c3c85b6e..383dd5af 100644 --- a/src/models/components/unifiedaccountingjournalentryinput.ts +++ b/src/models/components/unifiedaccountingjournalentryinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -109,6 +112,33 @@ export namespace UnifiedAccountingJournalentryInputFieldMappings$ { UnifiedAccountingJournalentryInputFieldMappings$Outbound; } +export function unifiedAccountingJournalentryInputFieldMappingsToJSON( + unifiedAccountingJournalentryInputFieldMappings: + UnifiedAccountingJournalentryInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingJournalentryInputFieldMappings$outboundSchema.parse( + unifiedAccountingJournalentryInputFieldMappings, + ), + ); +} + +export function unifiedAccountingJournalentryInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingJournalentryInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingJournalentryInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingJournalentryInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingJournalentryInput$inboundSchema: z.ZodType< UnifiedAccountingJournalentryInput, @@ -219,3 +249,24 @@ export namespace UnifiedAccountingJournalentryInput$ { /** @deprecated use `UnifiedAccountingJournalentryInput$Outbound` instead. */ export type Outbound = UnifiedAccountingJournalentryInput$Outbound; } + +export function unifiedAccountingJournalentryInputToJSON( + unifiedAccountingJournalentryInput: UnifiedAccountingJournalentryInput, +): string { + return JSON.stringify( + UnifiedAccountingJournalentryInput$outboundSchema.parse( + unifiedAccountingJournalentryInput, + ), + ); +} + +export function unifiedAccountingJournalentryInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingJournalentryInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingJournalentryInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingjournalentryoutput.ts b/src/models/components/unifiedaccountingjournalentryoutput.ts index f426981c..29477c6d 100644 --- a/src/models/components/unifiedaccountingjournalentryoutput.ts +++ b/src/models/components/unifiedaccountingjournalentryoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -142,6 +145,33 @@ export namespace UnifiedAccountingJournalentryOutputFieldMappings$ { UnifiedAccountingJournalentryOutputFieldMappings$Outbound; } +export function unifiedAccountingJournalentryOutputFieldMappingsToJSON( + unifiedAccountingJournalentryOutputFieldMappings: + UnifiedAccountingJournalentryOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingJournalentryOutputFieldMappings$outboundSchema.parse( + unifiedAccountingJournalentryOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingJournalentryOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingJournalentryOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingJournalentryOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingJournalentryOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingJournalentryOutputRemoteData$inboundSchema: z.ZodType< @@ -176,6 +206,33 @@ export namespace UnifiedAccountingJournalentryOutputRemoteData$ { export type Outbound = UnifiedAccountingJournalentryOutputRemoteData$Outbound; } +export function unifiedAccountingJournalentryOutputRemoteDataToJSON( + unifiedAccountingJournalentryOutputRemoteData: + UnifiedAccountingJournalentryOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingJournalentryOutputRemoteData$outboundSchema.parse( + unifiedAccountingJournalentryOutputRemoteData, + ), + ); +} + +export function unifiedAccountingJournalentryOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingJournalentryOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingJournalentryOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingJournalentryOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingJournalentryOutput$inboundSchema: z.ZodType< UnifiedAccountingJournalentryOutput, @@ -339,3 +396,24 @@ export namespace UnifiedAccountingJournalentryOutput$ { /** @deprecated use `UnifiedAccountingJournalentryOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingJournalentryOutput$Outbound; } + +export function unifiedAccountingJournalentryOutputToJSON( + unifiedAccountingJournalentryOutput: UnifiedAccountingJournalentryOutput, +): string { + return JSON.stringify( + UnifiedAccountingJournalentryOutput$outboundSchema.parse( + unifiedAccountingJournalentryOutput, + ), + ); +} + +export function unifiedAccountingJournalentryOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingJournalentryOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingJournalentryOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingpaymentinput.ts b/src/models/components/unifiedaccountingpaymentinput.ts index c7ee76f9..d14ac32b 100644 --- a/src/models/components/unifiedaccountingpaymentinput.ts +++ b/src/models/components/unifiedaccountingpaymentinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -102,6 +105,33 @@ export namespace UnifiedAccountingPaymentInputFieldMappings$ { export type Outbound = UnifiedAccountingPaymentInputFieldMappings$Outbound; } +export function unifiedAccountingPaymentInputFieldMappingsToJSON( + unifiedAccountingPaymentInputFieldMappings: + UnifiedAccountingPaymentInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingPaymentInputFieldMappings$outboundSchema.parse( + unifiedAccountingPaymentInputFieldMappings, + ), + ); +} + +export function unifiedAccountingPaymentInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPaymentInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPaymentInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPaymentInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPaymentInput$inboundSchema: z.ZodType< UnifiedAccountingPaymentInput, @@ -211,3 +241,23 @@ export namespace UnifiedAccountingPaymentInput$ { /** @deprecated use `UnifiedAccountingPaymentInput$Outbound` instead. */ export type Outbound = UnifiedAccountingPaymentInput$Outbound; } + +export function unifiedAccountingPaymentInputToJSON( + unifiedAccountingPaymentInput: UnifiedAccountingPaymentInput, +): string { + return JSON.stringify( + UnifiedAccountingPaymentInput$outboundSchema.parse( + unifiedAccountingPaymentInput, + ), + ); +} + +export function unifiedAccountingPaymentInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingPaymentInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingPaymentInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingpaymentoutput.ts b/src/models/components/unifiedaccountingpaymentoutput.ts index 8e609c0f..4869ffe2 100644 --- a/src/models/components/unifiedaccountingpaymentoutput.ts +++ b/src/models/components/unifiedaccountingpaymentoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -137,6 +140,33 @@ export namespace UnifiedAccountingPaymentOutputFieldMappings$ { export type Outbound = UnifiedAccountingPaymentOutputFieldMappings$Outbound; } +export function unifiedAccountingPaymentOutputFieldMappingsToJSON( + unifiedAccountingPaymentOutputFieldMappings: + UnifiedAccountingPaymentOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingPaymentOutputFieldMappings$outboundSchema.parse( + unifiedAccountingPaymentOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingPaymentOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPaymentOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPaymentOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPaymentOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPaymentOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingPaymentOutputRemoteData, @@ -169,6 +199,33 @@ export namespace UnifiedAccountingPaymentOutputRemoteData$ { export type Outbound = UnifiedAccountingPaymentOutputRemoteData$Outbound; } +export function unifiedAccountingPaymentOutputRemoteDataToJSON( + unifiedAccountingPaymentOutputRemoteData: + UnifiedAccountingPaymentOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingPaymentOutputRemoteData$outboundSchema.parse( + unifiedAccountingPaymentOutputRemoteData, + ), + ); +} + +export function unifiedAccountingPaymentOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPaymentOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPaymentOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPaymentOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPaymentOutput$inboundSchema: z.ZodType< UnifiedAccountingPaymentOutput, @@ -320,3 +377,23 @@ export namespace UnifiedAccountingPaymentOutput$ { /** @deprecated use `UnifiedAccountingPaymentOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingPaymentOutput$Outbound; } + +export function unifiedAccountingPaymentOutputToJSON( + unifiedAccountingPaymentOutput: UnifiedAccountingPaymentOutput, +): string { + return JSON.stringify( + UnifiedAccountingPaymentOutput$outboundSchema.parse( + unifiedAccountingPaymentOutput, + ), + ); +} + +export function unifiedAccountingPaymentOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingPaymentOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingPaymentOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingphonenumberoutput.ts b/src/models/components/unifiedaccountingphonenumberoutput.ts index 41dd6afa..0bdf73fd 100644 --- a/src/models/components/unifiedaccountingphonenumberoutput.ts +++ b/src/models/components/unifiedaccountingphonenumberoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -96,6 +99,33 @@ export namespace UnifiedAccountingPhonenumberOutputFieldMappings$ { UnifiedAccountingPhonenumberOutputFieldMappings$Outbound; } +export function unifiedAccountingPhonenumberOutputFieldMappingsToJSON( + unifiedAccountingPhonenumberOutputFieldMappings: + UnifiedAccountingPhonenumberOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingPhonenumberOutputFieldMappings$outboundSchema.parse( + unifiedAccountingPhonenumberOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingPhonenumberOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPhonenumberOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPhonenumberOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPhonenumberOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPhonenumberOutputRemoteData$inboundSchema: z.ZodType< @@ -130,6 +160,33 @@ export namespace UnifiedAccountingPhonenumberOutputRemoteData$ { export type Outbound = UnifiedAccountingPhonenumberOutputRemoteData$Outbound; } +export function unifiedAccountingPhonenumberOutputRemoteDataToJSON( + unifiedAccountingPhonenumberOutputRemoteData: + UnifiedAccountingPhonenumberOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingPhonenumberOutputRemoteData$outboundSchema.parse( + unifiedAccountingPhonenumberOutputRemoteData, + ), + ); +} + +export function unifiedAccountingPhonenumberOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPhonenumberOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPhonenumberOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPhonenumberOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPhonenumberOutput$inboundSchema: z.ZodType< UnifiedAccountingPhonenumberOutput, @@ -233,3 +290,24 @@ export namespace UnifiedAccountingPhonenumberOutput$ { /** @deprecated use `UnifiedAccountingPhonenumberOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingPhonenumberOutput$Outbound; } + +export function unifiedAccountingPhonenumberOutputToJSON( + unifiedAccountingPhonenumberOutput: UnifiedAccountingPhonenumberOutput, +): string { + return JSON.stringify( + UnifiedAccountingPhonenumberOutput$outboundSchema.parse( + unifiedAccountingPhonenumberOutput, + ), + ); +} + +export function unifiedAccountingPhonenumberOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPhonenumberOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingPhonenumberOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingpurchaseorderinput.ts b/src/models/components/unifiedaccountingpurchaseorderinput.ts index d7a7e783..5e6f9783 100644 --- a/src/models/components/unifiedaccountingpurchaseorderinput.ts +++ b/src/models/components/unifiedaccountingpurchaseorderinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -121,6 +124,33 @@ export namespace UnifiedAccountingPurchaseorderInputFieldMappings$ { UnifiedAccountingPurchaseorderInputFieldMappings$Outbound; } +export function unifiedAccountingPurchaseorderInputFieldMappingsToJSON( + unifiedAccountingPurchaseorderInputFieldMappings: + UnifiedAccountingPurchaseorderInputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingPurchaseorderInputFieldMappings$outboundSchema.parse( + unifiedAccountingPurchaseorderInputFieldMappings, + ), + ); +} + +export function unifiedAccountingPurchaseorderInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPurchaseorderInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPurchaseorderInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPurchaseorderInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPurchaseorderInput$inboundSchema: z.ZodType< UnifiedAccountingPurchaseorderInput, @@ -246,3 +276,24 @@ export namespace UnifiedAccountingPurchaseorderInput$ { /** @deprecated use `UnifiedAccountingPurchaseorderInput$Outbound` instead. */ export type Outbound = UnifiedAccountingPurchaseorderInput$Outbound; } + +export function unifiedAccountingPurchaseorderInputToJSON( + unifiedAccountingPurchaseorderInput: UnifiedAccountingPurchaseorderInput, +): string { + return JSON.stringify( + UnifiedAccountingPurchaseorderInput$outboundSchema.parse( + unifiedAccountingPurchaseorderInput, + ), + ); +} + +export function unifiedAccountingPurchaseorderInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPurchaseorderInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingPurchaseorderInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingpurchaseorderoutput.ts b/src/models/components/unifiedaccountingpurchaseorderoutput.ts index 64f6a3d7..d548a057 100644 --- a/src/models/components/unifiedaccountingpurchaseorderoutput.ts +++ b/src/models/components/unifiedaccountingpurchaseorderoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -157,6 +160,33 @@ export namespace UnifiedAccountingPurchaseorderOutputFieldMappings$ { UnifiedAccountingPurchaseorderOutputFieldMappings$Outbound; } +export function unifiedAccountingPurchaseorderOutputFieldMappingsToJSON( + unifiedAccountingPurchaseorderOutputFieldMappings: + UnifiedAccountingPurchaseorderOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingPurchaseorderOutputFieldMappings$outboundSchema.parse( + unifiedAccountingPurchaseorderOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingPurchaseorderOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPurchaseorderOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPurchaseorderOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPurchaseorderOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPurchaseorderOutputRemoteData$inboundSchema: z.ZodType< @@ -192,6 +222,33 @@ export namespace UnifiedAccountingPurchaseorderOutputRemoteData$ { UnifiedAccountingPurchaseorderOutputRemoteData$Outbound; } +export function unifiedAccountingPurchaseorderOutputRemoteDataToJSON( + unifiedAccountingPurchaseorderOutputRemoteData: + UnifiedAccountingPurchaseorderOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingPurchaseorderOutputRemoteData$outboundSchema.parse( + unifiedAccountingPurchaseorderOutputRemoteData, + ), + ); +} + +export function unifiedAccountingPurchaseorderOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingPurchaseorderOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPurchaseorderOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingPurchaseorderOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingPurchaseorderOutput$inboundSchema: z.ZodType< UnifiedAccountingPurchaseorderOutput, @@ -367,3 +424,24 @@ export namespace UnifiedAccountingPurchaseorderOutput$ { /** @deprecated use `UnifiedAccountingPurchaseorderOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingPurchaseorderOutput$Outbound; } + +export function unifiedAccountingPurchaseorderOutputToJSON( + unifiedAccountingPurchaseorderOutput: UnifiedAccountingPurchaseorderOutput, +): string { + return JSON.stringify( + UnifiedAccountingPurchaseorderOutput$outboundSchema.parse( + unifiedAccountingPurchaseorderOutput, + ), + ); +} + +export function unifiedAccountingPurchaseorderOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingPurchaseorderOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingPurchaseorderOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingtaxrateoutput.ts b/src/models/components/unifiedaccountingtaxrateoutput.ts index 26dfa40c..91582ac6 100644 --- a/src/models/components/unifiedaccountingtaxrateoutput.ts +++ b/src/models/components/unifiedaccountingtaxrateoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -95,6 +98,33 @@ export namespace UnifiedAccountingTaxrateOutputFieldMappings$ { export type Outbound = UnifiedAccountingTaxrateOutputFieldMappings$Outbound; } +export function unifiedAccountingTaxrateOutputFieldMappingsToJSON( + unifiedAccountingTaxrateOutputFieldMappings: + UnifiedAccountingTaxrateOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingTaxrateOutputFieldMappings$outboundSchema.parse( + unifiedAccountingTaxrateOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingTaxrateOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTaxrateOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTaxrateOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTaxrateOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTaxrateOutputRemoteData$inboundSchema: z.ZodType< UnifiedAccountingTaxrateOutputRemoteData, @@ -127,6 +157,33 @@ export namespace UnifiedAccountingTaxrateOutputRemoteData$ { export type Outbound = UnifiedAccountingTaxrateOutputRemoteData$Outbound; } +export function unifiedAccountingTaxrateOutputRemoteDataToJSON( + unifiedAccountingTaxrateOutputRemoteData: + UnifiedAccountingTaxrateOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingTaxrateOutputRemoteData$outboundSchema.parse( + unifiedAccountingTaxrateOutputRemoteData, + ), + ); +} + +export function unifiedAccountingTaxrateOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTaxrateOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTaxrateOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTaxrateOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTaxrateOutput$inboundSchema: z.ZodType< UnifiedAccountingTaxrateOutput, @@ -229,3 +286,23 @@ export namespace UnifiedAccountingTaxrateOutput$ { /** @deprecated use `UnifiedAccountingTaxrateOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingTaxrateOutput$Outbound; } + +export function unifiedAccountingTaxrateOutputToJSON( + unifiedAccountingTaxrateOutput: UnifiedAccountingTaxrateOutput, +): string { + return JSON.stringify( + UnifiedAccountingTaxrateOutput$outboundSchema.parse( + unifiedAccountingTaxrateOutput, + ), + ); +} + +export function unifiedAccountingTaxrateOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedAccountingTaxrateOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingTaxrateOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingtrackingcategoryoutput.ts b/src/models/components/unifiedaccountingtrackingcategoryoutput.ts index 3b7550d9..0a52484a 100644 --- a/src/models/components/unifiedaccountingtrackingcategoryoutput.ts +++ b/src/models/components/unifiedaccountingtrackingcategoryoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The custom field mappings of the object between the remote 3rd party & Panora @@ -99,6 +102,33 @@ export namespace UnifiedAccountingTrackingcategoryOutputFieldMappings$ { UnifiedAccountingTrackingcategoryOutputFieldMappings$Outbound; } +export function unifiedAccountingTrackingcategoryOutputFieldMappingsToJSON( + unifiedAccountingTrackingcategoryOutputFieldMappings: + UnifiedAccountingTrackingcategoryOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingTrackingcategoryOutputFieldMappings$outboundSchema.parse( + unifiedAccountingTrackingcategoryOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingTrackingcategoryOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTrackingcategoryOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTrackingcategoryOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTrackingcategoryOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTrackingcategoryOutputRemoteData$inboundSchema: z.ZodType< @@ -134,6 +164,33 @@ export namespace UnifiedAccountingTrackingcategoryOutputRemoteData$ { UnifiedAccountingTrackingcategoryOutputRemoteData$Outbound; } +export function unifiedAccountingTrackingcategoryOutputRemoteDataToJSON( + unifiedAccountingTrackingcategoryOutputRemoteData: + UnifiedAccountingTrackingcategoryOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingTrackingcategoryOutputRemoteData$outboundSchema.parse( + unifiedAccountingTrackingcategoryOutputRemoteData, + ), + ); +} + +export function unifiedAccountingTrackingcategoryOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTrackingcategoryOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTrackingcategoryOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTrackingcategoryOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTrackingcategoryOutput$inboundSchema: z.ZodType< UnifiedAccountingTrackingcategoryOutput, @@ -244,3 +301,30 @@ export namespace UnifiedAccountingTrackingcategoryOutput$ { /** @deprecated use `UnifiedAccountingTrackingcategoryOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingTrackingcategoryOutput$Outbound; } + +export function unifiedAccountingTrackingcategoryOutputToJSON( + unifiedAccountingTrackingcategoryOutput: + UnifiedAccountingTrackingcategoryOutput, +): string { + return JSON.stringify( + UnifiedAccountingTrackingcategoryOutput$outboundSchema.parse( + unifiedAccountingTrackingcategoryOutput, + ), + ); +} + +export function unifiedAccountingTrackingcategoryOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTrackingcategoryOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTrackingcategoryOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTrackingcategoryOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingtransactionoutput.ts b/src/models/components/unifiedaccountingtransactionoutput.ts index 839abe1f..d239ce24 100644 --- a/src/models/components/unifiedaccountingtransactionoutput.ts +++ b/src/models/components/unifiedaccountingtransactionoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -138,6 +141,33 @@ export namespace UnifiedAccountingTransactionOutputFieldMappings$ { UnifiedAccountingTransactionOutputFieldMappings$Outbound; } +export function unifiedAccountingTransactionOutputFieldMappingsToJSON( + unifiedAccountingTransactionOutputFieldMappings: + UnifiedAccountingTransactionOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingTransactionOutputFieldMappings$outboundSchema.parse( + unifiedAccountingTransactionOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingTransactionOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTransactionOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTransactionOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTransactionOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTransactionOutputRemoteData$inboundSchema: z.ZodType< @@ -172,6 +202,33 @@ export namespace UnifiedAccountingTransactionOutputRemoteData$ { export type Outbound = UnifiedAccountingTransactionOutputRemoteData$Outbound; } +export function unifiedAccountingTransactionOutputRemoteDataToJSON( + unifiedAccountingTransactionOutputRemoteData: + UnifiedAccountingTransactionOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingTransactionOutputRemoteData$outboundSchema.parse( + unifiedAccountingTransactionOutputRemoteData, + ), + ); +} + +export function unifiedAccountingTransactionOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingTransactionOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTransactionOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingTransactionOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingTransactionOutput$inboundSchema: z.ZodType< UnifiedAccountingTransactionOutput, @@ -324,3 +381,24 @@ export namespace UnifiedAccountingTransactionOutput$ { /** @deprecated use `UnifiedAccountingTransactionOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingTransactionOutput$Outbound; } + +export function unifiedAccountingTransactionOutputToJSON( + unifiedAccountingTransactionOutput: UnifiedAccountingTransactionOutput, +): string { + return JSON.stringify( + UnifiedAccountingTransactionOutput$outboundSchema.parse( + unifiedAccountingTransactionOutput, + ), + ); +} + +export function unifiedAccountingTransactionOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingTransactionOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingTransactionOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedaccountingvendorcreditoutput.ts b/src/models/components/unifiedaccountingvendorcreditoutput.ts index 6effbd7e..3a0d83d5 100644 --- a/src/models/components/unifiedaccountingvendorcreditoutput.ts +++ b/src/models/components/unifiedaccountingvendorcreditoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -130,6 +133,33 @@ export namespace UnifiedAccountingVendorcreditOutputFieldMappings$ { UnifiedAccountingVendorcreditOutputFieldMappings$Outbound; } +export function unifiedAccountingVendorcreditOutputFieldMappingsToJSON( + unifiedAccountingVendorcreditOutputFieldMappings: + UnifiedAccountingVendorcreditOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedAccountingVendorcreditOutputFieldMappings$outboundSchema.parse( + unifiedAccountingVendorcreditOutputFieldMappings, + ), + ); +} + +export function unifiedAccountingVendorcreditOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingVendorcreditOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingVendorcreditOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingVendorcreditOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingVendorcreditOutputRemoteData$inboundSchema: z.ZodType< @@ -164,6 +194,33 @@ export namespace UnifiedAccountingVendorcreditOutputRemoteData$ { export type Outbound = UnifiedAccountingVendorcreditOutputRemoteData$Outbound; } +export function unifiedAccountingVendorcreditOutputRemoteDataToJSON( + unifiedAccountingVendorcreditOutputRemoteData: + UnifiedAccountingVendorcreditOutputRemoteData, +): string { + return JSON.stringify( + UnifiedAccountingVendorcreditOutputRemoteData$outboundSchema.parse( + unifiedAccountingVendorcreditOutputRemoteData, + ), + ); +} + +export function unifiedAccountingVendorcreditOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedAccountingVendorcreditOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedAccountingVendorcreditOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedAccountingVendorcreditOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedAccountingVendorcreditOutput$inboundSchema: z.ZodType< UnifiedAccountingVendorcreditOutput, @@ -307,3 +364,24 @@ export namespace UnifiedAccountingVendorcreditOutput$ { /** @deprecated use `UnifiedAccountingVendorcreditOutput$Outbound` instead. */ export type Outbound = UnifiedAccountingVendorcreditOutput$Outbound; } + +export function unifiedAccountingVendorcreditOutputToJSON( + unifiedAccountingVendorcreditOutput: UnifiedAccountingVendorcreditOutput, +): string { + return JSON.stringify( + UnifiedAccountingVendorcreditOutput$outboundSchema.parse( + unifiedAccountingVendorcreditOutput, + ), + ); +} + +export function unifiedAccountingVendorcreditOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedAccountingVendorcreditOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedAccountingVendorcreditOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedatsactivityinput.ts b/src/models/components/unifiedatsactivityinput.ts deleted file mode 100644 index a8ee7cf6..00000000 --- a/src/models/components/unifiedatsactivityinput.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsActivityInput = { - /** - * The type of activity. NOTE, EMAIL or OTHER - */ - activityType?: string | null | undefined; - /** - * The subject of the activity - */ - subject?: string | null | undefined; - /** - * The body of the activity - */ - body?: string | null | undefined; - /** - * The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE - */ - visibility?: string | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The remote creation date of the activity - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsActivityInput$inboundSchema: z.ZodType< - UnifiedAtsActivityInput, - z.ZodTypeDef, - unknown -> = z.object({ - activity_type: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - body: z.nullable(z.string()).optional(), - visibility: z.nullable(z.string()).optional(), - candidate_id: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - "activity_type": "activityType", - "candidate_id": "candidateId", - "remote_created_at": "remoteCreatedAt", - "field_mappings": "fieldMappings", - }); -}); - -/** @internal */ -export type UnifiedAtsActivityInput$Outbound = { - activity_type?: string | null | undefined; - subject?: string | null | undefined; - body?: string | null | undefined; - visibility?: string | null | undefined; - candidate_id?: string | null | undefined; - remote_created_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsActivityInput$outboundSchema: z.ZodType< - UnifiedAtsActivityInput$Outbound, - z.ZodTypeDef, - UnifiedAtsActivityInput -> = z.object({ - activityType: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - body: z.nullable(z.string()).optional(), - visibility: z.nullable(z.string()).optional(), - candidateId: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), -}).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 deleted file mode 100644 index 3087186b..00000000 --- a/src/models/components/unifiedatsactivityoutput.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsActivityOutput = { - /** - * The type of activity. NOTE, EMAIL or OTHER - */ - activityType?: string | null | undefined; - /** - * The subject of the activity - */ - subject?: string | null | undefined; - /** - * The body of the activity - */ - body?: string | null | undefined; - /** - * The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE - */ - visibility?: string | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The remote creation date of the activity - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the activity - */ - id?: string | null | undefined; - /** - * The remote ID of the activity in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the activity in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsActivityOutput$inboundSchema: z.ZodType< - UnifiedAtsActivityOutput, - z.ZodTypeDef, - unknown -> = z.object({ - activity_type: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - body: z.nullable(z.string()).optional(), - visibility: z.nullable(z.string()).optional(), - candidate_id: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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 | null | undefined; - subject?: string | null | undefined; - body?: string | null | undefined; - visibility?: string | null | undefined; - candidate_id?: string | null | undefined; - remote_created_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsActivityOutput$outboundSchema: z.ZodType< - UnifiedAtsActivityOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsActivityOutput -> = z.object({ - activityType: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - body: z.nullable(z.string()).optional(), - visibility: z.nullable(z.string()).optional(), - candidateId: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 8066c846..00000000 --- a/src/models/components/unifiedatsapplicationinput.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsApplicationInput = { - /** - * The application date - */ - appliedAt?: Date | null | undefined; - /** - * The rejection date - */ - rejectedAt?: Date | null | undefined; - /** - * The offers UUIDs for the application - */ - offers?: Array | null | undefined; - /** - * The source of the application - */ - source?: string | null | undefined; - /** - * The UUID of the person credited for the application - */ - creditedTo?: string | null | undefined; - /** - * The UUID of the current stage of the application - */ - currentStage?: string | null | undefined; - /** - * The rejection reason for the application - */ - rejectReason?: string | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The UUID of the job - */ - jobId?: string | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsApplicationInput$inboundSchema: z.ZodType< - UnifiedAtsApplicationInput, - z.ZodTypeDef, - unknown -> = z.object({ - applied_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - rejected_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - offers: z.nullable(z.array(z.string())).optional(), - source: z.nullable(z.string()).optional(), - credited_to: z.nullable(z.string()).optional(), - current_stage: z.nullable(z.string()).optional(), - reject_reason: z.nullable(z.string()).optional(), - candidate_id: z.nullable(z.string()).optional(), - job_id: z.string().optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsApplicationInput$Outbound = { - applied_at?: string | null | undefined; - rejected_at?: string | null | undefined; - offers?: Array | null | undefined; - source?: string | null | undefined; - credited_to?: string | null | undefined; - current_stage?: string | null | undefined; - reject_reason?: string | null | undefined; - candidate_id?: string | null | undefined; - job_id?: string | undefined; - field_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsApplicationInput$outboundSchema: z.ZodType< - UnifiedAtsApplicationInput$Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationInput -> = z.object({ - appliedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rejectedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - offers: z.nullable(z.array(z.string())).optional(), - source: z.nullable(z.string()).optional(), - creditedTo: z.nullable(z.string()).optional(), - currentStage: z.nullable(z.string()).optional(), - rejectReason: z.nullable(z.string()).optional(), - candidateId: z.nullable(z.string()).optional(), - jobId: z.string().optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), -}).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 deleted file mode 100644 index 331f7ff1..00000000 --- a/src/models/components/unifiedatsapplicationoutput.ts +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsApplicationOutput = { - /** - * The application date - */ - appliedAt?: Date | null | undefined; - /** - * The rejection date - */ - rejectedAt?: Date | null | undefined; - /** - * The offers UUIDs for the application - */ - offers?: Array | null | undefined; - /** - * The source of the application - */ - source?: string | null | undefined; - /** - * The UUID of the person credited for the application - */ - creditedTo?: string | null | undefined; - /** - * The UUID of the current stage of the application - */ - currentStage?: string | null | undefined; - /** - * The rejection reason for the application - */ - rejectReason?: string | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The UUID of the job - */ - jobId?: string | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the application - */ - id?: string | null | undefined; - /** - * The remote ID of the application in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the application in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; - /** - * The remote created date of the object - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modified date of the object - */ - remoteModifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsApplicationOutput$inboundSchema: z.ZodType< - UnifiedAtsApplicationOutput, - z.ZodTypeDef, - unknown -> = z.object({ - applied_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - rejected_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - offers: z.nullable(z.array(z.string())).optional(), - source: z.nullable(z.string()).optional(), - credited_to: z.nullable(z.string()).optional(), - current_stage: z.nullable(z.string()).optional(), - reject_reason: z.nullable(z.string()).optional(), - candidate_id: z.nullable(z.string()).optional(), - job_id: z.string().optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - "remote_created_at": "remoteCreatedAt", - "remote_modified_at": "remoteModifiedAt", - }); -}); - -/** @internal */ -export type UnifiedAtsApplicationOutput$Outbound = { - applied_at?: string | null | undefined; - rejected_at?: string | null | undefined; - offers?: Array | null | undefined; - source?: string | null | undefined; - credited_to?: string | null | undefined; - current_stage?: string | null | undefined; - reject_reason?: string | null | undefined; - candidate_id?: string | null | undefined; - job_id?: string | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsApplicationOutput$outboundSchema: z.ZodType< - UnifiedAtsApplicationOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsApplicationOutput -> = z.object({ - appliedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rejectedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - offers: z.nullable(z.array(z.string())).optional(), - source: z.nullable(z.string()).optional(), - creditedTo: z.nullable(z.string()).optional(), - currentStage: z.nullable(z.string()).optional(), - rejectReason: z.nullable(z.string()).optional(), - candidateId: z.nullable(z.string()).optional(), - jobId: z.string().optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), -}).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", - remoteCreatedAt: "remote_created_at", - remoteModifiedAt: "remote_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 deleted file mode 100644 index b07198df..00000000 --- a/src/models/components/unifiedatsattachmentinput.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsAttachmentInput = { - /** - * The URL of the file - */ - fileUrl?: string | null | undefined; - /** - * The name of the file - */ - fileName?: string | null | undefined; - /** - * The type of the file - */ - attachmentType?: string | null | undefined; - /** - * The remote creation date of the attachment - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the attachment - */ - remoteModifiedAt?: Date | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsAttachmentInput$inboundSchema: z.ZodType< - UnifiedAtsAttachmentInput, - z.ZodTypeDef, - unknown -> = z.object({ - file_url: z.nullable(z.string()).optional(), - file_name: z.nullable(z.string()).optional(), - attachment_type: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - candidate_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsAttachmentInput$Outbound = { - file_url?: string | null | undefined; - file_name?: string | null | undefined; - attachment_type?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; - candidate_id?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsAttachmentInput$outboundSchema: z.ZodType< - UnifiedAtsAttachmentInput$Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentInput -> = z.object({ - fileUrl: z.nullable(z.string()).optional(), - fileName: z.nullable(z.string()).optional(), - attachmentType: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - candidateId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), -}).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 deleted file mode 100644 index 2bd4f4d3..00000000 --- a/src/models/components/unifiedatsattachmentoutput.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsAttachmentOutput = { - /** - * The URL of the file - */ - fileUrl?: string | null | undefined; - /** - * The name of the file - */ - fileName?: string | null | undefined; - /** - * The type of the file - */ - attachmentType?: string | null | undefined; - /** - * The remote creation date of the attachment - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the attachment - */ - remoteModifiedAt?: Date | null | undefined; - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the attachment - */ - id?: string | null | undefined; - /** - * The remote ID of the attachment - */ - remoteId?: string | null | undefined; - /** - * The remote data of the attachment in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsAttachmentOutput$inboundSchema: z.ZodType< - UnifiedAtsAttachmentOutput, - z.ZodTypeDef, - unknown -> = z.object({ - file_url: z.nullable(z.string()).optional(), - file_name: z.nullable(z.string()).optional(), - attachment_type: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - candidate_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsAttachmentOutput$Outbound = { - file_url?: string | null | undefined; - file_name?: string | null | undefined; - attachment_type?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; - candidate_id?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsAttachmentOutput$outboundSchema: z.ZodType< - UnifiedAtsAttachmentOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsAttachmentOutput -> = z.object({ - fileUrl: z.nullable(z.string()).optional(), - fileName: z.nullable(z.string()).optional(), - attachmentType: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - candidateId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 004e38c6..00000000 --- a/src/models/components/unifiedatscandidateinput.ts +++ /dev/null @@ -1,360 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; -import { - Phone, - Phone$inboundSchema, - Phone$Outbound, - Phone$outboundSchema, -} from "./phone.js"; -import { - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutput$inboundSchema, - UnifiedAtsApplicationOutput$Outbound, - UnifiedAtsApplicationOutput$outboundSchema, -} from "./unifiedatsapplicationoutput.js"; -import { - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutput$inboundSchema, - UnifiedAtsAttachmentOutput$Outbound, - UnifiedAtsAttachmentOutput$outboundSchema, -} from "./unifiedatsattachmentoutput.js"; -import { - UnifiedAtsTagOutput, - UnifiedAtsTagOutput$inboundSchema, - UnifiedAtsTagOutput$Outbound, - UnifiedAtsTagOutput$outboundSchema, -} from "./unifiedatstagoutput.js"; -import { - Url, - Url$inboundSchema, - Url$Outbound, - Url$outboundSchema, -} from "./url.js"; - -export type UnifiedAtsCandidateInputAttachments = - | UnifiedAtsAttachmentOutput - | string; - -export type UnifiedAtsCandidateInputApplications = - | UnifiedAtsApplicationOutput - | string; - -export type UnifiedAtsCandidateInputTags = UnifiedAtsTagOutput | string; - -export type UnifiedAtsCandidateInput = { - /** - * The first name of the candidate - */ - firstName?: string | null | undefined; - /** - * The last name of the candidate - */ - lastName?: string | null | undefined; - /** - * The company of the candidate - */ - company?: string | null | undefined; - /** - * The title of the candidate - */ - title?: string | null | undefined; - /** - * The locations of the candidate - */ - locations?: string | null | undefined; - /** - * Whether the candidate is private - */ - isPrivate?: boolean | null | undefined; - /** - * Whether the candidate is reachable by email - */ - emailReachable?: boolean | null | undefined; - /** - * The remote creation date of the candidate - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the candidate - */ - remoteModifiedAt?: Date | null | undefined; - /** - * The last interaction date with the candidate - */ - lastInteractionAt?: Date | null | undefined; - /** - * The attachments UUIDs of the candidate - */ - attachments?: Array | null | undefined; - /** - * The applications UUIDs of the candidate - */ - applications?: Array | null | undefined; - /** - * The tags of the candidate - */ - tags?: Array | null | undefined; - /** - * The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER - */ - urls?: Array | null | undefined; - /** - * The phone numbers of the candidate - */ - phoneNumbers?: Array | null | undefined; - /** - * The email addresses of the candidate - */ - emailAddresses?: Array | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsCandidateInputAttachments$inboundSchema: z.ZodType< - UnifiedAtsCandidateInputAttachments, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsAttachmentOutput$inboundSchema, z.string()]); - -/** @internal */ -export type UnifiedAtsCandidateInputAttachments$Outbound = - | UnifiedAtsAttachmentOutput$Outbound - | string; - -/** @internal */ -export const UnifiedAtsCandidateInputAttachments$outboundSchema: z.ZodType< - UnifiedAtsCandidateInputAttachments$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateInputAttachments -> = z.union([UnifiedAtsAttachmentOutput$outboundSchema, 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 UnifiedAtsCandidateInputAttachments$ { - /** @deprecated use `UnifiedAtsCandidateInputAttachments$inboundSchema` instead. */ - export const inboundSchema = - UnifiedAtsCandidateInputAttachments$inboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputAttachments$outboundSchema` instead. */ - export const outboundSchema = - UnifiedAtsCandidateInputAttachments$outboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputAttachments$Outbound` instead. */ - export type Outbound = UnifiedAtsCandidateInputAttachments$Outbound; -} - -/** @internal */ -export const UnifiedAtsCandidateInputApplications$inboundSchema: z.ZodType< - UnifiedAtsCandidateInputApplications, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsApplicationOutput$inboundSchema, z.string()]); - -/** @internal */ -export type UnifiedAtsCandidateInputApplications$Outbound = - | UnifiedAtsApplicationOutput$Outbound - | string; - -/** @internal */ -export const UnifiedAtsCandidateInputApplications$outboundSchema: z.ZodType< - UnifiedAtsCandidateInputApplications$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateInputApplications -> = z.union([UnifiedAtsApplicationOutput$outboundSchema, 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 UnifiedAtsCandidateInputApplications$ { - /** @deprecated use `UnifiedAtsCandidateInputApplications$inboundSchema` instead. */ - export const inboundSchema = - UnifiedAtsCandidateInputApplications$inboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputApplications$outboundSchema` instead. */ - export const outboundSchema = - UnifiedAtsCandidateInputApplications$outboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputApplications$Outbound` instead. */ - export type Outbound = UnifiedAtsCandidateInputApplications$Outbound; -} - -/** @internal */ -export const UnifiedAtsCandidateInputTags$inboundSchema: z.ZodType< - UnifiedAtsCandidateInputTags, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsTagOutput$inboundSchema, z.string()]); - -/** @internal */ -export type UnifiedAtsCandidateInputTags$Outbound = - | UnifiedAtsTagOutput$Outbound - | string; - -/** @internal */ -export const UnifiedAtsCandidateInputTags$outboundSchema: z.ZodType< - UnifiedAtsCandidateInputTags$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateInputTags -> = z.union([UnifiedAtsTagOutput$outboundSchema, 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 UnifiedAtsCandidateInputTags$ { - /** @deprecated use `UnifiedAtsCandidateInputTags$inboundSchema` instead. */ - export const inboundSchema = UnifiedAtsCandidateInputTags$inboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputTags$outboundSchema` instead. */ - export const outboundSchema = UnifiedAtsCandidateInputTags$outboundSchema; - /** @deprecated use `UnifiedAtsCandidateInputTags$Outbound` instead. */ - export type Outbound = UnifiedAtsCandidateInputTags$Outbound; -} - -/** @internal */ -export const UnifiedAtsCandidateInput$inboundSchema: z.ZodType< - UnifiedAtsCandidateInput, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - company: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - locations: z.nullable(z.string()).optional(), - is_private: z.nullable(z.boolean()).optional(), - email_reachable: z.nullable(z.boolean()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - last_interaction_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - attachments: z.nullable( - z.array(z.union([UnifiedAtsAttachmentOutput$inboundSchema, z.string()])), - ).optional(), - applications: z.nullable( - z.array(z.union([UnifiedAtsApplicationOutput$inboundSchema, z.string()])), - ).optional(), - tags: z.nullable( - z.array(z.union([UnifiedAtsTagOutput$inboundSchema, z.string()])), - ).optional(), - urls: z.nullable(z.array(Url$inboundSchema)).optional(), - phone_numbers: z.nullable(z.array(Phone$inboundSchema)).optional(), - email_addresses: z.nullable(z.array(Email$inboundSchema)).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsCandidateInput$Outbound = { - first_name?: string | null | undefined; - last_name?: string | null | undefined; - company?: string | null | undefined; - title?: string | null | undefined; - locations?: string | null | undefined; - is_private?: boolean | null | undefined; - email_reachable?: boolean | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; - last_interaction_at?: string | null | undefined; - attachments?: - | Array - | null - | undefined; - applications?: - | Array - | null - | undefined; - tags?: Array | null | undefined; - urls?: Array | null | undefined; - phone_numbers?: Array | null | undefined; - email_addresses?: Array | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsCandidateInput$outboundSchema: z.ZodType< - UnifiedAtsCandidateInput$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateInput -> = z.object({ - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - company: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - locations: z.nullable(z.string()).optional(), - isPrivate: z.nullable(z.boolean()).optional(), - emailReachable: z.nullable(z.boolean()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - lastInteractionAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - attachments: z.nullable( - z.array(z.union([UnifiedAtsAttachmentOutput$outboundSchema, z.string()])), - ).optional(), - applications: z.nullable( - z.array(z.union([UnifiedAtsApplicationOutput$outboundSchema, z.string()])), - ).optional(), - tags: z.nullable( - z.array(z.union([UnifiedAtsTagOutput$outboundSchema, z.string()])), - ).optional(), - urls: z.nullable(z.array(Url$outboundSchema)).optional(), - phoneNumbers: z.nullable(z.array(Phone$outboundSchema)).optional(), - emailAddresses: z.nullable(z.array(Email$outboundSchema)).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), -}).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 deleted file mode 100644 index f81656c5..00000000 --- a/src/models/components/unifiedatscandidateoutput.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; -import { - Phone, - Phone$inboundSchema, - Phone$Outbound, - Phone$outboundSchema, -} from "./phone.js"; -import { - UnifiedAtsApplicationOutput, - UnifiedAtsApplicationOutput$inboundSchema, - UnifiedAtsApplicationOutput$Outbound, - UnifiedAtsApplicationOutput$outboundSchema, -} from "./unifiedatsapplicationoutput.js"; -import { - UnifiedAtsAttachmentOutput, - UnifiedAtsAttachmentOutput$inboundSchema, - UnifiedAtsAttachmentOutput$Outbound, - UnifiedAtsAttachmentOutput$outboundSchema, -} from "./unifiedatsattachmentoutput.js"; -import { - UnifiedAtsTagOutput, - UnifiedAtsTagOutput$inboundSchema, - UnifiedAtsTagOutput$Outbound, - UnifiedAtsTagOutput$outboundSchema, -} from "./unifiedatstagoutput.js"; -import { - Url, - Url$inboundSchema, - Url$Outbound, - Url$outboundSchema, -} from "./url.js"; - -export type UnifiedAtsCandidateOutputAttachments = - | UnifiedAtsAttachmentOutput - | string; - -export type Applications = UnifiedAtsApplicationOutput | string; - -export type UnifiedAtsCandidateOutputTags = UnifiedAtsTagOutput | string; - -export type UnifiedAtsCandidateOutput = { - /** - * The first name of the candidate - */ - firstName?: string | null | undefined; - /** - * The last name of the candidate - */ - lastName?: string | null | undefined; - /** - * The company of the candidate - */ - company?: string | null | undefined; - /** - * The title of the candidate - */ - title?: string | null | undefined; - /** - * The locations of the candidate - */ - locations?: string | null | undefined; - /** - * Whether the candidate is private - */ - isPrivate?: boolean | null | undefined; - /** - * Whether the candidate is reachable by email - */ - emailReachable?: boolean | null | undefined; - /** - * The remote creation date of the candidate - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the candidate - */ - remoteModifiedAt?: Date | null | undefined; - /** - * The last interaction date with the candidate - */ - lastInteractionAt?: Date | null | undefined; - /** - * The attachments UUIDs of the candidate - */ - attachments?: Array | null | undefined; - /** - * The applications UUIDs of the candidate - */ - applications?: Array | null | undefined; - /** - * The tags of the candidate - */ - tags?: Array | null | undefined; - /** - * The urls of the candidate, possible values for Url type are WEBSITE, BLOG, LINKEDIN, GITHUB, or OTHER - */ - urls?: Array | null | undefined; - /** - * The phone numbers of the candidate - */ - phoneNumbers?: Array | null | undefined; - /** - * The email addresses of the candidate - */ - emailAddresses?: Array | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the candidate - */ - id?: string | null | undefined; - /** - * The id of the candidate in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the candidate in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsCandidateOutputAttachments$inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputAttachments, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsAttachmentOutput$inboundSchema, z.string()]); - -/** @internal */ -export type UnifiedAtsCandidateOutputAttachments$Outbound = - | UnifiedAtsAttachmentOutput$Outbound - | string; - -/** @internal */ -export const UnifiedAtsCandidateOutputAttachments$outboundSchema: z.ZodType< - UnifiedAtsCandidateOutputAttachments$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputAttachments -> = z.union([UnifiedAtsAttachmentOutput$outboundSchema, 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 UnifiedAtsCandidateOutputAttachments$ { - /** @deprecated use `UnifiedAtsCandidateOutputAttachments$inboundSchema` instead. */ - export const inboundSchema = - UnifiedAtsCandidateOutputAttachments$inboundSchema; - /** @deprecated use `UnifiedAtsCandidateOutputAttachments$outboundSchema` instead. */ - export const outboundSchema = - UnifiedAtsCandidateOutputAttachments$outboundSchema; - /** @deprecated use `UnifiedAtsCandidateOutputAttachments$Outbound` instead. */ - export type Outbound = UnifiedAtsCandidateOutputAttachments$Outbound; -} - -/** @internal */ -export const Applications$inboundSchema: z.ZodType< - Applications, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsApplicationOutput$inboundSchema, z.string()]); - -/** @internal */ -export type Applications$Outbound = - | UnifiedAtsApplicationOutput$Outbound - | string; - -/** @internal */ -export const Applications$outboundSchema: z.ZodType< - Applications$Outbound, - z.ZodTypeDef, - Applications -> = z.union([UnifiedAtsApplicationOutput$outboundSchema, 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 Applications$ { - /** @deprecated use `Applications$inboundSchema` instead. */ - export const inboundSchema = Applications$inboundSchema; - /** @deprecated use `Applications$outboundSchema` instead. */ - export const outboundSchema = Applications$outboundSchema; - /** @deprecated use `Applications$Outbound` instead. */ - export type Outbound = Applications$Outbound; -} - -/** @internal */ -export const UnifiedAtsCandidateOutputTags$inboundSchema: z.ZodType< - UnifiedAtsCandidateOutputTags, - z.ZodTypeDef, - unknown -> = z.union([UnifiedAtsTagOutput$inboundSchema, z.string()]); - -/** @internal */ -export type UnifiedAtsCandidateOutputTags$Outbound = - | UnifiedAtsTagOutput$Outbound - | string; - -/** @internal */ -export const UnifiedAtsCandidateOutputTags$outboundSchema: z.ZodType< - UnifiedAtsCandidateOutputTags$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutputTags -> = z.union([UnifiedAtsTagOutput$outboundSchema, 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 UnifiedAtsCandidateOutputTags$ { - /** @deprecated use `UnifiedAtsCandidateOutputTags$inboundSchema` instead. */ - export const inboundSchema = UnifiedAtsCandidateOutputTags$inboundSchema; - /** @deprecated use `UnifiedAtsCandidateOutputTags$outboundSchema` instead. */ - export const outboundSchema = UnifiedAtsCandidateOutputTags$outboundSchema; - /** @deprecated use `UnifiedAtsCandidateOutputTags$Outbound` instead. */ - export type Outbound = UnifiedAtsCandidateOutputTags$Outbound; -} - -/** @internal */ -export const UnifiedAtsCandidateOutput$inboundSchema: z.ZodType< - UnifiedAtsCandidateOutput, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - company: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - locations: z.nullable(z.string()).optional(), - is_private: z.nullable(z.boolean()).optional(), - email_reachable: z.nullable(z.boolean()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - last_interaction_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - attachments: z.nullable( - z.array(z.union([UnifiedAtsAttachmentOutput$inboundSchema, z.string()])), - ).optional(), - applications: z.nullable( - z.array(z.union([UnifiedAtsApplicationOutput$inboundSchema, z.string()])), - ).optional(), - tags: z.nullable( - z.array(z.union([UnifiedAtsTagOutput$inboundSchema, z.string()])), - ).optional(), - urls: z.nullable(z.array(Url$inboundSchema)).optional(), - phone_numbers: z.nullable(z.array(Phone$inboundSchema)).optional(), - email_addresses: z.nullable(z.array(Email$inboundSchema)).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsCandidateOutput$Outbound = { - first_name?: string | null | undefined; - last_name?: string | null | undefined; - company?: string | null | undefined; - title?: string | null | undefined; - locations?: string | null | undefined; - is_private?: boolean | null | undefined; - email_reachable?: boolean | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; - last_interaction_at?: string | null | undefined; - attachments?: - | Array - | null - | undefined; - applications?: - | Array - | null - | undefined; - tags?: Array | null | undefined; - urls?: Array | null | undefined; - phone_numbers?: Array | null | undefined; - email_addresses?: Array | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsCandidateOutput$outboundSchema: z.ZodType< - UnifiedAtsCandidateOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsCandidateOutput -> = z.object({ - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - company: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - locations: z.nullable(z.string()).optional(), - isPrivate: z.nullable(z.boolean()).optional(), - emailReachable: z.nullable(z.boolean()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - lastInteractionAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - attachments: z.nullable( - z.array(z.union([UnifiedAtsAttachmentOutput$outboundSchema, z.string()])), - ).optional(), - applications: z.nullable( - z.array(z.union([UnifiedAtsApplicationOutput$outboundSchema, z.string()])), - ).optional(), - tags: z.nullable( - z.array(z.union([UnifiedAtsTagOutput$outboundSchema, z.string()])), - ).optional(), - urls: z.nullable(z.array(Url$outboundSchema)).optional(), - phoneNumbers: z.nullable(z.array(Phone$outboundSchema)).optional(), - emailAddresses: z.nullable(z.array(Email$outboundSchema)).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 04fb0988..00000000 --- a/src/models/components/unifiedatsdepartmentoutput.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsDepartmentOutput = { - /** - * The name of the department - */ - name?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the department - */ - id?: string | null | undefined; - /** - * The remote ID of the department in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the department in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsDepartmentOutput$inboundSchema: z.ZodType< - UnifiedAtsDepartmentOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).transform((v) => { - return remap$(v, { - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "created_at": "createdAt", - "modified_at": "modifiedAt", - }); -}); - -/** @internal */ -export type UnifiedAtsDepartmentOutput$Outbound = { - name?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsDepartmentOutput$outboundSchema: z.ZodType< - UnifiedAtsDepartmentOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsDepartmentOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index a3609e9b..00000000 --- a/src/models/components/unifiedatseeocsoutput.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsEeocsOutput = { - /** - * The UUID of the candidate - */ - candidateId?: string | null | undefined; - /** - * The submission date of the EEOC - */ - submittedAt?: Date | null | undefined; - /** - * The race of the candidate - */ - race?: string | null | undefined; - /** - * The gender of the candidate - */ - gender?: string | null | undefined; - /** - * The veteran status of the candidate - */ - veteranStatus?: string | null | undefined; - /** - * The disability status of the candidate - */ - disabilityStatus?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the EEOC - */ - id?: string | null | undefined; - /** - * The remote ID of the EEOC in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the EEOC in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsEeocsOutput$inboundSchema: z.ZodType< - UnifiedAtsEeocsOutput, - z.ZodTypeDef, - unknown -> = z.object({ - candidate_id: z.nullable(z.string()).optional(), - submitted_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - race: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - veteran_status: z.nullable(z.string()).optional(), - disability_status: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsEeocsOutput$Outbound = { - candidate_id?: string | null | undefined; - submitted_at?: string | null | undefined; - race?: string | null | undefined; - gender?: string | null | undefined; - veteran_status?: string | null | undefined; - disability_status?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsEeocsOutput$outboundSchema: z.ZodType< - UnifiedAtsEeocsOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsEeocsOutput -> = z.object({ - candidateId: z.nullable(z.string()).optional(), - submittedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - race: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - veteranStatus: z.nullable(z.string()).optional(), - disabilityStatus: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 8b008701..00000000 --- a/src/models/components/unifiedatsinterviewinput.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsInterviewInput = { - /** - * The status of the interview - */ - status?: string | null | undefined; - /** - * The UUID of the application - */ - applicationId?: string | null | undefined; - /** - * The UUID of the job interview stage - */ - jobInterviewStageId?: string | null | undefined; - /** - * The UUID of the organizer - */ - organizedBy?: string | null | undefined; - /** - * The UUIDs of the interviewers - */ - interviewers?: Array | null | undefined; - /** - * The location of the interview - */ - location?: string | null | undefined; - /** - * The start date and time of the interview - */ - startAt?: Date | null | undefined; - /** - * The end date and time of the interview - */ - endAt?: Date | null | undefined; - /** - * The remote creation date of the interview - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the interview - */ - remoteUpdatedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsInterviewInput$inboundSchema: z.ZodType< - UnifiedAtsInterviewInput, - z.ZodTypeDef, - unknown -> = z.object({ - status: z.nullable(z.string()).optional(), - application_id: z.nullable(z.string()).optional(), - job_interview_stage_id: z.nullable(z.string()).optional(), - organized_by: z.nullable(z.string()).optional(), - interviewers: z.nullable(z.array(z.string())).optional(), - location: z.nullable(z.string()).optional(), - start_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsInterviewInput$Outbound = { - status?: string | null | undefined; - application_id?: string | null | undefined; - job_interview_stage_id?: string | null | undefined; - organized_by?: string | null | undefined; - interviewers?: Array | null | undefined; - location?: string | null | undefined; - start_at?: string | null | undefined; - end_at?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_updated_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsInterviewInput$outboundSchema: z.ZodType< - UnifiedAtsInterviewInput$Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewInput -> = z.object({ - status: z.nullable(z.string()).optional(), - applicationId: z.nullable(z.string()).optional(), - jobInterviewStageId: z.nullable(z.string()).optional(), - organizedBy: z.nullable(z.string()).optional(), - interviewers: z.nullable(z.array(z.string())).optional(), - location: z.nullable(z.string()).optional(), - startAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteUpdatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), -}).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 deleted file mode 100644 index 0b791141..00000000 --- a/src/models/components/unifiedatsinterviewoutput.ts +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsInterviewOutput = { - /** - * The status of the interview - */ - status?: string | null | undefined; - /** - * The UUID of the application - */ - applicationId?: string | null | undefined; - /** - * The UUID of the job interview stage - */ - jobInterviewStageId?: string | null | undefined; - /** - * The UUID of the organizer - */ - organizedBy?: string | null | undefined; - /** - * The UUIDs of the interviewers - */ - interviewers?: Array | null | undefined; - /** - * The location of the interview - */ - location?: string | null | undefined; - /** - * The start date and time of the interview - */ - startAt?: Date | null | undefined; - /** - * The end date and time of the interview - */ - endAt?: Date | null | undefined; - /** - * The remote creation date of the interview - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the interview - */ - remoteUpdatedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the interview - */ - id?: string | null | undefined; - /** - * The remote ID of the interview in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the interview in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsInterviewOutput$inboundSchema: z.ZodType< - UnifiedAtsInterviewOutput, - z.ZodTypeDef, - unknown -> = z.object({ - status: z.nullable(z.string()).optional(), - application_id: z.nullable(z.string()).optional(), - job_interview_stage_id: z.nullable(z.string()).optional(), - organized_by: z.nullable(z.string()).optional(), - interviewers: z.nullable(z.array(z.string())).optional(), - location: z.nullable(z.string()).optional(), - start_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsInterviewOutput$Outbound = { - status?: string | null | undefined; - application_id?: string | null | undefined; - job_interview_stage_id?: string | null | undefined; - organized_by?: string | null | undefined; - interviewers?: Array | null | undefined; - location?: string | null | undefined; - start_at?: string | null | undefined; - end_at?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_updated_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsInterviewOutput$outboundSchema: z.ZodType< - UnifiedAtsInterviewOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsInterviewOutput -> = z.object({ - status: z.nullable(z.string()).optional(), - applicationId: z.nullable(z.string()).optional(), - jobInterviewStageId: z.nullable(z.string()).optional(), - organizedBy: z.nullable(z.string()).optional(), - interviewers: z.nullable(z.array(z.string())).optional(), - location: z.nullable(z.string()).optional(), - startAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteUpdatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 40920981..00000000 --- a/src/models/components/unifiedatsjobinterviewstageoutput.ts +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsJobinterviewstageOutput = { - /** - * The name of the job interview stage - */ - name?: string | null | undefined; - /** - * The order of the stage - */ - stageOrder?: number | null | undefined; - /** - * The UUID of the job - */ - jobId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the job interview stage - */ - id?: string | null | undefined; - /** - * The remote ID of the job interview stage in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the job interview stage in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsJobinterviewstageOutput$inboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - stage_order: z.nullable(z.number()).optional(), - job_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsJobinterviewstageOutput$Outbound = { - name?: string | null | undefined; - stage_order?: number | null | undefined; - job_id?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsJobinterviewstageOutput$outboundSchema: z.ZodType< - UnifiedAtsJobinterviewstageOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsJobinterviewstageOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - stageOrder: z.nullable(z.number()).optional(), - jobId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 14012e43..00000000 --- a/src/models/components/unifiedatsjoboutput.ts +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsJobOutput = { - /** - * The name of the job - */ - name?: string | null | undefined; - /** - * The description of the job - */ - description?: string | null | undefined; - /** - * The code of the job - */ - code?: string | null | undefined; - /** - * The status of the job - */ - status?: string | null | undefined; - /** - * The type of the job - */ - type?: string | null | undefined; - /** - * Whether the job is confidential - */ - confidential?: boolean | null | undefined; - /** - * The departments UUIDs associated with the job - */ - departments?: Array | null | undefined; - /** - * The offices UUIDs associated with the job - */ - offices?: Array | null | undefined; - /** - * The managers UUIDs associated with the job - */ - managers?: Array | null | undefined; - /** - * The recruiters UUIDs associated with the job - */ - recruiters?: Array | null | undefined; - /** - * The remote creation date of the job - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the job - */ - remoteUpdatedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the job - */ - id?: string | null | undefined; - /** - * The remote ID of the job in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the job in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsJobOutput$inboundSchema: z.ZodType< - UnifiedAtsJobOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - confidential: z.nullable(z.boolean()).optional(), - departments: z.nullable(z.array(z.string())).optional(), - offices: z.nullable(z.array(z.string())).optional(), - managers: z.nullable(z.array(z.string())).optional(), - recruiters: z.nullable(z.array(z.string())).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsJobOutput$Outbound = { - name?: string | null | undefined; - description?: string | null | undefined; - code?: string | null | undefined; - status?: string | null | undefined; - type?: string | null | undefined; - confidential?: boolean | null | undefined; - departments?: Array | null | undefined; - offices?: Array | null | undefined; - managers?: Array | null | undefined; - recruiters?: Array | null | undefined; - remote_created_at?: string | null | undefined; - remote_updated_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsJobOutput$outboundSchema: z.ZodType< - UnifiedAtsJobOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsJobOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - confidential: z.nullable(z.boolean()).optional(), - departments: z.nullable(z.array(z.string())).optional(), - offices: z.nullable(z.array(z.string())).optional(), - managers: z.nullable(z.array(z.string())).optional(), - recruiters: z.nullable(z.array(z.string())).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteUpdatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index f42d718d..00000000 --- a/src/models/components/unifiedatsofferoutput.ts +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The created date of the object - */ -export type UnifiedAtsOfferOutputCreatedAt = {}; - -/** - * The modified date of the object - */ -export type UnifiedAtsOfferOutputModifiedAt = {}; - -export type UnifiedAtsOfferOutput = { - /** - * The UUID of the creator - */ - createdBy?: string | null | undefined; - /** - * The remote creation date of the offer - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The closing date of the offer - */ - closedAt?: Date | null | undefined; - /** - * The sending date of the offer - */ - sentAt?: Date | null | undefined; - /** - * The start date of the offer - */ - startDate?: Date | null | undefined; - /** - * The status of the offer - */ - status?: string | null | undefined; - /** - * The UUID of the application - */ - applicationId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the offer - */ - id?: string | null | undefined; - /** - * The remote ID of the offer in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the offer in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: UnifiedAtsOfferOutputCreatedAt | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: UnifiedAtsOfferOutputModifiedAt | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsOfferOutputCreatedAt$inboundSchema: z.ZodType< - UnifiedAtsOfferOutputCreatedAt, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedAtsOfferOutputCreatedAt$Outbound = {}; - -/** @internal */ -export const UnifiedAtsOfferOutputCreatedAt$outboundSchema: z.ZodType< - UnifiedAtsOfferOutputCreatedAt$Outbound, - z.ZodTypeDef, - UnifiedAtsOfferOutputCreatedAt -> = 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 const UnifiedAtsOfferOutputModifiedAt$inboundSchema: z.ZodType< - UnifiedAtsOfferOutputModifiedAt, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedAtsOfferOutputModifiedAt$Outbound = {}; - -/** @internal */ -export const UnifiedAtsOfferOutputModifiedAt$outboundSchema: z.ZodType< - UnifiedAtsOfferOutputModifiedAt$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 const UnifiedAtsOfferOutput$inboundSchema: z.ZodType< - UnifiedAtsOfferOutput, - z.ZodTypeDef, - unknown -> = z.object({ - created_by: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - closed_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - sent_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - status: z.nullable(z.string()).optional(), - application_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.lazy(() => UnifiedAtsOfferOutputCreatedAt$inboundSchema), - ).optional(), - modified_at: z.nullable( - z.lazy(() => UnifiedAtsOfferOutputModifiedAt$inboundSchema), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsOfferOutput$Outbound = { - created_by?: string | null | undefined; - remote_created_at?: string | null | undefined; - closed_at?: string | null | undefined; - sent_at?: string | null | undefined; - start_date?: string | null | undefined; - status?: string | null | undefined; - application_id?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: UnifiedAtsOfferOutputCreatedAt$Outbound | null | undefined; - modified_at?: UnifiedAtsOfferOutputModifiedAt$Outbound | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsOfferOutput$outboundSchema: z.ZodType< - UnifiedAtsOfferOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsOfferOutput -> = z.object({ - createdBy: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - closedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - sentAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - status: z.nullable(z.string()).optional(), - applicationId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable( - z.lazy(() => UnifiedAtsOfferOutputCreatedAt$outboundSchema), - ).optional(), - modifiedAt: z.nullable( - z.lazy(() => UnifiedAtsOfferOutputModifiedAt$outboundSchema), - ).optional(), -}).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 deleted file mode 100644 index cec9cb4c..00000000 --- a/src/models/components/unifiedatsofficeoutput.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsOfficeOutput = { - /** - * The name of the office - */ - name?: string | null | undefined; - /** - * The location of the office - */ - location?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the office - */ - id?: string | undefined; - /** - * The remote ID of the office in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the office in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsOfficeOutput$inboundSchema: z.ZodType< - UnifiedAtsOfficeOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - location: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.string().optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).transform((v) => { - return remap$(v, { - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "created_at": "createdAt", - "modified_at": "modifiedAt", - }); -}); - -/** @internal */ -export type UnifiedAtsOfficeOutput$Outbound = { - name?: string | null | undefined; - location?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsOfficeOutput$outboundSchema: z.ZodType< - UnifiedAtsOfficeOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsOfficeOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - location: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.string().optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index d74a048a..00000000 --- a/src/models/components/unifiedatsrejectreasonoutput.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsRejectreasonOutput = { - /** - * The name of the reject reason - */ - name?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the reject reason - */ - id?: string | null | undefined; - /** - * The remote ID of the reject reason in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the reject reason in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsRejectreasonOutput$inboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).transform((v) => { - return remap$(v, { - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "created_at": "createdAt", - "modified_at": "modifiedAt", - }); -}); - -/** @internal */ -export type UnifiedAtsRejectreasonOutput$Outbound = { - name?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsRejectreasonOutput$outboundSchema: z.ZodType< - UnifiedAtsRejectreasonOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsRejectreasonOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index d1b48409..00000000 --- a/src/models/components/unifiedatsscorecardoutput.ts +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsScorecardOutput = { - /** - * The overall recommendation - */ - overallRecommendation?: string | null | undefined; - /** - * The UUID of the application - */ - applicationId?: string | null | undefined; - /** - * The UUID of the interview - */ - interviewId?: string | null | undefined; - /** - * The remote creation date of the scorecard - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The submission date of the scorecard - */ - submittedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the scorecard - */ - id?: string | undefined; - /** - * The remote ID of the scorecard in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the scorecard in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsScorecardOutput$inboundSchema: z.ZodType< - UnifiedAtsScorecardOutput, - z.ZodTypeDef, - unknown -> = z.object({ - overall_recommendation: z.nullable(z.string()).optional(), - application_id: z.nullable(z.string()).optional(), - interview_id: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - submitted_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.string().optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsScorecardOutput$Outbound = { - overall_recommendation?: string | null | undefined; - application_id?: string | null | undefined; - interview_id?: string | null | undefined; - remote_created_at?: string | null | undefined; - submitted_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsScorecardOutput$outboundSchema: z.ZodType< - UnifiedAtsScorecardOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsScorecardOutput -> = z.object({ - overallRecommendation: z.nullable(z.string()).optional(), - applicationId: z.nullable(z.string()).optional(), - interviewId: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - submittedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.string().optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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 deleted file mode 100644 index 7446545a..00000000 --- a/src/models/components/unifiedatstagoutput.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsTagOutput = { - /** - * The name of the tag - */ - name?: string | null | undefined; - /** - * The UUID of the candidate - */ - idAtsCandidate?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the tag - */ - id?: string | null | undefined; - /** - * The remote ID of the tag in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the tag in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The creation date of the tag - */ - createdAt?: Date | null | undefined; - /** - * The modification date of the tag - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsTagOutput$inboundSchema: z.ZodType< - UnifiedAtsTagOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - id_ats_candidate: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - 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", - }); -}); - -/** @internal */ -export type UnifiedAtsTagOutput$Outbound = { - name?: string | null | undefined; - id_ats_candidate?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsTagOutput$outboundSchema: z.ZodType< - UnifiedAtsTagOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsTagOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - idAtsCandidate: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(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 deleted file mode 100644 index 11edb288..00000000 --- a/src/models/components/unifiedatsuseroutput.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type UnifiedAtsUserOutput = { - /** - * The first name of the user - */ - firstName?: string | null | undefined; - /** - * The last name of the user - */ - lastName?: string | null | undefined; - /** - * The email of the user - */ - email?: string | null | undefined; - /** - * Whether the user is disabled - */ - disabled?: boolean | null | undefined; - /** - * The access role of the user - */ - accessRole?: string | null | undefined; - /** - * The remote creation date of the user - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The remote modification date of the user - */ - remoteModifiedAt?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: { [k: string]: any } | null | undefined; - /** - * The UUID of the user - */ - id?: string | null | undefined; - /** - * The remote ID of the user in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the user in the context of the 3rd Party - */ - remoteData?: { [k: string]: any } | null | undefined; - /** - * The created date of the object - */ - createdAt?: Date | null | undefined; - /** - * The modified date of the object - */ - modifiedAt?: Date | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsUserOutput$inboundSchema: z.ZodType< - UnifiedAtsUserOutput, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - email: z.nullable(z.string()).optional(), - disabled: z.nullable(z.boolean()).optional(), - access_role: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.record(z.any())).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).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", - }); -}); - -/** @internal */ -export type UnifiedAtsUserOutput$Outbound = { - first_name?: string | null | undefined; - last_name?: string | null | undefined; - email?: string | null | undefined; - disabled?: boolean | null | undefined; - access_role?: string | null | undefined; - remote_created_at?: string | null | undefined; - remote_modified_at?: string | null | undefined; - field_mappings?: { [k: string]: any } | null | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedAtsUserOutput$outboundSchema: z.ZodType< - UnifiedAtsUserOutput$Outbound, - z.ZodTypeDef, - UnifiedAtsUserOutput -> = z.object({ - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - email: z.nullable(z.string()).optional(), - disabled: z.nullable(z.boolean()).optional(), - accessRole: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - remoteModifiedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - fieldMappings: z.nullable(z.record(z.any())).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).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/unifiedcrmcompanyinput.ts b/src/models/components/unifiedcrmcompanyinput.ts index c027ce6c..a40a08de 100644 --- a/src/models/components/unifiedcrmcompanyinput.ts +++ b/src/models/components/unifiedcrmcompanyinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$inboundSchema, @@ -130,3 +133,21 @@ export namespace UnifiedCrmCompanyInput$ { /** @deprecated use `UnifiedCrmCompanyInput$Outbound` instead. */ export type Outbound = UnifiedCrmCompanyInput$Outbound; } + +export function unifiedCrmCompanyInputToJSON( + unifiedCrmCompanyInput: UnifiedCrmCompanyInput, +): string { + return JSON.stringify( + UnifiedCrmCompanyInput$outboundSchema.parse(unifiedCrmCompanyInput), + ); +} + +export function unifiedCrmCompanyInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmCompanyInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmCompanyInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmcompanyoutput.ts b/src/models/components/unifiedcrmcompanyoutput.ts index e5d11b13..6aa344d2 100644 --- a/src/models/components/unifiedcrmcompanyoutput.ts +++ b/src/models/components/unifiedcrmcompanyoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$inboundSchema, @@ -118,6 +121,20 @@ export namespace CreatedAt$ { export type Outbound = CreatedAt$Outbound; } +export function createdAtToJSON(createdAt: CreatedAt): string { + return JSON.stringify(CreatedAt$outboundSchema.parse(createdAt)); +} + +export function createdAtFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreatedAt$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreatedAt' from JSON`, + ); +} + /** @internal */ export const ModifiedAt$inboundSchema: z.ZodType< ModifiedAt, @@ -148,6 +165,20 @@ export namespace ModifiedAt$ { export type Outbound = ModifiedAt$Outbound; } +export function modifiedAtToJSON(modifiedAt: ModifiedAt): string { + return JSON.stringify(ModifiedAt$outboundSchema.parse(modifiedAt)); +} + +export function modifiedAtFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ModifiedAt$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ModifiedAt' from JSON`, + ); +} + /** @internal */ export const UnifiedCrmCompanyOutput$inboundSchema: z.ZodType< UnifiedCrmCompanyOutput, @@ -243,3 +274,21 @@ export namespace UnifiedCrmCompanyOutput$ { /** @deprecated use `UnifiedCrmCompanyOutput$Outbound` instead. */ export type Outbound = UnifiedCrmCompanyOutput$Outbound; } + +export function unifiedCrmCompanyOutputToJSON( + unifiedCrmCompanyOutput: UnifiedCrmCompanyOutput, +): string { + return JSON.stringify( + UnifiedCrmCompanyOutput$outboundSchema.parse(unifiedCrmCompanyOutput), + ); +} + +export function unifiedCrmCompanyOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmCompanyOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmCompanyOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmcontactinput.ts b/src/models/components/unifiedcrmcontactinput.ts index 2914eb54..1e49a392 100644 --- a/src/models/components/unifiedcrmcontactinput.ts +++ b/src/models/components/unifiedcrmcontactinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$inboundSchema, @@ -125,3 +128,21 @@ export namespace UnifiedCrmContactInput$ { /** @deprecated use `UnifiedCrmContactInput$Outbound` instead. */ export type Outbound = UnifiedCrmContactInput$Outbound; } + +export function unifiedCrmContactInputToJSON( + unifiedCrmContactInput: UnifiedCrmContactInput, +): string { + return JSON.stringify( + UnifiedCrmContactInput$outboundSchema.parse(unifiedCrmContactInput), + ); +} + +export function unifiedCrmContactInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmContactInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmContactInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmcontactoutput.ts b/src/models/components/unifiedcrmcontactoutput.ts index cd6ddd78..414c7c4a 100644 --- a/src/models/components/unifiedcrmcontactoutput.ts +++ b/src/models/components/unifiedcrmcontactoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$inboundSchema, @@ -172,3 +175,21 @@ export namespace UnifiedCrmContactOutput$ { /** @deprecated use `UnifiedCrmContactOutput$Outbound` instead. */ export type Outbound = UnifiedCrmContactOutput$Outbound; } + +export function unifiedCrmContactOutputToJSON( + unifiedCrmContactOutput: UnifiedCrmContactOutput, +): string { + return JSON.stringify( + UnifiedCrmContactOutput$outboundSchema.parse(unifiedCrmContactOutput), + ); +} + +export function unifiedCrmContactOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmContactOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmContactOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmdealinput.ts b/src/models/components/unifiedcrmdealinput.ts index e97df882..826ca035 100644 --- a/src/models/components/unifiedcrmdealinput.ts +++ b/src/models/components/unifiedcrmdealinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmDealInput = { /** @@ -103,3 +106,21 @@ export namespace UnifiedCrmDealInput$ { /** @deprecated use `UnifiedCrmDealInput$Outbound` instead. */ export type Outbound = UnifiedCrmDealInput$Outbound; } + +export function unifiedCrmDealInputToJSON( + unifiedCrmDealInput: UnifiedCrmDealInput, +): string { + return JSON.stringify( + UnifiedCrmDealInput$outboundSchema.parse(unifiedCrmDealInput), + ); +} + +export function unifiedCrmDealInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmDealInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmDealInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmdealoutput.ts b/src/models/components/unifiedcrmdealoutput.ts index 6ab09d5e..174f6fe8 100644 --- a/src/models/components/unifiedcrmdealoutput.ts +++ b/src/models/components/unifiedcrmdealoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmDealOutput = { /** @@ -150,3 +153,21 @@ export namespace UnifiedCrmDealOutput$ { /** @deprecated use `UnifiedCrmDealOutput$Outbound` instead. */ export type Outbound = UnifiedCrmDealOutput$Outbound; } + +export function unifiedCrmDealOutputToJSON( + unifiedCrmDealOutput: UnifiedCrmDealOutput, +): string { + return JSON.stringify( + UnifiedCrmDealOutput$outboundSchema.parse(unifiedCrmDealOutput), + ); +} + +export function unifiedCrmDealOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmDealOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmDealOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmengagementinput.ts b/src/models/components/unifiedcrmengagementinput.ts index 63bd443b..e4f75098 100644 --- a/src/models/components/unifiedcrmengagementinput.ts +++ b/src/models/components/unifiedcrmengagementinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmEngagementInput = { /** @@ -130,3 +133,21 @@ export namespace UnifiedCrmEngagementInput$ { /** @deprecated use `UnifiedCrmEngagementInput$Outbound` instead. */ export type Outbound = UnifiedCrmEngagementInput$Outbound; } + +export function unifiedCrmEngagementInputToJSON( + unifiedCrmEngagementInput: UnifiedCrmEngagementInput, +): string { + return JSON.stringify( + UnifiedCrmEngagementInput$outboundSchema.parse(unifiedCrmEngagementInput), + ); +} + +export function unifiedCrmEngagementInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmEngagementInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmEngagementInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmengagementoutput.ts b/src/models/components/unifiedcrmengagementoutput.ts index 770364f2..28159846 100644 --- a/src/models/components/unifiedcrmengagementoutput.ts +++ b/src/models/components/unifiedcrmengagementoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmEngagementOutput = { /** @@ -177,3 +180,21 @@ export namespace UnifiedCrmEngagementOutput$ { /** @deprecated use `UnifiedCrmEngagementOutput$Outbound` instead. */ export type Outbound = UnifiedCrmEngagementOutput$Outbound; } + +export function unifiedCrmEngagementOutputToJSON( + unifiedCrmEngagementOutput: UnifiedCrmEngagementOutput, +): string { + return JSON.stringify( + UnifiedCrmEngagementOutput$outboundSchema.parse(unifiedCrmEngagementOutput), + ); +} + +export function unifiedCrmEngagementOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmEngagementOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmEngagementOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmnoteinput.ts b/src/models/components/unifiedcrmnoteinput.ts index c80de2f4..83bd5d31 100644 --- a/src/models/components/unifiedcrmnoteinput.ts +++ b/src/models/components/unifiedcrmnoteinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmNoteInput = { /** @@ -98,3 +101,21 @@ export namespace UnifiedCrmNoteInput$ { /** @deprecated use `UnifiedCrmNoteInput$Outbound` instead. */ export type Outbound = UnifiedCrmNoteInput$Outbound; } + +export function unifiedCrmNoteInputToJSON( + unifiedCrmNoteInput: UnifiedCrmNoteInput, +): string { + return JSON.stringify( + UnifiedCrmNoteInput$outboundSchema.parse(unifiedCrmNoteInput), + ); +} + +export function unifiedCrmNoteInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmNoteInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmNoteInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmnoteoutput.ts b/src/models/components/unifiedcrmnoteoutput.ts index e2e5baa3..6eb8027c 100644 --- a/src/models/components/unifiedcrmnoteoutput.ts +++ b/src/models/components/unifiedcrmnoteoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmNoteOutput = { /** @@ -145,3 +148,21 @@ export namespace UnifiedCrmNoteOutput$ { /** @deprecated use `UnifiedCrmNoteOutput$Outbound` instead. */ export type Outbound = UnifiedCrmNoteOutput$Outbound; } + +export function unifiedCrmNoteOutputToJSON( + unifiedCrmNoteOutput: UnifiedCrmNoteOutput, +): string { + return JSON.stringify( + UnifiedCrmNoteOutput$outboundSchema.parse(unifiedCrmNoteOutput), + ); +} + +export function unifiedCrmNoteOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmNoteOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmNoteOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmstageoutput.ts b/src/models/components/unifiedcrmstageoutput.ts index ee7ab15f..3665744c 100644 --- a/src/models/components/unifiedcrmstageoutput.ts +++ b/src/models/components/unifiedcrmstageoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The created date of the object @@ -76,6 +79,26 @@ export namespace UnifiedCrmStageOutputCreatedAt$ { export type Outbound = UnifiedCrmStageOutputCreatedAt$Outbound; } +export function unifiedCrmStageOutputCreatedAtToJSON( + unifiedCrmStageOutputCreatedAt: UnifiedCrmStageOutputCreatedAt, +): string { + return JSON.stringify( + UnifiedCrmStageOutputCreatedAt$outboundSchema.parse( + unifiedCrmStageOutputCreatedAt, + ), + ); +} + +export function unifiedCrmStageOutputCreatedAtFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmStageOutputCreatedAt$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmStageOutputCreatedAt' from JSON`, + ); +} + /** @internal */ export const UnifiedCrmStageOutputModifiedAt$inboundSchema: z.ZodType< UnifiedCrmStageOutputModifiedAt, @@ -106,6 +129,26 @@ export namespace UnifiedCrmStageOutputModifiedAt$ { export type Outbound = UnifiedCrmStageOutputModifiedAt$Outbound; } +export function unifiedCrmStageOutputModifiedAtToJSON( + unifiedCrmStageOutputModifiedAt: UnifiedCrmStageOutputModifiedAt, +): string { + return JSON.stringify( + UnifiedCrmStageOutputModifiedAt$outboundSchema.parse( + unifiedCrmStageOutputModifiedAt, + ), + ); +} + +export function unifiedCrmStageOutputModifiedAtFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmStageOutputModifiedAt$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmStageOutputModifiedAt' from JSON`, + ); +} + /** @internal */ export const UnifiedCrmStageOutput$inboundSchema: z.ZodType< UnifiedCrmStageOutput, @@ -185,3 +228,21 @@ export namespace UnifiedCrmStageOutput$ { /** @deprecated use `UnifiedCrmStageOutput$Outbound` instead. */ export type Outbound = UnifiedCrmStageOutput$Outbound; } + +export function unifiedCrmStageOutputToJSON( + unifiedCrmStageOutput: UnifiedCrmStageOutput, +): string { + return JSON.stringify( + UnifiedCrmStageOutput$outboundSchema.parse(unifiedCrmStageOutput), + ); +} + +export function unifiedCrmStageOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmStageOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmStageOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmtaskinput.ts b/src/models/components/unifiedcrmtaskinput.ts index 6e864987..bcb9eb22 100644 --- a/src/models/components/unifiedcrmtaskinput.ts +++ b/src/models/components/unifiedcrmtaskinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmTaskInput = { /** @@ -121,3 +124,21 @@ export namespace UnifiedCrmTaskInput$ { /** @deprecated use `UnifiedCrmTaskInput$Outbound` instead. */ export type Outbound = UnifiedCrmTaskInput$Outbound; } + +export function unifiedCrmTaskInputToJSON( + unifiedCrmTaskInput: UnifiedCrmTaskInput, +): string { + return JSON.stringify( + UnifiedCrmTaskInput$outboundSchema.parse(unifiedCrmTaskInput), + ); +} + +export function unifiedCrmTaskInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmTaskInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmTaskInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmtaskoutput.ts b/src/models/components/unifiedcrmtaskoutput.ts index 7f01df72..d86f2e61 100644 --- a/src/models/components/unifiedcrmtaskoutput.ts +++ b/src/models/components/unifiedcrmtaskoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmTaskOutput = { /** @@ -168,3 +171,21 @@ export namespace UnifiedCrmTaskOutput$ { /** @deprecated use `UnifiedCrmTaskOutput$Outbound` instead. */ export type Outbound = UnifiedCrmTaskOutput$Outbound; } + +export function unifiedCrmTaskOutputToJSON( + unifiedCrmTaskOutput: UnifiedCrmTaskOutput, +): string { + return JSON.stringify( + UnifiedCrmTaskOutput$outboundSchema.parse(unifiedCrmTaskOutput), + ); +} + +export function unifiedCrmTaskOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmTaskOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmTaskOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedcrmuseroutput.ts b/src/models/components/unifiedcrmuseroutput.ts index 811eb943..d61fd3cf 100644 --- a/src/models/components/unifiedcrmuseroutput.ts +++ b/src/models/components/unifiedcrmuseroutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedCrmUserOutput = { /** @@ -116,3 +119,21 @@ export namespace UnifiedCrmUserOutput$ { /** @deprecated use `UnifiedCrmUserOutput$Outbound` instead. */ export type Outbound = UnifiedCrmUserOutput$Outbound; } + +export function unifiedCrmUserOutputToJSON( + unifiedCrmUserOutput: UnifiedCrmUserOutput, +): string { + return JSON.stringify( + UnifiedCrmUserOutput$outboundSchema.parse(unifiedCrmUserOutput), + ); +} + +export function unifiedCrmUserOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedCrmUserOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedCrmUserOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommercecustomeroutput.ts b/src/models/components/unifiedecommercecustomeroutput.ts index f5e1104d..4cea25ac 100644 --- a/src/models/components/unifiedecommercecustomeroutput.ts +++ b/src/models/components/unifiedecommercecustomeroutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$inboundSchema, @@ -105,6 +108,33 @@ export namespace UnifiedEcommerceCustomerOutputFieldMappings$ { export type Outbound = UnifiedEcommerceCustomerOutputFieldMappings$Outbound; } +export function unifiedEcommerceCustomerOutputFieldMappingsToJSON( + unifiedEcommerceCustomerOutputFieldMappings: + UnifiedEcommerceCustomerOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceCustomerOutputFieldMappings$outboundSchema.parse( + unifiedEcommerceCustomerOutputFieldMappings, + ), + ); +} + +export function unifiedEcommerceCustomerOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceCustomerOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceCustomerOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceCustomerOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceCustomerOutputRemoteData$inboundSchema: z.ZodType< UnifiedEcommerceCustomerOutputRemoteData, @@ -137,6 +167,33 @@ export namespace UnifiedEcommerceCustomerOutputRemoteData$ { export type Outbound = UnifiedEcommerceCustomerOutputRemoteData$Outbound; } +export function unifiedEcommerceCustomerOutputRemoteDataToJSON( + unifiedEcommerceCustomerOutputRemoteData: + UnifiedEcommerceCustomerOutputRemoteData, +): string { + return JSON.stringify( + UnifiedEcommerceCustomerOutputRemoteData$outboundSchema.parse( + unifiedEcommerceCustomerOutputRemoteData, + ), + ); +} + +export function unifiedEcommerceCustomerOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceCustomerOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceCustomerOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceCustomerOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceCustomerOutput$inboundSchema: z.ZodType< UnifiedEcommerceCustomerOutput, @@ -238,3 +295,23 @@ export namespace UnifiedEcommerceCustomerOutput$ { /** @deprecated use `UnifiedEcommerceCustomerOutput$Outbound` instead. */ export type Outbound = UnifiedEcommerceCustomerOutput$Outbound; } + +export function unifiedEcommerceCustomerOutputToJSON( + unifiedEcommerceCustomerOutput: UnifiedEcommerceCustomerOutput, +): string { + return JSON.stringify( + UnifiedEcommerceCustomerOutput$outboundSchema.parse( + unifiedEcommerceCustomerOutput, + ), + ); +} + +export function unifiedEcommerceCustomerOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceCustomerOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceCustomerOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommercefulfillmentoutput.ts b/src/models/components/unifiedecommercefulfillmentoutput.ts index 0a6d3c61..ab8abf0e 100644 --- a/src/models/components/unifiedecommercefulfillmentoutput.ts +++ b/src/models/components/unifiedecommercefulfillmentoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The items in the fulfilment @@ -97,6 +100,20 @@ export namespace Items$ { export type Outbound = Items$Outbound; } +export function itemsToJSON(items: Items): string { + return JSON.stringify(Items$outboundSchema.parse(items)); +} + +export function itemsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Items$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Items' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceFulfillmentOutputFieldMappings$inboundSchema: z.ZodType< @@ -132,6 +149,33 @@ export namespace UnifiedEcommerceFulfillmentOutputFieldMappings$ { UnifiedEcommerceFulfillmentOutputFieldMappings$Outbound; } +export function unifiedEcommerceFulfillmentOutputFieldMappingsToJSON( + unifiedEcommerceFulfillmentOutputFieldMappings: + UnifiedEcommerceFulfillmentOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceFulfillmentOutputFieldMappings$outboundSchema.parse( + unifiedEcommerceFulfillmentOutputFieldMappings, + ), + ); +} + +export function unifiedEcommerceFulfillmentOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceFulfillmentOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceFulfillmentOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceFulfillmentOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceFulfillmentOutputRemoteData$inboundSchema: z.ZodType< @@ -166,6 +210,33 @@ export namespace UnifiedEcommerceFulfillmentOutputRemoteData$ { export type Outbound = UnifiedEcommerceFulfillmentOutputRemoteData$Outbound; } +export function unifiedEcommerceFulfillmentOutputRemoteDataToJSON( + unifiedEcommerceFulfillmentOutputRemoteData: + UnifiedEcommerceFulfillmentOutputRemoteData, +): string { + return JSON.stringify( + UnifiedEcommerceFulfillmentOutputRemoteData$outboundSchema.parse( + unifiedEcommerceFulfillmentOutputRemoteData, + ), + ); +} + +export function unifiedEcommerceFulfillmentOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceFulfillmentOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceFulfillmentOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceFulfillmentOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceFulfillmentOutput$inboundSchema: z.ZodType< UnifiedEcommerceFulfillmentOutput, @@ -268,3 +339,23 @@ export namespace UnifiedEcommerceFulfillmentOutput$ { /** @deprecated use `UnifiedEcommerceFulfillmentOutput$Outbound` instead. */ export type Outbound = UnifiedEcommerceFulfillmentOutput$Outbound; } + +export function unifiedEcommerceFulfillmentOutputToJSON( + unifiedEcommerceFulfillmentOutput: UnifiedEcommerceFulfillmentOutput, +): string { + return JSON.stringify( + UnifiedEcommerceFulfillmentOutput$outboundSchema.parse( + unifiedEcommerceFulfillmentOutput, + ), + ); +} + +export function unifiedEcommerceFulfillmentOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceFulfillmentOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceFulfillmentOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommerceorderinput.ts b/src/models/components/unifiedecommerceorderinput.ts index f9562f61..925e80e0 100644 --- a/src/models/components/unifiedecommerceorderinput.ts +++ b/src/models/components/unifiedecommerceorderinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -99,6 +102,33 @@ export namespace UnifiedEcommerceOrderInputFieldMappings$ { export type Outbound = UnifiedEcommerceOrderInputFieldMappings$Outbound; } +export function unifiedEcommerceOrderInputFieldMappingsToJSON( + unifiedEcommerceOrderInputFieldMappings: + UnifiedEcommerceOrderInputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceOrderInputFieldMappings$outboundSchema.parse( + unifiedEcommerceOrderInputFieldMappings, + ), + ); +} + +export function unifiedEcommerceOrderInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceOrderInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceOrderInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceOrderInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceOrderInput$inboundSchema: z.ZodType< UnifiedEcommerceOrderInput, @@ -200,3 +230,21 @@ export namespace UnifiedEcommerceOrderInput$ { /** @deprecated use `UnifiedEcommerceOrderInput$Outbound` instead. */ export type Outbound = UnifiedEcommerceOrderInput$Outbound; } + +export function unifiedEcommerceOrderInputToJSON( + unifiedEcommerceOrderInput: UnifiedEcommerceOrderInput, +): string { + return JSON.stringify( + UnifiedEcommerceOrderInput$outboundSchema.parse(unifiedEcommerceOrderInput), + ); +} + +export function unifiedEcommerceOrderInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceOrderInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceOrderInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommerceorderoutput.ts b/src/models/components/unifiedecommerceorderoutput.ts index 84ae4f22..96203759 100644 --- a/src/models/components/unifiedecommerceorderoutput.ts +++ b/src/models/components/unifiedecommerceorderoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LineItem, LineItem$inboundSchema, @@ -124,6 +127,33 @@ export namespace UnifiedEcommerceOrderOutputFieldMappings$ { export type Outbound = UnifiedEcommerceOrderOutputFieldMappings$Outbound; } +export function unifiedEcommerceOrderOutputFieldMappingsToJSON( + unifiedEcommerceOrderOutputFieldMappings: + UnifiedEcommerceOrderOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceOrderOutputFieldMappings$outboundSchema.parse( + unifiedEcommerceOrderOutputFieldMappings, + ), + ); +} + +export function unifiedEcommerceOrderOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceOrderOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceOrderOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceOrderOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceOrderOutputRemoteData$inboundSchema: z.ZodType< UnifiedEcommerceOrderOutputRemoteData, @@ -156,6 +186,27 @@ export namespace UnifiedEcommerceOrderOutputRemoteData$ { export type Outbound = UnifiedEcommerceOrderOutputRemoteData$Outbound; } +export function unifiedEcommerceOrderOutputRemoteDataToJSON( + unifiedEcommerceOrderOutputRemoteData: UnifiedEcommerceOrderOutputRemoteData, +): string { + return JSON.stringify( + UnifiedEcommerceOrderOutputRemoteData$outboundSchema.parse( + unifiedEcommerceOrderOutputRemoteData, + ), + ); +} + +export function unifiedEcommerceOrderOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceOrderOutputRemoteData$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceOrderOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceOrderOutput$inboundSchema: z.ZodType< UnifiedEcommerceOrderOutput, @@ -287,3 +338,23 @@ export namespace UnifiedEcommerceOrderOutput$ { /** @deprecated use `UnifiedEcommerceOrderOutput$Outbound` instead. */ export type Outbound = UnifiedEcommerceOrderOutput$Outbound; } + +export function unifiedEcommerceOrderOutputToJSON( + unifiedEcommerceOrderOutput: UnifiedEcommerceOrderOutput, +): string { + return JSON.stringify( + UnifiedEcommerceOrderOutput$outboundSchema.parse( + unifiedEcommerceOrderOutput, + ), + ); +} + +export function unifiedEcommerceOrderOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceOrderOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceOrderOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommerceproductinput.ts b/src/models/components/unifiedecommerceproductinput.ts index ddacc775..94c6ae88 100644 --- a/src/models/components/unifiedecommerceproductinput.ts +++ b/src/models/components/unifiedecommerceproductinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Variant, Variant$inboundSchema, @@ -88,6 +91,33 @@ export namespace UnifiedEcommerceProductInputFieldMappings$ { export type Outbound = UnifiedEcommerceProductInputFieldMappings$Outbound; } +export function unifiedEcommerceProductInputFieldMappingsToJSON( + unifiedEcommerceProductInputFieldMappings: + UnifiedEcommerceProductInputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceProductInputFieldMappings$outboundSchema.parse( + unifiedEcommerceProductInputFieldMappings, + ), + ); +} + +export function unifiedEcommerceProductInputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceProductInputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceProductInputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceProductInputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceProductInput$inboundSchema: z.ZodType< UnifiedEcommerceProductInput, @@ -170,3 +200,23 @@ export namespace UnifiedEcommerceProductInput$ { /** @deprecated use `UnifiedEcommerceProductInput$Outbound` instead. */ export type Outbound = UnifiedEcommerceProductInput$Outbound; } + +export function unifiedEcommerceProductInputToJSON( + unifiedEcommerceProductInput: UnifiedEcommerceProductInput, +): string { + return JSON.stringify( + UnifiedEcommerceProductInput$outboundSchema.parse( + unifiedEcommerceProductInput, + ), + ); +} + +export function unifiedEcommerceProductInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceProductInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceProductInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedecommerceproductoutput.ts b/src/models/components/unifiedecommerceproductoutput.ts index 80b390bf..f984df17 100644 --- a/src/models/components/unifiedecommerceproductoutput.ts +++ b/src/models/components/unifiedecommerceproductoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Variant, Variant$inboundSchema, @@ -111,6 +114,33 @@ export namespace UnifiedEcommerceProductOutputFieldMappings$ { export type Outbound = UnifiedEcommerceProductOutputFieldMappings$Outbound; } +export function unifiedEcommerceProductOutputFieldMappingsToJSON( + unifiedEcommerceProductOutputFieldMappings: + UnifiedEcommerceProductOutputFieldMappings, +): string { + return JSON.stringify( + UnifiedEcommerceProductOutputFieldMappings$outboundSchema.parse( + unifiedEcommerceProductOutputFieldMappings, + ), + ); +} + +export function unifiedEcommerceProductOutputFieldMappingsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceProductOutputFieldMappings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceProductOutputFieldMappings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceProductOutputFieldMappings' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceProductOutputRemoteData$inboundSchema: z.ZodType< UnifiedEcommerceProductOutputRemoteData, @@ -143,6 +173,33 @@ export namespace UnifiedEcommerceProductOutputRemoteData$ { export type Outbound = UnifiedEcommerceProductOutputRemoteData$Outbound; } +export function unifiedEcommerceProductOutputRemoteDataToJSON( + unifiedEcommerceProductOutputRemoteData: + UnifiedEcommerceProductOutputRemoteData, +): string { + return JSON.stringify( + UnifiedEcommerceProductOutputRemoteData$outboundSchema.parse( + unifiedEcommerceProductOutputRemoteData, + ), + ); +} + +export function unifiedEcommerceProductOutputRemoteDataFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedEcommerceProductOutputRemoteData, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedEcommerceProductOutputRemoteData$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedEcommerceProductOutputRemoteData' from JSON`, + ); +} + /** @internal */ export const UnifiedEcommerceProductOutput$inboundSchema: z.ZodType< UnifiedEcommerceProductOutput, @@ -255,3 +312,23 @@ export namespace UnifiedEcommerceProductOutput$ { /** @deprecated use `UnifiedEcommerceProductOutput$Outbound` instead. */ export type Outbound = UnifiedEcommerceProductOutput$Outbound; } + +export function unifiedEcommerceProductOutputToJSON( + unifiedEcommerceProductOutput: UnifiedEcommerceProductOutput, +): string { + return JSON.stringify( + UnifiedEcommerceProductOutput$outboundSchema.parse( + unifiedEcommerceProductOutput, + ), + ); +} + +export function unifiedEcommerceProductOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedEcommerceProductOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedEcommerceProductOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestoragefileinput.ts b/src/models/components/unifiedfilestoragefileinput.ts index cca0a758..a7751926 100644 --- a/src/models/components/unifiedfilestoragefileinput.ts +++ b/src/models/components/unifiedfilestoragefileinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedFilestorageFileInput = { /** @@ -112,3 +115,23 @@ export namespace UnifiedFilestorageFileInput$ { /** @deprecated use `UnifiedFilestorageFileInput$Outbound` instead. */ export type Outbound = UnifiedFilestorageFileInput$Outbound; } + +export function unifiedFilestorageFileInputToJSON( + unifiedFilestorageFileInput: UnifiedFilestorageFileInput, +): string { + return JSON.stringify( + UnifiedFilestorageFileInput$outboundSchema.parse( + unifiedFilestorageFileInput, + ), + ); +} + +export function unifiedFilestorageFileInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageFileInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageFileInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestoragefileoutput.ts b/src/models/components/unifiedfilestoragefileoutput.ts index 4ccbf899..b26696fc 100644 --- a/src/models/components/unifiedfilestoragefileoutput.ts +++ b/src/models/components/unifiedfilestoragefileoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedFilestorageFileOutput = { /** @@ -159,3 +162,23 @@ export namespace UnifiedFilestorageFileOutput$ { /** @deprecated use `UnifiedFilestorageFileOutput$Outbound` instead. */ export type Outbound = UnifiedFilestorageFileOutput$Outbound; } + +export function unifiedFilestorageFileOutputToJSON( + unifiedFilestorageFileOutput: UnifiedFilestorageFileOutput, +): string { + return JSON.stringify( + UnifiedFilestorageFileOutput$outboundSchema.parse( + unifiedFilestorageFileOutput, + ), + ); +} + +export function unifiedFilestorageFileOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageFileOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageFileOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestoragefolderinput.ts b/src/models/components/unifiedfilestoragefolderinput.ts index 751c18a8..a33a6087 100644 --- a/src/models/components/unifiedfilestoragefolderinput.ts +++ b/src/models/components/unifiedfilestoragefolderinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedFilestorageFolderInput = { /** @@ -119,3 +122,23 @@ export namespace UnifiedFilestorageFolderInput$ { /** @deprecated use `UnifiedFilestorageFolderInput$Outbound` instead. */ export type Outbound = UnifiedFilestorageFolderInput$Outbound; } + +export function unifiedFilestorageFolderInputToJSON( + unifiedFilestorageFolderInput: UnifiedFilestorageFolderInput, +): string { + return JSON.stringify( + UnifiedFilestorageFolderInput$outboundSchema.parse( + unifiedFilestorageFolderInput, + ), + ); +} + +export function unifiedFilestorageFolderInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageFolderInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageFolderInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestoragefolderoutput.ts b/src/models/components/unifiedfilestoragefolderoutput.ts index 151dbb5b..ba428e5f 100644 --- a/src/models/components/unifiedfilestoragefolderoutput.ts +++ b/src/models/components/unifiedfilestoragefolderoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedFilestorageFolderOutput = { /** @@ -166,3 +169,23 @@ export namespace UnifiedFilestorageFolderOutput$ { /** @deprecated use `UnifiedFilestorageFolderOutput$Outbound` instead. */ export type Outbound = UnifiedFilestorageFolderOutput$Outbound; } + +export function unifiedFilestorageFolderOutputToJSON( + unifiedFilestorageFolderOutput: UnifiedFilestorageFolderOutput, +): string { + return JSON.stringify( + UnifiedFilestorageFolderOutput$outboundSchema.parse( + unifiedFilestorageFolderOutput, + ), + ); +} + +export function unifiedFilestorageFolderOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageFolderOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageFolderOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestoragegroupoutput.ts b/src/models/components/unifiedfilestoragegroupoutput.ts index cc5d62b2..2965544c 100644 --- a/src/models/components/unifiedfilestoragegroupoutput.ts +++ b/src/models/components/unifiedfilestoragegroupoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedFilestorageUserOutput, UnifiedFilestorageUserOutput$inboundSchema, @@ -79,6 +82,20 @@ export namespace Users$ { export type Outbound = Users$Outbound; } +export function usersToJSON(users: Users): string { + return JSON.stringify(Users$outboundSchema.parse(users)); +} + +export function usersFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Users$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Users' from JSON`, + ); +} + /** @internal */ export const UnifiedFilestorageGroupOutput$inboundSchema: z.ZodType< UnifiedFilestorageGroupOutput, @@ -164,3 +181,23 @@ export namespace UnifiedFilestorageGroupOutput$ { /** @deprecated use `UnifiedFilestorageGroupOutput$Outbound` instead. */ export type Outbound = UnifiedFilestorageGroupOutput$Outbound; } + +export function unifiedFilestorageGroupOutputToJSON( + unifiedFilestorageGroupOutput: UnifiedFilestorageGroupOutput, +): string { + return JSON.stringify( + UnifiedFilestorageGroupOutput$outboundSchema.parse( + unifiedFilestorageGroupOutput, + ), + ); +} + +export function unifiedFilestorageGroupOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageGroupOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageGroupOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedfilestorageuseroutput.ts b/src/models/components/unifiedfilestorageuseroutput.ts index 067c3dc8..640933b8 100644 --- a/src/models/components/unifiedfilestorageuseroutput.ts +++ b/src/models/components/unifiedfilestorageuseroutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedFilestorageUserOutput = { /** @@ -125,3 +128,23 @@ export namespace UnifiedFilestorageUserOutput$ { /** @deprecated use `UnifiedFilestorageUserOutput$Outbound` instead. */ export type Outbound = UnifiedFilestorageUserOutput$Outbound; } + +export function unifiedFilestorageUserOutputToJSON( + unifiedFilestorageUserOutput: UnifiedFilestorageUserOutput, +): string { + return JSON.stringify( + UnifiedFilestorageUserOutput$outboundSchema.parse( + unifiedFilestorageUserOutput, + ), + ); +} + +export function unifiedFilestorageUserOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedFilestorageUserOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedFilestorageUserOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedhrisbankinfooutput.ts b/src/models/components/unifiedhrisbankinfooutput.ts deleted file mode 100644 index 0e5ca295..00000000 --- a/src/models/components/unifiedhrisbankinfooutput.ts +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type FieldMappings = {}; - -/** - * The remote data of the bank info in the context of the 3rd Party - */ -export type RemoteData = {}; - -export type UnifiedHrisBankinfoOutput = { - /** - * The type of the bank account - */ - accountType?: string | null | undefined; - /** - * The name of the bank - */ - bankName?: string | null | undefined; - /** - * The account number - */ - accountNumber?: string | null | undefined; - /** - * The routing number of the bank - */ - routingNumber?: string | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: FieldMappings | null | undefined; - /** - * The UUID of the bank info record - */ - id: string | null; - /** - * The remote ID of the bank info in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the bank info in the context of the 3rd Party - */ - remoteData?: RemoteData | null | undefined; - /** - * The date when the bank info was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the bank info record - */ - createdAt: Date | null; - /** - * The last modified date of the bank info record - */ - modifiedAt: Date | null; - /** - * Indicates if the bank info was deleted in the remote system - */ - remoteWasDeleted: boolean | null; -}; - -/** @internal */ -export const FieldMappings$inboundSchema: z.ZodType< - FieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type FieldMappings$Outbound = {}; - -/** @internal */ -export const FieldMappings$outboundSchema: z.ZodType< - FieldMappings$Outbound, - z.ZodTypeDef, - FieldMappings -> = 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 const RemoteData$inboundSchema: z.ZodType< - RemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type RemoteData$Outbound = {}; - -/** @internal */ -export const RemoteData$outboundSchema: z.ZodType< - RemoteData$Outbound, - z.ZodTypeDef, - RemoteData -> = 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 const UnifiedHrisBankinfoOutput$inboundSchema: z.ZodType< - UnifiedHrisBankinfoOutput, - z.ZodTypeDef, - unknown -> = z.object({ - account_type: z.nullable(z.string()).optional(), - bank_name: z.nullable(z.string()).optional(), - account_number: z.nullable(z.string()).optional(), - routing_number: z.nullable(z.string()).optional(), - employee_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable(z.lazy(() => FieldMappings$inboundSchema)) - .optional(), - id: z.nullable(z.string()), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable(z.lazy(() => RemoteData$inboundSchema)).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - remote_was_deleted: z.nullable(z.boolean()), -}).transform((v) => { - return remap$(v, { - "account_type": "accountType", - "bank_name": "bankName", - "account_number": "accountNumber", - "routing_number": "routingNumber", - "employee_id": "employeeId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisBankinfoOutput$Outbound = { - account_type?: string | null | undefined; - bank_name?: string | null | undefined; - account_number?: string | null | undefined; - routing_number?: string | null | undefined; - employee_id?: string | null | undefined; - field_mappings?: FieldMappings$Outbound | null | undefined; - id: string | null; - remote_id?: string | null | undefined; - remote_data?: RemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at: string | null; - modified_at: string | null; - remote_was_deleted: boolean | null; -}; - -/** @internal */ -export const UnifiedHrisBankinfoOutput$outboundSchema: z.ZodType< - UnifiedHrisBankinfoOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisBankinfoOutput -> = z.object({ - accountType: z.nullable(z.string()).optional(), - bankName: z.nullable(z.string()).optional(), - accountNumber: z.nullable(z.string()).optional(), - routingNumber: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable(z.lazy(() => FieldMappings$outboundSchema)) - .optional(), - id: z.nullable(z.string()), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable(z.lazy(() => RemoteData$outboundSchema)).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())), - remoteWasDeleted: z.nullable(z.boolean()), -}).transform((v) => { - return remap$(v, { - accountType: "account_type", - bankName: "bank_name", - accountNumber: "account_number", - routingNumber: "routing_number", - employeeId: "employee_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index cd8bba29..00000000 --- a/src/models/components/unifiedhrisbenefitoutput.ts +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisBenefitOutputFieldMappings = {}; - -/** - * The remote data of the benefit in the context of the 3rd Party - */ -export type UnifiedHrisBenefitOutputRemoteData = {}; - -export type UnifiedHrisBenefitOutput = { - /** - * The name of the benefit provider - */ - providerName?: string | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The employee contribution amount - */ - employeeContribution?: number | null | undefined; - /** - * The company contribution amount - */ - companyContribution?: number | null | undefined; - /** - * The start date of the benefit - */ - startDate?: Date | null | undefined; - /** - * The end date of the benefit - */ - endDate?: Date | null | undefined; - /** - * The UUID of the associated employer benefit - */ - employerBenefitId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisBenefitOutputFieldMappings | null | undefined; - /** - * The UUID of the benefit record - */ - id?: string | null | undefined; - /** - * The remote ID of the benefit in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the benefit in the context of the 3rd Party - */ - remoteData?: UnifiedHrisBenefitOutputRemoteData | null | undefined; - /** - * The date when the benefit was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the benefit record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the benefit record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the benefit was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisBenefitOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisBenefitOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisBenefitOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisBenefitOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisBenefitOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisBenefitOutputFieldMappings -> = 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 UnifiedHrisBenefitOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisBenefitOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisBenefitOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisBenefitOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisBenefitOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisBenefitOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisBenefitOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisBenefitOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisBenefitOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisBenefitOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisBenefitOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisBenefitOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisBenefitOutputRemoteData -> = 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 UnifiedHrisBenefitOutputRemoteData$ { - /** @deprecated use `UnifiedHrisBenefitOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisBenefitOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisBenefitOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisBenefitOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisBenefitOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisBenefitOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisBenefitOutput$inboundSchema: z.ZodType< - UnifiedHrisBenefitOutput, - z.ZodTypeDef, - unknown -> = z.object({ - provider_name: z.nullable(z.string()).optional(), - employee_id: z.nullable(z.string()).optional(), - employee_contribution: z.nullable(z.number()).optional(), - company_contribution: z.nullable(z.number()).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employer_benefit_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisBenefitOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisBenefitOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "provider_name": "providerName", - "employee_id": "employeeId", - "employee_contribution": "employeeContribution", - "company_contribution": "companyContribution", - "start_date": "startDate", - "end_date": "endDate", - "employer_benefit_id": "employerBenefitId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisBenefitOutput$Outbound = { - provider_name?: string | null | undefined; - employee_id?: string | null | undefined; - employee_contribution?: number | null | undefined; - company_contribution?: number | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - employer_benefit_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisBenefitOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisBenefitOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisBenefitOutput$outboundSchema: z.ZodType< - UnifiedHrisBenefitOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisBenefitOutput -> = z.object({ - providerName: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - employeeContribution: z.nullable(z.number()).optional(), - companyContribution: z.nullable(z.number()).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - employerBenefitId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisBenefitOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisBenefitOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - providerName: "provider_name", - employeeId: "employee_id", - employeeContribution: "employee_contribution", - companyContribution: "company_contribution", - startDate: "start_date", - endDate: "end_date", - employerBenefitId: "employer_benefit_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 537aa05d..00000000 --- a/src/models/components/unifiedhriscompanyoutput.ts +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisCompanyOutputFieldMappings = {}; - -/** - * The remote data of the company in the context of the 3rd Party - */ -export type UnifiedHrisCompanyOutputRemoteData = {}; - -export type UnifiedHrisCompanyOutput = { - /** - * The legal name of the company - */ - legalName?: string | null | undefined; - /** - * UUIDs of the of the Location associated with the company - */ - locations?: Array | null | undefined; - /** - * The display name of the company - */ - displayName?: string | null | undefined; - /** - * The Employer Identification Numbers (EINs) of the company - */ - eins?: Array | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisCompanyOutputFieldMappings | null | undefined; - /** - * The UUID of the company record - */ - id?: string | null | undefined; - /** - * The remote ID of the company in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the company in the context of the 3rd Party - */ - remoteData?: UnifiedHrisCompanyOutputRemoteData | null | undefined; - /** - * The date when the company was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the company record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the company record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the company was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisCompanyOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisCompanyOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisCompanyOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisCompanyOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisCompanyOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisCompanyOutputFieldMappings -> = 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 UnifiedHrisCompanyOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisCompanyOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisCompanyOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisCompanyOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisCompanyOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisCompanyOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisCompanyOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisCompanyOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisCompanyOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisCompanyOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisCompanyOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisCompanyOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisCompanyOutputRemoteData -> = 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 UnifiedHrisCompanyOutputRemoteData$ { - /** @deprecated use `UnifiedHrisCompanyOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisCompanyOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisCompanyOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisCompanyOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisCompanyOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisCompanyOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisCompanyOutput$inboundSchema: z.ZodType< - UnifiedHrisCompanyOutput, - z.ZodTypeDef, - unknown -> = z.object({ - legal_name: z.nullable(z.string()).optional(), - locations: z.nullable(z.array(z.string())).optional(), - display_name: z.nullable(z.string()).optional(), - eins: z.nullable(z.array(z.string())).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisCompanyOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisCompanyOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "legal_name": "legalName", - "display_name": "displayName", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisCompanyOutput$Outbound = { - legal_name?: string | null | undefined; - locations?: Array | null | undefined; - display_name?: string | null | undefined; - eins?: Array | null | undefined; - field_mappings?: - | UnifiedHrisCompanyOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisCompanyOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisCompanyOutput$outboundSchema: z.ZodType< - UnifiedHrisCompanyOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisCompanyOutput -> = z.object({ - legalName: z.nullable(z.string()).optional(), - locations: z.nullable(z.array(z.string())).optional(), - displayName: z.nullable(z.string()).optional(), - eins: z.nullable(z.array(z.string())).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisCompanyOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisCompanyOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - legalName: "legal_name", - displayName: "display_name", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index aaccd6f3..00000000 --- a/src/models/components/unifiedhrisdependentoutput.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisDependentOutputFieldMappings = {}; - -/** - * The remote data of the dependent in the context of the 3rd Party - */ -export type UnifiedHrisDependentOutputRemoteData = {}; - -export type UnifiedHrisDependentOutput = { - /** - * The first name of the dependent - */ - firstName?: string | null | undefined; - /** - * The last name of the dependent - */ - lastName?: string | null | undefined; - /** - * The middle name of the dependent - */ - middleName?: string | null | undefined; - /** - * The relationship of the dependent to the employee - */ - relationship?: string | null | undefined; - /** - * The date of birth of the dependent - */ - dateOfBirth?: Date | null | undefined; - /** - * The gender of the dependent - */ - gender?: string | null | undefined; - /** - * The phone number of the dependent - */ - phoneNumber?: string | null | undefined; - /** - * The UUID of the home location - */ - homeLocation?: string | null | undefined; - /** - * Indicates if the dependent is a student - */ - isStudent?: boolean | null | undefined; - /** - * The Social Security Number of the dependent - */ - ssn?: string | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisDependentOutputFieldMappings | null | undefined; - /** - * The UUID of the dependent record - */ - id?: string | null | undefined; - /** - * The remote ID of the dependent in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the dependent in the context of the 3rd Party - */ - remoteData?: UnifiedHrisDependentOutputRemoteData | null | undefined; - /** - * The date when the dependent was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the dependent record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the dependent record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the dependent was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisDependentOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisDependentOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisDependentOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisDependentOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisDependentOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisDependentOutputFieldMappings -> = 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 UnifiedHrisDependentOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisDependentOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisDependentOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisDependentOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisDependentOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisDependentOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisDependentOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisDependentOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisDependentOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisDependentOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisDependentOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisDependentOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisDependentOutputRemoteData -> = 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 UnifiedHrisDependentOutputRemoteData$ { - /** @deprecated use `UnifiedHrisDependentOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisDependentOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisDependentOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisDependentOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisDependentOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisDependentOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisDependentOutput$inboundSchema: z.ZodType< - UnifiedHrisDependentOutput, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - relationship: z.nullable(z.string()).optional(), - date_of_birth: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - gender: z.nullable(z.string()).optional(), - phone_number: z.nullable(z.string()).optional(), - home_location: z.nullable(z.string()).optional(), - is_student: z.nullable(z.boolean()).optional(), - ssn: z.nullable(z.string()).optional(), - employee_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisDependentOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisDependentOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "middle_name": "middleName", - "date_of_birth": "dateOfBirth", - "phone_number": "phoneNumber", - "home_location": "homeLocation", - "is_student": "isStudent", - "employee_id": "employeeId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisDependentOutput$Outbound = { - first_name?: string | null | undefined; - last_name?: string | null | undefined; - middle_name?: string | null | undefined; - relationship?: string | null | undefined; - date_of_birth?: string | null | undefined; - gender?: string | null | undefined; - phone_number?: string | null | undefined; - home_location?: string | null | undefined; - is_student?: boolean | null | undefined; - ssn?: string | null | undefined; - employee_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisDependentOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisDependentOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisDependentOutput$outboundSchema: z.ZodType< - UnifiedHrisDependentOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisDependentOutput -> = z.object({ - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - relationship: z.nullable(z.string()).optional(), - dateOfBirth: z.nullable(z.date().transform(v => v.toISOString())).optional(), - gender: z.nullable(z.string()).optional(), - phoneNumber: z.nullable(z.string()).optional(), - homeLocation: z.nullable(z.string()).optional(), - isStudent: z.nullable(z.boolean()).optional(), - ssn: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisDependentOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisDependentOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - middleName: "middle_name", - dateOfBirth: "date_of_birth", - phoneNumber: "phone_number", - homeLocation: "home_location", - isStudent: "is_student", - employeeId: "employee_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index d28373cf..00000000 --- a/src/models/components/unifiedhrisemployeeinput.ts +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisEmployeeInputFieldMappings = {}; - -export type UnifiedHrisEmployeeInput = { - /** - * The groups the employee belongs to - */ - groups?: Array | null | undefined; - /** - * UUIDs of the of the Location associated with the company - */ - locations?: Array | null | undefined; - /** - * The employee number - */ - employeeNumber?: string | null | undefined; - /** - * The UUID of the associated company - */ - companyId?: string | null | undefined; - /** - * The first name of the employee - */ - firstName?: string | null | undefined; - /** - * The last name of the employee - */ - lastName?: string | null | undefined; - /** - * The preferred name of the employee - */ - preferredName?: string | null | undefined; - /** - * The full display name of the employee - */ - displayFullName?: string | null | undefined; - /** - * The username of the employee - */ - username?: string | null | undefined; - /** - * The work email of the employee - */ - workEmail?: string | null | undefined; - /** - * The personal email of the employee - */ - personalEmail?: string | null | undefined; - /** - * The mobile phone number of the employee - */ - mobilePhoneNumber?: string | null | undefined; - /** - * The employments of the employee - */ - employments?: Array | null | undefined; - /** - * The Social Security Number of the employee - */ - ssn?: string | null | undefined; - /** - * The gender of the employee - */ - gender?: string | null | undefined; - /** - * The ethnicity of the employee - */ - ethnicity?: string | null | undefined; - /** - * The marital status of the employee - */ - maritalStatus?: string | null | undefined; - /** - * The date of birth of the employee - */ - dateOfBirth?: Date | null | undefined; - /** - * The start date of the employee - */ - startDate?: Date | null | undefined; - /** - * The employment status of the employee - */ - employmentStatus?: string | null | undefined; - /** - * The termination date of the employee - */ - terminationDate?: Date | null | undefined; - /** - * The URL of the employee's avatar - */ - avatarUrl?: string | null | undefined; - /** - * UUID of the manager (employee) of the employee - */ - managerId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisEmployeeInputFieldMappings | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeeInputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisEmployeeInputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployeeInputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployeeInputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisEmployeeInputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeeInputFieldMappings -> = 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 UnifiedHrisEmployeeInputFieldMappings$ { - /** @deprecated use `UnifiedHrisEmployeeInputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployeeInputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisEmployeeInputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployeeInputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisEmployeeInputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployeeInputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployeeInput$inboundSchema: z.ZodType< - UnifiedHrisEmployeeInput, - z.ZodTypeDef, - unknown -> = z.object({ - groups: z.nullable(z.array(z.string())).optional(), - locations: z.nullable(z.array(z.string())).optional(), - employee_number: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - preferred_name: z.nullable(z.string()).optional(), - display_full_name: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - work_email: z.nullable(z.string()).optional(), - personal_email: z.nullable(z.string()).optional(), - mobile_phone_number: z.nullable(z.string()).optional(), - employments: z.nullable(z.array(z.string())).optional(), - ssn: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - ethnicity: z.nullable(z.string()).optional(), - marital_status: z.nullable(z.string()).optional(), - date_of_birth: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employment_status: z.nullable(z.string()).optional(), - termination_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - avatar_url: z.nullable(z.string()).optional(), - manager_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisEmployeeInputFieldMappings$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "employee_number": "employeeNumber", - "company_id": "companyId", - "first_name": "firstName", - "last_name": "lastName", - "preferred_name": "preferredName", - "display_full_name": "displayFullName", - "work_email": "workEmail", - "personal_email": "personalEmail", - "mobile_phone_number": "mobilePhoneNumber", - "marital_status": "maritalStatus", - "date_of_birth": "dateOfBirth", - "start_date": "startDate", - "employment_status": "employmentStatus", - "termination_date": "terminationDate", - "avatar_url": "avatarUrl", - "manager_id": "managerId", - "field_mappings": "fieldMappings", - }); -}); - -/** @internal */ -export type UnifiedHrisEmployeeInput$Outbound = { - groups?: Array | null | undefined; - locations?: Array | null | undefined; - employee_number?: string | null | undefined; - company_id?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - preferred_name?: string | null | undefined; - display_full_name?: string | null | undefined; - username?: string | null | undefined; - work_email?: string | null | undefined; - personal_email?: string | null | undefined; - mobile_phone_number?: string | null | undefined; - employments?: Array | null | undefined; - ssn?: string | null | undefined; - gender?: string | null | undefined; - ethnicity?: string | null | undefined; - marital_status?: string | null | undefined; - date_of_birth?: string | null | undefined; - start_date?: string | null | undefined; - employment_status?: string | null | undefined; - termination_date?: string | null | undefined; - avatar_url?: string | null | undefined; - manager_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisEmployeeInputFieldMappings$Outbound - | null - | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeeInput$outboundSchema: z.ZodType< - UnifiedHrisEmployeeInput$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeeInput -> = z.object({ - groups: z.nullable(z.array(z.string())).optional(), - locations: z.nullable(z.array(z.string())).optional(), - employeeNumber: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - preferredName: z.nullable(z.string()).optional(), - displayFullName: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - workEmail: z.nullable(z.string()).optional(), - personalEmail: z.nullable(z.string()).optional(), - mobilePhoneNumber: z.nullable(z.string()).optional(), - employments: z.nullable(z.array(z.string())).optional(), - ssn: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - ethnicity: z.nullable(z.string()).optional(), - maritalStatus: z.nullable(z.string()).optional(), - dateOfBirth: z.nullable(z.date().transform(v => v.toISOString())).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - employmentStatus: z.nullable(z.string()).optional(), - terminationDate: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - avatarUrl: z.nullable(z.string()).optional(), - managerId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisEmployeeInputFieldMappings$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - employeeNumber: "employee_number", - companyId: "company_id", - firstName: "first_name", - lastName: "last_name", - preferredName: "preferred_name", - displayFullName: "display_full_name", - workEmail: "work_email", - personalEmail: "personal_email", - mobilePhoneNumber: "mobile_phone_number", - maritalStatus: "marital_status", - dateOfBirth: "date_of_birth", - startDate: "start_date", - employmentStatus: "employment_status", - terminationDate: "termination_date", - avatarUrl: "avatar_url", - managerId: "manager_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 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 deleted file mode 100644 index db8b2ff3..00000000 --- a/src/models/components/unifiedhrisemployeeoutput.ts +++ /dev/null @@ -1,410 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisEmployeeOutputFieldMappings = {}; - -/** - * The remote data of the employee in the context of the 3rd Party - */ -export type UnifiedHrisEmployeeOutputRemoteData = {}; - -export type UnifiedHrisEmployeeOutput = { - /** - * The groups the employee belongs to - */ - groups?: Array | null | undefined; - /** - * UUIDs of the of the Location associated with the company - */ - locations?: Array | null | undefined; - /** - * The employee number - */ - employeeNumber?: string | null | undefined; - /** - * The UUID of the associated company - */ - companyId?: string | null | undefined; - /** - * The first name of the employee - */ - firstName?: string | null | undefined; - /** - * The last name of the employee - */ - lastName?: string | null | undefined; - /** - * The preferred name of the employee - */ - preferredName?: string | null | undefined; - /** - * The full display name of the employee - */ - displayFullName?: string | null | undefined; - /** - * The username of the employee - */ - username?: string | null | undefined; - /** - * The work email of the employee - */ - workEmail?: string | null | undefined; - /** - * The personal email of the employee - */ - personalEmail?: string | null | undefined; - /** - * The mobile phone number of the employee - */ - mobilePhoneNumber?: string | null | undefined; - /** - * The employments of the employee - */ - employments?: Array | null | undefined; - /** - * The Social Security Number of the employee - */ - ssn?: string | null | undefined; - /** - * The gender of the employee - */ - gender?: string | null | undefined; - /** - * The ethnicity of the employee - */ - ethnicity?: string | null | undefined; - /** - * The marital status of the employee - */ - maritalStatus?: string | null | undefined; - /** - * The date of birth of the employee - */ - dateOfBirth?: Date | null | undefined; - /** - * The start date of the employee - */ - startDate?: Date | null | undefined; - /** - * The employment status of the employee - */ - employmentStatus?: string | null | undefined; - /** - * The termination date of the employee - */ - terminationDate?: Date | null | undefined; - /** - * The URL of the employee's avatar - */ - avatarUrl?: string | null | undefined; - /** - * UUID of the manager (employee) of the employee - */ - managerId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisEmployeeOutputFieldMappings | null | undefined; - /** - * The UUID of the employee record - */ - id?: string | null | undefined; - /** - * The remote ID of the employee in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the employee in the context of the 3rd Party - */ - remoteData?: UnifiedHrisEmployeeOutputRemoteData | null | undefined; - /** - * The date when the employee was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the employee record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the employee record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the employee was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeeOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisEmployeeOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployeeOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployeeOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisEmployeeOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeeOutputFieldMappings -> = 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 UnifiedHrisEmployeeOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisEmployeeOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployeeOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisEmployeeOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployeeOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisEmployeeOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployeeOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployeeOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisEmployeeOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployeeOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployeeOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisEmployeeOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeeOutputRemoteData -> = 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 UnifiedHrisEmployeeOutputRemoteData$ { - /** @deprecated use `UnifiedHrisEmployeeOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployeeOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisEmployeeOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployeeOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisEmployeeOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployeeOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployeeOutput$inboundSchema: z.ZodType< - UnifiedHrisEmployeeOutput, - z.ZodTypeDef, - unknown -> = z.object({ - groups: z.nullable(z.array(z.string())).optional(), - locations: z.nullable(z.array(z.string())).optional(), - employee_number: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - preferred_name: z.nullable(z.string()).optional(), - display_full_name: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - work_email: z.nullable(z.string()).optional(), - personal_email: z.nullable(z.string()).optional(), - mobile_phone_number: z.nullable(z.string()).optional(), - employments: z.nullable(z.array(z.string())).optional(), - ssn: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - ethnicity: z.nullable(z.string()).optional(), - marital_status: z.nullable(z.string()).optional(), - date_of_birth: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employment_status: z.nullable(z.string()).optional(), - termination_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - avatar_url: z.nullable(z.string()).optional(), - manager_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisEmployeeOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisEmployeeOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_number": "employeeNumber", - "company_id": "companyId", - "first_name": "firstName", - "last_name": "lastName", - "preferred_name": "preferredName", - "display_full_name": "displayFullName", - "work_email": "workEmail", - "personal_email": "personalEmail", - "mobile_phone_number": "mobilePhoneNumber", - "marital_status": "maritalStatus", - "date_of_birth": "dateOfBirth", - "start_date": "startDate", - "employment_status": "employmentStatus", - "termination_date": "terminationDate", - "avatar_url": "avatarUrl", - "manager_id": "managerId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisEmployeeOutput$Outbound = { - groups?: Array | null | undefined; - locations?: Array | null | undefined; - employee_number?: string | null | undefined; - company_id?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - preferred_name?: string | null | undefined; - display_full_name?: string | null | undefined; - username?: string | null | undefined; - work_email?: string | null | undefined; - personal_email?: string | null | undefined; - mobile_phone_number?: string | null | undefined; - employments?: Array | null | undefined; - ssn?: string | null | undefined; - gender?: string | null | undefined; - ethnicity?: string | null | undefined; - marital_status?: string | null | undefined; - date_of_birth?: string | null | undefined; - start_date?: string | null | undefined; - employment_status?: string | null | undefined; - termination_date?: string | null | undefined; - avatar_url?: string | null | undefined; - manager_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisEmployeeOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisEmployeeOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeeOutput$outboundSchema: z.ZodType< - UnifiedHrisEmployeeOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeeOutput -> = z.object({ - groups: z.nullable(z.array(z.string())).optional(), - locations: z.nullable(z.array(z.string())).optional(), - employeeNumber: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - preferredName: z.nullable(z.string()).optional(), - displayFullName: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - workEmail: z.nullable(z.string()).optional(), - personalEmail: z.nullable(z.string()).optional(), - mobilePhoneNumber: z.nullable(z.string()).optional(), - employments: z.nullable(z.array(z.string())).optional(), - ssn: z.nullable(z.string()).optional(), - gender: z.nullable(z.string()).optional(), - ethnicity: z.nullable(z.string()).optional(), - maritalStatus: z.nullable(z.string()).optional(), - dateOfBirth: z.nullable(z.date().transform(v => v.toISOString())).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - employmentStatus: z.nullable(z.string()).optional(), - terminationDate: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - avatarUrl: z.nullable(z.string()).optional(), - managerId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisEmployeeOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisEmployeeOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - employeeNumber: "employee_number", - companyId: "company_id", - firstName: "first_name", - lastName: "last_name", - preferredName: "preferred_name", - displayFullName: "display_full_name", - workEmail: "work_email", - personalEmail: "personal_email", - mobilePhoneNumber: "mobile_phone_number", - maritalStatus: "marital_status", - dateOfBirth: "date_of_birth", - startDate: "start_date", - employmentStatus: "employment_status", - terminationDate: "termination_date", - avatarUrl: "avatar_url", - managerId: "manager_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 928b26ee..00000000 --- a/src/models/components/unifiedhrisemployeepayrollrunoutput.ts +++ /dev/null @@ -1,335 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { - DeductionItem, - DeductionItem$inboundSchema, - DeductionItem$Outbound, - DeductionItem$outboundSchema, -} from "./deductionitem.js"; -import { - EarningItem, - EarningItem$inboundSchema, - EarningItem$Outbound, - EarningItem$outboundSchema, -} from "./earningitem.js"; -import { - TaxItem, - TaxItem$inboundSchema, - TaxItem$Outbound, - TaxItem$outboundSchema, -} from "./taxitem.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisEmployeepayrollrunOutputFieldMappings = {}; - -/** - * The remote data of the employee payroll run in the context of the 3rd Party - */ -export type UnifiedHrisEmployeepayrollrunOutputRemoteData = {}; - -export type UnifiedHrisEmployeepayrollrunOutput = { - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The UUID of the associated payroll run - */ - payrollRunId?: string | null | undefined; - /** - * The gross pay amount - */ - grossPay?: number | null | undefined; - /** - * The net pay amount - */ - netPay?: number | null | undefined; - /** - * The start date of the pay period - */ - startDate?: Date | null | undefined; - /** - * The end date of the pay period - */ - endDate?: Date | null | undefined; - /** - * The date the check was issued - */ - checkDate?: Date | null | undefined; - /** - * The list of deductions for this payroll run - */ - deductions?: Array | null | undefined; - /** - * The list of earnings for this payroll run - */ - earnings?: Array | null | undefined; - /** - * The list of taxes for this payroll run - */ - taxes?: Array | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: - | UnifiedHrisEmployeepayrollrunOutputFieldMappings - | null - | undefined; - /** - * The UUID of the employee payroll run record - */ - id?: string | null | undefined; - /** - * The remote ID of the employee payroll run in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the employee payroll run in the context of the 3rd Party - */ - remoteData?: UnifiedHrisEmployeepayrollrunOutputRemoteData | null | undefined; - /** - * The date when the employee payroll run was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the employee payroll run record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the employee payroll run record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the employee payroll run was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutputFieldMappings$inboundSchema: - z.ZodType< - UnifiedHrisEmployeepayrollrunOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployeepayrollrunOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutputFieldMappings$outboundSchema: - z.ZodType< - UnifiedHrisEmployeepayrollrunOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeepayrollrunOutputFieldMappings - > = 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 UnifiedHrisEmployeepayrollrunOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployeepayrollrunOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployeepayrollrunOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputFieldMappings$Outbound` instead. */ - export type Outbound = - UnifiedHrisEmployeepayrollrunOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutputRemoteData$inboundSchema: - z.ZodType< - UnifiedHrisEmployeepayrollrunOutputRemoteData, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployeepayrollrunOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutputRemoteData$outboundSchema: - z.ZodType< - UnifiedHrisEmployeepayrollrunOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeepayrollrunOutputRemoteData - > = 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 UnifiedHrisEmployeepayrollrunOutputRemoteData$ { - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployeepayrollrunOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployeepayrollrunOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisEmployeepayrollrunOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployeepayrollrunOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutput$inboundSchema: z.ZodType< - UnifiedHrisEmployeepayrollrunOutput, - z.ZodTypeDef, - unknown -> = z.object({ - employee_id: z.nullable(z.string()).optional(), - payroll_run_id: z.nullable(z.string()).optional(), - gross_pay: z.nullable(z.number()).optional(), - net_pay: z.nullable(z.number()).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - check_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - deductions: z.nullable(z.array(DeductionItem$inboundSchema)).optional(), - earnings: z.nullable(z.array(EarningItem$inboundSchema)).optional(), - taxes: z.nullable(z.array(TaxItem$inboundSchema)).optional(), - field_mappings: z.nullable( - z.lazy(() => - UnifiedHrisEmployeepayrollrunOutputFieldMappings$inboundSchema - ), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisEmployeepayrollrunOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "payroll_run_id": "payrollRunId", - "gross_pay": "grossPay", - "net_pay": "netPay", - "start_date": "startDate", - "end_date": "endDate", - "check_date": "checkDate", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisEmployeepayrollrunOutput$Outbound = { - employee_id?: string | null | undefined; - payroll_run_id?: string | null | undefined; - gross_pay?: number | null | undefined; - net_pay?: number | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - check_date?: string | null | undefined; - deductions?: Array | null | undefined; - earnings?: Array | null | undefined; - taxes?: Array | null | undefined; - field_mappings?: - | UnifiedHrisEmployeepayrollrunOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisEmployeepayrollrunOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployeepayrollrunOutput$outboundSchema: z.ZodType< - UnifiedHrisEmployeepayrollrunOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployeepayrollrunOutput -> = z.object({ - employeeId: z.nullable(z.string()).optional(), - payrollRunId: z.nullable(z.string()).optional(), - grossPay: z.nullable(z.number()).optional(), - netPay: z.nullable(z.number()).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - checkDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - deductions: z.nullable(z.array(DeductionItem$outboundSchema)).optional(), - earnings: z.nullable(z.array(EarningItem$outboundSchema)).optional(), - taxes: z.nullable(z.array(TaxItem$outboundSchema)).optional(), - fieldMappings: z.nullable( - z.lazy(() => - UnifiedHrisEmployeepayrollrunOutputFieldMappings$outboundSchema - ), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisEmployeepayrollrunOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - payrollRunId: "payroll_run_id", - grossPay: "gross_pay", - netPay: "net_pay", - startDate: "start_date", - endDate: "end_date", - checkDate: "check_date", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 4cff17cf..00000000 --- a/src/models/components/unifiedhrisemployerbenefitoutput.ts +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisEmployerbenefitOutputFieldMappings = {}; - -/** - * The remote data of the employer benefit in the context of the 3rd Party - */ -export type UnifiedHrisEmployerbenefitOutputRemoteData = {}; - -export type UnifiedHrisEmployerbenefitOutput = { - /** - * The type of the benefit plan - */ - benefitPlanType?: string | null | undefined; - /** - * The name of the employer benefit - */ - name?: string | null | undefined; - /** - * The description of the employer benefit - */ - description?: string | null | undefined; - /** - * The deduction code for the employer benefit - */ - deductionCode?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: - | UnifiedHrisEmployerbenefitOutputFieldMappings - | null - | undefined; - /** - * The UUID of the employer benefit record - */ - id?: string | null | undefined; - /** - * The remote ID of the employer benefit in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the employer benefit in the context of the 3rd Party - */ - remoteData?: UnifiedHrisEmployerbenefitOutputRemoteData | null | undefined; - /** - * The date when the employer benefit was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the employer benefit record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the employer benefit record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the employer benefit was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutputFieldMappings$inboundSchema: - z.ZodType< - UnifiedHrisEmployerbenefitOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisEmployerbenefitOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutputFieldMappings$outboundSchema: - z.ZodType< - UnifiedHrisEmployerbenefitOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployerbenefitOutputFieldMappings - > = 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 UnifiedHrisEmployerbenefitOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisEmployerbenefitOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployerbenefitOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisEmployerbenefitOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployerbenefitOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisEmployerbenefitOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployerbenefitOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutputRemoteData$inboundSchema: - z.ZodType = - z.object({}); - -/** @internal */ -export type UnifiedHrisEmployerbenefitOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutputRemoteData$outboundSchema: - z.ZodType< - UnifiedHrisEmployerbenefitOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployerbenefitOutputRemoteData - > = 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 UnifiedHrisEmployerbenefitOutputRemoteData$ { - /** @deprecated use `UnifiedHrisEmployerbenefitOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmployerbenefitOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisEmployerbenefitOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmployerbenefitOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisEmployerbenefitOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisEmployerbenefitOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutput$inboundSchema: z.ZodType< - UnifiedHrisEmployerbenefitOutput, - z.ZodTypeDef, - unknown -> = z.object({ - benefit_plan_type: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - deduction_code: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisEmployerbenefitOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisEmployerbenefitOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "benefit_plan_type": "benefitPlanType", - "deduction_code": "deductionCode", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisEmployerbenefitOutput$Outbound = { - benefit_plan_type?: string | null | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - deduction_code?: string | null | undefined; - field_mappings?: - | UnifiedHrisEmployerbenefitOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisEmployerbenefitOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmployerbenefitOutput$outboundSchema: z.ZodType< - UnifiedHrisEmployerbenefitOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisEmployerbenefitOutput -> = z.object({ - benefitPlanType: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - deductionCode: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisEmployerbenefitOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisEmployerbenefitOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - benefitPlanType: "benefit_plan_type", - deductionCode: "deduction_code", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 4edac89b..00000000 --- a/src/models/components/unifiedhrisemploymentoutput.ts +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisEmploymentOutputFieldMappings = {}; - -/** - * The remote data of the employment in the context of the 3rd Party - */ -export type UnifiedHrisEmploymentOutputRemoteData = {}; - -export type UnifiedHrisEmploymentOutput = { - /** - * The job title of the employment - */ - jobTitle?: string | null | undefined; - /** - * The pay rate of the employment - */ - payRate?: number | null | undefined; - /** - * The pay period of the employment - */ - payPeriod?: string | null | undefined; - /** - * The pay frequency of the employment - */ - payFrequency?: string | null | undefined; - /** - * The currency of the pay - */ - payCurrency?: string | null | undefined; - /** - * The FLSA status of the employment - */ - flsaStatus?: string | null | undefined; - /** - * The effective date of the employment - */ - effectiveDate?: Date | null | undefined; - /** - * The type of employment - */ - employmentType?: string | null | undefined; - /** - * The UUID of the associated pay group - */ - payGroupId?: string | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisEmploymentOutputFieldMappings | null | undefined; - /** - * The UUID of the employment record - */ - id?: string | null | undefined; - /** - * The remote ID of the employment in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the employment in the context of the 3rd Party - */ - remoteData?: UnifiedHrisEmploymentOutputRemoteData | null | undefined; - /** - * The date when the employment was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the employment record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the employment record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the employment was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmploymentOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisEmploymentOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisEmploymentOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmploymentOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisEmploymentOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisEmploymentOutputFieldMappings -> = 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 UnifiedHrisEmploymentOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisEmploymentOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmploymentOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisEmploymentOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmploymentOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisEmploymentOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisEmploymentOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmploymentOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisEmploymentOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisEmploymentOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisEmploymentOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisEmploymentOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisEmploymentOutputRemoteData -> = 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 UnifiedHrisEmploymentOutputRemoteData$ { - /** @deprecated use `UnifiedHrisEmploymentOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisEmploymentOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisEmploymentOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisEmploymentOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisEmploymentOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisEmploymentOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisEmploymentOutput$inboundSchema: z.ZodType< - UnifiedHrisEmploymentOutput, - z.ZodTypeDef, - unknown -> = z.object({ - job_title: z.nullable(z.string()).optional(), - pay_rate: z.nullable(z.number()).optional(), - pay_period: z.nullable(z.string()).optional(), - pay_frequency: z.nullable(z.string()).optional(), - pay_currency: z.nullable(z.string()).optional(), - flsa_status: z.nullable(z.string()).optional(), - effective_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employment_type: z.nullable(z.string()).optional(), - pay_group_id: z.nullable(z.string()).optional(), - employee_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisEmploymentOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisEmploymentOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "job_title": "jobTitle", - "pay_rate": "payRate", - "pay_period": "payPeriod", - "pay_frequency": "payFrequency", - "pay_currency": "payCurrency", - "flsa_status": "flsaStatus", - "effective_date": "effectiveDate", - "employment_type": "employmentType", - "pay_group_id": "payGroupId", - "employee_id": "employeeId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisEmploymentOutput$Outbound = { - job_title?: string | null | undefined; - pay_rate?: number | null | undefined; - pay_period?: string | null | undefined; - pay_frequency?: string | null | undefined; - pay_currency?: string | null | undefined; - flsa_status?: string | null | undefined; - effective_date?: string | null | undefined; - employment_type?: string | null | undefined; - pay_group_id?: string | null | undefined; - employee_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisEmploymentOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisEmploymentOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisEmploymentOutput$outboundSchema: z.ZodType< - UnifiedHrisEmploymentOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisEmploymentOutput -> = z.object({ - jobTitle: z.nullable(z.string()).optional(), - payRate: z.nullable(z.number()).optional(), - payPeriod: z.nullable(z.string()).optional(), - payFrequency: z.nullable(z.string()).optional(), - payCurrency: z.nullable(z.string()).optional(), - flsaStatus: z.nullable(z.string()).optional(), - effectiveDate: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - employmentType: z.nullable(z.string()).optional(), - payGroupId: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisEmploymentOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisEmploymentOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - jobTitle: "job_title", - payRate: "pay_rate", - payPeriod: "pay_period", - payFrequency: "pay_frequency", - payCurrency: "pay_currency", - flsaStatus: "flsa_status", - effectiveDate: "effective_date", - employmentType: "employment_type", - payGroupId: "pay_group_id", - employeeId: "employee_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 4edbbdda..00000000 --- a/src/models/components/unifiedhrisgroupoutput.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisGroupOutputFieldMappings = {}; - -/** - * The remote data of the group in the context of the 3rd Party - */ -export type UnifiedHrisGroupOutputRemoteData = {}; - -export type UnifiedHrisGroupOutput = { - /** - * The UUID of the parent group - */ - parentGroup?: string | null | undefined; - /** - * The name of the group - */ - name?: string | null | undefined; - /** - * The type of the group - */ - type?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisGroupOutputFieldMappings | null | undefined; - /** - * The UUID of the group record - */ - id?: string | null | undefined; - /** - * The remote ID of the group in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the group in the context of the 3rd Party - */ - remoteData?: UnifiedHrisGroupOutputRemoteData | null | undefined; - /** - * The date when the group was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the group record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the group record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the group was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisGroupOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisGroupOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisGroupOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisGroupOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisGroupOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisGroupOutputFieldMappings -> = 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 UnifiedHrisGroupOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisGroupOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisGroupOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisGroupOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisGroupOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisGroupOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisGroupOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisGroupOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisGroupOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisGroupOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisGroupOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisGroupOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisGroupOutputRemoteData -> = 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 UnifiedHrisGroupOutputRemoteData$ { - /** @deprecated use `UnifiedHrisGroupOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisGroupOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisGroupOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = UnifiedHrisGroupOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisGroupOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisGroupOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisGroupOutput$inboundSchema: z.ZodType< - UnifiedHrisGroupOutput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_group: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisGroupOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisGroupOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "parent_group": "parentGroup", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisGroupOutput$Outbound = { - parent_group?: string | null | undefined; - name?: string | null | undefined; - type?: string | null | undefined; - field_mappings?: - | UnifiedHrisGroupOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisGroupOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisGroupOutput$outboundSchema: z.ZodType< - UnifiedHrisGroupOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisGroupOutput -> = z.object({ - parentGroup: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisGroupOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisGroupOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - parentGroup: "parent_group", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 3beff499..00000000 --- a/src/models/components/unifiedhrislocationoutput.ts +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisLocationOutputFieldMappings = {}; - -/** - * The remote data of the location in the context of the 3rd Party - */ -export type UnifiedHrisLocationOutputRemoteData = {}; - -export type UnifiedHrisLocationOutput = { - /** - * The name of the location - */ - name?: string | null | undefined; - /** - * The phone number of the location - */ - phoneNumber?: string | null | undefined; - /** - * The first line of the street address - */ - street1?: string | null | undefined; - /** - * The second line of the street address - */ - street2?: string | null | undefined; - /** - * The city of the location - */ - city?: string | null | undefined; - /** - * The state or region of the location - */ - state?: string | null | undefined; - /** - * The zip or postal code of the location - */ - zipCode?: string | null | undefined; - /** - * The country of the location - */ - country?: string | null | undefined; - /** - * The type of the location - */ - locationType?: string | null | undefined; - /** - * The UUID of the company associated with the location - */ - companyId?: string | null | undefined; - /** - * The UUID of the employee associated with the location - */ - employeeId?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisLocationOutputFieldMappings | null | undefined; - /** - * The UUID of the location record - */ - id?: string | null | undefined; - /** - * The remote ID of the location in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the location in the context of the 3rd Party - */ - remoteData?: UnifiedHrisLocationOutputRemoteData | null | undefined; - /** - * The date when the location was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the location record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the location record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the location was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisLocationOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisLocationOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisLocationOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisLocationOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisLocationOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisLocationOutputFieldMappings -> = 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 UnifiedHrisLocationOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisLocationOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisLocationOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisLocationOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisLocationOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisLocationOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisLocationOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisLocationOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisLocationOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisLocationOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisLocationOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisLocationOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisLocationOutputRemoteData -> = 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 UnifiedHrisLocationOutputRemoteData$ { - /** @deprecated use `UnifiedHrisLocationOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisLocationOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisLocationOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisLocationOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisLocationOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisLocationOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisLocationOutput$inboundSchema: z.ZodType< - UnifiedHrisLocationOutput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - phone_number: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - city: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - location_type: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - employee_id: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisLocationOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisLocationOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "phone_number": "phoneNumber", - "street_1": "street1", - "street_2": "street2", - "zip_code": "zipCode", - "location_type": "locationType", - "company_id": "companyId", - "employee_id": "employeeId", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisLocationOutput$Outbound = { - name?: string | null | undefined; - phone_number?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - city?: string | null | undefined; - state?: string | null | undefined; - zip_code?: string | null | undefined; - country?: string | null | undefined; - location_type?: string | null | undefined; - company_id?: string | null | undefined; - employee_id?: string | null | undefined; - field_mappings?: - | UnifiedHrisLocationOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisLocationOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisLocationOutput$outboundSchema: z.ZodType< - UnifiedHrisLocationOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisLocationOutput -> = z.object({ - name: z.nullable(z.string()).optional(), - phoneNumber: z.nullable(z.string()).optional(), - street1: z.nullable(z.string()).optional(), - street2: z.nullable(z.string()).optional(), - city: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - zipCode: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - locationType: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisLocationOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisLocationOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - phoneNumber: "phone_number", - street1: "street_1", - street2: "street_2", - zipCode: "zip_code", - locationType: "location_type", - companyId: "company_id", - employeeId: "employee_id", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 0e074e75..00000000 --- a/src/models/components/unifiedhrispaygroupoutput.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisPaygroupOutputFieldMappings = {}; - -/** - * The remote data of the pay group in the context of the 3rd Party - */ -export type UnifiedHrisPaygroupOutputRemoteData = {}; - -export type UnifiedHrisPaygroupOutput = { - /** - * The name of the pay group - */ - payGroupName?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisPaygroupOutputFieldMappings | null | undefined; - /** - * The UUID of the pay group record - */ - id?: string | null | undefined; - /** - * The remote ID of the pay group in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the pay group in the context of the 3rd Party - */ - remoteData?: UnifiedHrisPaygroupOutputRemoteData | null | undefined; - /** - * The date when the pay group was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the pay group record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the pay group record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the pay group was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisPaygroupOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisPaygroupOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisPaygroupOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisPaygroupOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisPaygroupOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisPaygroupOutputFieldMappings -> = 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 UnifiedHrisPaygroupOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisPaygroupOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisPaygroupOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisPaygroupOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisPaygroupOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisPaygroupOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisPaygroupOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisPaygroupOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisPaygroupOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisPaygroupOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisPaygroupOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisPaygroupOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisPaygroupOutputRemoteData -> = 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 UnifiedHrisPaygroupOutputRemoteData$ { - /** @deprecated use `UnifiedHrisPaygroupOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisPaygroupOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisPaygroupOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisPaygroupOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisPaygroupOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisPaygroupOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisPaygroupOutput$inboundSchema: z.ZodType< - UnifiedHrisPaygroupOutput, - z.ZodTypeDef, - unknown -> = z.object({ - pay_group_name: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisPaygroupOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisPaygroupOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "pay_group_name": "payGroupName", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisPaygroupOutput$Outbound = { - pay_group_name?: string | null | undefined; - field_mappings?: - | UnifiedHrisPaygroupOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisPaygroupOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisPaygroupOutput$outboundSchema: z.ZodType< - UnifiedHrisPaygroupOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisPaygroupOutput -> = z.object({ - payGroupName: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisPaygroupOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisPaygroupOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - payGroupName: "pay_group_name", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index d5c4d86c..00000000 --- a/src/models/components/unifiedhrispayrollrunoutput.ts +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisPayrollrunOutputFieldMappings = {}; - -/** - * The remote data of the payroll run in the context of the 3rd Party - */ -export type UnifiedHrisPayrollrunOutputRemoteData = {}; - -export type UnifiedHrisPayrollrunOutput = { - /** - * The state of the payroll run - */ - runState?: string | null | undefined; - /** - * The type of the payroll run - */ - runType?: string | null | undefined; - /** - * The start date of the payroll run - */ - startDate?: Date | null | undefined; - /** - * The end date of the payroll run - */ - endDate?: Date | null | undefined; - /** - * The check date of the payroll run - */ - checkDate?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisPayrollrunOutputFieldMappings | null | undefined; - /** - * The UUID of the payroll run record - */ - id?: string | null | undefined; - /** - * The remote ID of the payroll run in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the payroll run in the context of the 3rd Party - */ - remoteData?: UnifiedHrisPayrollrunOutputRemoteData | null | undefined; - /** - * The date when the payroll run was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the payroll run record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the payroll run record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the payroll run was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; - /** - * The UUIDs of the employee payroll runs associated with this payroll run - */ - employeePayrollRuns?: Array | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisPayrollrunOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisPayrollrunOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisPayrollrunOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisPayrollrunOutputFieldMappings -> = 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 UnifiedHrisPayrollrunOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisPayrollrunOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisPayrollrunOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisPayrollrunOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisPayrollrunOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisPayrollrunOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisPayrollrunOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisPayrollrunOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisPayrollrunOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisPayrollrunOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisPayrollrunOutputRemoteData -> = 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 UnifiedHrisPayrollrunOutputRemoteData$ { - /** @deprecated use `UnifiedHrisPayrollrunOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisPayrollrunOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisPayrollrunOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisPayrollrunOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisPayrollrunOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisPayrollrunOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisPayrollrunOutput$inboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutput, - z.ZodTypeDef, - unknown -> = z.object({ - run_state: z.nullable(z.string()).optional(), - run_type: z.nullable(z.string()).optional(), - start_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - check_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisPayrollrunOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisPayrollrunOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), - employee_payroll_runs: z.nullable(z.array(z.string())).optional(), -}).transform((v) => { - return remap$(v, { - "run_state": "runState", - "run_type": "runType", - "start_date": "startDate", - "end_date": "endDate", - "check_date": "checkDate", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - "employee_payroll_runs": "employeePayrollRuns", - }); -}); - -/** @internal */ -export type UnifiedHrisPayrollrunOutput$Outbound = { - run_state?: string | null | undefined; - run_type?: string | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - check_date?: string | null | undefined; - field_mappings?: - | UnifiedHrisPayrollrunOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisPayrollrunOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; - employee_payroll_runs?: Array | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisPayrollrunOutput$outboundSchema: z.ZodType< - UnifiedHrisPayrollrunOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisPayrollrunOutput -> = z.object({ - runState: z.nullable(z.string()).optional(), - runType: z.nullable(z.string()).optional(), - startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - checkDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisPayrollrunOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisPayrollrunOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), - employeePayrollRuns: z.nullable(z.array(z.string())).optional(), -}).transform((v) => { - return remap$(v, { - runState: "run_state", - runType: "run_type", - startDate: "start_date", - endDate: "end_date", - checkDate: "check_date", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - employeePayrollRuns: "employee_payroll_runs", - }); -}); - -/** - * @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 deleted file mode 100644 index f66851eb..00000000 --- a/src/models/components/unifiedhristimeoffbalanceoutput.ts +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisTimeoffbalanceOutputFieldMappings = {}; - -/** - * The remote data of the time off balance in the context of the 3rd Party - */ -export type UnifiedHrisTimeoffbalanceOutputRemoteData = {}; - -export type UnifiedHrisTimeoffbalanceOutput = { - /** - * The current balance of time off - */ - balance?: number | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * The amount of time off used - */ - used?: number | null | undefined; - /** - * The type of time off policy - */ - policyType?: string | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: - | UnifiedHrisTimeoffbalanceOutputFieldMappings - | null - | undefined; - /** - * The UUID of the time off balance record - */ - id?: string | null | undefined; - /** - * The remote ID of the time off balance in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the time off balance in the context of the 3rd Party - */ - remoteData?: UnifiedHrisTimeoffbalanceOutputRemoteData | null | undefined; - /** - * The date when the time off balance was created in the 3rd party system - */ - remoteCreatedAt?: string | null | undefined; - /** - * The created date of the time off balance record - */ - createdAt?: string | null | undefined; - /** - * The last modified date of the time off balance record - */ - modifiedAt?: string | null | undefined; - /** - * Indicates if the time off balance was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutputFieldMappings$inboundSchema: - z.ZodType< - UnifiedHrisTimeoffbalanceOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisTimeoffbalanceOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutputFieldMappings$outboundSchema: - z.ZodType< - UnifiedHrisTimeoffbalanceOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffbalanceOutputFieldMappings - > = 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 UnifiedHrisTimeoffbalanceOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimeoffbalanceOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimeoffbalanceOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisTimeoffbalanceOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisTimeoffbalanceOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisTimeoffbalanceOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutputRemoteData$outboundSchema: - z.ZodType< - UnifiedHrisTimeoffbalanceOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffbalanceOutputRemoteData - > = 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 UnifiedHrisTimeoffbalanceOutputRemoteData$ { - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimeoffbalanceOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimeoffbalanceOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisTimeoffbalanceOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisTimeoffbalanceOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutput$inboundSchema: z.ZodType< - UnifiedHrisTimeoffbalanceOutput, - z.ZodTypeDef, - unknown -> = z.object({ - balance: z.nullable(z.number()).optional(), - employee_id: z.nullable(z.string()).optional(), - used: z.nullable(z.number()).optional(), - policy_type: z.nullable(z.string()).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffbalanceOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisTimeoffbalanceOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable(z.string()).optional(), - created_at: z.nullable(z.string()).optional(), - modified_at: z.nullable(z.string()).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "policy_type": "policyType", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisTimeoffbalanceOutput$Outbound = { - balance?: number | null | undefined; - employee_id?: string | null | undefined; - used?: number | null | undefined; - policy_type?: string | null | undefined; - field_mappings?: - | UnifiedHrisTimeoffbalanceOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: - | UnifiedHrisTimeoffbalanceOutputRemoteData$Outbound - | null - | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffbalanceOutput$outboundSchema: z.ZodType< - UnifiedHrisTimeoffbalanceOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffbalanceOutput -> = z.object({ - balance: z.nullable(z.number()).optional(), - employeeId: z.nullable(z.string()).optional(), - used: z.nullable(z.number()).optional(), - policyType: z.nullable(z.string()).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffbalanceOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisTimeoffbalanceOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - modifiedAt: z.nullable(z.string()).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - policyType: "policy_type", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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 deleted file mode 100644 index 8229ad1e..00000000 --- a/src/models/components/unifiedhristimeoffinput.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisTimeoffInputFieldMappings = {}; - -export type UnifiedHrisTimeoffInput = { - /** - * The UUID of the employee taking time off - */ - employee?: string | null | undefined; - /** - * The UUID of the approver for the time off request - */ - approver?: string | null | undefined; - /** - * The status of the time off request - */ - status?: string | null | undefined; - /** - * A note from the employee about the time off request - */ - employeeNote?: string | null | undefined; - /** - * The units used for the time off (e.g., Days, Hours) - */ - units?: string | null | undefined; - /** - * The amount of time off requested - */ - amount?: number | null | undefined; - /** - * The type of time off request - */ - requestType?: string | null | undefined; - /** - * The start time of the time off - */ - startTime?: Date | null | undefined; - /** - * The end time of the time off - */ - endTime?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisTimeoffInputFieldMappings | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffInputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisTimeoffInputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisTimeoffInputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimeoffInputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisTimeoffInputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffInputFieldMappings -> = 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 UnifiedHrisTimeoffInputFieldMappings$ { - /** @deprecated use `UnifiedHrisTimeoffInputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimeoffInputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisTimeoffInputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimeoffInputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisTimeoffInputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisTimeoffInputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimeoffInput$inboundSchema: z.ZodType< - UnifiedHrisTimeoffInput, - z.ZodTypeDef, - unknown -> = z.object({ - employee: z.nullable(z.string()).optional(), - approver: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - employee_note: z.nullable(z.string()).optional(), - units: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - request_type: z.nullable(z.string()).optional(), - start_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffInputFieldMappings$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "employee_note": "employeeNote", - "request_type": "requestType", - "start_time": "startTime", - "end_time": "endTime", - "field_mappings": "fieldMappings", - }); -}); - -/** @internal */ -export type UnifiedHrisTimeoffInput$Outbound = { - employee?: string | null | undefined; - approver?: string | null | undefined; - status?: string | null | undefined; - employee_note?: string | null | undefined; - units?: string | null | undefined; - amount?: number | null | undefined; - request_type?: string | null | undefined; - start_time?: string | null | undefined; - end_time?: string | null | undefined; - field_mappings?: - | UnifiedHrisTimeoffInputFieldMappings$Outbound - | null - | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffInput$outboundSchema: z.ZodType< - UnifiedHrisTimeoffInput$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffInput -> = z.object({ - employee: z.nullable(z.string()).optional(), - approver: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - employeeNote: z.nullable(z.string()).optional(), - units: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - requestType: z.nullable(z.string()).optional(), - startTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffInputFieldMappings$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - employeeNote: "employee_note", - requestType: "request_type", - startTime: "start_time", - endTime: "end_time", - 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 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 deleted file mode 100644 index fb382eb0..00000000 --- a/src/models/components/unifiedhristimeoffoutput.ts +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisTimeoffOutputFieldMappings = {}; - -/** - * The remote data of the time off in the context of the 3rd Party - */ -export type UnifiedHrisTimeoffOutputRemoteData = {}; - -export type UnifiedHrisTimeoffOutput = { - /** - * The UUID of the employee taking time off - */ - employee?: string | null | undefined; - /** - * The UUID of the approver for the time off request - */ - approver?: string | null | undefined; - /** - * The status of the time off request - */ - status?: string | null | undefined; - /** - * A note from the employee about the time off request - */ - employeeNote?: string | null | undefined; - /** - * The units used for the time off (e.g., Days, Hours) - */ - units?: string | null | undefined; - /** - * The amount of time off requested - */ - amount?: number | null | undefined; - /** - * The type of time off request - */ - requestType?: string | null | undefined; - /** - * The start time of the time off - */ - startTime?: Date | null | undefined; - /** - * The end time of the time off - */ - endTime?: Date | null | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: UnifiedHrisTimeoffOutputFieldMappings | null | undefined; - /** - * The UUID of the time off record - */ - id?: string | null | undefined; - /** - * The remote ID of the time off in the context of the 3rd Party - */ - remoteId?: string | null | undefined; - /** - * The remote data of the time off in the context of the 3rd Party - */ - remoteData?: UnifiedHrisTimeoffOutputRemoteData | null | undefined; - /** - * The date when the time off was created in the 3rd party system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the time off record - */ - createdAt?: Date | null | undefined; - /** - * The last modified date of the time off record - */ - modifiedAt?: Date | null | undefined; - /** - * Indicates if the time off was deleted in the remote system - */ - remoteWasDeleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffOutputFieldMappings$inboundSchema: z.ZodType< - UnifiedHrisTimeoffOutputFieldMappings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisTimeoffOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimeoffOutputFieldMappings$outboundSchema: z.ZodType< - UnifiedHrisTimeoffOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffOutputFieldMappings -> = 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 UnifiedHrisTimeoffOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisTimeoffOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimeoffOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisTimeoffOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimeoffOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisTimeoffOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisTimeoffOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimeoffOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisTimeoffOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisTimeoffOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimeoffOutputRemoteData$outboundSchema: z.ZodType< - UnifiedHrisTimeoffOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffOutputRemoteData -> = 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 UnifiedHrisTimeoffOutputRemoteData$ { - /** @deprecated use `UnifiedHrisTimeoffOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisTimeoffOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisTimeoffOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimeoffOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisTimeoffOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisTimeoffOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimeoffOutput$inboundSchema: z.ZodType< - UnifiedHrisTimeoffOutput, - z.ZodTypeDef, - unknown -> = z.object({ - employee: z.nullable(z.string()).optional(), - approver: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - employee_note: z.nullable(z.string()).optional(), - units: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - request_type: z.nullable(z.string()).optional(), - start_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisTimeoffOutputRemoteData$inboundSchema), - ).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - modified_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - remote_was_deleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_note": "employeeNote", - "request_type": "requestType", - "start_time": "startTime", - "end_time": "endTime", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_data": "remoteData", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_was_deleted": "remoteWasDeleted", - }); -}); - -/** @internal */ -export type UnifiedHrisTimeoffOutput$Outbound = { - employee?: string | null | undefined; - approver?: string | null | undefined; - status?: string | null | undefined; - employee_note?: string | null | undefined; - units?: string | null | undefined; - amount?: number | null | undefined; - request_type?: string | null | undefined; - start_time?: string | null | undefined; - end_time?: string | null | undefined; - field_mappings?: - | UnifiedHrisTimeoffOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_data?: UnifiedHrisTimeoffOutputRemoteData$Outbound | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | null | undefined; - modified_at?: string | null | undefined; - remote_was_deleted?: boolean | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimeoffOutput$outboundSchema: z.ZodType< - UnifiedHrisTimeoffOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisTimeoffOutput -> = z.object({ - employee: z.nullable(z.string()).optional(), - approver: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - employeeNote: z.nullable(z.string()).optional(), - units: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), - requestType: z.nullable(z.string()).optional(), - startTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisTimeoffOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisTimeoffOutputRemoteData$outboundSchema), - ).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - remoteWasDeleted: z.nullable(z.boolean()).optional(), -}).transform((v) => { - return remap$(v, { - employeeNote: "employee_note", - requestType: "request_type", - startTime: "start_time", - endTime: "end_time", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteData: "remote_data", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - remoteWasDeleted: "remote_was_deleted", - }); -}); - -/** - * @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/unifiedhristimesheetentryinput.ts b/src/models/components/unifiedhristimesheetentryinput.ts deleted file mode 100644 index 86ff9f7b..00000000 --- a/src/models/components/unifiedhristimesheetentryinput.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisTimesheetEntryInputFieldMappings = {}; - -export type UnifiedHrisTimesheetEntryInput = { - /** - * The number of hours worked - */ - hoursWorked?: number | null | undefined; - /** - * The start time of the timesheet entry - */ - startTime?: Date | null | undefined; - /** - * The end time of the timesheet entry - */ - endTime?: Date | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * Indicates if the timesheet entry was deleted in the remote system - */ - remoteWasDeleted?: boolean | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: - | UnifiedHrisTimesheetEntryInputFieldMappings - | null - | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryInputFieldMappings$inboundSchema: - z.ZodType< - UnifiedHrisTimesheetEntryInputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisTimesheetEntryInputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryInputFieldMappings$outboundSchema: - z.ZodType< - UnifiedHrisTimesheetEntryInputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisTimesheetEntryInputFieldMappings - > = 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 UnifiedHrisTimesheetEntryInputFieldMappings$ { - /** @deprecated use `UnifiedHrisTimesheetEntryInputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimesheetEntryInputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryInputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimesheetEntryInputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryInputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisTimesheetEntryInputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimesheetEntryInput$inboundSchema: z.ZodType< - UnifiedHrisTimesheetEntryInput, - z.ZodTypeDef, - unknown -> = z.object({ - hours_worked: z.nullable(z.number()).optional(), - start_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employee_id: z.nullable(z.string()).optional(), - remote_was_deleted: z.boolean().optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryInputFieldMappings$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "hours_worked": "hoursWorked", - "start_time": "startTime", - "end_time": "endTime", - "employee_id": "employeeId", - "remote_was_deleted": "remoteWasDeleted", - "field_mappings": "fieldMappings", - }); -}); - -/** @internal */ -export type UnifiedHrisTimesheetEntryInput$Outbound = { - hours_worked?: number | null | undefined; - start_time?: string | null | undefined; - end_time?: string | null | undefined; - employee_id?: string | null | undefined; - remote_was_deleted?: boolean | undefined; - field_mappings?: - | UnifiedHrisTimesheetEntryInputFieldMappings$Outbound - | null - | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryInput$outboundSchema: z.ZodType< - UnifiedHrisTimesheetEntryInput$Outbound, - z.ZodTypeDef, - UnifiedHrisTimesheetEntryInput -> = z.object({ - hoursWorked: z.nullable(z.number()).optional(), - startTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - employeeId: z.nullable(z.string()).optional(), - remoteWasDeleted: z.boolean().optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryInputFieldMappings$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - hoursWorked: "hours_worked", - startTime: "start_time", - endTime: "end_time", - employeeId: "employee_id", - remoteWasDeleted: "remote_was_deleted", - 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 UnifiedHrisTimesheetEntryInput$ { - /** @deprecated use `UnifiedHrisTimesheetEntryInput$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisTimesheetEntryInput$inboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryInput$outboundSchema` instead. */ - export const outboundSchema = UnifiedHrisTimesheetEntryInput$outboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryInput$Outbound` instead. */ - export type Outbound = UnifiedHrisTimesheetEntryInput$Outbound; -} diff --git a/src/models/components/unifiedhristimesheetentryoutput.ts b/src/models/components/unifiedhristimesheetentryoutput.ts deleted file mode 100644 index 7add5ee6..00000000 --- a/src/models/components/unifiedhristimesheetentryoutput.ts +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -/** - * The custom field mappings of the object between the remote 3rd party & Panora - */ -export type UnifiedHrisTimesheetEntryOutputFieldMappings = {}; - -/** - * The remote data of the timesheet entry in the context of the 3rd Party - */ -export type UnifiedHrisTimesheetEntryOutputRemoteData = {}; - -export type UnifiedHrisTimesheetEntryOutput = { - /** - * The number of hours worked - */ - hoursWorked?: number | null | undefined; - /** - * The start time of the timesheet entry - */ - startTime?: Date | null | undefined; - /** - * The end time of the timesheet entry - */ - endTime?: Date | null | undefined; - /** - * The UUID of the associated employee - */ - employeeId?: string | null | undefined; - /** - * Indicates if the timesheet entry was deleted in the remote system - */ - remoteWasDeleted?: boolean | undefined; - /** - * The custom field mappings of the object between the remote 3rd party & Panora - */ - fieldMappings?: - | UnifiedHrisTimesheetEntryOutputFieldMappings - | null - | undefined; - /** - * The UUID of the timesheet entry record - */ - id?: string | null | undefined; - /** - * The remote ID of the timesheet entry - */ - remoteId?: string | null | undefined; - /** - * The date when the timesheet entry was created in the remote system - */ - remoteCreatedAt?: Date | null | undefined; - /** - * The created date of the timesheet entry - */ - createdAt?: Date | undefined; - /** - * The last modified date of the timesheet entry - */ - modifiedAt?: Date | undefined; - /** - * The remote data of the timesheet entry in the context of the 3rd Party - */ - remoteData?: UnifiedHrisTimesheetEntryOutputRemoteData | null | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutputFieldMappings$inboundSchema: - z.ZodType< - UnifiedHrisTimesheetEntryOutputFieldMappings, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type UnifiedHrisTimesheetEntryOutputFieldMappings$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutputFieldMappings$outboundSchema: - z.ZodType< - UnifiedHrisTimesheetEntryOutputFieldMappings$Outbound, - z.ZodTypeDef, - UnifiedHrisTimesheetEntryOutputFieldMappings - > = 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 UnifiedHrisTimesheetEntryOutputFieldMappings$ { - /** @deprecated use `UnifiedHrisTimesheetEntryOutputFieldMappings$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimesheetEntryOutputFieldMappings$inboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutputFieldMappings$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimesheetEntryOutputFieldMappings$outboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutputFieldMappings$Outbound` instead. */ - export type Outbound = UnifiedHrisTimesheetEntryOutputFieldMappings$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutputRemoteData$inboundSchema: z.ZodType< - UnifiedHrisTimesheetEntryOutputRemoteData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UnifiedHrisTimesheetEntryOutputRemoteData$Outbound = {}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutputRemoteData$outboundSchema: - z.ZodType< - UnifiedHrisTimesheetEntryOutputRemoteData$Outbound, - z.ZodTypeDef, - UnifiedHrisTimesheetEntryOutputRemoteData - > = 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 UnifiedHrisTimesheetEntryOutputRemoteData$ { - /** @deprecated use `UnifiedHrisTimesheetEntryOutputRemoteData$inboundSchema` instead. */ - export const inboundSchema = - UnifiedHrisTimesheetEntryOutputRemoteData$inboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutputRemoteData$outboundSchema` instead. */ - export const outboundSchema = - UnifiedHrisTimesheetEntryOutputRemoteData$outboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutputRemoteData$Outbound` instead. */ - export type Outbound = UnifiedHrisTimesheetEntryOutputRemoteData$Outbound; -} - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutput$inboundSchema: z.ZodType< - UnifiedHrisTimesheetEntryOutput, - z.ZodTypeDef, - unknown -> = z.object({ - hours_worked: z.nullable(z.number()).optional(), - start_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - end_time: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - employee_id: z.nullable(z.string()).optional(), - remote_was_deleted: z.boolean().optional(), - field_mappings: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryOutputFieldMappings$inboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - remote_created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - 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(), - remote_data: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryOutputRemoteData$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "hours_worked": "hoursWorked", - "start_time": "startTime", - "end_time": "endTime", - "employee_id": "employeeId", - "remote_was_deleted": "remoteWasDeleted", - "field_mappings": "fieldMappings", - "remote_id": "remoteId", - "remote_created_at": "remoteCreatedAt", - "created_at": "createdAt", - "modified_at": "modifiedAt", - "remote_data": "remoteData", - }); -}); - -/** @internal */ -export type UnifiedHrisTimesheetEntryOutput$Outbound = { - hours_worked?: number | null | undefined; - start_time?: string | null | undefined; - end_time?: string | null | undefined; - employee_id?: string | null | undefined; - remote_was_deleted?: boolean | undefined; - field_mappings?: - | UnifiedHrisTimesheetEntryOutputFieldMappings$Outbound - | null - | undefined; - id?: string | null | undefined; - remote_id?: string | null | undefined; - remote_created_at?: string | null | undefined; - created_at?: string | undefined; - modified_at?: string | undefined; - remote_data?: - | UnifiedHrisTimesheetEntryOutputRemoteData$Outbound - | null - | undefined; -}; - -/** @internal */ -export const UnifiedHrisTimesheetEntryOutput$outboundSchema: z.ZodType< - UnifiedHrisTimesheetEntryOutput$Outbound, - z.ZodTypeDef, - UnifiedHrisTimesheetEntryOutput -> = z.object({ - hoursWorked: z.nullable(z.number()).optional(), - startTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - endTime: z.nullable(z.date().transform(v => v.toISOString())).optional(), - employeeId: z.nullable(z.string()).optional(), - remoteWasDeleted: z.boolean().optional(), - fieldMappings: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryOutputFieldMappings$outboundSchema), - ).optional(), - id: z.nullable(z.string()).optional(), - remoteId: z.nullable(z.string()).optional(), - remoteCreatedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - createdAt: z.date().transform(v => v.toISOString()).optional(), - modifiedAt: z.date().transform(v => v.toISOString()).optional(), - remoteData: z.nullable( - z.lazy(() => UnifiedHrisTimesheetEntryOutputRemoteData$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - hoursWorked: "hours_worked", - startTime: "start_time", - endTime: "end_time", - employeeId: "employee_id", - remoteWasDeleted: "remote_was_deleted", - fieldMappings: "field_mappings", - remoteId: "remote_id", - remoteCreatedAt: "remote_created_at", - createdAt: "created_at", - modifiedAt: "modified_at", - 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 UnifiedHrisTimesheetEntryOutput$ { - /** @deprecated use `UnifiedHrisTimesheetEntryOutput$inboundSchema` instead. */ - export const inboundSchema = UnifiedHrisTimesheetEntryOutput$inboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutput$outboundSchema` instead. */ - export const outboundSchema = UnifiedHrisTimesheetEntryOutput$outboundSchema; - /** @deprecated use `UnifiedHrisTimesheetEntryOutput$Outbound` instead. */ - export type Outbound = UnifiedHrisTimesheetEntryOutput$Outbound; -} diff --git a/src/models/components/unifiedmarketingautomationactioninput.ts b/src/models/components/unifiedmarketingautomationactioninput.ts index 13083440..41be0f5a 100644 --- a/src/models/components/unifiedmarketingautomationactioninput.ts +++ b/src/models/components/unifiedmarketingautomationactioninput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationActionInput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationActionInput$ { /** @deprecated use `UnifiedMarketingautomationActionInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationActionInput$Outbound; } + +export function unifiedMarketingautomationActionInputToJSON( + unifiedMarketingautomationActionInput: UnifiedMarketingautomationActionInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationActionInput$outboundSchema.parse( + unifiedMarketingautomationActionInput, + ), + ); +} + +export function unifiedMarketingautomationActionInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationActionInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationActionInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationactionoutput.ts b/src/models/components/unifiedmarketingautomationactionoutput.ts index 18eb4612..dc44ce01 100644 --- a/src/models/components/unifiedmarketingautomationactionoutput.ts +++ b/src/models/components/unifiedmarketingautomationactionoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationActionOutput = {}; @@ -37,3 +40,25 @@ export namespace UnifiedMarketingautomationActionOutput$ { /** @deprecated use `UnifiedMarketingautomationActionOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationActionOutput$Outbound; } + +export function unifiedMarketingautomationActionOutputToJSON( + unifiedMarketingautomationActionOutput: + UnifiedMarketingautomationActionOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationActionOutput$outboundSchema.parse( + unifiedMarketingautomationActionOutput, + ), + ); +} + +export function unifiedMarketingautomationActionOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationActionOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationActionOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationautomationinput.ts b/src/models/components/unifiedmarketingautomationautomationinput.ts index 113d4b5e..443c56e5 100644 --- a/src/models/components/unifiedmarketingautomationautomationinput.ts +++ b/src/models/components/unifiedmarketingautomationautomationinput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationAutomationInput = {}; @@ -38,3 +41,30 @@ export namespace UnifiedMarketingautomationAutomationInput$ { /** @deprecated use `UnifiedMarketingautomationAutomationInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationAutomationInput$Outbound; } + +export function unifiedMarketingautomationAutomationInputToJSON( + unifiedMarketingautomationAutomationInput: + UnifiedMarketingautomationAutomationInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationAutomationInput$outboundSchema.parse( + unifiedMarketingautomationAutomationInput, + ), + ); +} + +export function unifiedMarketingautomationAutomationInputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationAutomationInput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationAutomationInput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationAutomationInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationautomationoutput.ts b/src/models/components/unifiedmarketingautomationautomationoutput.ts index 70e80fe5..48a5acec 100644 --- a/src/models/components/unifiedmarketingautomationautomationoutput.ts +++ b/src/models/components/unifiedmarketingautomationautomationoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationAutomationOutput = {}; @@ -36,3 +39,30 @@ export namespace UnifiedMarketingautomationAutomationOutput$ { /** @deprecated use `UnifiedMarketingautomationAutomationOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationAutomationOutput$Outbound; } + +export function unifiedMarketingautomationAutomationOutputToJSON( + unifiedMarketingautomationAutomationOutput: + UnifiedMarketingautomationAutomationOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationAutomationOutput$outboundSchema.parse( + unifiedMarketingautomationAutomationOutput, + ), + ); +} + +export function unifiedMarketingautomationAutomationOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationAutomationOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationAutomationOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationAutomationOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationcampaigninput.ts b/src/models/components/unifiedmarketingautomationcampaigninput.ts index b44d6648..6af776e0 100644 --- a/src/models/components/unifiedmarketingautomationcampaigninput.ts +++ b/src/models/components/unifiedmarketingautomationcampaigninput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationCampaignInput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationCampaignInput$ { /** @deprecated use `UnifiedMarketingautomationCampaignInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationCampaignInput$Outbound; } + +export function unifiedMarketingautomationCampaignInputToJSON( + unifiedMarketingautomationCampaignInput: + UnifiedMarketingautomationCampaignInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationCampaignInput$outboundSchema.parse( + unifiedMarketingautomationCampaignInput, + ), + ); +} + +export function unifiedMarketingautomationCampaignInputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationCampaignInput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationCampaignInput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationCampaignInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationcampaignoutput.ts b/src/models/components/unifiedmarketingautomationcampaignoutput.ts index 42fdc8b6..d825cb6d 100644 --- a/src/models/components/unifiedmarketingautomationcampaignoutput.ts +++ b/src/models/components/unifiedmarketingautomationcampaignoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationCampaignOutput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationCampaignOutput$ { /** @deprecated use `UnifiedMarketingautomationCampaignOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationCampaignOutput$Outbound; } + +export function unifiedMarketingautomationCampaignOutputToJSON( + unifiedMarketingautomationCampaignOutput: + UnifiedMarketingautomationCampaignOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationCampaignOutput$outboundSchema.parse( + unifiedMarketingautomationCampaignOutput, + ), + ); +} + +export function unifiedMarketingautomationCampaignOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationCampaignOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationCampaignOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationCampaignOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationcontactinput.ts b/src/models/components/unifiedmarketingautomationcontactinput.ts index ba6f2b3e..942a9a6b 100644 --- a/src/models/components/unifiedmarketingautomationcontactinput.ts +++ b/src/models/components/unifiedmarketingautomationcontactinput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationContactInput = {}; @@ -37,3 +40,25 @@ export namespace UnifiedMarketingautomationContactInput$ { /** @deprecated use `UnifiedMarketingautomationContactInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationContactInput$Outbound; } + +export function unifiedMarketingautomationContactInputToJSON( + unifiedMarketingautomationContactInput: + UnifiedMarketingautomationContactInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationContactInput$outboundSchema.parse( + unifiedMarketingautomationContactInput, + ), + ); +} + +export function unifiedMarketingautomationContactInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationContactInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationContactInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationcontactoutput.ts b/src/models/components/unifiedmarketingautomationcontactoutput.ts index f0a4aa37..1dff16f0 100644 --- a/src/models/components/unifiedmarketingautomationcontactoutput.ts +++ b/src/models/components/unifiedmarketingautomationcontactoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationContactOutput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationContactOutput$ { /** @deprecated use `UnifiedMarketingautomationContactOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationContactOutput$Outbound; } + +export function unifiedMarketingautomationContactOutputToJSON( + unifiedMarketingautomationContactOutput: + UnifiedMarketingautomationContactOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationContactOutput$outboundSchema.parse( + unifiedMarketingautomationContactOutput, + ), + ); +} + +export function unifiedMarketingautomationContactOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationContactOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationContactOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationContactOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationemailoutput.ts b/src/models/components/unifiedmarketingautomationemailoutput.ts index 1c6a508c..92c5f362 100644 --- a/src/models/components/unifiedmarketingautomationemailoutput.ts +++ b/src/models/components/unifiedmarketingautomationemailoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationEmailOutput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationEmailOutput$ { /** @deprecated use `UnifiedMarketingautomationEmailOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationEmailOutput$Outbound; } + +export function unifiedMarketingautomationEmailOutputToJSON( + unifiedMarketingautomationEmailOutput: UnifiedMarketingautomationEmailOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationEmailOutput$outboundSchema.parse( + unifiedMarketingautomationEmailOutput, + ), + ); +} + +export function unifiedMarketingautomationEmailOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationEmailOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationEmailOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationeventoutput.ts b/src/models/components/unifiedmarketingautomationeventoutput.ts index 27ed3915..52572e5a 100644 --- a/src/models/components/unifiedmarketingautomationeventoutput.ts +++ b/src/models/components/unifiedmarketingautomationeventoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationEventOutput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationEventOutput$ { /** @deprecated use `UnifiedMarketingautomationEventOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationEventOutput$Outbound; } + +export function unifiedMarketingautomationEventOutputToJSON( + unifiedMarketingautomationEventOutput: UnifiedMarketingautomationEventOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationEventOutput$outboundSchema.parse( + unifiedMarketingautomationEventOutput, + ), + ); +} + +export function unifiedMarketingautomationEventOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationEventOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationEventOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationlistinput.ts b/src/models/components/unifiedmarketingautomationlistinput.ts index ff594581..6a45b8d2 100644 --- a/src/models/components/unifiedmarketingautomationlistinput.ts +++ b/src/models/components/unifiedmarketingautomationlistinput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationListInput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationListInput$ { /** @deprecated use `UnifiedMarketingautomationListInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationListInput$Outbound; } + +export function unifiedMarketingautomationListInputToJSON( + unifiedMarketingautomationListInput: UnifiedMarketingautomationListInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationListInput$outboundSchema.parse( + unifiedMarketingautomationListInput, + ), + ); +} + +export function unifiedMarketingautomationListInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationListInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationListInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationlistoutput.ts b/src/models/components/unifiedmarketingautomationlistoutput.ts index 1df9f4cb..125c2326 100644 --- a/src/models/components/unifiedmarketingautomationlistoutput.ts +++ b/src/models/components/unifiedmarketingautomationlistoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationListOutput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationListOutput$ { /** @deprecated use `UnifiedMarketingautomationListOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationListOutput$Outbound; } + +export function unifiedMarketingautomationListOutputToJSON( + unifiedMarketingautomationListOutput: UnifiedMarketingautomationListOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationListOutput$outboundSchema.parse( + unifiedMarketingautomationListOutput, + ), + ); +} + +export function unifiedMarketingautomationListOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationListOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationListOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationmessageoutput.ts b/src/models/components/unifiedmarketingautomationmessageoutput.ts index dd03a78d..27ab2c59 100644 --- a/src/models/components/unifiedmarketingautomationmessageoutput.ts +++ b/src/models/components/unifiedmarketingautomationmessageoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationMessageOutput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationMessageOutput$ { /** @deprecated use `UnifiedMarketingautomationMessageOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationMessageOutput$Outbound; } + +export function unifiedMarketingautomationMessageOutputToJSON( + unifiedMarketingautomationMessageOutput: + UnifiedMarketingautomationMessageOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationMessageOutput$outboundSchema.parse( + unifiedMarketingautomationMessageOutput, + ), + ); +} + +export function unifiedMarketingautomationMessageOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationMessageOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationMessageOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationMessageOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationtemplateinput.ts b/src/models/components/unifiedmarketingautomationtemplateinput.ts index d4abbb3a..460dc96a 100644 --- a/src/models/components/unifiedmarketingautomationtemplateinput.ts +++ b/src/models/components/unifiedmarketingautomationtemplateinput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationTemplateInput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationTemplateInput$ { /** @deprecated use `UnifiedMarketingautomationTemplateInput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationTemplateInput$Outbound; } + +export function unifiedMarketingautomationTemplateInputToJSON( + unifiedMarketingautomationTemplateInput: + UnifiedMarketingautomationTemplateInput, +): string { + return JSON.stringify( + UnifiedMarketingautomationTemplateInput$outboundSchema.parse( + unifiedMarketingautomationTemplateInput, + ), + ); +} + +export function unifiedMarketingautomationTemplateInputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationTemplateInput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationTemplateInput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationTemplateInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationtemplateoutput.ts b/src/models/components/unifiedmarketingautomationtemplateoutput.ts index dfbafca9..4fcecd41 100644 --- a/src/models/components/unifiedmarketingautomationtemplateoutput.ts +++ b/src/models/components/unifiedmarketingautomationtemplateoutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationTemplateOutput = {}; @@ -37,3 +40,30 @@ export namespace UnifiedMarketingautomationTemplateOutput$ { /** @deprecated use `UnifiedMarketingautomationTemplateOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationTemplateOutput$Outbound; } + +export function unifiedMarketingautomationTemplateOutputToJSON( + unifiedMarketingautomationTemplateOutput: + UnifiedMarketingautomationTemplateOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationTemplateOutput$outboundSchema.parse( + unifiedMarketingautomationTemplateOutput, + ), + ); +} + +export function unifiedMarketingautomationTemplateOutputFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedMarketingautomationTemplateOutput, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationTemplateOutput$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedMarketingautomationTemplateOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedmarketingautomationuseroutput.ts b/src/models/components/unifiedmarketingautomationuseroutput.ts index 8b0a5f10..f870bcf5 100644 --- a/src/models/components/unifiedmarketingautomationuseroutput.ts +++ b/src/models/components/unifiedmarketingautomationuseroutput.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedMarketingautomationUserOutput = {}; @@ -37,3 +40,24 @@ export namespace UnifiedMarketingautomationUserOutput$ { /** @deprecated use `UnifiedMarketingautomationUserOutput$Outbound` instead. */ export type Outbound = UnifiedMarketingautomationUserOutput$Outbound; } + +export function unifiedMarketingautomationUserOutputToJSON( + unifiedMarketingautomationUserOutput: UnifiedMarketingautomationUserOutput, +): string { + return JSON.stringify( + UnifiedMarketingautomationUserOutput$outboundSchema.parse( + unifiedMarketingautomationUserOutput, + ), + ); +} + +export function unifiedMarketingautomationUserOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedMarketingautomationUserOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedMarketingautomationUserOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingaccountoutput.ts b/src/models/components/unifiedticketingaccountoutput.ts index bbeb14fb..54e80d5c 100644 --- a/src/models/components/unifiedticketingaccountoutput.ts +++ b/src/models/components/unifiedticketingaccountoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingAccountOutput = { /** @@ -116,3 +119,23 @@ export namespace UnifiedTicketingAccountOutput$ { /** @deprecated use `UnifiedTicketingAccountOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingAccountOutput$Outbound; } + +export function unifiedTicketingAccountOutputToJSON( + unifiedTicketingAccountOutput: UnifiedTicketingAccountOutput, +): string { + return JSON.stringify( + UnifiedTicketingAccountOutput$outboundSchema.parse( + unifiedTicketingAccountOutput, + ), + ); +} + +export function unifiedTicketingAccountOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingAccountOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingAccountOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingattachmentinput.ts b/src/models/components/unifiedticketingattachmentinput.ts index a98c1eff..34c7fc50 100644 --- a/src/models/components/unifiedticketingattachmentinput.ts +++ b/src/models/components/unifiedticketingattachmentinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingAttachmentInput = { /** @@ -98,3 +101,23 @@ export namespace UnifiedTicketingAttachmentInput$ { /** @deprecated use `UnifiedTicketingAttachmentInput$Outbound` instead. */ export type Outbound = UnifiedTicketingAttachmentInput$Outbound; } + +export function unifiedTicketingAttachmentInputToJSON( + unifiedTicketingAttachmentInput: UnifiedTicketingAttachmentInput, +): string { + return JSON.stringify( + UnifiedTicketingAttachmentInput$outboundSchema.parse( + unifiedTicketingAttachmentInput, + ), + ); +} + +export function unifiedTicketingAttachmentInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingAttachmentInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingAttachmentInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingattachmentoutput.ts b/src/models/components/unifiedticketingattachmentoutput.ts index 58ff4cd2..80e7cea3 100644 --- a/src/models/components/unifiedticketingattachmentoutput.ts +++ b/src/models/components/unifiedticketingattachmentoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingAttachmentOutput = { /** @@ -145,3 +148,23 @@ export namespace UnifiedTicketingAttachmentOutput$ { /** @deprecated use `UnifiedTicketingAttachmentOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingAttachmentOutput$Outbound; } + +export function unifiedTicketingAttachmentOutputToJSON( + unifiedTicketingAttachmentOutput: UnifiedTicketingAttachmentOutput, +): string { + return JSON.stringify( + UnifiedTicketingAttachmentOutput$outboundSchema.parse( + unifiedTicketingAttachmentOutput, + ), + ); +} + +export function unifiedTicketingAttachmentOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingAttachmentOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingAttachmentOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingcollectionoutput.ts b/src/models/components/unifiedticketingcollectionoutput.ts index 3e09fbc0..6abdd627 100644 --- a/src/models/components/unifiedticketingcollectionoutput.ts +++ b/src/models/components/unifiedticketingcollectionoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingCollectionOutput = { /** @@ -116,3 +119,23 @@ export namespace UnifiedTicketingCollectionOutput$ { /** @deprecated use `UnifiedTicketingCollectionOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingCollectionOutput$Outbound; } + +export function unifiedTicketingCollectionOutputToJSON( + unifiedTicketingCollectionOutput: UnifiedTicketingCollectionOutput, +): string { + return JSON.stringify( + UnifiedTicketingCollectionOutput$outboundSchema.parse( + unifiedTicketingCollectionOutput, + ), + ); +} + +export function unifiedTicketingCollectionOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingCollectionOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingCollectionOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingcommentinput.ts b/src/models/components/unifiedticketingcommentinput.ts index 7d0a80be..fb81fcd6 100644 --- a/src/models/components/unifiedticketingcommentinput.ts +++ b/src/models/components/unifiedticketingcommentinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutput$inboundSchema, @@ -87,6 +90,33 @@ export namespace UnifiedTicketingCommentInputAttachments$ { export type Outbound = UnifiedTicketingCommentInputAttachments$Outbound; } +export function unifiedTicketingCommentInputAttachmentsToJSON( + unifiedTicketingCommentInputAttachments: + UnifiedTicketingCommentInputAttachments, +): string { + return JSON.stringify( + UnifiedTicketingCommentInputAttachments$outboundSchema.parse( + unifiedTicketingCommentInputAttachments, + ), + ); +} + +export function unifiedTicketingCommentInputAttachmentsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedTicketingCommentInputAttachments, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedTicketingCommentInputAttachments$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedTicketingCommentInputAttachments' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingCommentInput$inboundSchema: z.ZodType< UnifiedTicketingCommentInput, @@ -172,3 +202,23 @@ export namespace UnifiedTicketingCommentInput$ { /** @deprecated use `UnifiedTicketingCommentInput$Outbound` instead. */ export type Outbound = UnifiedTicketingCommentInput$Outbound; } + +export function unifiedTicketingCommentInputToJSON( + unifiedTicketingCommentInput: UnifiedTicketingCommentInput, +): string { + return JSON.stringify( + UnifiedTicketingCommentInput$outboundSchema.parse( + unifiedTicketingCommentInput, + ), + ); +} + +export function unifiedTicketingCommentInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingCommentInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingCommentInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingcommentoutput.ts b/src/models/components/unifiedticketingcommentoutput.ts index a650e78b..9a9022b2 100644 --- a/src/models/components/unifiedticketingcommentoutput.ts +++ b/src/models/components/unifiedticketingcommentoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedTicketingAttachmentOutput, UnifiedTicketingAttachmentOutput$inboundSchema, @@ -107,6 +110,33 @@ export namespace UnifiedTicketingCommentOutputAttachments$ { export type Outbound = UnifiedTicketingCommentOutputAttachments$Outbound; } +export function unifiedTicketingCommentOutputAttachmentsToJSON( + unifiedTicketingCommentOutputAttachments: + UnifiedTicketingCommentOutputAttachments, +): string { + return JSON.stringify( + UnifiedTicketingCommentOutputAttachments$outboundSchema.parse( + unifiedTicketingCommentOutputAttachments, + ), + ); +} + +export function unifiedTicketingCommentOutputAttachmentsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedTicketingCommentOutputAttachments, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedTicketingCommentOutputAttachments$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedTicketingCommentOutputAttachments' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingCommentOutput$inboundSchema: z.ZodType< UnifiedTicketingCommentOutput, @@ -219,3 +249,23 @@ export namespace UnifiedTicketingCommentOutput$ { /** @deprecated use `UnifiedTicketingCommentOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingCommentOutput$Outbound; } + +export function unifiedTicketingCommentOutputToJSON( + unifiedTicketingCommentOutput: UnifiedTicketingCommentOutput, +): string { + return JSON.stringify( + UnifiedTicketingCommentOutput$outboundSchema.parse( + unifiedTicketingCommentOutput, + ), + ); +} + +export function unifiedTicketingCommentOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingCommentOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingCommentOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingcontactoutput.ts b/src/models/components/unifiedticketingcontactoutput.ts index 5f43ee7c..95ae45d0 100644 --- a/src/models/components/unifiedticketingcontactoutput.ts +++ b/src/models/components/unifiedticketingcontactoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingContactOutput = { /** @@ -134,3 +137,23 @@ export namespace UnifiedTicketingContactOutput$ { /** @deprecated use `UnifiedTicketingContactOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingContactOutput$Outbound; } + +export function unifiedTicketingContactOutputToJSON( + unifiedTicketingContactOutput: UnifiedTicketingContactOutput, +): string { + return JSON.stringify( + UnifiedTicketingContactOutput$outboundSchema.parse( + unifiedTicketingContactOutput, + ), + ); +} + +export function unifiedTicketingContactOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingContactOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingContactOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingtagoutput.ts b/src/models/components/unifiedticketingtagoutput.ts index e8e8ee11..5eb8eb50 100644 --- a/src/models/components/unifiedticketingtagoutput.ts +++ b/src/models/components/unifiedticketingtagoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingTagOutput = { /** @@ -109,3 +112,21 @@ export namespace UnifiedTicketingTagOutput$ { /** @deprecated use `UnifiedTicketingTagOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingTagOutput$Outbound; } + +export function unifiedTicketingTagOutputToJSON( + unifiedTicketingTagOutput: UnifiedTicketingTagOutput, +): string { + return JSON.stringify( + UnifiedTicketingTagOutput$outboundSchema.parse(unifiedTicketingTagOutput), + ); +} + +export function unifiedTicketingTagOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingTagOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTagOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingteamoutput.ts b/src/models/components/unifiedticketingteamoutput.ts index 2377e45f..af42aa1a 100644 --- a/src/models/components/unifiedticketingteamoutput.ts +++ b/src/models/components/unifiedticketingteamoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingTeamOutput = { /** @@ -116,3 +119,21 @@ export namespace UnifiedTicketingTeamOutput$ { /** @deprecated use `UnifiedTicketingTeamOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingTeamOutput$Outbound; } + +export function unifiedTicketingTeamOutputToJSON( + unifiedTicketingTeamOutput: UnifiedTicketingTeamOutput, +): string { + return JSON.stringify( + UnifiedTicketingTeamOutput$outboundSchema.parse(unifiedTicketingTeamOutput), + ); +} + +export function unifiedTicketingTeamOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingTeamOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTeamOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingticketinput.ts b/src/models/components/unifiedticketingticketinput.ts index 3f8d4552..b767d75a 100644 --- a/src/models/components/unifiedticketingticketinput.ts +++ b/src/models/components/unifiedticketingticketinput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInput$inboundSchema, @@ -193,6 +196,28 @@ export namespace UnifiedTicketingTicketInputCollections$ { export type Outbound = UnifiedTicketingTicketInputCollections$Outbound; } +export function unifiedTicketingTicketInputCollectionsToJSON( + unifiedTicketingTicketInputCollections: + UnifiedTicketingTicketInputCollections, +): string { + return JSON.stringify( + UnifiedTicketingTicketInputCollections$outboundSchema.parse( + unifiedTicketingTicketInputCollections, + ), + ); +} + +export function unifiedTicketingTicketInputCollectionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedTicketingTicketInputCollections$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketInputCollections' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketInputTags$inboundSchema: z.ZodType< UnifiedTicketingTicketInputTags, @@ -225,6 +250,26 @@ export namespace UnifiedTicketingTicketInputTags$ { export type Outbound = UnifiedTicketingTicketInputTags$Outbound; } +export function unifiedTicketingTicketInputTagsToJSON( + unifiedTicketingTicketInputTags: UnifiedTicketingTicketInputTags, +): string { + return JSON.stringify( + UnifiedTicketingTicketInputTags$outboundSchema.parse( + unifiedTicketingTicketInputTags, + ), + ); +} + +export function unifiedTicketingTicketInputTagsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingTicketInputTags$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketInputTags' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketInputCommentAttachments$inboundSchema: z.ZodType< @@ -261,6 +306,33 @@ export namespace UnifiedTicketingTicketInputCommentAttachments$ { export type Outbound = UnifiedTicketingTicketInputCommentAttachments$Outbound; } +export function unifiedTicketingTicketInputCommentAttachmentsToJSON( + unifiedTicketingTicketInputCommentAttachments: + UnifiedTicketingTicketInputCommentAttachments, +): string { + return JSON.stringify( + UnifiedTicketingTicketInputCommentAttachments$outboundSchema.parse( + unifiedTicketingTicketInputCommentAttachments, + ), + ); +} + +export function unifiedTicketingTicketInputCommentAttachmentsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedTicketingTicketInputCommentAttachments, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedTicketingTicketInputCommentAttachments$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedTicketingTicketInputCommentAttachments' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketInputComment$inboundSchema: z.ZodType< UnifiedTicketingTicketInputComment, @@ -348,6 +420,27 @@ export namespace UnifiedTicketingTicketInputComment$ { export type Outbound = UnifiedTicketingTicketInputComment$Outbound; } +export function unifiedTicketingTicketInputCommentToJSON( + unifiedTicketingTicketInputComment: UnifiedTicketingTicketInputComment, +): string { + return JSON.stringify( + UnifiedTicketingTicketInputComment$outboundSchema.parse( + unifiedTicketingTicketInputComment, + ), + ); +} + +export function unifiedTicketingTicketInputCommentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedTicketingTicketInputComment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketInputComment' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketInputAttachments$inboundSchema: z.ZodType< UnifiedTicketingTicketInputAttachments, @@ -382,6 +475,28 @@ export namespace UnifiedTicketingTicketInputAttachments$ { export type Outbound = UnifiedTicketingTicketInputAttachments$Outbound; } +export function unifiedTicketingTicketInputAttachmentsToJSON( + unifiedTicketingTicketInputAttachments: + UnifiedTicketingTicketInputAttachments, +): string { + return JSON.stringify( + UnifiedTicketingTicketInputAttachments$outboundSchema.parse( + unifiedTicketingTicketInputAttachments, + ), + ); +} + +export function unifiedTicketingTicketInputAttachmentsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + UnifiedTicketingTicketInputAttachments$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketInputAttachments' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketInput$inboundSchema: z.ZodType< UnifiedTicketingTicketInput, @@ -516,3 +631,23 @@ export namespace UnifiedTicketingTicketInput$ { /** @deprecated use `UnifiedTicketingTicketInput$Outbound` instead. */ export type Outbound = UnifiedTicketingTicketInput$Outbound; } + +export function unifiedTicketingTicketInputToJSON( + unifiedTicketingTicketInput: UnifiedTicketingTicketInput, +): string { + return JSON.stringify( + UnifiedTicketingTicketInput$outboundSchema.parse( + unifiedTicketingTicketInput, + ), + ); +} + +export function unifiedTicketingTicketInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingTicketInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketInput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketingticketoutput.ts b/src/models/components/unifiedticketingticketoutput.ts index 91e1e9ea..4785a353 100644 --- a/src/models/components/unifiedticketingticketoutput.ts +++ b/src/models/components/unifiedticketingticketoutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedTicketingAttachmentInput, UnifiedTicketingAttachmentInput$inboundSchema, @@ -205,6 +208,20 @@ export namespace Collections$ { export type Outbound = Collections$Outbound; } +export function collectionsToJSON(collections: Collections): string { + return JSON.stringify(Collections$outboundSchema.parse(collections)); +} + +export function collectionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Collections$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Collections' from JSON`, + ); +} + /** @internal */ export const Tags$inboundSchema: z.ZodType = z .union([UnifiedTicketingTagOutput$inboundSchema, z.string()]); @@ -229,6 +246,20 @@ export namespace Tags$ { export type Outbound = Tags$Outbound; } +export function tagsToJSON(tags: Tags): string { + return JSON.stringify(Tags$outboundSchema.parse(tags)); +} + +export function tagsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Tags$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Tags' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketOutputAttachments$inboundSchema: z.ZodType< UnifiedTicketingTicketOutputAttachments, @@ -263,6 +294,33 @@ export namespace UnifiedTicketingTicketOutputAttachments$ { export type Outbound = UnifiedTicketingTicketOutputAttachments$Outbound; } +export function unifiedTicketingTicketOutputAttachmentsToJSON( + unifiedTicketingTicketOutputAttachments: + UnifiedTicketingTicketOutputAttachments, +): string { + return JSON.stringify( + UnifiedTicketingTicketOutputAttachments$outboundSchema.parse( + unifiedTicketingTicketOutputAttachments, + ), + ); +} + +export function unifiedTicketingTicketOutputAttachmentsFromJSON( + jsonString: string, +): SafeParseResult< + UnifiedTicketingTicketOutputAttachments, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UnifiedTicketingTicketOutputAttachments$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UnifiedTicketingTicketOutputAttachments' from JSON`, + ); +} + /** @internal */ export const Comment$inboundSchema: z.ZodType = z.object({ @@ -346,6 +404,20 @@ export namespace Comment$ { export type Outbound = Comment$Outbound; } +export function commentToJSON(comment: Comment): string { + return JSON.stringify(Comment$outboundSchema.parse(comment)); +} + +export function commentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Comment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Comment' from JSON`, + ); +} + /** @internal */ export const Attachments$inboundSchema: z.ZodType< Attachments, @@ -378,6 +450,20 @@ export namespace Attachments$ { export type Outbound = Attachments$Outbound; } +export function attachmentsToJSON(attachments: Attachments): string { + return JSON.stringify(Attachments$outboundSchema.parse(attachments)); +} + +export function attachmentsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Attachments$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Attachments' from JSON`, + ); +} + /** @internal */ export const UnifiedTicketingTicketOutput$inboundSchema: z.ZodType< UnifiedTicketingTicketOutput, @@ -535,3 +621,23 @@ export namespace UnifiedTicketingTicketOutput$ { /** @deprecated use `UnifiedTicketingTicketOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingTicketOutput$Outbound; } + +export function unifiedTicketingTicketOutputToJSON( + unifiedTicketingTicketOutput: UnifiedTicketingTicketOutput, +): string { + return JSON.stringify( + UnifiedTicketingTicketOutput$outboundSchema.parse( + unifiedTicketingTicketOutput, + ), + ); +} + +export function unifiedTicketingTicketOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingTicketOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingTicketOutput' from JSON`, + ); +} diff --git a/src/models/components/unifiedticketinguseroutput.ts b/src/models/components/unifiedticketinguseroutput.ts index da41fe47..54287f48 100644 --- a/src/models/components/unifiedticketinguseroutput.ts +++ b/src/models/components/unifiedticketinguseroutput.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UnifiedTicketingUserOutput = { /** @@ -134,3 +137,21 @@ export namespace UnifiedTicketingUserOutput$ { /** @deprecated use `UnifiedTicketingUserOutput$Outbound` instead. */ export type Outbound = UnifiedTicketingUserOutput$Outbound; } + +export function unifiedTicketingUserOutputToJSON( + unifiedTicketingUserOutput: UnifiedTicketingUserOutput, +): string { + return JSON.stringify( + UnifiedTicketingUserOutput$outboundSchema.parse(unifiedTicketingUserOutput), + ); +} + +export function unifiedTicketingUserOutputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UnifiedTicketingUserOutput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UnifiedTicketingUserOutput' from JSON`, + ); +} diff --git a/src/models/components/updatepullfrequencydto.ts b/src/models/components/updatepullfrequencydto.ts index 59b7c887..8dbec194 100644 --- a/src/models/components/updatepullfrequencydto.ts +++ b/src/models/components/updatepullfrequencydto.ts @@ -3,20 +3,15 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdatePullFrequencyDto = { /** * Frequency in seconds */ crm: number; - /** - * Frequency in seconds - */ - ats: number; - /** - * Frequency in seconds - */ - hris: number; /** * Frequency in seconds */ @@ -42,8 +37,6 @@ export const UpdatePullFrequencyDto$inboundSchema: z.ZodType< unknown > = z.object({ crm: z.number(), - ats: z.number(), - hris: z.number(), accounting: z.number(), filestorage: z.number(), ecommerce: z.number(), @@ -53,8 +46,6 @@ export const UpdatePullFrequencyDto$inboundSchema: z.ZodType< /** @internal */ export type UpdatePullFrequencyDto$Outbound = { crm: number; - ats: number; - hris: number; accounting: number; filestorage: number; ecommerce: number; @@ -68,8 +59,6 @@ export const UpdatePullFrequencyDto$outboundSchema: z.ZodType< UpdatePullFrequencyDto > = z.object({ crm: z.number(), - ats: z.number(), - hris: z.number(), accounting: z.number(), filestorage: z.number(), ecommerce: z.number(), @@ -88,3 +77,21 @@ export namespace UpdatePullFrequencyDto$ { /** @deprecated use `UpdatePullFrequencyDto$Outbound` instead. */ export type Outbound = UpdatePullFrequencyDto$Outbound; } + +export function updatePullFrequencyDtoToJSON( + updatePullFrequencyDto: UpdatePullFrequencyDto, +): string { + return JSON.stringify( + UpdatePullFrequencyDto$outboundSchema.parse(updatePullFrequencyDto), + ); +} + +export function updatePullFrequencyDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdatePullFrequencyDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdatePullFrequencyDto' from JSON`, + ); +} diff --git a/src/models/components/url.ts b/src/models/components/url.ts deleted file mode 100644 index 8a8f69b8..00000000 --- a/src/models/components/url.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type Url = { - /** - * The url. - */ - url: string | null; - /** - * The url type. It takes [WEBSITE | BLOG | LINKEDIN | GITHUB | OTHER] - */ - urlType: string | null; -}; - -/** @internal */ -export const Url$inboundSchema: z.ZodType = z - .object({ - url: z.nullable(z.string()), - url_type: z.nullable(z.string()), - }).transform((v) => { - return remap$(v, { - "url_type": "urlType", - }); - }); - -/** @internal */ -export type Url$Outbound = { - url: string | null; - url_type: string | null; -}; - -/** @internal */ -export const Url$outboundSchema: z.ZodType = z - .object({ - url: z.nullable(z.string()), - urlType: z.nullable(z.string()), - }).transform((v) => { - return remap$(v, { - urlType: "url_type", - }); - }); - -/** - * @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/variant.ts b/src/models/components/variant.ts index e3b42e97..5bc7fb3c 100644 --- a/src/models/components/variant.ts +++ b/src/models/components/variant.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Variant = {}; @@ -32,3 +35,17 @@ export namespace Variant$ { /** @deprecated use `Variant$Outbound` instead. */ export type Outbound = Variant$Outbound; } + +export function variantToJSON(variant: Variant): string { + return JSON.stringify(Variant$outboundSchema.parse(variant)); +} + +export function variantFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Variant$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Variant' from JSON`, + ); +} diff --git a/src/models/components/webhookdto.ts b/src/models/components/webhookdto.ts index f003e3ff..dbc4cca1 100644 --- a/src/models/components/webhookdto.ts +++ b/src/models/components/webhookdto.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WebhookDto = { /** @@ -12,7 +15,7 @@ export type WebhookDto = { /** * The description of the webhook. */ - description?: string | null | undefined; + description: string | null; /** * The events that the webhook listen to. */ @@ -26,14 +29,14 @@ export const WebhookDto$inboundSchema: z.ZodType< unknown > = z.object({ url: z.nullable(z.string()), - description: z.nullable(z.string()).optional(), + description: z.nullable(z.string()), scope: z.nullable(z.array(z.string())), }); /** @internal */ export type WebhookDto$Outbound = { url: string | null; - description?: string | null | undefined; + description: string | null; scope: Array | null; }; @@ -44,7 +47,7 @@ export const WebhookDto$outboundSchema: z.ZodType< WebhookDto > = z.object({ url: z.nullable(z.string()), - description: z.nullable(z.string()).optional(), + description: z.nullable(z.string()), scope: z.nullable(z.array(z.string())), }); @@ -60,3 +63,17 @@ export namespace WebhookDto$ { /** @deprecated use `WebhookDto$Outbound` instead. */ export type Outbound = WebhookDto$Outbound; } + +export function webhookDtoToJSON(webhookDto: WebhookDto): string { + return JSON.stringify(WebhookDto$outboundSchema.parse(webhookDto)); +} + +export function webhookDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => WebhookDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'WebhookDto' from JSON`, + ); +} diff --git a/src/models/components/webhookresponse.ts b/src/models/components/webhookresponse.ts index bd561dd0..ba6077a6 100644 --- a/src/models/components/webhookresponse.ts +++ b/src/models/components/webhookresponse.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WebhookResponse = { /** @@ -123,3 +126,19 @@ export namespace WebhookResponse$ { /** @deprecated use `WebhookResponse$Outbound` instead. */ export type Outbound = WebhookResponse$Outbound; } + +export function webhookResponseToJSON( + webhookResponse: WebhookResponse, +): string { + return JSON.stringify(WebhookResponse$outboundSchema.parse(webhookResponse)); +} + +export function webhookResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => WebhookResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'WebhookResponse' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingaccount.ts b/src/models/operations/createaccountingaccount.ts index 8ad3880e..4206606a 100644 --- a/src/models/operations/createaccountingaccount.ts +++ b/src/models/operations/createaccountingaccount.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingAccountRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateAccountingAccountRequest$ { /** @deprecated use `CreateAccountingAccountRequest$Outbound` instead. */ export type Outbound = CreateAccountingAccountRequest$Outbound; } + +export function createAccountingAccountRequestToJSON( + createAccountingAccountRequest: CreateAccountingAccountRequest, +): string { + return JSON.stringify( + CreateAccountingAccountRequest$outboundSchema.parse( + createAccountingAccountRequest, + ), + ); +} + +export function createAccountingAccountRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingAccountRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingAccountRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingattachment.ts b/src/models/operations/createaccountingattachment.ts index 19b98d19..ec1f5171 100644 --- a/src/models/operations/createaccountingattachment.ts +++ b/src/models/operations/createaccountingattachment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingAttachmentRequest = { /** @@ -75,3 +78,23 @@ export namespace CreateAccountingAttachmentRequest$ { /** @deprecated use `CreateAccountingAttachmentRequest$Outbound` instead. */ export type Outbound = CreateAccountingAttachmentRequest$Outbound; } + +export function createAccountingAttachmentRequestToJSON( + createAccountingAttachmentRequest: CreateAccountingAttachmentRequest, +): string { + return JSON.stringify( + CreateAccountingAttachmentRequest$outboundSchema.parse( + createAccountingAttachmentRequest, + ), + ); +} + +export function createAccountingAttachmentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingAttachmentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingAttachmentRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingcontact.ts b/src/models/operations/createaccountingcontact.ts index 18bb5db1..e394540f 100644 --- a/src/models/operations/createaccountingcontact.ts +++ b/src/models/operations/createaccountingcontact.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingContactRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateAccountingContactRequest$ { /** @deprecated use `CreateAccountingContactRequest$Outbound` instead. */ export type Outbound = CreateAccountingContactRequest$Outbound; } + +export function createAccountingContactRequestToJSON( + createAccountingContactRequest: CreateAccountingContactRequest, +): string { + return JSON.stringify( + CreateAccountingContactRequest$outboundSchema.parse( + createAccountingContactRequest, + ), + ); +} + +export function createAccountingContactRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingContactRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingexpense.ts b/src/models/operations/createaccountingexpense.ts index 5205a2d5..18a65f6b 100644 --- a/src/models/operations/createaccountingexpense.ts +++ b/src/models/operations/createaccountingexpense.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingExpenseRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateAccountingExpenseRequest$ { /** @deprecated use `CreateAccountingExpenseRequest$Outbound` instead. */ export type Outbound = CreateAccountingExpenseRequest$Outbound; } + +export function createAccountingExpenseRequestToJSON( + createAccountingExpenseRequest: CreateAccountingExpenseRequest, +): string { + return JSON.stringify( + CreateAccountingExpenseRequest$outboundSchema.parse( + createAccountingExpenseRequest, + ), + ); +} + +export function createAccountingExpenseRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingExpenseRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingExpenseRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountinginvoice.ts b/src/models/operations/createaccountinginvoice.ts index a552af1d..c36db1b6 100644 --- a/src/models/operations/createaccountinginvoice.ts +++ b/src/models/operations/createaccountinginvoice.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingInvoiceRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateAccountingInvoiceRequest$ { /** @deprecated use `CreateAccountingInvoiceRequest$Outbound` instead. */ export type Outbound = CreateAccountingInvoiceRequest$Outbound; } + +export function createAccountingInvoiceRequestToJSON( + createAccountingInvoiceRequest: CreateAccountingInvoiceRequest, +): string { + return JSON.stringify( + CreateAccountingInvoiceRequest$outboundSchema.parse( + createAccountingInvoiceRequest, + ), + ); +} + +export function createAccountingInvoiceRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingInvoiceRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingInvoiceRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingjournalentry.ts b/src/models/operations/createaccountingjournalentry.ts index a592a4a6..225d9d47 100644 --- a/src/models/operations/createaccountingjournalentry.ts +++ b/src/models/operations/createaccountingjournalentry.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingJournalEntryRequest = { /** @@ -77,3 +80,24 @@ export namespace CreateAccountingJournalEntryRequest$ { /** @deprecated use `CreateAccountingJournalEntryRequest$Outbound` instead. */ export type Outbound = CreateAccountingJournalEntryRequest$Outbound; } + +export function createAccountingJournalEntryRequestToJSON( + createAccountingJournalEntryRequest: CreateAccountingJournalEntryRequest, +): string { + return JSON.stringify( + CreateAccountingJournalEntryRequest$outboundSchema.parse( + createAccountingJournalEntryRequest, + ), + ); +} + +export function createAccountingJournalEntryRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateAccountingJournalEntryRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingJournalEntryRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingpayment.ts b/src/models/operations/createaccountingpayment.ts index 6da123d2..0de2b4b4 100644 --- a/src/models/operations/createaccountingpayment.ts +++ b/src/models/operations/createaccountingpayment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingPaymentRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateAccountingPaymentRequest$ { /** @deprecated use `CreateAccountingPaymentRequest$Outbound` instead. */ export type Outbound = CreateAccountingPaymentRequest$Outbound; } + +export function createAccountingPaymentRequestToJSON( + createAccountingPaymentRequest: CreateAccountingPaymentRequest, +): string { + return JSON.stringify( + CreateAccountingPaymentRequest$outboundSchema.parse( + createAccountingPaymentRequest, + ), + ); +} + +export function createAccountingPaymentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateAccountingPaymentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingPaymentRequest' from JSON`, + ); +} diff --git a/src/models/operations/createaccountingpurchaseorder.ts b/src/models/operations/createaccountingpurchaseorder.ts index 97d271fb..7f962fce 100644 --- a/src/models/operations/createaccountingpurchaseorder.ts +++ b/src/models/operations/createaccountingpurchaseorder.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateAccountingPurchaseOrderRequest = { /** @@ -78,3 +81,24 @@ export namespace CreateAccountingPurchaseOrderRequest$ { /** @deprecated use `CreateAccountingPurchaseOrderRequest$Outbound` instead. */ export type Outbound = CreateAccountingPurchaseOrderRequest$Outbound; } + +export function createAccountingPurchaseOrderRequestToJSON( + createAccountingPurchaseOrderRequest: CreateAccountingPurchaseOrderRequest, +): string { + return JSON.stringify( + CreateAccountingPurchaseOrderRequest$outboundSchema.parse( + createAccountingPurchaseOrderRequest, + ), + ); +} + +export function createAccountingPurchaseOrderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateAccountingPurchaseOrderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateAccountingPurchaseOrderRequest' from JSON`, + ); +} diff --git a/src/models/operations/createatsactivity.ts b/src/models/operations/createatsactivity.ts deleted file mode 100644 index a5acad40..00000000 --- a/src/models/operations/createatsactivity.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateAtsActivityRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; - unifiedAtsActivityInput: components.UnifiedAtsActivityInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateAtsActivityRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsActivityInput: components.UnifiedAtsActivityInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createatsapplication.ts b/src/models/operations/createatsapplication.ts deleted file mode 100644 index cc81ba18..00000000 --- a/src/models/operations/createatsapplication.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateAtsApplicationRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; - unifiedAtsApplicationInput: components.UnifiedAtsApplicationInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateAtsApplicationRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsApplicationInput: components.UnifiedAtsApplicationInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createatsattachment.ts b/src/models/operations/createatsattachment.ts deleted file mode 100644 index 4c0edacb..00000000 --- a/src/models/operations/createatsattachment.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateAtsAttachmentRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; - unifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateAtsAttachmentRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsAttachmentInput: components.UnifiedAtsAttachmentInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createatscandidate.ts b/src/models/operations/createatscandidate.ts deleted file mode 100644 index 19614056..00000000 --- a/src/models/operations/createatscandidate.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateAtsCandidateRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; - unifiedAtsCandidateInput: components.UnifiedAtsCandidateInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateAtsCandidateRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsCandidateInput: components.UnifiedAtsCandidateInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createatsinterview.ts b/src/models/operations/createatsinterview.ts deleted file mode 100644 index 08f67534..00000000 --- a/src/models/operations/createatsinterview.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateAtsInterviewRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; - unifiedAtsInterviewInput: components.UnifiedAtsInterviewInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateAtsInterviewRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedAtsInterviewInput: components.UnifiedAtsInterviewInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createcrmcompany.ts b/src/models/operations/createcrmcompany.ts index d094f0b7..00b4cd55 100644 --- a/src/models/operations/createcrmcompany.ts +++ b/src/models/operations/createcrmcompany.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmCompanyRequest = { /** @@ -71,3 +74,21 @@ export namespace CreateCrmCompanyRequest$ { /** @deprecated use `CreateCrmCompanyRequest$Outbound` instead. */ export type Outbound = CreateCrmCompanyRequest$Outbound; } + +export function createCrmCompanyRequestToJSON( + createCrmCompanyRequest: CreateCrmCompanyRequest, +): string { + return JSON.stringify( + CreateCrmCompanyRequest$outboundSchema.parse(createCrmCompanyRequest), + ); +} + +export function createCrmCompanyRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmCompanyRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmCompanyRequest' from JSON`, + ); +} diff --git a/src/models/operations/createcrmcontact.ts b/src/models/operations/createcrmcontact.ts index 688324e0..67205199 100644 --- a/src/models/operations/createcrmcontact.ts +++ b/src/models/operations/createcrmcontact.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmContactRequest = { /** @@ -71,3 +74,21 @@ export namespace CreateCrmContactRequest$ { /** @deprecated use `CreateCrmContactRequest$Outbound` instead. */ export type Outbound = CreateCrmContactRequest$Outbound; } + +export function createCrmContactRequestToJSON( + createCrmContactRequest: CreateCrmContactRequest, +): string { + return JSON.stringify( + CreateCrmContactRequest$outboundSchema.parse(createCrmContactRequest), + ); +} + +export function createCrmContactRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmContactRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/createcrmdeal.ts b/src/models/operations/createcrmdeal.ts index 7555a291..3399b387 100644 --- a/src/models/operations/createcrmdeal.ts +++ b/src/models/operations/createcrmdeal.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmDealRequest = { /** @@ -71,3 +74,21 @@ export namespace CreateCrmDealRequest$ { /** @deprecated use `CreateCrmDealRequest$Outbound` instead. */ export type Outbound = CreateCrmDealRequest$Outbound; } + +export function createCrmDealRequestToJSON( + createCrmDealRequest: CreateCrmDealRequest, +): string { + return JSON.stringify( + CreateCrmDealRequest$outboundSchema.parse(createCrmDealRequest), + ); +} + +export function createCrmDealRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmDealRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmDealRequest' from JSON`, + ); +} diff --git a/src/models/operations/createcrmengagement.ts b/src/models/operations/createcrmengagement.ts index 7a7eef22..019c46af 100644 --- a/src/models/operations/createcrmengagement.ts +++ b/src/models/operations/createcrmengagement.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmEngagementRequest = { /** @@ -72,3 +75,21 @@ export namespace CreateCrmEngagementRequest$ { /** @deprecated use `CreateCrmEngagementRequest$Outbound` instead. */ export type Outbound = CreateCrmEngagementRequest$Outbound; } + +export function createCrmEngagementRequestToJSON( + createCrmEngagementRequest: CreateCrmEngagementRequest, +): string { + return JSON.stringify( + CreateCrmEngagementRequest$outboundSchema.parse(createCrmEngagementRequest), + ); +} + +export function createCrmEngagementRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmEngagementRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmEngagementRequest' from JSON`, + ); +} diff --git a/src/models/operations/createcrmnote.ts b/src/models/operations/createcrmnote.ts index f37f0dec..870a8a83 100644 --- a/src/models/operations/createcrmnote.ts +++ b/src/models/operations/createcrmnote.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmNoteRequest = { /** @@ -71,3 +74,21 @@ export namespace CreateCrmNoteRequest$ { /** @deprecated use `CreateCrmNoteRequest$Outbound` instead. */ export type Outbound = CreateCrmNoteRequest$Outbound; } + +export function createCrmNoteRequestToJSON( + createCrmNoteRequest: CreateCrmNoteRequest, +): string { + return JSON.stringify( + CreateCrmNoteRequest$outboundSchema.parse(createCrmNoteRequest), + ); +} + +export function createCrmNoteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmNoteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmNoteRequest' from JSON`, + ); +} diff --git a/src/models/operations/createcrmtask.ts b/src/models/operations/createcrmtask.ts index 800b63f2..0b160674 100644 --- a/src/models/operations/createcrmtask.ts +++ b/src/models/operations/createcrmtask.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCrmTaskRequest = { /** @@ -71,3 +74,21 @@ export namespace CreateCrmTaskRequest$ { /** @deprecated use `CreateCrmTaskRequest$Outbound` instead. */ export type Outbound = CreateCrmTaskRequest$Outbound; } + +export function createCrmTaskRequestToJSON( + createCrmTaskRequest: CreateCrmTaskRequest, +): string { + return JSON.stringify( + CreateCrmTaskRequest$outboundSchema.parse(createCrmTaskRequest), + ); +} + +export function createCrmTaskRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCrmTaskRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCrmTaskRequest' from JSON`, + ); +} diff --git a/src/models/operations/createecommerceorder.ts b/src/models/operations/createecommerceorder.ts index 927cd25b..5371195b 100644 --- a/src/models/operations/createecommerceorder.ts +++ b/src/models/operations/createecommerceorder.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateEcommerceOrderRequest = { /** @@ -73,3 +76,23 @@ export namespace CreateEcommerceOrderRequest$ { /** @deprecated use `CreateEcommerceOrderRequest$Outbound` instead. */ export type Outbound = CreateEcommerceOrderRequest$Outbound; } + +export function createEcommerceOrderRequestToJSON( + createEcommerceOrderRequest: CreateEcommerceOrderRequest, +): string { + return JSON.stringify( + CreateEcommerceOrderRequest$outboundSchema.parse( + createEcommerceOrderRequest, + ), + ); +} + +export function createEcommerceOrderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateEcommerceOrderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateEcommerceOrderRequest' from JSON`, + ); +} diff --git a/src/models/operations/createecommerceproduct.ts b/src/models/operations/createecommerceproduct.ts index 5090c8b4..127fbf96 100644 --- a/src/models/operations/createecommerceproduct.ts +++ b/src/models/operations/createecommerceproduct.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateEcommerceProductRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateEcommerceProductRequest$ { /** @deprecated use `CreateEcommerceProductRequest$Outbound` instead. */ export type Outbound = CreateEcommerceProductRequest$Outbound; } + +export function createEcommerceProductRequestToJSON( + createEcommerceProductRequest: CreateEcommerceProductRequest, +): string { + return JSON.stringify( + CreateEcommerceProductRequest$outboundSchema.parse( + createEcommerceProductRequest, + ), + ); +} + +export function createEcommerceProductRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateEcommerceProductRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateEcommerceProductRequest' from JSON`, + ); +} diff --git a/src/models/operations/createfilestoragefile.ts b/src/models/operations/createfilestoragefile.ts index 3f9cfcdc..50e2c5b9 100644 --- a/src/models/operations/createfilestoragefile.ts +++ b/src/models/operations/createfilestoragefile.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateFilestorageFileRequest = { /** @@ -73,3 +76,23 @@ export namespace CreateFilestorageFileRequest$ { /** @deprecated use `CreateFilestorageFileRequest$Outbound` instead. */ export type Outbound = CreateFilestorageFileRequest$Outbound; } + +export function createFilestorageFileRequestToJSON( + createFilestorageFileRequest: CreateFilestorageFileRequest, +): string { + return JSON.stringify( + CreateFilestorageFileRequest$outboundSchema.parse( + createFilestorageFileRequest, + ), + ); +} + +export function createFilestorageFileRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateFilestorageFileRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateFilestorageFileRequest' from JSON`, + ); +} diff --git a/src/models/operations/createfilestoragefolder.ts b/src/models/operations/createfilestoragefolder.ts index be50bfd5..84ce7aa6 100644 --- a/src/models/operations/createfilestoragefolder.ts +++ b/src/models/operations/createfilestoragefolder.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateFilestorageFolderRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateFilestorageFolderRequest$ { /** @deprecated use `CreateFilestorageFolderRequest$Outbound` instead. */ export type Outbound = CreateFilestorageFolderRequest$Outbound; } + +export function createFilestorageFolderRequestToJSON( + createFilestorageFolderRequest: CreateFilestorageFolderRequest, +): string { + return JSON.stringify( + CreateFilestorageFolderRequest$outboundSchema.parse( + createFilestorageFolderRequest, + ), + ); +} + +export function createFilestorageFolderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateFilestorageFolderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateFilestorageFolderRequest' from JSON`, + ); +} diff --git a/src/models/operations/createhrisemployee.ts b/src/models/operations/createhrisemployee.ts deleted file mode 100644 index 7b366d24..00000000 --- a/src/models/operations/createhrisemployee.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateHrisEmployeeRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; - unifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateHrisEmployeeRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedHrisEmployeeInput: components.UnifiedHrisEmployeeInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createhristimeoff.ts b/src/models/operations/createhristimeoff.ts deleted file mode 100644 index 0788f4cc..00000000 --- a/src/models/operations/createhristimeoff.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateHrisTimeoffRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; - unifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type CreateHrisTimeoffRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedHrisTimeoffInput: components.UnifiedHrisTimeoffInput$Outbound; -}; - -/** @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; -} diff --git a/src/models/operations/createhristimesheetentry.ts b/src/models/operations/createhristimesheetentry.ts deleted file mode 100644 index 5905fce5..00000000 --- a/src/models/operations/createhristimesheetentry.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type CreateHrisTimesheetentryRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; - unifiedHrisTimesheetEntryInput: components.UnifiedHrisTimesheetEntryInput; -}; - -/** @internal */ -export const CreateHrisTimesheetentryRequest$inboundSchema: z.ZodType< - CreateHrisTimesheetentryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "x-connection-token": z.string(), - remote_data: z.boolean().optional(), - UnifiedHrisTimesheetEntryInput: - components.UnifiedHrisTimesheetEntryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - "remote_data": "remoteData", - "UnifiedHrisTimesheetEntryInput": "unifiedHrisTimesheetEntryInput", - }); -}); - -/** @internal */ -export type CreateHrisTimesheetentryRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - UnifiedHrisTimesheetEntryInput: - components.UnifiedHrisTimesheetEntryInput$Outbound; -}; - -/** @internal */ -export const CreateHrisTimesheetentryRequest$outboundSchema: z.ZodType< - CreateHrisTimesheetentryRequest$Outbound, - z.ZodTypeDef, - CreateHrisTimesheetentryRequest -> = z.object({ - xConnectionToken: z.string(), - remoteData: z.boolean().optional(), - unifiedHrisTimesheetEntryInput: - components.UnifiedHrisTimesheetEntryInput$outboundSchema, -}).transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - remoteData: "remote_data", - unifiedHrisTimesheetEntryInput: "UnifiedHrisTimesheetEntryInput", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateHrisTimesheetentryRequest$ { - /** @deprecated use `CreateHrisTimesheetentryRequest$inboundSchema` instead. */ - export const inboundSchema = CreateHrisTimesheetentryRequest$inboundSchema; - /** @deprecated use `CreateHrisTimesheetentryRequest$outboundSchema` instead. */ - export const outboundSchema = CreateHrisTimesheetentryRequest$outboundSchema; - /** @deprecated use `CreateHrisTimesheetentryRequest$Outbound` instead. */ - export type Outbound = CreateHrisTimesheetentryRequest$Outbound; -} diff --git a/src/models/operations/createmarketingautomationaction.ts b/src/models/operations/createmarketingautomationaction.ts index c3153eb1..f8f4c7c5 100644 --- a/src/models/operations/createmarketingautomationaction.ts +++ b/src/models/operations/createmarketingautomationaction.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingautomationActionRequest = { /** @@ -79,3 +82,25 @@ export namespace CreateMarketingautomationActionRequest$ { /** @deprecated use `CreateMarketingautomationActionRequest$Outbound` instead. */ export type Outbound = CreateMarketingautomationActionRequest$Outbound; } + +export function createMarketingautomationActionRequestToJSON( + createMarketingautomationActionRequest: + CreateMarketingautomationActionRequest, +): string { + return JSON.stringify( + CreateMarketingautomationActionRequest$outboundSchema.parse( + createMarketingautomationActionRequest, + ), + ); +} + +export function createMarketingautomationActionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateMarketingautomationActionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateMarketingautomationActionRequest' from JSON`, + ); +} diff --git a/src/models/operations/createmarketingautomationautomation.ts b/src/models/operations/createmarketingautomationautomation.ts index d5937ed6..ab878b1d 100644 --- a/src/models/operations/createmarketingautomationautomation.ts +++ b/src/models/operations/createmarketingautomationautomation.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingautomationAutomationRequest = { /** @@ -78,3 +81,30 @@ export namespace CreateMarketingautomationAutomationRequest$ { /** @deprecated use `CreateMarketingautomationAutomationRequest$Outbound` instead. */ export type Outbound = CreateMarketingautomationAutomationRequest$Outbound; } + +export function createMarketingautomationAutomationRequestToJSON( + createMarketingautomationAutomationRequest: + CreateMarketingautomationAutomationRequest, +): string { + return JSON.stringify( + CreateMarketingautomationAutomationRequest$outboundSchema.parse( + createMarketingautomationAutomationRequest, + ), + ); +} + +export function createMarketingautomationAutomationRequestFromJSON( + jsonString: string, +): SafeParseResult< + CreateMarketingautomationAutomationRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateMarketingautomationAutomationRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateMarketingautomationAutomationRequest' from JSON`, + ); +} diff --git a/src/models/operations/createmarketingautomationcampaign.ts b/src/models/operations/createmarketingautomationcampaign.ts index 9ca51aa3..730170c6 100644 --- a/src/models/operations/createmarketingautomationcampaign.ts +++ b/src/models/operations/createmarketingautomationcampaign.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingautomationCampaignRequest = { /** @@ -79,3 +82,30 @@ export namespace CreateMarketingautomationCampaignRequest$ { /** @deprecated use `CreateMarketingautomationCampaignRequest$Outbound` instead. */ export type Outbound = CreateMarketingautomationCampaignRequest$Outbound; } + +export function createMarketingautomationCampaignRequestToJSON( + createMarketingautomationCampaignRequest: + CreateMarketingautomationCampaignRequest, +): string { + return JSON.stringify( + CreateMarketingautomationCampaignRequest$outboundSchema.parse( + createMarketingautomationCampaignRequest, + ), + ); +} + +export function createMarketingautomationCampaignRequestFromJSON( + jsonString: string, +): SafeParseResult< + CreateMarketingautomationCampaignRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateMarketingautomationCampaignRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateMarketingautomationCampaignRequest' from JSON`, + ); +} diff --git a/src/models/operations/createmarketingautomationcontact.ts b/src/models/operations/createmarketingautomationcontact.ts index 1efb6a5b..758a4b0e 100644 --- a/src/models/operations/createmarketingautomationcontact.ts +++ b/src/models/operations/createmarketingautomationcontact.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingAutomationContactRequest = { /** @@ -79,3 +82,30 @@ export namespace CreateMarketingAutomationContactRequest$ { /** @deprecated use `CreateMarketingAutomationContactRequest$Outbound` instead. */ export type Outbound = CreateMarketingAutomationContactRequest$Outbound; } + +export function createMarketingAutomationContactRequestToJSON( + createMarketingAutomationContactRequest: + CreateMarketingAutomationContactRequest, +): string { + return JSON.stringify( + CreateMarketingAutomationContactRequest$outboundSchema.parse( + createMarketingAutomationContactRequest, + ), + ); +} + +export function createMarketingAutomationContactRequestFromJSON( + jsonString: string, +): SafeParseResult< + CreateMarketingAutomationContactRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateMarketingAutomationContactRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateMarketingAutomationContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/createmarketingautomationlist.ts b/src/models/operations/createmarketingautomationlist.ts index ea214cc2..254c7d35 100644 --- a/src/models/operations/createmarketingautomationlist.ts +++ b/src/models/operations/createmarketingautomationlist.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingautomationListRequest = { /** @@ -78,3 +81,24 @@ export namespace CreateMarketingautomationListRequest$ { /** @deprecated use `CreateMarketingautomationListRequest$Outbound` instead. */ export type Outbound = CreateMarketingautomationListRequest$Outbound; } + +export function createMarketingautomationListRequestToJSON( + createMarketingautomationListRequest: CreateMarketingautomationListRequest, +): string { + return JSON.stringify( + CreateMarketingautomationListRequest$outboundSchema.parse( + createMarketingautomationListRequest, + ), + ); +} + +export function createMarketingautomationListRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateMarketingautomationListRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateMarketingautomationListRequest' from JSON`, + ); +} diff --git a/src/models/operations/createmarketingautomationtemplate.ts b/src/models/operations/createmarketingautomationtemplate.ts index 8faf54c8..b33e5ffa 100644 --- a/src/models/operations/createmarketingautomationtemplate.ts +++ b/src/models/operations/createmarketingautomationtemplate.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateMarketingautomationTemplateRequest = { /** @@ -79,3 +82,30 @@ export namespace CreateMarketingautomationTemplateRequest$ { /** @deprecated use `CreateMarketingautomationTemplateRequest$Outbound` instead. */ export type Outbound = CreateMarketingautomationTemplateRequest$Outbound; } + +export function createMarketingautomationTemplateRequestToJSON( + createMarketingautomationTemplateRequest: + CreateMarketingautomationTemplateRequest, +): string { + return JSON.stringify( + CreateMarketingautomationTemplateRequest$outboundSchema.parse( + createMarketingautomationTemplateRequest, + ), + ); +} + +export function createMarketingautomationTemplateRequestFromJSON( + jsonString: string, +): SafeParseResult< + CreateMarketingautomationTemplateRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateMarketingautomationTemplateRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateMarketingautomationTemplateRequest' from JSON`, + ); +} diff --git a/src/models/operations/createticketingattachment.ts b/src/models/operations/createticketingattachment.ts index 689cc045..a82ee21b 100644 --- a/src/models/operations/createticketingattachment.ts +++ b/src/models/operations/createticketingattachment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateTicketingAttachmentRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateTicketingAttachmentRequest$ { /** @deprecated use `CreateTicketingAttachmentRequest$Outbound` instead. */ export type Outbound = CreateTicketingAttachmentRequest$Outbound; } + +export function createTicketingAttachmentRequestToJSON( + createTicketingAttachmentRequest: CreateTicketingAttachmentRequest, +): string { + return JSON.stringify( + CreateTicketingAttachmentRequest$outboundSchema.parse( + createTicketingAttachmentRequest, + ), + ); +} + +export function createTicketingAttachmentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateTicketingAttachmentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateTicketingAttachmentRequest' from JSON`, + ); +} diff --git a/src/models/operations/createticketingcomment.ts b/src/models/operations/createticketingcomment.ts index ebd7324a..04c967b4 100644 --- a/src/models/operations/createticketingcomment.ts +++ b/src/models/operations/createticketingcomment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateTicketingCommentRequest = { /** @@ -74,3 +77,23 @@ export namespace CreateTicketingCommentRequest$ { /** @deprecated use `CreateTicketingCommentRequest$Outbound` instead. */ export type Outbound = CreateTicketingCommentRequest$Outbound; } + +export function createTicketingCommentRequestToJSON( + createTicketingCommentRequest: CreateTicketingCommentRequest, +): string { + return JSON.stringify( + CreateTicketingCommentRequest$outboundSchema.parse( + createTicketingCommentRequest, + ), + ); +} + +export function createTicketingCommentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateTicketingCommentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateTicketingCommentRequest' from JSON`, + ); +} diff --git a/src/models/operations/createticketingticket.ts b/src/models/operations/createticketingticket.ts index a4727b69..c88f5760 100644 --- a/src/models/operations/createticketingticket.ts +++ b/src/models/operations/createticketingticket.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateTicketingTicketRequest = { /** @@ -73,3 +76,23 @@ export namespace CreateTicketingTicketRequest$ { /** @deprecated use `CreateTicketingTicketRequest$Outbound` instead. */ export type Outbound = CreateTicketingTicketRequest$Outbound; } + +export function createTicketingTicketRequestToJSON( + createTicketingTicketRequest: CreateTicketingTicketRequest, +): string { + return JSON.stringify( + CreateTicketingTicketRequest$outboundSchema.parse( + createTicketingTicketRequest, + ), + ); +} + +export function createTicketingTicketRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateTicketingTicketRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateTicketingTicketRequest' from JSON`, + ); +} diff --git a/src/models/operations/delete.ts b/src/models/operations/delete.ts index f504848f..a7dd964f 100644 --- a/src/models/operations/delete.ts +++ b/src/models/operations/delete.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteRequest = { /** @@ -46,3 +49,17 @@ export namespace DeleteRequest$ { /** @deprecated use `DeleteRequest$Outbound` instead. */ export type Outbound = DeleteRequest$Outbound; } + +export function deleteRequestToJSON(deleteRequest: DeleteRequest): string { + return JSON.stringify(DeleteRequest$outboundSchema.parse(deleteRequest)); +} + +export function deleteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteRequest' from JSON`, + ); +} diff --git a/src/models/operations/getpanoracoreevents.ts b/src/models/operations/getpanoracoreevents.ts index d8f7069d..57c15993 100644 --- a/src/models/operations/getpanoracoreevents.ts +++ b/src/models/operations/getpanoracoreevents.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetPanoraCoreEventsRequest = { page?: number | undefined; @@ -15,14 +18,14 @@ export const GetPanoraCoreEventsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - page: z.number().default(1), - limit: z.number().default(10), + page: z.number().optional(), + limit: z.number().optional(), }); /** @internal */ export type GetPanoraCoreEventsRequest$Outbound = { - page: number; - limit: number; + page?: number | undefined; + limit?: number | undefined; }; /** @internal */ @@ -31,8 +34,8 @@ export const GetPanoraCoreEventsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPanoraCoreEventsRequest > = z.object({ - page: z.number().default(1), - limit: z.number().default(10), + page: z.number().optional(), + limit: z.number().optional(), }); /** @@ -47,3 +50,21 @@ export namespace GetPanoraCoreEventsRequest$ { /** @deprecated use `GetPanoraCoreEventsRequest$Outbound` instead. */ export type Outbound = GetPanoraCoreEventsRequest$Outbound; } + +export function getPanoraCoreEventsRequestToJSON( + getPanoraCoreEventsRequest: GetPanoraCoreEventsRequest, +): string { + return JSON.stringify( + GetPanoraCoreEventsRequest$outboundSchema.parse(getPanoraCoreEventsRequest), + ); +} + +export function getPanoraCoreEventsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetPanoraCoreEventsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetPanoraCoreEventsRequest' from JSON`, + ); +} diff --git a/src/models/operations/getretriedrequestresponse.ts b/src/models/operations/getretriedrequestresponse.ts index 072d21c6..12a062af 100644 --- a/src/models/operations/getretriedrequestresponse.ts +++ b/src/models/operations/getretriedrequestresponse.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetRetriedRequestResponseRequest = { /** @@ -46,3 +49,23 @@ export namespace GetRetriedRequestResponseRequest$ { /** @deprecated use `GetRetriedRequestResponseRequest$Outbound` instead. */ export type Outbound = GetRetriedRequestResponseRequest$Outbound; } + +export function getRetriedRequestResponseRequestToJSON( + getRetriedRequestResponseRequest: GetRetriedRequestResponseRequest, +): string { + return JSON.stringify( + GetRetriedRequestResponseRequest$outboundSchema.parse( + getRetriedRequestResponseRequest, + ), + ); +} + +export function getRetriedRequestResponseRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetRetriedRequestResponseRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetRetriedRequestResponseRequest' from JSON`, + ); +} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 031e3710..47a3dbbf 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -10,11 +10,6 @@ export * from "./createaccountinginvoice.js"; export * from "./createaccountingjournalentry.js"; export * from "./createaccountingpayment.js"; export * from "./createaccountingpurchaseorder.js"; -export * from "./createatsactivity.js"; -export * from "./createatsapplication.js"; -export * from "./createatsattachment.js"; -export * from "./createatscandidate.js"; -export * from "./createatsinterview.js"; export * from "./createcrmcompany.js"; export * from "./createcrmcontact.js"; export * from "./createcrmdeal.js"; @@ -25,9 +20,6 @@ export * from "./createecommerceorder.js"; export * from "./createecommerceproduct.js"; export * from "./createfilestoragefile.js"; export * from "./createfilestoragefolder.js"; -export * from "./createhrisemployee.js"; -export * from "./createhristimeoff.js"; -export * from "./createhristimesheetentry.js"; export * from "./createmarketingautomationaction.js"; export * from "./createmarketingautomationautomation.js"; export * from "./createmarketingautomationcampaign.js"; @@ -60,21 +52,6 @@ export * from "./listaccountingtaxrate.js"; export * from "./listaccountingtrackingcategorys.js"; export * from "./listaccountingtransaction.js"; export * from "./listaccountingvendorcredit.js"; -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"; export * from "./listcrmcompany.js"; export * from "./listcrmcontacts.js"; export * from "./listcrmdeals.js"; @@ -91,21 +68,6 @@ export * from "./listfilestoragefile.js"; export * from "./listfilestoragefolder.js"; export * from "./listfilestoragegroup.js"; export * from "./listfilestorageusers.js"; -export * from "./listhrisbankinfo.js"; -export * from "./listhrisbenefits.js"; -export * from "./listhriscompanies.js"; -export * from "./listhrisdependents.js"; -export * from "./listhrisemployeepayrollrun.js"; -export * from "./listhrisemployees.js"; -export * from "./listhrisemployerbenefits.js"; -export * from "./listhrisemployments.js"; -export * from "./listhrisgroups.js"; -export * from "./listhrislocations.js"; -export * from "./listhrispaygroups.js"; -export * from "./listhrispayrollruns.js"; -export * from "./listhristimeoffbalances.js"; -export * from "./listhristimeoffs.js"; -export * from "./listhristimesheetentries.js"; export * from "./listmarketingautomationaction.js"; export * from "./listmarketingautomationautomations.js"; export * from "./listmarketingautomationcampaigns.js"; @@ -148,21 +110,6 @@ export * from "./retrieveaccountingtaxrate.js"; export * from "./retrieveaccountingtrackingcategory.js"; export * from "./retrieveaccountingtransaction.js"; export * from "./retrieveaccountingvendorcredit.js"; -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"; @@ -180,21 +127,6 @@ 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 "./retrievehriscompany.js"; -export * from "./retrievehrisdependent.js"; -export * from "./retrievehrisemployee.js"; -export * from "./retrievehrisemployeepayrollrun.js"; -export * from "./retrievehrisemployerbenefit.js"; -export * from "./retrievehrisemployment.js"; -export * from "./retrievehrisgroup.js"; -export * from "./retrievehrislocation.js"; -export * from "./retrievehrispaygroup.js"; -export * from "./retrievehrispayrollrun.js"; -export * from "./retrievehristimeoff.js"; -export * from "./retrievehristimeoffbalance.js"; -export * from "./retrievehristimesheetentry.js"; export * from "./retrievelinkeduser.js"; export * from "./retrievemarketingautomationaction.js"; export * from "./retrievemarketingautomationautomation.js"; @@ -215,5 +147,4 @@ export * from "./retrieveticketingteam.js"; export * from "./retrieveticketingticket.js"; export * from "./retrieveticketinguser.js"; export * from "./status.js"; -export * from "./updatepullfrequency.js"; export * from "./updatestatus.js"; diff --git a/src/models/operations/listaccountingaccounts.ts b/src/models/operations/listaccountingaccounts.ts index 260ef3c7..5042efea 100644 --- a/src/models/operations/listaccountingaccounts.ts +++ b/src/models/operations/listaccountingaccounts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingAccountsRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< export type ListAccountingAccountsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingAccountsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingAccountsRequest$ { export type Outbound = ListAccountingAccountsRequest$Outbound; } +export function listAccountingAccountsRequestToJSON( + listAccountingAccountsRequest: ListAccountingAccountsRequest, +): string { + return JSON.stringify( + ListAccountingAccountsRequest$outboundSchema.parse( + listAccountingAccountsRequest, + ), + ); +} + +export function listAccountingAccountsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAccountsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAccountsRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingAccountsResponseBody$inboundSchema: z.ZodType< ListAccountingAccountsResponseBody, @@ -143,6 +166,27 @@ export namespace ListAccountingAccountsResponseBody$ { export type Outbound = ListAccountingAccountsResponseBody$Outbound; } +export function listAccountingAccountsResponseBodyToJSON( + listAccountingAccountsResponseBody: ListAccountingAccountsResponseBody, +): string { + return JSON.stringify( + ListAccountingAccountsResponseBody$outboundSchema.parse( + listAccountingAccountsResponseBody, + ), + ); +} + +export function listAccountingAccountsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingAccountsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAccountsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingAccountsResponse$inboundSchema: z.ZodType< ListAccountingAccountsResponse, @@ -186,3 +230,23 @@ export namespace ListAccountingAccountsResponse$ { /** @deprecated use `ListAccountingAccountsResponse$Outbound` instead. */ export type Outbound = ListAccountingAccountsResponse$Outbound; } + +export function listAccountingAccountsResponseToJSON( + listAccountingAccountsResponse: ListAccountingAccountsResponse, +): string { + return JSON.stringify( + ListAccountingAccountsResponse$outboundSchema.parse( + listAccountingAccountsResponse, + ), + ); +} + +export function listAccountingAccountsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAccountsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAccountsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingaddress.ts b/src/models/operations/listaccountingaddress.ts index 8a4e8195..b5ec7d5f 100644 --- a/src/models/operations/listaccountingaddress.ts +++ b/src/models/operations/listaccountingaddress.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingAddressRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingAddressRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingAddressRequest$inboundSchema: z.ZodType< export type ListAccountingAddressRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingAddressRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingAddressRequest$ { export type Outbound = ListAccountingAddressRequest$Outbound; } +export function listAccountingAddressRequestToJSON( + listAccountingAddressRequest: ListAccountingAddressRequest, +): string { + return JSON.stringify( + ListAccountingAddressRequest$outboundSchema.parse( + listAccountingAddressRequest, + ), + ); +} + +export function listAccountingAddressRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAddressRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAddressRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingAddressResponseBody$inboundSchema: z.ZodType< ListAccountingAddressResponseBody, @@ -143,6 +166,26 @@ export namespace ListAccountingAddressResponseBody$ { export type Outbound = ListAccountingAddressResponseBody$Outbound; } +export function listAccountingAddressResponseBodyToJSON( + listAccountingAddressResponseBody: ListAccountingAddressResponseBody, +): string { + return JSON.stringify( + ListAccountingAddressResponseBody$outboundSchema.parse( + listAccountingAddressResponseBody, + ), + ); +} + +export function listAccountingAddressResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAddressResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAddressResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingAddressResponse$inboundSchema: z.ZodType< ListAccountingAddressResponse, @@ -186,3 +229,23 @@ export namespace ListAccountingAddressResponse$ { /** @deprecated use `ListAccountingAddressResponse$Outbound` instead. */ export type Outbound = ListAccountingAddressResponse$Outbound; } + +export function listAccountingAddressResponseToJSON( + listAccountingAddressResponse: ListAccountingAddressResponse, +): string { + return JSON.stringify( + ListAccountingAddressResponse$outboundSchema.parse( + listAccountingAddressResponse, + ), + ); +} + +export function listAccountingAddressResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAddressResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAddressResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingattachments.ts b/src/models/operations/listaccountingattachments.ts index 142aa55a..b3ae0601 100644 --- a/src/models/operations/listaccountingattachments.ts +++ b/src/models/operations/listaccountingattachments.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingAttachmentsRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< export type ListAccountingAttachmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingAttachmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingAttachmentsRequest$ { export type Outbound = ListAccountingAttachmentsRequest$Outbound; } +export function listAccountingAttachmentsRequestToJSON( + listAccountingAttachmentsRequest: ListAccountingAttachmentsRequest, +): string { + return JSON.stringify( + ListAccountingAttachmentsRequest$outboundSchema.parse( + listAccountingAttachmentsRequest, + ), + ); +} + +export function listAccountingAttachmentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAttachmentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAttachmentsRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingAttachmentsResponseBody$inboundSchema: z.ZodType< ListAccountingAttachmentsResponseBody, @@ -144,6 +167,27 @@ export namespace ListAccountingAttachmentsResponseBody$ { export type Outbound = ListAccountingAttachmentsResponseBody$Outbound; } +export function listAccountingAttachmentsResponseBodyToJSON( + listAccountingAttachmentsResponseBody: ListAccountingAttachmentsResponseBody, +): string { + return JSON.stringify( + ListAccountingAttachmentsResponseBody$outboundSchema.parse( + listAccountingAttachmentsResponseBody, + ), + ); +} + +export function listAccountingAttachmentsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingAttachmentsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAttachmentsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingAttachmentsResponse$inboundSchema: z.ZodType< ListAccountingAttachmentsResponse, @@ -188,3 +232,23 @@ export namespace ListAccountingAttachmentsResponse$ { /** @deprecated use `ListAccountingAttachmentsResponse$Outbound` instead. */ export type Outbound = ListAccountingAttachmentsResponse$Outbound; } + +export function listAccountingAttachmentsResponseToJSON( + listAccountingAttachmentsResponse: ListAccountingAttachmentsResponse, +): string { + return JSON.stringify( + ListAccountingAttachmentsResponse$outboundSchema.parse( + listAccountingAttachmentsResponse, + ), + ); +} + +export function listAccountingAttachmentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingAttachmentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingAttachmentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingbalancesheets.ts b/src/models/operations/listaccountingbalancesheets.ts index 8e023eec..4bed3baf 100644 --- a/src/models/operations/listaccountingbalancesheets.ts +++ b/src/models/operations/listaccountingbalancesheets.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingBalanceSheetsRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< export type ListAccountingBalanceSheetsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingBalanceSheetsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -91,6 +94,27 @@ export namespace ListAccountingBalanceSheetsRequest$ { export type Outbound = ListAccountingBalanceSheetsRequest$Outbound; } +export function listAccountingBalanceSheetsRequestToJSON( + listAccountingBalanceSheetsRequest: ListAccountingBalanceSheetsRequest, +): string { + return JSON.stringify( + ListAccountingBalanceSheetsRequest$outboundSchema.parse( + listAccountingBalanceSheetsRequest, + ), + ); +} + +export function listAccountingBalanceSheetsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingBalanceSheetsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingBalanceSheetsRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingBalanceSheetsResponseBody$inboundSchema: z.ZodType< ListAccountingBalanceSheetsResponseBody, @@ -145,6 +169,33 @@ export namespace ListAccountingBalanceSheetsResponseBody$ { export type Outbound = ListAccountingBalanceSheetsResponseBody$Outbound; } +export function listAccountingBalanceSheetsResponseBodyToJSON( + listAccountingBalanceSheetsResponseBody: + ListAccountingBalanceSheetsResponseBody, +): string { + return JSON.stringify( + ListAccountingBalanceSheetsResponseBody$outboundSchema.parse( + listAccountingBalanceSheetsResponseBody, + ), + ); +} + +export function listAccountingBalanceSheetsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingBalanceSheetsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingBalanceSheetsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingBalanceSheetsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingBalanceSheetsResponse$inboundSchema: z.ZodType< ListAccountingBalanceSheetsResponse, @@ -190,3 +241,24 @@ export namespace ListAccountingBalanceSheetsResponse$ { /** @deprecated use `ListAccountingBalanceSheetsResponse$Outbound` instead. */ export type Outbound = ListAccountingBalanceSheetsResponse$Outbound; } + +export function listAccountingBalanceSheetsResponseToJSON( + listAccountingBalanceSheetsResponse: ListAccountingBalanceSheetsResponse, +): string { + return JSON.stringify( + ListAccountingBalanceSheetsResponse$outboundSchema.parse( + listAccountingBalanceSheetsResponse, + ), + ); +} + +export function listAccountingBalanceSheetsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingBalanceSheetsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingBalanceSheetsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingcashflowstatement.ts b/src/models/operations/listaccountingcashflowstatement.ts index 0cd67a16..d4278faa 100644 --- a/src/models/operations/listaccountingcashflowstatement.ts +++ b/src/models/operations/listaccountingcashflowstatement.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingCashflowStatementRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< export type ListAccountingCashflowStatementRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingCashflowStatementRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,28 @@ export namespace ListAccountingCashflowStatementRequest$ { export type Outbound = ListAccountingCashflowStatementRequest$Outbound; } +export function listAccountingCashflowStatementRequestToJSON( + listAccountingCashflowStatementRequest: + ListAccountingCashflowStatementRequest, +): string { + return JSON.stringify( + ListAccountingCashflowStatementRequest$outboundSchema.parse( + listAccountingCashflowStatementRequest, + ), + ); +} + +export function listAccountingCashflowStatementRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingCashflowStatementRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCashflowStatementRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingCashflowStatementResponseBody$inboundSchema: z.ZodType< @@ -152,6 +177,33 @@ export namespace ListAccountingCashflowStatementResponseBody$ { export type Outbound = ListAccountingCashflowStatementResponseBody$Outbound; } +export function listAccountingCashflowStatementResponseBodyToJSON( + listAccountingCashflowStatementResponseBody: + ListAccountingCashflowStatementResponseBody, +): string { + return JSON.stringify( + ListAccountingCashflowStatementResponseBody$outboundSchema.parse( + listAccountingCashflowStatementResponseBody, + ), + ); +} + +export function listAccountingCashflowStatementResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingCashflowStatementResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingCashflowStatementResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingCashflowStatementResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingCashflowStatementResponse$inboundSchema: z.ZodType< ListAccountingCashflowStatementResponse, @@ -201,3 +253,30 @@ export namespace ListAccountingCashflowStatementResponse$ { /** @deprecated use `ListAccountingCashflowStatementResponse$Outbound` instead. */ export type Outbound = ListAccountingCashflowStatementResponse$Outbound; } + +export function listAccountingCashflowStatementResponseToJSON( + listAccountingCashflowStatementResponse: + ListAccountingCashflowStatementResponse, +): string { + return JSON.stringify( + ListAccountingCashflowStatementResponse$outboundSchema.parse( + listAccountingCashflowStatementResponse, + ), + ); +} + +export function listAccountingCashflowStatementResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingCashflowStatementResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingCashflowStatementResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingCashflowStatementResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingcompanyinfos.ts b/src/models/operations/listaccountingcompanyinfos.ts index faf221c4..3d2e91c4 100644 --- a/src/models/operations/listaccountingcompanyinfos.ts +++ b/src/models/operations/listaccountingcompanyinfos.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingCompanyInfosRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< export type ListAccountingCompanyInfosRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingCompanyInfosRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -91,6 +94,26 @@ export namespace ListAccountingCompanyInfosRequest$ { export type Outbound = ListAccountingCompanyInfosRequest$Outbound; } +export function listAccountingCompanyInfosRequestToJSON( + listAccountingCompanyInfosRequest: ListAccountingCompanyInfosRequest, +): string { + return JSON.stringify( + ListAccountingCompanyInfosRequest$outboundSchema.parse( + listAccountingCompanyInfosRequest, + ), + ); +} + +export function listAccountingCompanyInfosRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingCompanyInfosRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCompanyInfosRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingCompanyInfosResponseBody$inboundSchema: z.ZodType< ListAccountingCompanyInfosResponseBody, @@ -145,6 +168,28 @@ export namespace ListAccountingCompanyInfosResponseBody$ { export type Outbound = ListAccountingCompanyInfosResponseBody$Outbound; } +export function listAccountingCompanyInfosResponseBodyToJSON( + listAccountingCompanyInfosResponseBody: + ListAccountingCompanyInfosResponseBody, +): string { + return JSON.stringify( + ListAccountingCompanyInfosResponseBody$outboundSchema.parse( + listAccountingCompanyInfosResponseBody, + ), + ); +} + +export function listAccountingCompanyInfosResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingCompanyInfosResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCompanyInfosResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingCompanyInfosResponse$inboundSchema: z.ZodType< ListAccountingCompanyInfosResponse, @@ -189,3 +234,24 @@ export namespace ListAccountingCompanyInfosResponse$ { /** @deprecated use `ListAccountingCompanyInfosResponse$Outbound` instead. */ export type Outbound = ListAccountingCompanyInfosResponse$Outbound; } + +export function listAccountingCompanyInfosResponseToJSON( + listAccountingCompanyInfosResponse: ListAccountingCompanyInfosResponse, +): string { + return JSON.stringify( + ListAccountingCompanyInfosResponse$outboundSchema.parse( + listAccountingCompanyInfosResponse, + ), + ); +} + +export function listAccountingCompanyInfosResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingCompanyInfosResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCompanyInfosResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingcontacts.ts b/src/models/operations/listaccountingcontacts.ts index 3cf46aff..c2b65654 100644 --- a/src/models/operations/listaccountingcontacts.ts +++ b/src/models/operations/listaccountingcontacts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingContactsRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingContactsRequest$inboundSchema: z.ZodType< export type ListAccountingContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingContactsRequest$ { export type Outbound = ListAccountingContactsRequest$Outbound; } +export function listAccountingContactsRequestToJSON( + listAccountingContactsRequest: ListAccountingContactsRequest, +): string { + return JSON.stringify( + ListAccountingContactsRequest$outboundSchema.parse( + listAccountingContactsRequest, + ), + ); +} + +export function listAccountingContactsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingContactsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingContactsRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingContactsResponseBody$inboundSchema: z.ZodType< ListAccountingContactsResponseBody, @@ -143,6 +166,27 @@ export namespace ListAccountingContactsResponseBody$ { export type Outbound = ListAccountingContactsResponseBody$Outbound; } +export function listAccountingContactsResponseBodyToJSON( + listAccountingContactsResponseBody: ListAccountingContactsResponseBody, +): string { + return JSON.stringify( + ListAccountingContactsResponseBody$outboundSchema.parse( + listAccountingContactsResponseBody, + ), + ); +} + +export function listAccountingContactsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingContactsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingContactsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingContactsResponse$inboundSchema: z.ZodType< ListAccountingContactsResponse, @@ -186,3 +230,23 @@ export namespace ListAccountingContactsResponse$ { /** @deprecated use `ListAccountingContactsResponse$Outbound` instead. */ export type Outbound = ListAccountingContactsResponse$Outbound; } + +export function listAccountingContactsResponseToJSON( + listAccountingContactsResponse: ListAccountingContactsResponse, +): string { + return JSON.stringify( + ListAccountingContactsResponse$outboundSchema.parse( + listAccountingContactsResponse, + ), + ); +} + +export function listAccountingContactsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingContactsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingContactsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingcreditnote.ts b/src/models/operations/listaccountingcreditnote.ts index 162c6d71..1a6180c1 100644 --- a/src/models/operations/listaccountingcreditnote.ts +++ b/src/models/operations/listaccountingcreditnote.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingCreditNoteRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< export type ListAccountingCreditNoteRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingCreditNoteRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingCreditNoteRequest$ { export type Outbound = ListAccountingCreditNoteRequest$Outbound; } +export function listAccountingCreditNoteRequestToJSON( + listAccountingCreditNoteRequest: ListAccountingCreditNoteRequest, +): string { + return JSON.stringify( + ListAccountingCreditNoteRequest$outboundSchema.parse( + listAccountingCreditNoteRequest, + ), + ); +} + +export function listAccountingCreditNoteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingCreditNoteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCreditNoteRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingCreditNoteResponseBody$inboundSchema: z.ZodType< ListAccountingCreditNoteResponseBody, @@ -144,6 +167,27 @@ export namespace ListAccountingCreditNoteResponseBody$ { export type Outbound = ListAccountingCreditNoteResponseBody$Outbound; } +export function listAccountingCreditNoteResponseBodyToJSON( + listAccountingCreditNoteResponseBody: ListAccountingCreditNoteResponseBody, +): string { + return JSON.stringify( + ListAccountingCreditNoteResponseBody$outboundSchema.parse( + listAccountingCreditNoteResponseBody, + ), + ); +} + +export function listAccountingCreditNoteResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingCreditNoteResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCreditNoteResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingCreditNoteResponse$inboundSchema: z.ZodType< ListAccountingCreditNoteResponse, @@ -187,3 +231,23 @@ export namespace ListAccountingCreditNoteResponse$ { /** @deprecated use `ListAccountingCreditNoteResponse$Outbound` instead. */ export type Outbound = ListAccountingCreditNoteResponse$Outbound; } + +export function listAccountingCreditNoteResponseToJSON( + listAccountingCreditNoteResponse: ListAccountingCreditNoteResponse, +): string { + return JSON.stringify( + ListAccountingCreditNoteResponse$outboundSchema.parse( + listAccountingCreditNoteResponse, + ), + ); +} + +export function listAccountingCreditNoteResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingCreditNoteResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingCreditNoteResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingexpense.ts b/src/models/operations/listaccountingexpense.ts index 7c25d00c..b6ab6ada 100644 --- a/src/models/operations/listaccountingexpense.ts +++ b/src/models/operations/listaccountingexpense.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingExpenseRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< export type ListAccountingExpenseRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingExpenseRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingExpenseRequest$ { export type Outbound = ListAccountingExpenseRequest$Outbound; } +export function listAccountingExpenseRequestToJSON( + listAccountingExpenseRequest: ListAccountingExpenseRequest, +): string { + return JSON.stringify( + ListAccountingExpenseRequest$outboundSchema.parse( + listAccountingExpenseRequest, + ), + ); +} + +export function listAccountingExpenseRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingExpenseRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingExpenseRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingExpenseResponseBody$inboundSchema: z.ZodType< ListAccountingExpenseResponseBody, @@ -143,6 +166,26 @@ export namespace ListAccountingExpenseResponseBody$ { export type Outbound = ListAccountingExpenseResponseBody$Outbound; } +export function listAccountingExpenseResponseBodyToJSON( + listAccountingExpenseResponseBody: ListAccountingExpenseResponseBody, +): string { + return JSON.stringify( + ListAccountingExpenseResponseBody$outboundSchema.parse( + listAccountingExpenseResponseBody, + ), + ); +} + +export function listAccountingExpenseResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingExpenseResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingExpenseResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingExpenseResponse$inboundSchema: z.ZodType< ListAccountingExpenseResponse, @@ -186,3 +229,23 @@ export namespace ListAccountingExpenseResponse$ { /** @deprecated use `ListAccountingExpenseResponse$Outbound` instead. */ export type Outbound = ListAccountingExpenseResponse$Outbound; } + +export function listAccountingExpenseResponseToJSON( + listAccountingExpenseResponse: ListAccountingExpenseResponse, +): string { + return JSON.stringify( + ListAccountingExpenseResponse$outboundSchema.parse( + listAccountingExpenseResponse, + ), + ); +} + +export function listAccountingExpenseResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingExpenseResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingExpenseResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingincomestatement.ts b/src/models/operations/listaccountingincomestatement.ts index 8e6b6b99..2d333a97 100644 --- a/src/models/operations/listaccountingincomestatement.ts +++ b/src/models/operations/listaccountingincomestatement.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingIncomeStatementRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< export type ListAccountingIncomeStatementRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingIncomeStatementRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListAccountingIncomeStatementRequest$ { export type Outbound = ListAccountingIncomeStatementRequest$Outbound; } +export function listAccountingIncomeStatementRequestToJSON( + listAccountingIncomeStatementRequest: ListAccountingIncomeStatementRequest, +): string { + return JSON.stringify( + ListAccountingIncomeStatementRequest$outboundSchema.parse( + listAccountingIncomeStatementRequest, + ), + ); +} + +export function listAccountingIncomeStatementRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingIncomeStatementRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingIncomeStatementRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingIncomeStatementResponseBody$inboundSchema: z.ZodType< ListAccountingIncomeStatementResponseBody, @@ -151,6 +175,33 @@ export namespace ListAccountingIncomeStatementResponseBody$ { export type Outbound = ListAccountingIncomeStatementResponseBody$Outbound; } +export function listAccountingIncomeStatementResponseBodyToJSON( + listAccountingIncomeStatementResponseBody: + ListAccountingIncomeStatementResponseBody, +): string { + return JSON.stringify( + ListAccountingIncomeStatementResponseBody$outboundSchema.parse( + listAccountingIncomeStatementResponseBody, + ), + ); +} + +export function listAccountingIncomeStatementResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingIncomeStatementResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingIncomeStatementResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingIncomeStatementResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingIncomeStatementResponse$inboundSchema: z.ZodType< ListAccountingIncomeStatementResponse, @@ -198,3 +249,24 @@ export namespace ListAccountingIncomeStatementResponse$ { /** @deprecated use `ListAccountingIncomeStatementResponse$Outbound` instead. */ export type Outbound = ListAccountingIncomeStatementResponse$Outbound; } + +export function listAccountingIncomeStatementResponseToJSON( + listAccountingIncomeStatementResponse: ListAccountingIncomeStatementResponse, +): string { + return JSON.stringify( + ListAccountingIncomeStatementResponse$outboundSchema.parse( + listAccountingIncomeStatementResponse, + ), + ); +} + +export function listAccountingIncomeStatementResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingIncomeStatementResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingIncomeStatementResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountinginvoice.ts b/src/models/operations/listaccountinginvoice.ts index 81226deb..f1cb92f2 100644 --- a/src/models/operations/listaccountinginvoice.ts +++ b/src/models/operations/listaccountinginvoice.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingInvoiceRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< export type ListAccountingInvoiceRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingInvoiceRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingInvoiceRequest$ { export type Outbound = ListAccountingInvoiceRequest$Outbound; } +export function listAccountingInvoiceRequestToJSON( + listAccountingInvoiceRequest: ListAccountingInvoiceRequest, +): string { + return JSON.stringify( + ListAccountingInvoiceRequest$outboundSchema.parse( + listAccountingInvoiceRequest, + ), + ); +} + +export function listAccountingInvoiceRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingInvoiceRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingInvoiceRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingInvoiceResponseBody$inboundSchema: z.ZodType< ListAccountingInvoiceResponseBody, @@ -143,6 +166,26 @@ export namespace ListAccountingInvoiceResponseBody$ { export type Outbound = ListAccountingInvoiceResponseBody$Outbound; } +export function listAccountingInvoiceResponseBodyToJSON( + listAccountingInvoiceResponseBody: ListAccountingInvoiceResponseBody, +): string { + return JSON.stringify( + ListAccountingInvoiceResponseBody$outboundSchema.parse( + listAccountingInvoiceResponseBody, + ), + ); +} + +export function listAccountingInvoiceResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingInvoiceResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingInvoiceResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingInvoiceResponse$inboundSchema: z.ZodType< ListAccountingInvoiceResponse, @@ -186,3 +229,23 @@ export namespace ListAccountingInvoiceResponse$ { /** @deprecated use `ListAccountingInvoiceResponse$Outbound` instead. */ export type Outbound = ListAccountingInvoiceResponse$Outbound; } + +export function listAccountingInvoiceResponseToJSON( + listAccountingInvoiceResponse: ListAccountingInvoiceResponse, +): string { + return JSON.stringify( + ListAccountingInvoiceResponse$outboundSchema.parse( + listAccountingInvoiceResponse, + ), + ); +} + +export function listAccountingInvoiceResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingInvoiceResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingInvoiceResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingitem.ts b/src/models/operations/listaccountingitem.ts index 6bef8787..f1e2b890 100644 --- a/src/models/operations/listaccountingitem.ts +++ b/src/models/operations/listaccountingitem.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingItemRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingItemRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingItemRequest$inboundSchema: z.ZodType< export type ListAccountingItemRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingItemRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListAccountingItemRequest$ { export type Outbound = ListAccountingItemRequest$Outbound; } +export function listAccountingItemRequestToJSON( + listAccountingItemRequest: ListAccountingItemRequest, +): string { + return JSON.stringify( + ListAccountingItemRequest$outboundSchema.parse(listAccountingItemRequest), + ); +} + +export function listAccountingItemRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingItemRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingItemRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingItemResponseBody$inboundSchema: z.ZodType< ListAccountingItemResponseBody, @@ -142,6 +163,26 @@ export namespace ListAccountingItemResponseBody$ { export type Outbound = ListAccountingItemResponseBody$Outbound; } +export function listAccountingItemResponseBodyToJSON( + listAccountingItemResponseBody: ListAccountingItemResponseBody, +): string { + return JSON.stringify( + ListAccountingItemResponseBody$outboundSchema.parse( + listAccountingItemResponseBody, + ), + ); +} + +export function listAccountingItemResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingItemResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingItemResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingItemResponse$inboundSchema: z.ZodType< ListAccountingItemResponse, @@ -185,3 +226,21 @@ export namespace ListAccountingItemResponse$ { /** @deprecated use `ListAccountingItemResponse$Outbound` instead. */ export type Outbound = ListAccountingItemResponse$Outbound; } + +export function listAccountingItemResponseToJSON( + listAccountingItemResponse: ListAccountingItemResponse, +): string { + return JSON.stringify( + ListAccountingItemResponse$outboundSchema.parse(listAccountingItemResponse), + ); +} + +export function listAccountingItemResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingItemResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingItemResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingjournalentry.ts b/src/models/operations/listaccountingjournalentry.ts index a75e809a..1a4b1232 100644 --- a/src/models/operations/listaccountingjournalentry.ts +++ b/src/models/operations/listaccountingjournalentry.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingJournalEntryRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< export type ListAccountingJournalEntryRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingJournalEntryRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -91,6 +94,26 @@ export namespace ListAccountingJournalEntryRequest$ { export type Outbound = ListAccountingJournalEntryRequest$Outbound; } +export function listAccountingJournalEntryRequestToJSON( + listAccountingJournalEntryRequest: ListAccountingJournalEntryRequest, +): string { + return JSON.stringify( + ListAccountingJournalEntryRequest$outboundSchema.parse( + listAccountingJournalEntryRequest, + ), + ); +} + +export function listAccountingJournalEntryRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingJournalEntryRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingJournalEntryRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingJournalEntryResponseBody$inboundSchema: z.ZodType< ListAccountingJournalEntryResponseBody, @@ -145,6 +168,28 @@ export namespace ListAccountingJournalEntryResponseBody$ { export type Outbound = ListAccountingJournalEntryResponseBody$Outbound; } +export function listAccountingJournalEntryResponseBodyToJSON( + listAccountingJournalEntryResponseBody: + ListAccountingJournalEntryResponseBody, +): string { + return JSON.stringify( + ListAccountingJournalEntryResponseBody$outboundSchema.parse( + listAccountingJournalEntryResponseBody, + ), + ); +} + +export function listAccountingJournalEntryResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingJournalEntryResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingJournalEntryResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingJournalEntryResponse$inboundSchema: z.ZodType< ListAccountingJournalEntryResponse, @@ -189,3 +234,24 @@ export namespace ListAccountingJournalEntryResponse$ { /** @deprecated use `ListAccountingJournalEntryResponse$Outbound` instead. */ export type Outbound = ListAccountingJournalEntryResponse$Outbound; } + +export function listAccountingJournalEntryResponseToJSON( + listAccountingJournalEntryResponse: ListAccountingJournalEntryResponse, +): string { + return JSON.stringify( + ListAccountingJournalEntryResponse$outboundSchema.parse( + listAccountingJournalEntryResponse, + ), + ); +} + +export function listAccountingJournalEntryResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingJournalEntryResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingJournalEntryResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingpayment.ts b/src/models/operations/listaccountingpayment.ts index e4fd5750..0091ecba 100644 --- a/src/models/operations/listaccountingpayment.ts +++ b/src/models/operations/listaccountingpayment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingPaymentRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< export type ListAccountingPaymentRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingPaymentRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingPaymentRequest$ { export type Outbound = ListAccountingPaymentRequest$Outbound; } +export function listAccountingPaymentRequestToJSON( + listAccountingPaymentRequest: ListAccountingPaymentRequest, +): string { + return JSON.stringify( + ListAccountingPaymentRequest$outboundSchema.parse( + listAccountingPaymentRequest, + ), + ); +} + +export function listAccountingPaymentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingPaymentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPaymentRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingPaymentResponseBody$inboundSchema: z.ZodType< ListAccountingPaymentResponseBody, @@ -143,6 +166,26 @@ export namespace ListAccountingPaymentResponseBody$ { export type Outbound = ListAccountingPaymentResponseBody$Outbound; } +export function listAccountingPaymentResponseBodyToJSON( + listAccountingPaymentResponseBody: ListAccountingPaymentResponseBody, +): string { + return JSON.stringify( + ListAccountingPaymentResponseBody$outboundSchema.parse( + listAccountingPaymentResponseBody, + ), + ); +} + +export function listAccountingPaymentResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingPaymentResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPaymentResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingPaymentResponse$inboundSchema: z.ZodType< ListAccountingPaymentResponse, @@ -186,3 +229,23 @@ export namespace ListAccountingPaymentResponse$ { /** @deprecated use `ListAccountingPaymentResponse$Outbound` instead. */ export type Outbound = ListAccountingPaymentResponse$Outbound; } + +export function listAccountingPaymentResponseToJSON( + listAccountingPaymentResponse: ListAccountingPaymentResponse, +): string { + return JSON.stringify( + ListAccountingPaymentResponse$outboundSchema.parse( + listAccountingPaymentResponse, + ), + ); +} + +export function listAccountingPaymentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingPaymentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPaymentResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingphonenumber.ts b/src/models/operations/listaccountingphonenumber.ts index e776ea91..7c453785 100644 --- a/src/models/operations/listaccountingphonenumber.ts +++ b/src/models/operations/listaccountingphonenumber.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingPhonenumberRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< export type ListAccountingPhonenumberRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingPhonenumberRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingPhonenumberRequest$ { export type Outbound = ListAccountingPhonenumberRequest$Outbound; } +export function listAccountingPhonenumberRequestToJSON( + listAccountingPhonenumberRequest: ListAccountingPhonenumberRequest, +): string { + return JSON.stringify( + ListAccountingPhonenumberRequest$outboundSchema.parse( + listAccountingPhonenumberRequest, + ), + ); +} + +export function listAccountingPhonenumberRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingPhonenumberRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPhonenumberRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingPhonenumberResponseBody$inboundSchema: z.ZodType< ListAccountingPhonenumberResponseBody, @@ -144,6 +167,27 @@ export namespace ListAccountingPhonenumberResponseBody$ { export type Outbound = ListAccountingPhonenumberResponseBody$Outbound; } +export function listAccountingPhonenumberResponseBodyToJSON( + listAccountingPhonenumberResponseBody: ListAccountingPhonenumberResponseBody, +): string { + return JSON.stringify( + ListAccountingPhonenumberResponseBody$outboundSchema.parse( + listAccountingPhonenumberResponseBody, + ), + ); +} + +export function listAccountingPhonenumberResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingPhonenumberResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPhonenumberResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingPhonenumberResponse$inboundSchema: z.ZodType< ListAccountingPhonenumberResponse, @@ -188,3 +232,23 @@ export namespace ListAccountingPhonenumberResponse$ { /** @deprecated use `ListAccountingPhonenumberResponse$Outbound` instead. */ export type Outbound = ListAccountingPhonenumberResponse$Outbound; } + +export function listAccountingPhonenumberResponseToJSON( + listAccountingPhonenumberResponse: ListAccountingPhonenumberResponse, +): string { + return JSON.stringify( + ListAccountingPhonenumberResponse$outboundSchema.parse( + listAccountingPhonenumberResponse, + ), + ); +} + +export function listAccountingPhonenumberResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingPhonenumberResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPhonenumberResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingpurchaseorder.ts b/src/models/operations/listaccountingpurchaseorder.ts index f3b776bf..71d0885f 100644 --- a/src/models/operations/listaccountingpurchaseorder.ts +++ b/src/models/operations/listaccountingpurchaseorder.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingPurchaseOrderRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< export type ListAccountingPurchaseOrderRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingPurchaseOrderRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -91,6 +94,27 @@ export namespace ListAccountingPurchaseOrderRequest$ { export type Outbound = ListAccountingPurchaseOrderRequest$Outbound; } +export function listAccountingPurchaseOrderRequestToJSON( + listAccountingPurchaseOrderRequest: ListAccountingPurchaseOrderRequest, +): string { + return JSON.stringify( + ListAccountingPurchaseOrderRequest$outboundSchema.parse( + listAccountingPurchaseOrderRequest, + ), + ); +} + +export function listAccountingPurchaseOrderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingPurchaseOrderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPurchaseOrderRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingPurchaseOrderResponseBody$inboundSchema: z.ZodType< ListAccountingPurchaseOrderResponseBody, @@ -145,6 +169,33 @@ export namespace ListAccountingPurchaseOrderResponseBody$ { export type Outbound = ListAccountingPurchaseOrderResponseBody$Outbound; } +export function listAccountingPurchaseOrderResponseBodyToJSON( + listAccountingPurchaseOrderResponseBody: + ListAccountingPurchaseOrderResponseBody, +): string { + return JSON.stringify( + ListAccountingPurchaseOrderResponseBody$outboundSchema.parse( + listAccountingPurchaseOrderResponseBody, + ), + ); +} + +export function listAccountingPurchaseOrderResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingPurchaseOrderResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingPurchaseOrderResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingPurchaseOrderResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingPurchaseOrderResponse$inboundSchema: z.ZodType< ListAccountingPurchaseOrderResponse, @@ -190,3 +241,24 @@ export namespace ListAccountingPurchaseOrderResponse$ { /** @deprecated use `ListAccountingPurchaseOrderResponse$Outbound` instead. */ export type Outbound = ListAccountingPurchaseOrderResponse$Outbound; } + +export function listAccountingPurchaseOrderResponseToJSON( + listAccountingPurchaseOrderResponse: ListAccountingPurchaseOrderResponse, +): string { + return JSON.stringify( + ListAccountingPurchaseOrderResponse$outboundSchema.parse( + listAccountingPurchaseOrderResponse, + ), + ); +} + +export function listAccountingPurchaseOrderResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingPurchaseOrderResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingPurchaseOrderResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingtaxrate.ts b/src/models/operations/listaccountingtaxrate.ts index d0a09e95..042f0310 100644 --- a/src/models/operations/listaccountingtaxrate.ts +++ b/src/models/operations/listaccountingtaxrate.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingTaxRateRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< export type ListAccountingTaxRateRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingTaxRateRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingTaxRateRequest$ { export type Outbound = ListAccountingTaxRateRequest$Outbound; } +export function listAccountingTaxRateRequestToJSON( + listAccountingTaxRateRequest: ListAccountingTaxRateRequest, +): string { + return JSON.stringify( + ListAccountingTaxRateRequest$outboundSchema.parse( + listAccountingTaxRateRequest, + ), + ); +} + +export function listAccountingTaxRateRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingTaxRateRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTaxRateRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingTaxRateResponseBody$inboundSchema: z.ZodType< ListAccountingTaxRateResponseBody, @@ -143,6 +166,26 @@ export namespace ListAccountingTaxRateResponseBody$ { export type Outbound = ListAccountingTaxRateResponseBody$Outbound; } +export function listAccountingTaxRateResponseBodyToJSON( + listAccountingTaxRateResponseBody: ListAccountingTaxRateResponseBody, +): string { + return JSON.stringify( + ListAccountingTaxRateResponseBody$outboundSchema.parse( + listAccountingTaxRateResponseBody, + ), + ); +} + +export function listAccountingTaxRateResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingTaxRateResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTaxRateResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingTaxRateResponse$inboundSchema: z.ZodType< ListAccountingTaxRateResponse, @@ -186,3 +229,23 @@ export namespace ListAccountingTaxRateResponse$ { /** @deprecated use `ListAccountingTaxRateResponse$Outbound` instead. */ export type Outbound = ListAccountingTaxRateResponse$Outbound; } + +export function listAccountingTaxRateResponseToJSON( + listAccountingTaxRateResponse: ListAccountingTaxRateResponse, +): string { + return JSON.stringify( + ListAccountingTaxRateResponse$outboundSchema.parse( + listAccountingTaxRateResponse, + ), + ); +} + +export function listAccountingTaxRateResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingTaxRateResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTaxRateResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingtrackingcategorys.ts b/src/models/operations/listaccountingtrackingcategorys.ts index 132d5f45..bbd6e60c 100644 --- a/src/models/operations/listaccountingtrackingcategorys.ts +++ b/src/models/operations/listaccountingtrackingcategorys.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingTrackingCategorysRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< export type ListAccountingTrackingCategorysRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingTrackingCategorysRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,28 @@ export namespace ListAccountingTrackingCategorysRequest$ { export type Outbound = ListAccountingTrackingCategorysRequest$Outbound; } +export function listAccountingTrackingCategorysRequestToJSON( + listAccountingTrackingCategorysRequest: + ListAccountingTrackingCategorysRequest, +): string { + return JSON.stringify( + ListAccountingTrackingCategorysRequest$outboundSchema.parse( + listAccountingTrackingCategorysRequest, + ), + ); +} + +export function listAccountingTrackingCategorysRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingTrackingCategorysRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTrackingCategorysRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingTrackingCategorysResponseBody$inboundSchema: z.ZodType< @@ -152,6 +177,33 @@ export namespace ListAccountingTrackingCategorysResponseBody$ { export type Outbound = ListAccountingTrackingCategorysResponseBody$Outbound; } +export function listAccountingTrackingCategorysResponseBodyToJSON( + listAccountingTrackingCategorysResponseBody: + ListAccountingTrackingCategorysResponseBody, +): string { + return JSON.stringify( + ListAccountingTrackingCategorysResponseBody$outboundSchema.parse( + listAccountingTrackingCategorysResponseBody, + ), + ); +} + +export function listAccountingTrackingCategorysResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingTrackingCategorysResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingTrackingCategorysResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingTrackingCategorysResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingTrackingCategorysResponse$inboundSchema: z.ZodType< ListAccountingTrackingCategorysResponse, @@ -201,3 +253,30 @@ export namespace ListAccountingTrackingCategorysResponse$ { /** @deprecated use `ListAccountingTrackingCategorysResponse$Outbound` instead. */ export type Outbound = ListAccountingTrackingCategorysResponse$Outbound; } + +export function listAccountingTrackingCategorysResponseToJSON( + listAccountingTrackingCategorysResponse: + ListAccountingTrackingCategorysResponse, +): string { + return JSON.stringify( + ListAccountingTrackingCategorysResponse$outboundSchema.parse( + listAccountingTrackingCategorysResponse, + ), + ); +} + +export function listAccountingTrackingCategorysResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListAccountingTrackingCategorysResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListAccountingTrackingCategorysResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListAccountingTrackingCategorysResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingtransaction.ts b/src/models/operations/listaccountingtransaction.ts index 36629ae7..e491bcb0 100644 --- a/src/models/operations/listaccountingtransaction.ts +++ b/src/models/operations/listaccountingtransaction.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingTransactionRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< export type ListAccountingTransactionRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingTransactionRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListAccountingTransactionRequest$ { export type Outbound = ListAccountingTransactionRequest$Outbound; } +export function listAccountingTransactionRequestToJSON( + listAccountingTransactionRequest: ListAccountingTransactionRequest, +): string { + return JSON.stringify( + ListAccountingTransactionRequest$outboundSchema.parse( + listAccountingTransactionRequest, + ), + ); +} + +export function listAccountingTransactionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingTransactionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTransactionRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingTransactionResponseBody$inboundSchema: z.ZodType< ListAccountingTransactionResponseBody, @@ -144,6 +167,27 @@ export namespace ListAccountingTransactionResponseBody$ { export type Outbound = ListAccountingTransactionResponseBody$Outbound; } +export function listAccountingTransactionResponseBodyToJSON( + listAccountingTransactionResponseBody: ListAccountingTransactionResponseBody, +): string { + return JSON.stringify( + ListAccountingTransactionResponseBody$outboundSchema.parse( + listAccountingTransactionResponseBody, + ), + ); +} + +export function listAccountingTransactionResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingTransactionResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTransactionResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingTransactionResponse$inboundSchema: z.ZodType< ListAccountingTransactionResponse, @@ -188,3 +232,23 @@ export namespace ListAccountingTransactionResponse$ { /** @deprecated use `ListAccountingTransactionResponse$Outbound` instead. */ export type Outbound = ListAccountingTransactionResponse$Outbound; } + +export function listAccountingTransactionResponseToJSON( + listAccountingTransactionResponse: ListAccountingTransactionResponse, +): string { + return JSON.stringify( + ListAccountingTransactionResponse$outboundSchema.parse( + listAccountingTransactionResponse, + ), + ); +} + +export function listAccountingTransactionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingTransactionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingTransactionResponse' from JSON`, + ); +} diff --git a/src/models/operations/listaccountingvendorcredit.ts b/src/models/operations/listaccountingvendorcredit.ts index df976799..11e7e8e6 100644 --- a/src/models/operations/listaccountingvendorcredit.ts +++ b/src/models/operations/listaccountingvendorcredit.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListAccountingVendorCreditRequest = { /** @@ -43,7 +46,7 @@ export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< export type ListAccountingVendorCreditRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListAccountingVendorCreditRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -91,6 +94,26 @@ export namespace ListAccountingVendorCreditRequest$ { export type Outbound = ListAccountingVendorCreditRequest$Outbound; } +export function listAccountingVendorCreditRequestToJSON( + listAccountingVendorCreditRequest: ListAccountingVendorCreditRequest, +): string { + return JSON.stringify( + ListAccountingVendorCreditRequest$outboundSchema.parse( + listAccountingVendorCreditRequest, + ), + ); +} + +export function listAccountingVendorCreditRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountingVendorCreditRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingVendorCreditRequest' from JSON`, + ); +} + /** @internal */ export const ListAccountingVendorCreditResponseBody$inboundSchema: z.ZodType< ListAccountingVendorCreditResponseBody, @@ -145,6 +168,28 @@ export namespace ListAccountingVendorCreditResponseBody$ { export type Outbound = ListAccountingVendorCreditResponseBody$Outbound; } +export function listAccountingVendorCreditResponseBodyToJSON( + listAccountingVendorCreditResponseBody: + ListAccountingVendorCreditResponseBody, +): string { + return JSON.stringify( + ListAccountingVendorCreditResponseBody$outboundSchema.parse( + listAccountingVendorCreditResponseBody, + ), + ); +} + +export function listAccountingVendorCreditResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingVendorCreditResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingVendorCreditResponseBody' from JSON`, + ); +} + /** @internal */ export const ListAccountingVendorCreditResponse$inboundSchema: z.ZodType< ListAccountingVendorCreditResponse, @@ -189,3 +234,24 @@ export namespace ListAccountingVendorCreditResponse$ { /** @deprecated use `ListAccountingVendorCreditResponse$Outbound` instead. */ export type Outbound = ListAccountingVendorCreditResponse$Outbound; } + +export function listAccountingVendorCreditResponseToJSON( + listAccountingVendorCreditResponse: ListAccountingVendorCreditResponse, +): string { + return JSON.stringify( + ListAccountingVendorCreditResponse$outboundSchema.parse( + listAccountingVendorCreditResponse, + ), + ); +} + +export function listAccountingVendorCreditResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListAccountingVendorCreditResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountingVendorCreditResponse' from JSON`, + ); +} diff --git a/src/models/operations/listatsactivity.ts b/src/models/operations/listatsactivity.ts deleted file mode 100644 index 248dbb19..00000000 --- a/src/models/operations/listatsactivity.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsActivityRequest = { - /** - * 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 ListAtsActivityResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsActivityResponse = { - result: ListAtsActivityResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsActivityResponseBody$inboundSchema: z.ZodType< - ListAtsActivityResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsActivityResponseBody$outboundSchema: z.ZodType< - ListAtsActivityResponseBody$Outbound, - z.ZodTypeDef, - ListAtsActivityResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsActivityResponse$inboundSchema: z.ZodType< - ListAtsActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsActivityResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsActivityResponse$Outbound = { - Result: ListAtsActivityResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsActivityResponse$outboundSchema: z.ZodType< - ListAtsActivityResponse$Outbound, - z.ZodTypeDef, - ListAtsActivityResponse -> = z.object({ - result: z.lazy(() => ListAtsActivityResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index f79dcc52..00000000 --- a/src/models/operations/listatsapplication.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsApplicationRequest = { - /** - * 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 ListAtsApplicationResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsApplicationResponse = { - result: ListAtsApplicationResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsApplicationResponseBody$inboundSchema: z.ZodType< - ListAtsApplicationResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsApplicationResponseBody$outboundSchema: z.ZodType< - ListAtsApplicationResponseBody$Outbound, - z.ZodTypeDef, - ListAtsApplicationResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsApplicationResponse$inboundSchema: z.ZodType< - ListAtsApplicationResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsApplicationResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsApplicationResponse$Outbound = { - Result: ListAtsApplicationResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsApplicationResponse$outboundSchema: z.ZodType< - ListAtsApplicationResponse$Outbound, - z.ZodTypeDef, - ListAtsApplicationResponse -> = z.object({ - result: z.lazy(() => ListAtsApplicationResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index bf8a2e8e..00000000 --- a/src/models/operations/listatsattachment.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsAttachmentRequest = { - /** - * 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 ListAtsAttachmentResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsAttachmentResponse = { - result: ListAtsAttachmentResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsAttachmentResponseBody$inboundSchema: z.ZodType< - ListAtsAttachmentResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsAttachmentResponseBody$outboundSchema: z.ZodType< - ListAtsAttachmentResponseBody$Outbound, - z.ZodTypeDef, - ListAtsAttachmentResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsAttachmentResponse$inboundSchema: z.ZodType< - ListAtsAttachmentResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsAttachmentResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsAttachmentResponse$Outbound = { - Result: ListAtsAttachmentResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsAttachmentResponse$outboundSchema: z.ZodType< - ListAtsAttachmentResponse$Outbound, - z.ZodTypeDef, - ListAtsAttachmentResponse -> = z.object({ - result: z.lazy(() => ListAtsAttachmentResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 4104e21a..00000000 --- a/src/models/operations/listatscandidate.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsCandidateRequest = { - /** - * 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 ListAtsCandidateResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsCandidateResponse = { - result: ListAtsCandidateResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsCandidateResponseBody$inboundSchema: z.ZodType< - ListAtsCandidateResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsCandidateResponseBody$outboundSchema: z.ZodType< - ListAtsCandidateResponseBody$Outbound, - z.ZodTypeDef, - ListAtsCandidateResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsCandidateResponse$inboundSchema: z.ZodType< - ListAtsCandidateResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsCandidateResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsCandidateResponse$Outbound = { - Result: ListAtsCandidateResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsCandidateResponse$outboundSchema: z.ZodType< - ListAtsCandidateResponse$Outbound, - z.ZodTypeDef, - ListAtsCandidateResponse -> = z.object({ - result: z.lazy(() => ListAtsCandidateResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 173599dd..00000000 --- a/src/models/operations/listatsdepartments.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -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 | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsDepartmentsResponse = { - result: ListAtsDepartmentsResponseBody; -}; - -/** @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.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsDepartmentsResponseBody$outboundSchema: z.ZodType< - ListAtsDepartmentsResponseBody$Outbound, - z.ZodTypeDef, - ListAtsDepartmentsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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({ - Result: z.lazy(() => ListAtsDepartmentsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsDepartmentsResponse$Outbound = { - Result: ListAtsDepartmentsResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsDepartmentsResponse$outboundSchema: z.ZodType< - ListAtsDepartmentsResponse$Outbound, - z.ZodTypeDef, - ListAtsDepartmentsResponse -> = z.object({ - result: z.lazy(() => ListAtsDepartmentsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index f3cf9444..00000000 --- a/src/models/operations/listatseeocs.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsEeocsRequest = { - /** - * 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 ListAtsEeocsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsEeocsResponse = { - result: ListAtsEeocsResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsEeocsResponseBody$inboundSchema: z.ZodType< - ListAtsEeocsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsEeocsResponseBody$outboundSchema: z.ZodType< - ListAtsEeocsResponseBody$Outbound, - z.ZodTypeDef, - ListAtsEeocsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsEeocsResponse$inboundSchema: z.ZodType< - ListAtsEeocsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsEeocsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsEeocsResponse$Outbound = { - Result: ListAtsEeocsResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsEeocsResponse$outboundSchema: z.ZodType< - ListAtsEeocsResponse$Outbound, - z.ZodTypeDef, - ListAtsEeocsResponse -> = z.object({ - result: z.lazy(() => ListAtsEeocsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 34677686..00000000 --- a/src/models/operations/listatsinterview.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsInterviewRequest = { - /** - * 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 ListAtsInterviewResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsInterviewResponse = { - result: ListAtsInterviewResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsInterviewResponseBody$inboundSchema: z.ZodType< - ListAtsInterviewResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsInterviewResponseBody$outboundSchema: z.ZodType< - ListAtsInterviewResponseBody$Outbound, - z.ZodTypeDef, - ListAtsInterviewResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsInterviewResponse$inboundSchema: z.ZodType< - ListAtsInterviewResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsInterviewResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsInterviewResponse$Outbound = { - Result: ListAtsInterviewResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsInterviewResponse$outboundSchema: z.ZodType< - ListAtsInterviewResponse$Outbound, - z.ZodTypeDef, - ListAtsInterviewResponse -> = z.object({ - result: z.lazy(() => ListAtsInterviewResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 5cda6b62..00000000 --- a/src/models/operations/listatsjob.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsJobRequest = { - /** - * 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 ListAtsJobResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsJobResponse = { - result: ListAtsJobResponseBody; -}; - -/** @internal */ -export const ListAtsJobRequest$inboundSchema: z.ZodType< - ListAtsJobRequest, - 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 ListAtsJobRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @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 const ListAtsJobResponseBody$inboundSchema: z.ZodType< - ListAtsJobResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedAtsJobOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListAtsJobResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsJobResponseBody$outboundSchema: z.ZodType< - ListAtsJobResponseBody$Outbound, - z.ZodTypeDef, - ListAtsJobResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsJobResponse$inboundSchema: z.ZodType< - ListAtsJobResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsJobResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsJobResponse$Outbound = { - Result: ListAtsJobResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsJobResponse$outboundSchema: z.ZodType< - ListAtsJobResponse$Outbound, - z.ZodTypeDef, - ListAtsJobResponse -> = z.object({ - result: z.lazy(() => ListAtsJobResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index bb0ff617..00000000 --- a/src/models/operations/listatsjobinterviewstage.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsJobInterviewStageRequest = { - /** - * 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 ListAtsJobInterviewStageResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsJobInterviewStageResponse = { - result: ListAtsJobInterviewStageResponseBody; -}; - -/** @internal */ -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 const ListAtsJobInterviewStageResponseBody$inboundSchema: z.ZodType< - ListAtsJobInterviewStageResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsJobInterviewStageResponseBody$outboundSchema: z.ZodType< - ListAtsJobInterviewStageResponseBody$Outbound, - z.ZodTypeDef, - ListAtsJobInterviewStageResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsJobInterviewStageResponse$inboundSchema: z.ZodType< - ListAtsJobInterviewStageResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsJobInterviewStageResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsJobInterviewStageResponse$Outbound = { - Result: ListAtsJobInterviewStageResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsJobInterviewStageResponse$outboundSchema: z.ZodType< - ListAtsJobInterviewStageResponse$Outbound, - z.ZodTypeDef, - ListAtsJobInterviewStageResponse -> = z.object({ - result: z.lazy(() => ListAtsJobInterviewStageResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index fafaffc1..00000000 --- a/src/models/operations/listatsoffer.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsOfferRequest = { - /** - * 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 ListAtsOfferResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsOfferResponse = { - result: ListAtsOfferResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsOfferResponseBody$inboundSchema: z.ZodType< - ListAtsOfferResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsOfferResponseBody$outboundSchema: z.ZodType< - ListAtsOfferResponseBody$Outbound, - z.ZodTypeDef, - ListAtsOfferResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsOfferResponse$inboundSchema: z.ZodType< - ListAtsOfferResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsOfferResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsOfferResponse$Outbound = { - Result: ListAtsOfferResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsOfferResponse$outboundSchema: z.ZodType< - ListAtsOfferResponse$Outbound, - z.ZodTypeDef, - ListAtsOfferResponse -> = z.object({ - result: z.lazy(() => ListAtsOfferResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index a40a001c..00000000 --- a/src/models/operations/listatsoffice.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsOfficeRequest = { - /** - * 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 ListAtsOfficeResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsOfficeResponse = { - result: ListAtsOfficeResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsOfficeResponseBody$inboundSchema: z.ZodType< - ListAtsOfficeResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsOfficeResponseBody$outboundSchema: z.ZodType< - ListAtsOfficeResponseBody$Outbound, - z.ZodTypeDef, - ListAtsOfficeResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsOfficeResponse$inboundSchema: z.ZodType< - ListAtsOfficeResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsOfficeResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsOfficeResponse$Outbound = { - Result: ListAtsOfficeResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsOfficeResponse$outboundSchema: z.ZodType< - ListAtsOfficeResponse$Outbound, - z.ZodTypeDef, - ListAtsOfficeResponse -> = z.object({ - result: z.lazy(() => ListAtsOfficeResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 8112b794..00000000 --- a/src/models/operations/listatsrejectreasons.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -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 | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsRejectReasonsResponse = { - result: ListAtsRejectReasonsResponseBody; -}; - -/** @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.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsRejectReasonsResponseBody$outboundSchema: z.ZodType< - ListAtsRejectReasonsResponseBody$Outbound, - z.ZodTypeDef, - ListAtsRejectReasonsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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({ - Result: z.lazy(() => ListAtsRejectReasonsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsRejectReasonsResponse$Outbound = { - Result: ListAtsRejectReasonsResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsRejectReasonsResponse$outboundSchema: z.ZodType< - ListAtsRejectReasonsResponse$Outbound, - z.ZodTypeDef, - ListAtsRejectReasonsResponse -> = z.object({ - result: z.lazy(() => ListAtsRejectReasonsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 9df2f0a7..00000000 --- a/src/models/operations/listatsscorecard.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsScorecardRequest = { - /** - * 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 ListAtsScorecardResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsScorecardResponse = { - result: ListAtsScorecardResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsScorecardResponseBody$inboundSchema: z.ZodType< - ListAtsScorecardResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsScorecardResponseBody$outboundSchema: z.ZodType< - ListAtsScorecardResponseBody$Outbound, - z.ZodTypeDef, - ListAtsScorecardResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsScorecardResponse$inboundSchema: z.ZodType< - ListAtsScorecardResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsScorecardResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsScorecardResponse$Outbound = { - Result: ListAtsScorecardResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsScorecardResponse$outboundSchema: z.ZodType< - ListAtsScorecardResponse$Outbound, - z.ZodTypeDef, - ListAtsScorecardResponse -> = z.object({ - result: z.lazy(() => ListAtsScorecardResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index 7004bfce..00000000 --- a/src/models/operations/listatstags.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsTagsRequest = { - /** - * 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 ListAtsTagsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsTagsResponse = { - result: ListAtsTagsResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsTagsResponseBody$inboundSchema: z.ZodType< - ListAtsTagsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsTagsResponseBody$outboundSchema: z.ZodType< - ListAtsTagsResponseBody$Outbound, - z.ZodTypeDef, - ListAtsTagsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsTagsResponse$inboundSchema: z.ZodType< - ListAtsTagsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsTagsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsTagsResponse$Outbound = { - Result: ListAtsTagsResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsTagsResponse$outboundSchema: z.ZodType< - ListAtsTagsResponse$Outbound, - z.ZodTypeDef, - ListAtsTagsResponse -> = z.object({ - result: z.lazy(() => ListAtsTagsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 deleted file mode 100644 index b42b2a3e..00000000 --- a/src/models/operations/listatsusers.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListAtsUsersRequest = { - /** - * 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 ListAtsUsersResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListAtsUsersResponse = { - result: ListAtsUsersResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListAtsUsersResponseBody$inboundSchema: z.ZodType< - ListAtsUsersResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListAtsUsersResponseBody$outboundSchema: z.ZodType< - ListAtsUsersResponseBody$Outbound, - z.ZodTypeDef, - ListAtsUsersResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListAtsUsersResponse$inboundSchema: z.ZodType< - ListAtsUsersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListAtsUsersResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAtsUsersResponse$Outbound = { - Result: ListAtsUsersResponseBody$Outbound; -}; - -/** @internal */ -export const ListAtsUsersResponse$outboundSchema: z.ZodType< - ListAtsUsersResponse$Outbound, - z.ZodTypeDef, - ListAtsUsersResponse -> = z.object({ - result: z.lazy(() => ListAtsUsersResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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 38958328..a4f9fb34 100644 --- a/src/models/operations/listcrmcompany.ts +++ b/src/models/operations/listcrmcompany.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmCompanyRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmCompanyRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmCompanyRequest$inboundSchema: z.ZodType< export type ListCrmCompanyRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmCompanyRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmCompanyRequest$ { export type Outbound = ListCrmCompanyRequest$Outbound; } +export function listCrmCompanyRequestToJSON( + listCrmCompanyRequest: ListCrmCompanyRequest, +): string { + return JSON.stringify( + ListCrmCompanyRequest$outboundSchema.parse(listCrmCompanyRequest), + ); +} + +export function listCrmCompanyRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmCompanyRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmCompanyRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmCompanyResponseBody$inboundSchema: z.ZodType< ListCrmCompanyResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmCompanyResponseBody$ { export type Outbound = ListCrmCompanyResponseBody$Outbound; } +export function listCrmCompanyResponseBodyToJSON( + listCrmCompanyResponseBody: ListCrmCompanyResponseBody, +): string { + return JSON.stringify( + ListCrmCompanyResponseBody$outboundSchema.parse(listCrmCompanyResponseBody), + ); +} + +export function listCrmCompanyResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmCompanyResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmCompanyResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmCompanyResponse$inboundSchema: z.ZodType< ListCrmCompanyResponse, @@ -185,3 +224,21 @@ export namespace ListCrmCompanyResponse$ { /** @deprecated use `ListCrmCompanyResponse$Outbound` instead. */ export type Outbound = ListCrmCompanyResponse$Outbound; } + +export function listCrmCompanyResponseToJSON( + listCrmCompanyResponse: ListCrmCompanyResponse, +): string { + return JSON.stringify( + ListCrmCompanyResponse$outboundSchema.parse(listCrmCompanyResponse), + ); +} + +export function listCrmCompanyResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmCompanyResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmCompanyResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmcontacts.ts b/src/models/operations/listcrmcontacts.ts index 924db7d4..594c58a2 100644 --- a/src/models/operations/listcrmcontacts.ts +++ b/src/models/operations/listcrmcontacts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmContactsRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmContactsRequest$inboundSchema: z.ZodType< export type ListCrmContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmContactsRequest$ { export type Outbound = ListCrmContactsRequest$Outbound; } +export function listCrmContactsRequestToJSON( + listCrmContactsRequest: ListCrmContactsRequest, +): string { + return JSON.stringify( + ListCrmContactsRequest$outboundSchema.parse(listCrmContactsRequest), + ); +} + +export function listCrmContactsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmContactsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmContactsRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmContactsResponseBody$inboundSchema: z.ZodType< ListCrmContactsResponseBody, @@ -142,6 +163,26 @@ export namespace ListCrmContactsResponseBody$ { export type Outbound = ListCrmContactsResponseBody$Outbound; } +export function listCrmContactsResponseBodyToJSON( + listCrmContactsResponseBody: ListCrmContactsResponseBody, +): string { + return JSON.stringify( + ListCrmContactsResponseBody$outboundSchema.parse( + listCrmContactsResponseBody, + ), + ); +} + +export function listCrmContactsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmContactsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmContactsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmContactsResponse$inboundSchema: z.ZodType< ListCrmContactsResponse, @@ -185,3 +226,21 @@ export namespace ListCrmContactsResponse$ { /** @deprecated use `ListCrmContactsResponse$Outbound` instead. */ export type Outbound = ListCrmContactsResponse$Outbound; } + +export function listCrmContactsResponseToJSON( + listCrmContactsResponse: ListCrmContactsResponse, +): string { + return JSON.stringify( + ListCrmContactsResponse$outboundSchema.parse(listCrmContactsResponse), + ); +} + +export function listCrmContactsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmContactsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmContactsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmdeals.ts b/src/models/operations/listcrmdeals.ts index 8efd233a..ee2cb9e6 100644 --- a/src/models/operations/listcrmdeals.ts +++ b/src/models/operations/listcrmdeals.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmDealsRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmDealsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmDealsRequest$inboundSchema: z.ZodType< export type ListCrmDealsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmDealsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmDealsRequest$ { export type Outbound = ListCrmDealsRequest$Outbound; } +export function listCrmDealsRequestToJSON( + listCrmDealsRequest: ListCrmDealsRequest, +): string { + return JSON.stringify( + ListCrmDealsRequest$outboundSchema.parse(listCrmDealsRequest), + ); +} + +export function listCrmDealsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmDealsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmDealsRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmDealsResponseBody$inboundSchema: z.ZodType< ListCrmDealsResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmDealsResponseBody$ { export type Outbound = ListCrmDealsResponseBody$Outbound; } +export function listCrmDealsResponseBodyToJSON( + listCrmDealsResponseBody: ListCrmDealsResponseBody, +): string { + return JSON.stringify( + ListCrmDealsResponseBody$outboundSchema.parse(listCrmDealsResponseBody), + ); +} + +export function listCrmDealsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmDealsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmDealsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmDealsResponse$inboundSchema: z.ZodType< ListCrmDealsResponse, @@ -185,3 +224,21 @@ export namespace ListCrmDealsResponse$ { /** @deprecated use `ListCrmDealsResponse$Outbound` instead. */ export type Outbound = ListCrmDealsResponse$Outbound; } + +export function listCrmDealsResponseToJSON( + listCrmDealsResponse: ListCrmDealsResponse, +): string { + return JSON.stringify( + ListCrmDealsResponse$outboundSchema.parse(listCrmDealsResponse), + ); +} + +export function listCrmDealsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmDealsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmDealsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmengagements.ts b/src/models/operations/listcrmengagements.ts index 2835b616..01051c62 100644 --- a/src/models/operations/listcrmengagements.ts +++ b/src/models/operations/listcrmengagements.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmEngagementsRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< export type ListCrmEngagementsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmEngagementsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmEngagementsRequest$ { export type Outbound = ListCrmEngagementsRequest$Outbound; } +export function listCrmEngagementsRequestToJSON( + listCrmEngagementsRequest: ListCrmEngagementsRequest, +): string { + return JSON.stringify( + ListCrmEngagementsRequest$outboundSchema.parse(listCrmEngagementsRequest), + ); +} + +export function listCrmEngagementsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmEngagementsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmEngagementsRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmEngagementsResponseBody$inboundSchema: z.ZodType< ListCrmEngagementsResponseBody, @@ -142,6 +163,26 @@ export namespace ListCrmEngagementsResponseBody$ { export type Outbound = ListCrmEngagementsResponseBody$Outbound; } +export function listCrmEngagementsResponseBodyToJSON( + listCrmEngagementsResponseBody: ListCrmEngagementsResponseBody, +): string { + return JSON.stringify( + ListCrmEngagementsResponseBody$outboundSchema.parse( + listCrmEngagementsResponseBody, + ), + ); +} + +export function listCrmEngagementsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmEngagementsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmEngagementsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmEngagementsResponse$inboundSchema: z.ZodType< ListCrmEngagementsResponse, @@ -185,3 +226,21 @@ export namespace ListCrmEngagementsResponse$ { /** @deprecated use `ListCrmEngagementsResponse$Outbound` instead. */ export type Outbound = ListCrmEngagementsResponse$Outbound; } + +export function listCrmEngagementsResponseToJSON( + listCrmEngagementsResponse: ListCrmEngagementsResponse, +): string { + return JSON.stringify( + ListCrmEngagementsResponse$outboundSchema.parse(listCrmEngagementsResponse), + ); +} + +export function listCrmEngagementsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmEngagementsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmEngagementsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmnote.ts b/src/models/operations/listcrmnote.ts index 7810b938..1f836ff3 100644 --- a/src/models/operations/listcrmnote.ts +++ b/src/models/operations/listcrmnote.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmNoteRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmNoteRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmNoteRequest$inboundSchema: z.ZodType< export type ListCrmNoteRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmNoteRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmNoteRequest$ { export type Outbound = ListCrmNoteRequest$Outbound; } +export function listCrmNoteRequestToJSON( + listCrmNoteRequest: ListCrmNoteRequest, +): string { + return JSON.stringify( + ListCrmNoteRequest$outboundSchema.parse(listCrmNoteRequest), + ); +} + +export function listCrmNoteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmNoteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmNoteRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmNoteResponseBody$inboundSchema: z.ZodType< ListCrmNoteResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmNoteResponseBody$ { export type Outbound = ListCrmNoteResponseBody$Outbound; } +export function listCrmNoteResponseBodyToJSON( + listCrmNoteResponseBody: ListCrmNoteResponseBody, +): string { + return JSON.stringify( + ListCrmNoteResponseBody$outboundSchema.parse(listCrmNoteResponseBody), + ); +} + +export function listCrmNoteResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmNoteResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmNoteResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmNoteResponse$inboundSchema: z.ZodType< ListCrmNoteResponse, @@ -185,3 +224,21 @@ export namespace ListCrmNoteResponse$ { /** @deprecated use `ListCrmNoteResponse$Outbound` instead. */ export type Outbound = ListCrmNoteResponse$Outbound; } + +export function listCrmNoteResponseToJSON( + listCrmNoteResponse: ListCrmNoteResponse, +): string { + return JSON.stringify( + ListCrmNoteResponse$outboundSchema.parse(listCrmNoteResponse), + ); +} + +export function listCrmNoteResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmNoteResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmNoteResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmstages.ts b/src/models/operations/listcrmstages.ts index b99be1e0..786a1d9c 100644 --- a/src/models/operations/listcrmstages.ts +++ b/src/models/operations/listcrmstages.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmStagesRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmStagesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmStagesRequest$inboundSchema: z.ZodType< export type ListCrmStagesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmStagesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmStagesRequest$ { export type Outbound = ListCrmStagesRequest$Outbound; } +export function listCrmStagesRequestToJSON( + listCrmStagesRequest: ListCrmStagesRequest, +): string { + return JSON.stringify( + ListCrmStagesRequest$outboundSchema.parse(listCrmStagesRequest), + ); +} + +export function listCrmStagesRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmStagesRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmStagesRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmStagesResponseBody$inboundSchema: z.ZodType< ListCrmStagesResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmStagesResponseBody$ { export type Outbound = ListCrmStagesResponseBody$Outbound; } +export function listCrmStagesResponseBodyToJSON( + listCrmStagesResponseBody: ListCrmStagesResponseBody, +): string { + return JSON.stringify( + ListCrmStagesResponseBody$outboundSchema.parse(listCrmStagesResponseBody), + ); +} + +export function listCrmStagesResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmStagesResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmStagesResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmStagesResponse$inboundSchema: z.ZodType< ListCrmStagesResponse, @@ -185,3 +224,21 @@ export namespace ListCrmStagesResponse$ { /** @deprecated use `ListCrmStagesResponse$Outbound` instead. */ export type Outbound = ListCrmStagesResponse$Outbound; } + +export function listCrmStagesResponseToJSON( + listCrmStagesResponse: ListCrmStagesResponse, +): string { + return JSON.stringify( + ListCrmStagesResponse$outboundSchema.parse(listCrmStagesResponse), + ); +} + +export function listCrmStagesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmStagesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmStagesResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmtask.ts b/src/models/operations/listcrmtask.ts index a3b670e2..55a63f79 100644 --- a/src/models/operations/listcrmtask.ts +++ b/src/models/operations/listcrmtask.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmTaskRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmTaskRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmTaskRequest$inboundSchema: z.ZodType< export type ListCrmTaskRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmTaskRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmTaskRequest$ { export type Outbound = ListCrmTaskRequest$Outbound; } +export function listCrmTaskRequestToJSON( + listCrmTaskRequest: ListCrmTaskRequest, +): string { + return JSON.stringify( + ListCrmTaskRequest$outboundSchema.parse(listCrmTaskRequest), + ); +} + +export function listCrmTaskRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmTaskRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmTaskRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmTaskResponseBody$inboundSchema: z.ZodType< ListCrmTaskResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmTaskResponseBody$ { export type Outbound = ListCrmTaskResponseBody$Outbound; } +export function listCrmTaskResponseBodyToJSON( + listCrmTaskResponseBody: ListCrmTaskResponseBody, +): string { + return JSON.stringify( + ListCrmTaskResponseBody$outboundSchema.parse(listCrmTaskResponseBody), + ); +} + +export function listCrmTaskResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmTaskResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmTaskResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmTaskResponse$inboundSchema: z.ZodType< ListCrmTaskResponse, @@ -185,3 +224,21 @@ export namespace ListCrmTaskResponse$ { /** @deprecated use `ListCrmTaskResponse$Outbound` instead. */ export type Outbound = ListCrmTaskResponse$Outbound; } + +export function listCrmTaskResponseToJSON( + listCrmTaskResponse: ListCrmTaskResponse, +): string { + return JSON.stringify( + ListCrmTaskResponse$outboundSchema.parse(listCrmTaskResponse), + ); +} + +export function listCrmTaskResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmTaskResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmTaskResponse' from JSON`, + ); +} diff --git a/src/models/operations/listcrmusers.ts b/src/models/operations/listcrmusers.ts index 5a10c825..d26e594e 100644 --- a/src/models/operations/listcrmusers.ts +++ b/src/models/operations/listcrmusers.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCrmUsersRequest = { /** @@ -43,7 +46,7 @@ export const ListCrmUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListCrmUsersRequest$inboundSchema: z.ZodType< export type ListCrmUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListCrmUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListCrmUsersRequest$ { export type Outbound = ListCrmUsersRequest$Outbound; } +export function listCrmUsersRequestToJSON( + listCrmUsersRequest: ListCrmUsersRequest, +): string { + return JSON.stringify( + ListCrmUsersRequest$outboundSchema.parse(listCrmUsersRequest), + ); +} + +export function listCrmUsersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmUsersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmUsersRequest' from JSON`, + ); +} + /** @internal */ export const ListCrmUsersResponseBody$inboundSchema: z.ZodType< ListCrmUsersResponseBody, @@ -142,6 +163,24 @@ export namespace ListCrmUsersResponseBody$ { export type Outbound = ListCrmUsersResponseBody$Outbound; } +export function listCrmUsersResponseBodyToJSON( + listCrmUsersResponseBody: ListCrmUsersResponseBody, +): string { + return JSON.stringify( + ListCrmUsersResponseBody$outboundSchema.parse(listCrmUsersResponseBody), + ); +} + +export function listCrmUsersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmUsersResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmUsersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListCrmUsersResponse$inboundSchema: z.ZodType< ListCrmUsersResponse, @@ -185,3 +224,21 @@ export namespace ListCrmUsersResponse$ { /** @deprecated use `ListCrmUsersResponse$Outbound` instead. */ export type Outbound = ListCrmUsersResponse$Outbound; } + +export function listCrmUsersResponseToJSON( + listCrmUsersResponse: ListCrmUsersResponse, +): string { + return JSON.stringify( + ListCrmUsersResponse$outboundSchema.parse(listCrmUsersResponse), + ); +} + +export function listCrmUsersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListCrmUsersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListCrmUsersResponse' from JSON`, + ); +} diff --git a/src/models/operations/listecommercecustomers.ts b/src/models/operations/listecommercecustomers.ts index 5c0cd63e..d71d5c9c 100644 --- a/src/models/operations/listecommercecustomers.ts +++ b/src/models/operations/listecommercecustomers.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListEcommerceCustomersRequest = { /** @@ -43,7 +46,7 @@ export const ListEcommerceCustomersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListEcommerceCustomersRequest$inboundSchema: z.ZodType< export type ListEcommerceCustomersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListEcommerceCustomersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListEcommerceCustomersRequest$ { export type Outbound = ListEcommerceCustomersRequest$Outbound; } +export function listEcommerceCustomersRequestToJSON( + listEcommerceCustomersRequest: ListEcommerceCustomersRequest, +): string { + return JSON.stringify( + ListEcommerceCustomersRequest$outboundSchema.parse( + listEcommerceCustomersRequest, + ), + ); +} + +export function listEcommerceCustomersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceCustomersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceCustomersRequest' from JSON`, + ); +} + /** @internal */ export const ListEcommerceCustomersResponseBody$inboundSchema: z.ZodType< ListEcommerceCustomersResponseBody, @@ -143,6 +166,27 @@ export namespace ListEcommerceCustomersResponseBody$ { export type Outbound = ListEcommerceCustomersResponseBody$Outbound; } +export function listEcommerceCustomersResponseBodyToJSON( + listEcommerceCustomersResponseBody: ListEcommerceCustomersResponseBody, +): string { + return JSON.stringify( + ListEcommerceCustomersResponseBody$outboundSchema.parse( + listEcommerceCustomersResponseBody, + ), + ); +} + +export function listEcommerceCustomersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListEcommerceCustomersResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceCustomersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListEcommerceCustomersResponse$inboundSchema: z.ZodType< ListEcommerceCustomersResponse, @@ -186,3 +230,23 @@ export namespace ListEcommerceCustomersResponse$ { /** @deprecated use `ListEcommerceCustomersResponse$Outbound` instead. */ export type Outbound = ListEcommerceCustomersResponse$Outbound; } + +export function listEcommerceCustomersResponseToJSON( + listEcommerceCustomersResponse: ListEcommerceCustomersResponse, +): string { + return JSON.stringify( + ListEcommerceCustomersResponse$outboundSchema.parse( + listEcommerceCustomersResponse, + ), + ); +} + +export function listEcommerceCustomersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceCustomersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceCustomersResponse' from JSON`, + ); +} diff --git a/src/models/operations/listecommercefulfillments.ts b/src/models/operations/listecommercefulfillments.ts index 4d0bcb98..86b6e036 100644 --- a/src/models/operations/listecommercefulfillments.ts +++ b/src/models/operations/listecommercefulfillments.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListEcommerceFulfillmentsRequest = { /** @@ -43,7 +46,7 @@ export const ListEcommerceFulfillmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListEcommerceFulfillmentsRequest$inboundSchema: z.ZodType< export type ListEcommerceFulfillmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListEcommerceFulfillmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListEcommerceFulfillmentsRequest$ { export type Outbound = ListEcommerceFulfillmentsRequest$Outbound; } +export function listEcommerceFulfillmentsRequestToJSON( + listEcommerceFulfillmentsRequest: ListEcommerceFulfillmentsRequest, +): string { + return JSON.stringify( + ListEcommerceFulfillmentsRequest$outboundSchema.parse( + listEcommerceFulfillmentsRequest, + ), + ); +} + +export function listEcommerceFulfillmentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceFulfillmentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceFulfillmentsRequest' from JSON`, + ); +} + /** @internal */ export const ListEcommerceFulfillmentsResponseBody$inboundSchema: z.ZodType< ListEcommerceFulfillmentsResponseBody, @@ -144,6 +167,27 @@ export namespace ListEcommerceFulfillmentsResponseBody$ { export type Outbound = ListEcommerceFulfillmentsResponseBody$Outbound; } +export function listEcommerceFulfillmentsResponseBodyToJSON( + listEcommerceFulfillmentsResponseBody: ListEcommerceFulfillmentsResponseBody, +): string { + return JSON.stringify( + ListEcommerceFulfillmentsResponseBody$outboundSchema.parse( + listEcommerceFulfillmentsResponseBody, + ), + ); +} + +export function listEcommerceFulfillmentsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListEcommerceFulfillmentsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceFulfillmentsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListEcommerceFulfillmentsResponse$inboundSchema: z.ZodType< ListEcommerceFulfillmentsResponse, @@ -188,3 +232,23 @@ export namespace ListEcommerceFulfillmentsResponse$ { /** @deprecated use `ListEcommerceFulfillmentsResponse$Outbound` instead. */ export type Outbound = ListEcommerceFulfillmentsResponse$Outbound; } + +export function listEcommerceFulfillmentsResponseToJSON( + listEcommerceFulfillmentsResponse: ListEcommerceFulfillmentsResponse, +): string { + return JSON.stringify( + ListEcommerceFulfillmentsResponse$outboundSchema.parse( + listEcommerceFulfillmentsResponse, + ), + ); +} + +export function listEcommerceFulfillmentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceFulfillmentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceFulfillmentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listecommerceorders.ts b/src/models/operations/listecommerceorders.ts index 15c71947..75343060 100644 --- a/src/models/operations/listecommerceorders.ts +++ b/src/models/operations/listecommerceorders.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListEcommerceOrdersRequest = { /** @@ -43,7 +46,7 @@ export const ListEcommerceOrdersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListEcommerceOrdersRequest$inboundSchema: z.ZodType< export type ListEcommerceOrdersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListEcommerceOrdersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListEcommerceOrdersRequest$ { export type Outbound = ListEcommerceOrdersRequest$Outbound; } +export function listEcommerceOrdersRequestToJSON( + listEcommerceOrdersRequest: ListEcommerceOrdersRequest, +): string { + return JSON.stringify( + ListEcommerceOrdersRequest$outboundSchema.parse(listEcommerceOrdersRequest), + ); +} + +export function listEcommerceOrdersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceOrdersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceOrdersRequest' from JSON`, + ); +} + /** @internal */ export const ListEcommerceOrdersResponseBody$inboundSchema: z.ZodType< ListEcommerceOrdersResponseBody, @@ -142,6 +163,26 @@ export namespace ListEcommerceOrdersResponseBody$ { export type Outbound = ListEcommerceOrdersResponseBody$Outbound; } +export function listEcommerceOrdersResponseBodyToJSON( + listEcommerceOrdersResponseBody: ListEcommerceOrdersResponseBody, +): string { + return JSON.stringify( + ListEcommerceOrdersResponseBody$outboundSchema.parse( + listEcommerceOrdersResponseBody, + ), + ); +} + +export function listEcommerceOrdersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceOrdersResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceOrdersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListEcommerceOrdersResponse$inboundSchema: z.ZodType< ListEcommerceOrdersResponse, @@ -185,3 +226,23 @@ export namespace ListEcommerceOrdersResponse$ { /** @deprecated use `ListEcommerceOrdersResponse$Outbound` instead. */ export type Outbound = ListEcommerceOrdersResponse$Outbound; } + +export function listEcommerceOrdersResponseToJSON( + listEcommerceOrdersResponse: ListEcommerceOrdersResponse, +): string { + return JSON.stringify( + ListEcommerceOrdersResponse$outboundSchema.parse( + listEcommerceOrdersResponse, + ), + ); +} + +export function listEcommerceOrdersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceOrdersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceOrdersResponse' from JSON`, + ); +} diff --git a/src/models/operations/listecommerceproducts.ts b/src/models/operations/listecommerceproducts.ts index 48816132..f01aa291 100644 --- a/src/models/operations/listecommerceproducts.ts +++ b/src/models/operations/listecommerceproducts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListEcommerceProductsRequest = { /** @@ -43,7 +46,7 @@ export const ListEcommerceProductsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListEcommerceProductsRequest$inboundSchema: z.ZodType< export type ListEcommerceProductsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListEcommerceProductsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListEcommerceProductsRequest$ { export type Outbound = ListEcommerceProductsRequest$Outbound; } +export function listEcommerceProductsRequestToJSON( + listEcommerceProductsRequest: ListEcommerceProductsRequest, +): string { + return JSON.stringify( + ListEcommerceProductsRequest$outboundSchema.parse( + listEcommerceProductsRequest, + ), + ); +} + +export function listEcommerceProductsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceProductsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceProductsRequest' from JSON`, + ); +} + /** @internal */ export const ListEcommerceProductsResponseBody$inboundSchema: z.ZodType< ListEcommerceProductsResponseBody, @@ -143,6 +166,26 @@ export namespace ListEcommerceProductsResponseBody$ { export type Outbound = ListEcommerceProductsResponseBody$Outbound; } +export function listEcommerceProductsResponseBodyToJSON( + listEcommerceProductsResponseBody: ListEcommerceProductsResponseBody, +): string { + return JSON.stringify( + ListEcommerceProductsResponseBody$outboundSchema.parse( + listEcommerceProductsResponseBody, + ), + ); +} + +export function listEcommerceProductsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceProductsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceProductsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListEcommerceProductsResponse$inboundSchema: z.ZodType< ListEcommerceProductsResponse, @@ -186,3 +229,23 @@ export namespace ListEcommerceProductsResponse$ { /** @deprecated use `ListEcommerceProductsResponse$Outbound` instead. */ export type Outbound = ListEcommerceProductsResponse$Outbound; } + +export function listEcommerceProductsResponseToJSON( + listEcommerceProductsResponse: ListEcommerceProductsResponse, +): string { + return JSON.stringify( + ListEcommerceProductsResponse$outboundSchema.parse( + listEcommerceProductsResponse, + ), + ); +} + +export function listEcommerceProductsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEcommerceProductsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEcommerceProductsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listfilestoragefile.ts b/src/models/operations/listfilestoragefile.ts index b1a2ca46..ab40e631 100644 --- a/src/models/operations/listfilestoragefile.ts +++ b/src/models/operations/listfilestoragefile.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListFilestorageFileRequest = { /** @@ -43,7 +46,7 @@ export const ListFilestorageFileRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListFilestorageFileRequest$inboundSchema: z.ZodType< export type ListFilestorageFileRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListFilestorageFileRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListFilestorageFileRequest$ { export type Outbound = ListFilestorageFileRequest$Outbound; } +export function listFilestorageFileRequestToJSON( + listFilestorageFileRequest: ListFilestorageFileRequest, +): string { + return JSON.stringify( + ListFilestorageFileRequest$outboundSchema.parse(listFilestorageFileRequest), + ); +} + +export function listFilestorageFileRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFileRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFileRequest' from JSON`, + ); +} + /** @internal */ export const ListFilestorageFileResponseBody$inboundSchema: z.ZodType< ListFilestorageFileResponseBody, @@ -142,6 +163,26 @@ export namespace ListFilestorageFileResponseBody$ { export type Outbound = ListFilestorageFileResponseBody$Outbound; } +export function listFilestorageFileResponseBodyToJSON( + listFilestorageFileResponseBody: ListFilestorageFileResponseBody, +): string { + return JSON.stringify( + ListFilestorageFileResponseBody$outboundSchema.parse( + listFilestorageFileResponseBody, + ), + ); +} + +export function listFilestorageFileResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFileResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFileResponseBody' from JSON`, + ); +} + /** @internal */ export const ListFilestorageFileResponse$inboundSchema: z.ZodType< ListFilestorageFileResponse, @@ -185,3 +226,23 @@ export namespace ListFilestorageFileResponse$ { /** @deprecated use `ListFilestorageFileResponse$Outbound` instead. */ export type Outbound = ListFilestorageFileResponse$Outbound; } + +export function listFilestorageFileResponseToJSON( + listFilestorageFileResponse: ListFilestorageFileResponse, +): string { + return JSON.stringify( + ListFilestorageFileResponse$outboundSchema.parse( + listFilestorageFileResponse, + ), + ); +} + +export function listFilestorageFileResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFileResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFileResponse' from JSON`, + ); +} diff --git a/src/models/operations/listfilestoragefolder.ts b/src/models/operations/listfilestoragefolder.ts index 02fb3678..d47c99b7 100644 --- a/src/models/operations/listfilestoragefolder.ts +++ b/src/models/operations/listfilestoragefolder.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListFilestorageFolderRequest = { /** @@ -43,7 +46,7 @@ export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< export type ListFilestorageFolderRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListFilestorageFolderRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListFilestorageFolderRequest$ { export type Outbound = ListFilestorageFolderRequest$Outbound; } +export function listFilestorageFolderRequestToJSON( + listFilestorageFolderRequest: ListFilestorageFolderRequest, +): string { + return JSON.stringify( + ListFilestorageFolderRequest$outboundSchema.parse( + listFilestorageFolderRequest, + ), + ); +} + +export function listFilestorageFolderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFolderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFolderRequest' from JSON`, + ); +} + /** @internal */ export const ListFilestorageFolderResponseBody$inboundSchema: z.ZodType< ListFilestorageFolderResponseBody, @@ -143,6 +166,26 @@ export namespace ListFilestorageFolderResponseBody$ { export type Outbound = ListFilestorageFolderResponseBody$Outbound; } +export function listFilestorageFolderResponseBodyToJSON( + listFilestorageFolderResponseBody: ListFilestorageFolderResponseBody, +): string { + return JSON.stringify( + ListFilestorageFolderResponseBody$outboundSchema.parse( + listFilestorageFolderResponseBody, + ), + ); +} + +export function listFilestorageFolderResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFolderResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFolderResponseBody' from JSON`, + ); +} + /** @internal */ export const ListFilestorageFolderResponse$inboundSchema: z.ZodType< ListFilestorageFolderResponse, @@ -186,3 +229,23 @@ export namespace ListFilestorageFolderResponse$ { /** @deprecated use `ListFilestorageFolderResponse$Outbound` instead. */ export type Outbound = ListFilestorageFolderResponse$Outbound; } + +export function listFilestorageFolderResponseToJSON( + listFilestorageFolderResponse: ListFilestorageFolderResponse, +): string { + return JSON.stringify( + ListFilestorageFolderResponse$outboundSchema.parse( + listFilestorageFolderResponse, + ), + ); +} + +export function listFilestorageFolderResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageFolderResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageFolderResponse' from JSON`, + ); +} diff --git a/src/models/operations/listfilestoragegroup.ts b/src/models/operations/listfilestoragegroup.ts index f9bb5dcb..47b1742b 100644 --- a/src/models/operations/listfilestoragegroup.ts +++ b/src/models/operations/listfilestoragegroup.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListFilestorageGroupRequest = { /** @@ -43,7 +46,7 @@ export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< export type ListFilestorageGroupRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListFilestorageGroupRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListFilestorageGroupRequest$ { export type Outbound = ListFilestorageGroupRequest$Outbound; } +export function listFilestorageGroupRequestToJSON( + listFilestorageGroupRequest: ListFilestorageGroupRequest, +): string { + return JSON.stringify( + ListFilestorageGroupRequest$outboundSchema.parse( + listFilestorageGroupRequest, + ), + ); +} + +export function listFilestorageGroupRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageGroupRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageGroupRequest' from JSON`, + ); +} + /** @internal */ export const ListFilestorageGroupResponseBody$inboundSchema: z.ZodType< ListFilestorageGroupResponseBody, @@ -142,6 +165,26 @@ export namespace ListFilestorageGroupResponseBody$ { export type Outbound = ListFilestorageGroupResponseBody$Outbound; } +export function listFilestorageGroupResponseBodyToJSON( + listFilestorageGroupResponseBody: ListFilestorageGroupResponseBody, +): string { + return JSON.stringify( + ListFilestorageGroupResponseBody$outboundSchema.parse( + listFilestorageGroupResponseBody, + ), + ); +} + +export function listFilestorageGroupResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageGroupResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageGroupResponseBody' from JSON`, + ); +} + /** @internal */ export const ListFilestorageGroupResponse$inboundSchema: z.ZodType< ListFilestorageGroupResponse, @@ -185,3 +228,23 @@ export namespace ListFilestorageGroupResponse$ { /** @deprecated use `ListFilestorageGroupResponse$Outbound` instead. */ export type Outbound = ListFilestorageGroupResponse$Outbound; } + +export function listFilestorageGroupResponseToJSON( + listFilestorageGroupResponse: ListFilestorageGroupResponse, +): string { + return JSON.stringify( + ListFilestorageGroupResponse$outboundSchema.parse( + listFilestorageGroupResponse, + ), + ); +} + +export function listFilestorageGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/listfilestorageusers.ts b/src/models/operations/listfilestorageusers.ts index ae087a7a..5a75ad66 100644 --- a/src/models/operations/listfilestorageusers.ts +++ b/src/models/operations/listfilestorageusers.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListFilestorageUsersRequest = { /** @@ -43,7 +46,7 @@ export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< export type ListFilestorageUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListFilestorageUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListFilestorageUsersRequest$ { export type Outbound = ListFilestorageUsersRequest$Outbound; } +export function listFilestorageUsersRequestToJSON( + listFilestorageUsersRequest: ListFilestorageUsersRequest, +): string { + return JSON.stringify( + ListFilestorageUsersRequest$outboundSchema.parse( + listFilestorageUsersRequest, + ), + ); +} + +export function listFilestorageUsersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageUsersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageUsersRequest' from JSON`, + ); +} + /** @internal */ export const ListFilestorageUsersResponseBody$inboundSchema: z.ZodType< ListFilestorageUsersResponseBody, @@ -142,6 +165,26 @@ export namespace ListFilestorageUsersResponseBody$ { export type Outbound = ListFilestorageUsersResponseBody$Outbound; } +export function listFilestorageUsersResponseBodyToJSON( + listFilestorageUsersResponseBody: ListFilestorageUsersResponseBody, +): string { + return JSON.stringify( + ListFilestorageUsersResponseBody$outboundSchema.parse( + listFilestorageUsersResponseBody, + ), + ); +} + +export function listFilestorageUsersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageUsersResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageUsersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListFilestorageUsersResponse$inboundSchema: z.ZodType< ListFilestorageUsersResponse, @@ -185,3 +228,23 @@ export namespace ListFilestorageUsersResponse$ { /** @deprecated use `ListFilestorageUsersResponse$Outbound` instead. */ export type Outbound = ListFilestorageUsersResponse$Outbound; } + +export function listFilestorageUsersResponseToJSON( + listFilestorageUsersResponse: ListFilestorageUsersResponse, +): string { + return JSON.stringify( + ListFilestorageUsersResponse$outboundSchema.parse( + listFilestorageUsersResponse, + ), + ); +} + +export function listFilestorageUsersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListFilestorageUsersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFilestorageUsersResponse' from JSON`, + ); +} diff --git a/src/models/operations/listhrisbankinfo.ts b/src/models/operations/listhrisbankinfo.ts deleted file mode 100644 index b1e51e8d..00000000 --- a/src/models/operations/listhrisbankinfo.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisBankInfoRequest = { - /** - * 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 ListHrisBankInfoResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisBankInfoResponse = { - result: ListHrisBankInfoResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListHrisBankInfoResponseBody$inboundSchema: z.ZodType< - ListHrisBankInfoResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisBankInfoResponseBody$outboundSchema: z.ZodType< - ListHrisBankInfoResponseBody$Outbound, - z.ZodTypeDef, - ListHrisBankInfoResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListHrisBankInfoResponse$inboundSchema: z.ZodType< - ListHrisBankInfoResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisBankInfoResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisBankInfoResponse$Outbound = { - Result: ListHrisBankInfoResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisBankInfoResponse$outboundSchema: z.ZodType< - ListHrisBankInfoResponse$Outbound, - z.ZodTypeDef, - ListHrisBankInfoResponse -> = z.object({ - result: z.lazy(() => ListHrisBankInfoResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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/listhrisbenefits.ts b/src/models/operations/listhrisbenefits.ts deleted file mode 100644 index 18c77b74..00000000 --- a/src/models/operations/listhrisbenefits.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisBenefitsRequest = { - /** - * 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 ListHrisBenefitsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisBenefitsResponse = { - result: ListHrisBenefitsResponseBody; -}; - -/** @internal */ -export const ListHrisBenefitsRequest$inboundSchema: z.ZodType< - ListHrisBenefitsRequest, - 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 ListHrisBenefitsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisBenefitsRequest$outboundSchema: z.ZodType< - ListHrisBenefitsRequest$Outbound, - z.ZodTypeDef, - ListHrisBenefitsRequest -> = 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 ListHrisBenefitsRequest$ { - /** @deprecated use `ListHrisBenefitsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisBenefitsRequest$inboundSchema; - /** @deprecated use `ListHrisBenefitsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisBenefitsRequest$outboundSchema; - /** @deprecated use `ListHrisBenefitsRequest$Outbound` instead. */ - export type Outbound = ListHrisBenefitsRequest$Outbound; -} - -/** @internal */ -export const ListHrisBenefitsResponseBody$inboundSchema: z.ZodType< - ListHrisBenefitsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisBenefitOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisBenefitsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisBenefitsResponseBody$outboundSchema: z.ZodType< - ListHrisBenefitsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisBenefitsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisBenefitsResponseBody$ { - /** @deprecated use `ListHrisBenefitsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisBenefitsResponseBody$inboundSchema; - /** @deprecated use `ListHrisBenefitsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisBenefitsResponseBody$outboundSchema; - /** @deprecated use `ListHrisBenefitsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisBenefitsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisBenefitsResponse$inboundSchema: z.ZodType< - ListHrisBenefitsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisBenefitsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisBenefitsResponse$Outbound = { - Result: ListHrisBenefitsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisBenefitsResponse$outboundSchema: z.ZodType< - ListHrisBenefitsResponse$Outbound, - z.ZodTypeDef, - ListHrisBenefitsResponse -> = z.object({ - result: z.lazy(() => ListHrisBenefitsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisBenefitsResponse$ { - /** @deprecated use `ListHrisBenefitsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisBenefitsResponse$inboundSchema; - /** @deprecated use `ListHrisBenefitsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisBenefitsResponse$outboundSchema; - /** @deprecated use `ListHrisBenefitsResponse$Outbound` instead. */ - export type Outbound = ListHrisBenefitsResponse$Outbound; -} diff --git a/src/models/operations/listhriscompanies.ts b/src/models/operations/listhriscompanies.ts deleted file mode 100644 index b65b661b..00000000 --- a/src/models/operations/listhriscompanies.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisCompaniesRequest = { - /** - * 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 ListHrisCompaniesResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisCompaniesResponse = { - result: ListHrisCompaniesResponseBody; -}; - -/** @internal */ -export const ListHrisCompaniesRequest$inboundSchema: z.ZodType< - ListHrisCompaniesRequest, - 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 ListHrisCompaniesRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisCompaniesRequest$outboundSchema: z.ZodType< - ListHrisCompaniesRequest$Outbound, - z.ZodTypeDef, - ListHrisCompaniesRequest -> = 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 ListHrisCompaniesRequest$ { - /** @deprecated use `ListHrisCompaniesRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisCompaniesRequest$inboundSchema; - /** @deprecated use `ListHrisCompaniesRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisCompaniesRequest$outboundSchema; - /** @deprecated use `ListHrisCompaniesRequest$Outbound` instead. */ - export type Outbound = ListHrisCompaniesRequest$Outbound; -} - -/** @internal */ -export const ListHrisCompaniesResponseBody$inboundSchema: z.ZodType< - ListHrisCompaniesResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisCompanyOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisCompaniesResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisCompaniesResponseBody$outboundSchema: z.ZodType< - ListHrisCompaniesResponseBody$Outbound, - z.ZodTypeDef, - ListHrisCompaniesResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisCompaniesResponseBody$ { - /** @deprecated use `ListHrisCompaniesResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisCompaniesResponseBody$inboundSchema; - /** @deprecated use `ListHrisCompaniesResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisCompaniesResponseBody$outboundSchema; - /** @deprecated use `ListHrisCompaniesResponseBody$Outbound` instead. */ - export type Outbound = ListHrisCompaniesResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisCompaniesResponse$inboundSchema: z.ZodType< - ListHrisCompaniesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisCompaniesResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisCompaniesResponse$Outbound = { - Result: ListHrisCompaniesResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisCompaniesResponse$outboundSchema: z.ZodType< - ListHrisCompaniesResponse$Outbound, - z.ZodTypeDef, - ListHrisCompaniesResponse -> = z.object({ - result: z.lazy(() => ListHrisCompaniesResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisCompaniesResponse$ { - /** @deprecated use `ListHrisCompaniesResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisCompaniesResponse$inboundSchema; - /** @deprecated use `ListHrisCompaniesResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisCompaniesResponse$outboundSchema; - /** @deprecated use `ListHrisCompaniesResponse$Outbound` instead. */ - export type Outbound = ListHrisCompaniesResponse$Outbound; -} diff --git a/src/models/operations/listhrisdependents.ts b/src/models/operations/listhrisdependents.ts deleted file mode 100644 index 98bb18d0..00000000 --- a/src/models/operations/listhrisdependents.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisDependentsRequest = { - /** - * 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 ListHrisDependentsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisDependentsResponse = { - result: ListHrisDependentsResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListHrisDependentsResponseBody$inboundSchema: z.ZodType< - ListHrisDependentsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisDependentsResponseBody$outboundSchema: z.ZodType< - ListHrisDependentsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisDependentsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListHrisDependentsResponse$inboundSchema: z.ZodType< - ListHrisDependentsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisDependentsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisDependentsResponse$Outbound = { - Result: ListHrisDependentsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisDependentsResponse$outboundSchema: z.ZodType< - ListHrisDependentsResponse$Outbound, - z.ZodTypeDef, - ListHrisDependentsResponse -> = z.object({ - result: z.lazy(() => ListHrisDependentsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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/listhrisemployeepayrollrun.ts b/src/models/operations/listhrisemployeepayrollrun.ts deleted file mode 100644 index d9b5a0f0..00000000 --- a/src/models/operations/listhrisemployeepayrollrun.ts +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisEmployeePayrollRunRequest = { - /** - * 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 ListHrisEmployeePayrollRunResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisEmployeePayrollRunResponse = { - result: ListHrisEmployeePayrollRunResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListHrisEmployeePayrollRunResponseBody$inboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisEmployeePayrollRunResponseBody$outboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponseBody$Outbound, - z.ZodTypeDef, - ListHrisEmployeePayrollRunResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListHrisEmployeePayrollRunResponse$inboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisEmployeePayrollRunResponse$Outbound = { - Result: ListHrisEmployeePayrollRunResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisEmployeePayrollRunResponse$outboundSchema: z.ZodType< - ListHrisEmployeePayrollRunResponse$Outbound, - z.ZodTypeDef, - ListHrisEmployeePayrollRunResponse -> = z.object({ - result: z.lazy(() => ListHrisEmployeePayrollRunResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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/listhrisemployees.ts b/src/models/operations/listhrisemployees.ts deleted file mode 100644 index ef8a0913..00000000 --- a/src/models/operations/listhrisemployees.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisEmployeesRequest = { - /** - * 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 ListHrisEmployeesResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisEmployeesResponse = { - result: ListHrisEmployeesResponseBody; -}; - -/** @internal */ -export const ListHrisEmployeesRequest$inboundSchema: z.ZodType< - ListHrisEmployeesRequest, - 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 ListHrisEmployeesRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisEmployeesRequest$outboundSchema: z.ZodType< - ListHrisEmployeesRequest$Outbound, - z.ZodTypeDef, - ListHrisEmployeesRequest -> = 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 ListHrisEmployeesRequest$ { - /** @deprecated use `ListHrisEmployeesRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmployeesRequest$inboundSchema; - /** @deprecated use `ListHrisEmployeesRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmployeesRequest$outboundSchema; - /** @deprecated use `ListHrisEmployeesRequest$Outbound` instead. */ - export type Outbound = ListHrisEmployeesRequest$Outbound; -} - -/** @internal */ -export const ListHrisEmployeesResponseBody$inboundSchema: z.ZodType< - ListHrisEmployeesResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisEmployeeOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisEmployeesResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisEmployeesResponseBody$outboundSchema: z.ZodType< - ListHrisEmployeesResponseBody$Outbound, - z.ZodTypeDef, - ListHrisEmployeesResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisEmployeesResponseBody$ { - /** @deprecated use `ListHrisEmployeesResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmployeesResponseBody$inboundSchema; - /** @deprecated use `ListHrisEmployeesResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmployeesResponseBody$outboundSchema; - /** @deprecated use `ListHrisEmployeesResponseBody$Outbound` instead. */ - export type Outbound = ListHrisEmployeesResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisEmployeesResponse$inboundSchema: z.ZodType< - ListHrisEmployeesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisEmployeesResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisEmployeesResponse$Outbound = { - Result: ListHrisEmployeesResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisEmployeesResponse$outboundSchema: z.ZodType< - ListHrisEmployeesResponse$Outbound, - z.ZodTypeDef, - ListHrisEmployeesResponse -> = z.object({ - result: z.lazy(() => ListHrisEmployeesResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisEmployeesResponse$ { - /** @deprecated use `ListHrisEmployeesResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmployeesResponse$inboundSchema; - /** @deprecated use `ListHrisEmployeesResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmployeesResponse$outboundSchema; - /** @deprecated use `ListHrisEmployeesResponse$Outbound` instead. */ - export type Outbound = ListHrisEmployeesResponse$Outbound; -} diff --git a/src/models/operations/listhrisemployerbenefits.ts b/src/models/operations/listhrisemployerbenefits.ts deleted file mode 100644 index ed9384bf..00000000 --- a/src/models/operations/listhrisemployerbenefits.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisEmployerBenefitsRequest = { - /** - * 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 ListHrisEmployerBenefitsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisEmployerBenefitsResponse = { - result: ListHrisEmployerBenefitsResponseBody; -}; - -/** @internal */ -export const ListHrisEmployerBenefitsRequest$inboundSchema: z.ZodType< - ListHrisEmployerBenefitsRequest, - 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 ListHrisEmployerBenefitsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisEmployerBenefitsRequest$outboundSchema: z.ZodType< - ListHrisEmployerBenefitsRequest$Outbound, - z.ZodTypeDef, - ListHrisEmployerBenefitsRequest -> = 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 ListHrisEmployerBenefitsRequest$ { - /** @deprecated use `ListHrisEmployerBenefitsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmployerBenefitsRequest$inboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmployerBenefitsRequest$outboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsRequest$Outbound` instead. */ - export type Outbound = ListHrisEmployerBenefitsRequest$Outbound; -} - -/** @internal */ -export const ListHrisEmployerBenefitsResponseBody$inboundSchema: z.ZodType< - ListHrisEmployerBenefitsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisEmployerbenefitOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisEmployerBenefitsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisEmployerBenefitsResponseBody$outboundSchema: z.ZodType< - ListHrisEmployerBenefitsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisEmployerBenefitsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisEmployerBenefitsResponseBody$ { - /** @deprecated use `ListHrisEmployerBenefitsResponseBody$inboundSchema` instead. */ - export const inboundSchema = - ListHrisEmployerBenefitsResponseBody$inboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ListHrisEmployerBenefitsResponseBody$outboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisEmployerBenefitsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisEmployerBenefitsResponse$inboundSchema: z.ZodType< - ListHrisEmployerBenefitsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisEmployerBenefitsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisEmployerBenefitsResponse$Outbound = { - Result: ListHrisEmployerBenefitsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisEmployerBenefitsResponse$outboundSchema: z.ZodType< - ListHrisEmployerBenefitsResponse$Outbound, - z.ZodTypeDef, - ListHrisEmployerBenefitsResponse -> = z.object({ - result: z.lazy(() => ListHrisEmployerBenefitsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisEmployerBenefitsResponse$ { - /** @deprecated use `ListHrisEmployerBenefitsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmployerBenefitsResponse$inboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmployerBenefitsResponse$outboundSchema; - /** @deprecated use `ListHrisEmployerBenefitsResponse$Outbound` instead. */ - export type Outbound = ListHrisEmployerBenefitsResponse$Outbound; -} diff --git a/src/models/operations/listhrisemployments.ts b/src/models/operations/listhrisemployments.ts deleted file mode 100644 index b3182b23..00000000 --- a/src/models/operations/listhrisemployments.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisEmploymentsRequest = { - /** - * 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 ListHrisEmploymentsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisEmploymentsResponse = { - result: ListHrisEmploymentsResponseBody; -}; - -/** @internal */ -export const ListHrisEmploymentsRequest$inboundSchema: z.ZodType< - ListHrisEmploymentsRequest, - 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 ListHrisEmploymentsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisEmploymentsRequest$outboundSchema: z.ZodType< - ListHrisEmploymentsRequest$Outbound, - z.ZodTypeDef, - ListHrisEmploymentsRequest -> = 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 ListHrisEmploymentsRequest$ { - /** @deprecated use `ListHrisEmploymentsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmploymentsRequest$inboundSchema; - /** @deprecated use `ListHrisEmploymentsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmploymentsRequest$outboundSchema; - /** @deprecated use `ListHrisEmploymentsRequest$Outbound` instead. */ - export type Outbound = ListHrisEmploymentsRequest$Outbound; -} - -/** @internal */ -export const ListHrisEmploymentsResponseBody$inboundSchema: z.ZodType< - ListHrisEmploymentsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisEmploymentOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisEmploymentsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisEmploymentsResponseBody$outboundSchema: z.ZodType< - ListHrisEmploymentsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisEmploymentsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisEmploymentsResponseBody$ { - /** @deprecated use `ListHrisEmploymentsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmploymentsResponseBody$inboundSchema; - /** @deprecated use `ListHrisEmploymentsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmploymentsResponseBody$outboundSchema; - /** @deprecated use `ListHrisEmploymentsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisEmploymentsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisEmploymentsResponse$inboundSchema: z.ZodType< - ListHrisEmploymentsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisEmploymentsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisEmploymentsResponse$Outbound = { - Result: ListHrisEmploymentsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisEmploymentsResponse$outboundSchema: z.ZodType< - ListHrisEmploymentsResponse$Outbound, - z.ZodTypeDef, - ListHrisEmploymentsResponse -> = z.object({ - result: z.lazy(() => ListHrisEmploymentsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisEmploymentsResponse$ { - /** @deprecated use `ListHrisEmploymentsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisEmploymentsResponse$inboundSchema; - /** @deprecated use `ListHrisEmploymentsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisEmploymentsResponse$outboundSchema; - /** @deprecated use `ListHrisEmploymentsResponse$Outbound` instead. */ - export type Outbound = ListHrisEmploymentsResponse$Outbound; -} diff --git a/src/models/operations/listhrisgroups.ts b/src/models/operations/listhrisgroups.ts deleted file mode 100644 index e1ad9a5a..00000000 --- a/src/models/operations/listhrisgroups.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisGroupsRequest = { - /** - * 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 ListHrisGroupsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisGroupsResponse = { - result: ListHrisGroupsResponseBody; -}; - -/** @internal */ -export const ListHrisGroupsRequest$inboundSchema: z.ZodType< - ListHrisGroupsRequest, - 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 ListHrisGroupsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisGroupsRequest$outboundSchema: z.ZodType< - ListHrisGroupsRequest$Outbound, - z.ZodTypeDef, - ListHrisGroupsRequest -> = 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 ListHrisGroupsRequest$ { - /** @deprecated use `ListHrisGroupsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisGroupsRequest$inboundSchema; - /** @deprecated use `ListHrisGroupsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisGroupsRequest$outboundSchema; - /** @deprecated use `ListHrisGroupsRequest$Outbound` instead. */ - export type Outbound = ListHrisGroupsRequest$Outbound; -} - -/** @internal */ -export const ListHrisGroupsResponseBody$inboundSchema: z.ZodType< - ListHrisGroupsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisGroupOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisGroupsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisGroupsResponseBody$outboundSchema: z.ZodType< - ListHrisGroupsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisGroupsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisGroupsResponseBody$ { - /** @deprecated use `ListHrisGroupsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisGroupsResponseBody$inboundSchema; - /** @deprecated use `ListHrisGroupsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisGroupsResponseBody$outboundSchema; - /** @deprecated use `ListHrisGroupsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisGroupsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisGroupsResponse$inboundSchema: z.ZodType< - ListHrisGroupsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisGroupsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisGroupsResponse$Outbound = { - Result: ListHrisGroupsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisGroupsResponse$outboundSchema: z.ZodType< - ListHrisGroupsResponse$Outbound, - z.ZodTypeDef, - ListHrisGroupsResponse -> = z.object({ - result: z.lazy(() => ListHrisGroupsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisGroupsResponse$ { - /** @deprecated use `ListHrisGroupsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisGroupsResponse$inboundSchema; - /** @deprecated use `ListHrisGroupsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisGroupsResponse$outboundSchema; - /** @deprecated use `ListHrisGroupsResponse$Outbound` instead. */ - export type Outbound = ListHrisGroupsResponse$Outbound; -} diff --git a/src/models/operations/listhrislocations.ts b/src/models/operations/listhrislocations.ts deleted file mode 100644 index 15515ff0..00000000 --- a/src/models/operations/listhrislocations.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisLocationsRequest = { - /** - * 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 ListHrisLocationsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisLocationsResponse = { - result: ListHrisLocationsResponseBody; -}; - -/** @internal */ -export const ListHrisLocationsRequest$inboundSchema: z.ZodType< - ListHrisLocationsRequest, - 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 ListHrisLocationsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisLocationsRequest$outboundSchema: z.ZodType< - ListHrisLocationsRequest$Outbound, - z.ZodTypeDef, - ListHrisLocationsRequest -> = 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 ListHrisLocationsRequest$ { - /** @deprecated use `ListHrisLocationsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisLocationsRequest$inboundSchema; - /** @deprecated use `ListHrisLocationsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisLocationsRequest$outboundSchema; - /** @deprecated use `ListHrisLocationsRequest$Outbound` instead. */ - export type Outbound = ListHrisLocationsRequest$Outbound; -} - -/** @internal */ -export const ListHrisLocationsResponseBody$inboundSchema: z.ZodType< - ListHrisLocationsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisLocationOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisLocationsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisLocationsResponseBody$outboundSchema: z.ZodType< - ListHrisLocationsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisLocationsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisLocationsResponseBody$ { - /** @deprecated use `ListHrisLocationsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisLocationsResponseBody$inboundSchema; - /** @deprecated use `ListHrisLocationsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisLocationsResponseBody$outboundSchema; - /** @deprecated use `ListHrisLocationsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisLocationsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisLocationsResponse$inboundSchema: z.ZodType< - ListHrisLocationsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisLocationsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisLocationsResponse$Outbound = { - Result: ListHrisLocationsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisLocationsResponse$outboundSchema: z.ZodType< - ListHrisLocationsResponse$Outbound, - z.ZodTypeDef, - ListHrisLocationsResponse -> = z.object({ - result: z.lazy(() => ListHrisLocationsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisLocationsResponse$ { - /** @deprecated use `ListHrisLocationsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisLocationsResponse$inboundSchema; - /** @deprecated use `ListHrisLocationsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisLocationsResponse$outboundSchema; - /** @deprecated use `ListHrisLocationsResponse$Outbound` instead. */ - export type Outbound = ListHrisLocationsResponse$Outbound; -} diff --git a/src/models/operations/listhrispaygroups.ts b/src/models/operations/listhrispaygroups.ts deleted file mode 100644 index 1dd4abea..00000000 --- a/src/models/operations/listhrispaygroups.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisPaygroupsRequest = { - /** - * 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 ListHrisPaygroupsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisPaygroupsResponse = { - result: ListHrisPaygroupsResponseBody; -}; - -/** @internal */ -export const ListHrisPaygroupsRequest$inboundSchema: z.ZodType< - ListHrisPaygroupsRequest, - 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 ListHrisPaygroupsRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisPaygroupsRequest$outboundSchema: z.ZodType< - ListHrisPaygroupsRequest$Outbound, - z.ZodTypeDef, - ListHrisPaygroupsRequest -> = 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 ListHrisPaygroupsRequest$ { - /** @deprecated use `ListHrisPaygroupsRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisPaygroupsRequest$inboundSchema; - /** @deprecated use `ListHrisPaygroupsRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisPaygroupsRequest$outboundSchema; - /** @deprecated use `ListHrisPaygroupsRequest$Outbound` instead. */ - export type Outbound = ListHrisPaygroupsRequest$Outbound; -} - -/** @internal */ -export const ListHrisPaygroupsResponseBody$inboundSchema: z.ZodType< - ListHrisPaygroupsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisPaygroupOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisPaygroupsResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisPaygroupsResponseBody$outboundSchema: z.ZodType< - ListHrisPaygroupsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisPaygroupsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisPaygroupsResponseBody$ { - /** @deprecated use `ListHrisPaygroupsResponseBody$inboundSchema` instead. */ - export const inboundSchema = ListHrisPaygroupsResponseBody$inboundSchema; - /** @deprecated use `ListHrisPaygroupsResponseBody$outboundSchema` instead. */ - export const outboundSchema = ListHrisPaygroupsResponseBody$outboundSchema; - /** @deprecated use `ListHrisPaygroupsResponseBody$Outbound` instead. */ - export type Outbound = ListHrisPaygroupsResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisPaygroupsResponse$inboundSchema: z.ZodType< - ListHrisPaygroupsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisPaygroupsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisPaygroupsResponse$Outbound = { - Result: ListHrisPaygroupsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisPaygroupsResponse$outboundSchema: z.ZodType< - ListHrisPaygroupsResponse$Outbound, - z.ZodTypeDef, - ListHrisPaygroupsResponse -> = z.object({ - result: z.lazy(() => ListHrisPaygroupsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisPaygroupsResponse$ { - /** @deprecated use `ListHrisPaygroupsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisPaygroupsResponse$inboundSchema; - /** @deprecated use `ListHrisPaygroupsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisPaygroupsResponse$outboundSchema; - /** @deprecated use `ListHrisPaygroupsResponse$Outbound` instead. */ - export type Outbound = ListHrisPaygroupsResponse$Outbound; -} diff --git a/src/models/operations/listhrispayrollruns.ts b/src/models/operations/listhrispayrollruns.ts deleted file mode 100644 index f929e3be..00000000 --- a/src/models/operations/listhrispayrollruns.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisPayrollRunsRequest = { - /** - * 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 ListHrisPayrollRunsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisPayrollRunsResponse = { - result: ListHrisPayrollRunsResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListHrisPayrollRunsResponseBody$inboundSchema: z.ZodType< - ListHrisPayrollRunsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisPayrollRunsResponseBody$outboundSchema: z.ZodType< - ListHrisPayrollRunsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisPayrollRunsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListHrisPayrollRunsResponse$inboundSchema: z.ZodType< - ListHrisPayrollRunsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisPayrollRunsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisPayrollRunsResponse$Outbound = { - Result: ListHrisPayrollRunsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisPayrollRunsResponse$outboundSchema: z.ZodType< - ListHrisPayrollRunsResponse$Outbound, - z.ZodTypeDef, - ListHrisPayrollRunsResponse -> = z.object({ - result: z.lazy(() => ListHrisPayrollRunsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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/listhristimeoffbalances.ts b/src/models/operations/listhristimeoffbalances.ts deleted file mode 100644 index 4d595b68..00000000 --- a/src/models/operations/listhristimeoffbalances.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisTimeoffbalancesRequest = { - /** - * 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 ListHrisTimeoffbalancesResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisTimeoffbalancesResponse = { - result: ListHrisTimeoffbalancesResponseBody; -}; - -/** @internal */ -export const ListHrisTimeoffbalancesRequest$inboundSchema: z.ZodType< - ListHrisTimeoffbalancesRequest, - 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 ListHrisTimeoffbalancesRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisTimeoffbalancesRequest$outboundSchema: z.ZodType< - ListHrisTimeoffbalancesRequest$Outbound, - z.ZodTypeDef, - ListHrisTimeoffbalancesRequest -> = 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 ListHrisTimeoffbalancesRequest$ { - /** @deprecated use `ListHrisTimeoffbalancesRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisTimeoffbalancesRequest$inboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisTimeoffbalancesRequest$outboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesRequest$Outbound` instead. */ - export type Outbound = ListHrisTimeoffbalancesRequest$Outbound; -} - -/** @internal */ -export const ListHrisTimeoffbalancesResponseBody$inboundSchema: z.ZodType< - ListHrisTimeoffbalancesResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisTimeoffbalanceOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisTimeoffbalancesResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisTimeoffbalancesResponseBody$outboundSchema: z.ZodType< - ListHrisTimeoffbalancesResponseBody$Outbound, - z.ZodTypeDef, - ListHrisTimeoffbalancesResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 ListHrisTimeoffbalancesResponseBody$ { - /** @deprecated use `ListHrisTimeoffbalancesResponseBody$inboundSchema` instead. */ - export const inboundSchema = - ListHrisTimeoffbalancesResponseBody$inboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ListHrisTimeoffbalancesResponseBody$outboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesResponseBody$Outbound` instead. */ - export type Outbound = ListHrisTimeoffbalancesResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisTimeoffbalancesResponse$inboundSchema: z.ZodType< - ListHrisTimeoffbalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisTimeoffbalancesResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisTimeoffbalancesResponse$Outbound = { - Result: ListHrisTimeoffbalancesResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisTimeoffbalancesResponse$outboundSchema: z.ZodType< - ListHrisTimeoffbalancesResponse$Outbound, - z.ZodTypeDef, - ListHrisTimeoffbalancesResponse -> = z.object({ - result: z.lazy(() => ListHrisTimeoffbalancesResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisTimeoffbalancesResponse$ { - /** @deprecated use `ListHrisTimeoffbalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisTimeoffbalancesResponse$inboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisTimeoffbalancesResponse$outboundSchema; - /** @deprecated use `ListHrisTimeoffbalancesResponse$Outbound` instead. */ - export type Outbound = ListHrisTimeoffbalancesResponse$Outbound; -} diff --git a/src/models/operations/listhristimeoffs.ts b/src/models/operations/listhristimeoffs.ts deleted file mode 100644 index c3ad237e..00000000 --- a/src/models/operations/listhristimeoffs.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisTimeoffsRequest = { - /** - * 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 ListHrisTimeoffsResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisTimeoffsResponse = { - result: ListHrisTimeoffsResponseBody; -}; - -/** @internal */ -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", - }); -}); - -/** @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 const ListHrisTimeoffsResponseBody$inboundSchema: z.ZodType< - ListHrisTimeoffsResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(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 | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisTimeoffsResponseBody$outboundSchema: z.ZodType< - ListHrisTimeoffsResponseBody$Outbound, - z.ZodTypeDef, - ListHrisTimeoffsResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(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 const ListHrisTimeoffsResponse$inboundSchema: z.ZodType< - ListHrisTimeoffsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisTimeoffsResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisTimeoffsResponse$Outbound = { - Result: ListHrisTimeoffsResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisTimeoffsResponse$outboundSchema: z.ZodType< - ListHrisTimeoffsResponse$Outbound, - z.ZodTypeDef, - ListHrisTimeoffsResponse -> = z.object({ - result: z.lazy(() => ListHrisTimeoffsResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @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/listhristimesheetentries.ts b/src/models/operations/listhristimesheetentries.ts deleted file mode 100644 index e9c8638f..00000000 --- a/src/models/operations/listhristimesheetentries.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import * as components from "../components/index.js"; - -export type ListHrisTimesheetentriesRequest = { - /** - * 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 ListHrisTimesheetentriesResponseBody = { - prevCursor: string | null; - nextCursor: string | null; - data: Array; -}; - -export type ListHrisTimesheetentriesResponse = { - result: ListHrisTimesheetentriesResponseBody; -}; - -/** @internal */ -export const ListHrisTimesheetentriesRequest$inboundSchema: z.ZodType< - ListHrisTimesheetentriesRequest, - 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 ListHrisTimesheetentriesRequest$Outbound = { - "x-connection-token": string; - remote_data?: boolean | undefined; - limit: number; - cursor?: string | undefined; -}; - -/** @internal */ -export const ListHrisTimesheetentriesRequest$outboundSchema: z.ZodType< - ListHrisTimesheetentriesRequest$Outbound, - z.ZodTypeDef, - ListHrisTimesheetentriesRequest -> = 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 ListHrisTimesheetentriesRequest$ { - /** @deprecated use `ListHrisTimesheetentriesRequest$inboundSchema` instead. */ - export const inboundSchema = ListHrisTimesheetentriesRequest$inboundSchema; - /** @deprecated use `ListHrisTimesheetentriesRequest$outboundSchema` instead. */ - export const outboundSchema = ListHrisTimesheetentriesRequest$outboundSchema; - /** @deprecated use `ListHrisTimesheetentriesRequest$Outbound` instead. */ - export type Outbound = ListHrisTimesheetentriesRequest$Outbound; -} - -/** @internal */ -export const ListHrisTimesheetentriesResponseBody$inboundSchema: z.ZodType< - ListHrisTimesheetentriesResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - prev_cursor: z.nullable(z.string()), - next_cursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisTimesheetEntryOutput$inboundSchema), -}).transform((v) => { - return remap$(v, { - "prev_cursor": "prevCursor", - "next_cursor": "nextCursor", - }); -}); - -/** @internal */ -export type ListHrisTimesheetentriesResponseBody$Outbound = { - prev_cursor: string | null; - next_cursor: string | null; - data: Array; -}; - -/** @internal */ -export const ListHrisTimesheetentriesResponseBody$outboundSchema: z.ZodType< - ListHrisTimesheetentriesResponseBody$Outbound, - z.ZodTypeDef, - ListHrisTimesheetentriesResponseBody -> = z.object({ - prevCursor: z.nullable(z.string()), - nextCursor: z.nullable(z.string()), - data: z.array(components.UnifiedHrisTimesheetEntryOutput$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 ListHrisTimesheetentriesResponseBody$ { - /** @deprecated use `ListHrisTimesheetentriesResponseBody$inboundSchema` instead. */ - export const inboundSchema = - ListHrisTimesheetentriesResponseBody$inboundSchema; - /** @deprecated use `ListHrisTimesheetentriesResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ListHrisTimesheetentriesResponseBody$outboundSchema; - /** @deprecated use `ListHrisTimesheetentriesResponseBody$Outbound` instead. */ - export type Outbound = ListHrisTimesheetentriesResponseBody$Outbound; -} - -/** @internal */ -export const ListHrisTimesheetentriesResponse$inboundSchema: z.ZodType< - ListHrisTimesheetentriesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.lazy(() => ListHrisTimesheetentriesResponseBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListHrisTimesheetentriesResponse$Outbound = { - Result: ListHrisTimesheetentriesResponseBody$Outbound; -}; - -/** @internal */ -export const ListHrisTimesheetentriesResponse$outboundSchema: z.ZodType< - ListHrisTimesheetentriesResponse$Outbound, - z.ZodTypeDef, - ListHrisTimesheetentriesResponse -> = z.object({ - result: z.lazy(() => ListHrisTimesheetentriesResponseBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHrisTimesheetentriesResponse$ { - /** @deprecated use `ListHrisTimesheetentriesResponse$inboundSchema` instead. */ - export const inboundSchema = ListHrisTimesheetentriesResponse$inboundSchema; - /** @deprecated use `ListHrisTimesheetentriesResponse$outboundSchema` instead. */ - export const outboundSchema = ListHrisTimesheetentriesResponse$outboundSchema; - /** @deprecated use `ListHrisTimesheetentriesResponse$Outbound` instead. */ - export type Outbound = ListHrisTimesheetentriesResponse$Outbound; -} diff --git a/src/models/operations/listmarketingautomationaction.ts b/src/models/operations/listmarketingautomationaction.ts index 0c679280..2e9c6503 100644 --- a/src/models/operations/listmarketingautomationaction.ts +++ b/src/models/operations/listmarketingautomationaction.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationActionRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< export type ListMarketingautomationActionRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationActionRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListMarketingautomationActionRequest$ { export type Outbound = ListMarketingautomationActionRequest$Outbound; } +export function listMarketingautomationActionRequestToJSON( + listMarketingautomationActionRequest: ListMarketingautomationActionRequest, +): string { + return JSON.stringify( + ListMarketingautomationActionRequest$outboundSchema.parse( + listMarketingautomationActionRequest, + ), + ); +} + +export function listMarketingautomationActionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationActionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationActionRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationActionResponseBody$inboundSchema: z.ZodType< ListMarketingautomationActionResponseBody, @@ -151,6 +175,33 @@ export namespace ListMarketingautomationActionResponseBody$ { export type Outbound = ListMarketingautomationActionResponseBody$Outbound; } +export function listMarketingautomationActionResponseBodyToJSON( + listMarketingautomationActionResponseBody: + ListMarketingautomationActionResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationActionResponseBody$outboundSchema.parse( + listMarketingautomationActionResponseBody, + ), + ); +} + +export function listMarketingautomationActionResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationActionResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationActionResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationActionResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationActionResponse$inboundSchema: z.ZodType< ListMarketingautomationActionResponse, @@ -198,3 +249,24 @@ export namespace ListMarketingautomationActionResponse$ { /** @deprecated use `ListMarketingautomationActionResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationActionResponse$Outbound; } + +export function listMarketingautomationActionResponseToJSON( + listMarketingautomationActionResponse: ListMarketingautomationActionResponse, +): string { + return JSON.stringify( + ListMarketingautomationActionResponse$outboundSchema.parse( + listMarketingautomationActionResponse, + ), + ); +} + +export function listMarketingautomationActionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationActionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationActionResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationautomations.ts b/src/models/operations/listmarketingautomationautomations.ts index 5e69802a..bb48a6c2 100644 --- a/src/models/operations/listmarketingautomationautomations.ts +++ b/src/models/operations/listmarketingautomationautomations.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationAutomationsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationAutomationsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationAutomationsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationAutomationsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -69,7 +72,7 @@ export const ListMarketingautomationAutomationsRequest$outboundSchema: > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -93,6 +96,33 @@ export namespace ListMarketingautomationAutomationsRequest$ { export type Outbound = ListMarketingautomationAutomationsRequest$Outbound; } +export function listMarketingautomationAutomationsRequestToJSON( + listMarketingautomationAutomationsRequest: + ListMarketingautomationAutomationsRequest, +): string { + return JSON.stringify( + ListMarketingautomationAutomationsRequest$outboundSchema.parse( + listMarketingautomationAutomationsRequest, + ), + ); +} + +export function listMarketingautomationAutomationsRequestFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationAutomationsRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationAutomationsRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationAutomationsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationAutomationsResponseBody$inboundSchema: z.ZodType< @@ -154,6 +184,33 @@ export namespace ListMarketingautomationAutomationsResponseBody$ { ListMarketingautomationAutomationsResponseBody$Outbound; } +export function listMarketingautomationAutomationsResponseBodyToJSON( + listMarketingautomationAutomationsResponseBody: + ListMarketingautomationAutomationsResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationAutomationsResponseBody$outboundSchema.parse( + listMarketingautomationAutomationsResponseBody, + ), + ); +} + +export function listMarketingautomationAutomationsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationAutomationsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationAutomationsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationAutomationsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationAutomationsResponse$inboundSchema: z.ZodType = @@ -202,3 +259,30 @@ export namespace ListMarketingautomationAutomationsResponse$ { /** @deprecated use `ListMarketingautomationAutomationsResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationAutomationsResponse$Outbound; } + +export function listMarketingautomationAutomationsResponseToJSON( + listMarketingautomationAutomationsResponse: + ListMarketingautomationAutomationsResponse, +): string { + return JSON.stringify( + ListMarketingautomationAutomationsResponse$outboundSchema.parse( + listMarketingautomationAutomationsResponse, + ), + ); +} + +export function listMarketingautomationAutomationsResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationAutomationsResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationAutomationsResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationAutomationsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationcampaigns.ts b/src/models/operations/listmarketingautomationcampaigns.ts index 23039184..06012747 100644 --- a/src/models/operations/listmarketingautomationcampaigns.ts +++ b/src/models/operations/listmarketingautomationcampaigns.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationCampaignsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationCampaignsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationCampaignsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationCampaignsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationCampaignsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,33 @@ export namespace ListMarketingautomationCampaignsRequest$ { export type Outbound = ListMarketingautomationCampaignsRequest$Outbound; } +export function listMarketingautomationCampaignsRequestToJSON( + listMarketingautomationCampaignsRequest: + ListMarketingautomationCampaignsRequest, +): string { + return JSON.stringify( + ListMarketingautomationCampaignsRequest$outboundSchema.parse( + listMarketingautomationCampaignsRequest, + ), + ); +} + +export function listMarketingautomationCampaignsRequestFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationCampaignsRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationCampaignsRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationCampaignsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationCampaignsResponseBody$inboundSchema: z.ZodType< @@ -152,6 +182,33 @@ export namespace ListMarketingautomationCampaignsResponseBody$ { export type Outbound = ListMarketingautomationCampaignsResponseBody$Outbound; } +export function listMarketingautomationCampaignsResponseBodyToJSON( + listMarketingautomationCampaignsResponseBody: + ListMarketingautomationCampaignsResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationCampaignsResponseBody$outboundSchema.parse( + listMarketingautomationCampaignsResponseBody, + ), + ); +} + +export function listMarketingautomationCampaignsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationCampaignsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationCampaignsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationCampaignsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationCampaignsResponse$inboundSchema: z.ZodType< ListMarketingautomationCampaignsResponse, @@ -201,3 +258,30 @@ export namespace ListMarketingautomationCampaignsResponse$ { /** @deprecated use `ListMarketingautomationCampaignsResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationCampaignsResponse$Outbound; } + +export function listMarketingautomationCampaignsResponseToJSON( + listMarketingautomationCampaignsResponse: + ListMarketingautomationCampaignsResponse, +): string { + return JSON.stringify( + ListMarketingautomationCampaignsResponse$outboundSchema.parse( + listMarketingautomationCampaignsResponse, + ), + ); +} + +export function listMarketingautomationCampaignsResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationCampaignsResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationCampaignsResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationCampaignsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationcontacts.ts b/src/models/operations/listmarketingautomationcontacts.ts index e0f74e67..8fbd5edf 100644 --- a/src/models/operations/listmarketingautomationcontacts.ts +++ b/src/models/operations/listmarketingautomationcontacts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingAutomationContactsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingAutomationContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,28 @@ export namespace ListMarketingAutomationContactsRequest$ { export type Outbound = ListMarketingAutomationContactsRequest$Outbound; } +export function listMarketingAutomationContactsRequestToJSON( + listMarketingAutomationContactsRequest: + ListMarketingAutomationContactsRequest, +): string { + return JSON.stringify( + ListMarketingAutomationContactsRequest$outboundSchema.parse( + listMarketingAutomationContactsRequest, + ), + ); +} + +export function listMarketingAutomationContactsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationContactsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingAutomationContactsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationContactsResponseBody$inboundSchema: z.ZodType< @@ -152,6 +177,33 @@ export namespace ListMarketingAutomationContactsResponseBody$ { export type Outbound = ListMarketingAutomationContactsResponseBody$Outbound; } +export function listMarketingAutomationContactsResponseBodyToJSON( + listMarketingAutomationContactsResponseBody: + ListMarketingAutomationContactsResponseBody, +): string { + return JSON.stringify( + ListMarketingAutomationContactsResponseBody$outboundSchema.parse( + listMarketingAutomationContactsResponseBody, + ), + ); +} + +export function listMarketingAutomationContactsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingAutomationContactsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationContactsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingAutomationContactsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationContactsResponse$inboundSchema: z.ZodType< ListMarketingAutomationContactsResponse, @@ -201,3 +253,30 @@ export namespace ListMarketingAutomationContactsResponse$ { /** @deprecated use `ListMarketingAutomationContactsResponse$Outbound` instead. */ export type Outbound = ListMarketingAutomationContactsResponse$Outbound; } + +export function listMarketingAutomationContactsResponseToJSON( + listMarketingAutomationContactsResponse: + ListMarketingAutomationContactsResponse, +): string { + return JSON.stringify( + ListMarketingAutomationContactsResponse$outboundSchema.parse( + listMarketingAutomationContactsResponse, + ), + ); +} + +export function listMarketingAutomationContactsResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingAutomationContactsResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationContactsResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingAutomationContactsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationemails.ts b/src/models/operations/listmarketingautomationemails.ts index 2ffbb399..2704ebc7 100644 --- a/src/models/operations/listmarketingautomationemails.ts +++ b/src/models/operations/listmarketingautomationemails.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationEmailsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationEmailsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationEmailsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListMarketingautomationEmailsRequest$ { export type Outbound = ListMarketingautomationEmailsRequest$Outbound; } +export function listMarketingautomationEmailsRequestToJSON( + listMarketingautomationEmailsRequest: ListMarketingautomationEmailsRequest, +): string { + return JSON.stringify( + ListMarketingautomationEmailsRequest$outboundSchema.parse( + listMarketingautomationEmailsRequest, + ), + ); +} + +export function listMarketingautomationEmailsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationEmailsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationEmailsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationEmailsResponseBody$inboundSchema: z.ZodType< ListMarketingautomationEmailsResponseBody, @@ -149,6 +173,33 @@ export namespace ListMarketingautomationEmailsResponseBody$ { export type Outbound = ListMarketingautomationEmailsResponseBody$Outbound; } +export function listMarketingautomationEmailsResponseBodyToJSON( + listMarketingautomationEmailsResponseBody: + ListMarketingautomationEmailsResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationEmailsResponseBody$outboundSchema.parse( + listMarketingautomationEmailsResponseBody, + ), + ); +} + +export function listMarketingautomationEmailsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationEmailsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationEmailsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationEmailsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationEmailsResponse$inboundSchema: z.ZodType< ListMarketingautomationEmailsResponse, @@ -196,3 +247,24 @@ export namespace ListMarketingautomationEmailsResponse$ { /** @deprecated use `ListMarketingautomationEmailsResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationEmailsResponse$Outbound; } + +export function listMarketingautomationEmailsResponseToJSON( + listMarketingautomationEmailsResponse: ListMarketingautomationEmailsResponse, +): string { + return JSON.stringify( + ListMarketingautomationEmailsResponse$outboundSchema.parse( + listMarketingautomationEmailsResponse, + ), + ); +} + +export function listMarketingautomationEmailsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationEmailsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationEmailsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationevents.ts b/src/models/operations/listmarketingautomationevents.ts index a66dcb56..2e07f3b3 100644 --- a/src/models/operations/listmarketingautomationevents.ts +++ b/src/models/operations/listmarketingautomationevents.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingAutomationEventsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationEventsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingAutomationEventsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListMarketingAutomationEventsRequest$ { export type Outbound = ListMarketingAutomationEventsRequest$Outbound; } +export function listMarketingAutomationEventsRequestToJSON( + listMarketingAutomationEventsRequest: ListMarketingAutomationEventsRequest, +): string { + return JSON.stringify( + ListMarketingAutomationEventsRequest$outboundSchema.parse( + listMarketingAutomationEventsRequest, + ), + ); +} + +export function listMarketingAutomationEventsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationEventsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingAutomationEventsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationEventsResponseBody$inboundSchema: z.ZodType< ListMarketingAutomationEventsResponseBody, @@ -149,6 +173,33 @@ export namespace ListMarketingAutomationEventsResponseBody$ { export type Outbound = ListMarketingAutomationEventsResponseBody$Outbound; } +export function listMarketingAutomationEventsResponseBodyToJSON( + listMarketingAutomationEventsResponseBody: + ListMarketingAutomationEventsResponseBody, +): string { + return JSON.stringify( + ListMarketingAutomationEventsResponseBody$outboundSchema.parse( + listMarketingAutomationEventsResponseBody, + ), + ); +} + +export function listMarketingAutomationEventsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingAutomationEventsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationEventsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingAutomationEventsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationEventsResponse$inboundSchema: z.ZodType< ListMarketingAutomationEventsResponse, @@ -196,3 +247,24 @@ export namespace ListMarketingAutomationEventsResponse$ { /** @deprecated use `ListMarketingAutomationEventsResponse$Outbound` instead. */ export type Outbound = ListMarketingAutomationEventsResponse$Outbound; } + +export function listMarketingAutomationEventsResponseToJSON( + listMarketingAutomationEventsResponse: ListMarketingAutomationEventsResponse, +): string { + return JSON.stringify( + ListMarketingAutomationEventsResponse$outboundSchema.parse( + listMarketingAutomationEventsResponse, + ), + ); +} + +export function listMarketingAutomationEventsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationEventsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingAutomationEventsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationlists.ts b/src/models/operations/listmarketingautomationlists.ts index 18c9d37b..e8b2a0dc 100644 --- a/src/models/operations/listmarketingautomationlists.ts +++ b/src/models/operations/listmarketingautomationlists.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationListsRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationListsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationListsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListMarketingautomationListsRequest$ { export type Outbound = ListMarketingautomationListsRequest$Outbound; } +export function listMarketingautomationListsRequestToJSON( + listMarketingautomationListsRequest: ListMarketingautomationListsRequest, +): string { + return JSON.stringify( + ListMarketingautomationListsRequest$outboundSchema.parse( + listMarketingautomationListsRequest, + ), + ); +} + +export function listMarketingautomationListsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationListsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationListsRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationListsResponseBody$inboundSchema: z.ZodType< ListMarketingautomationListsResponseBody, @@ -146,6 +170,33 @@ export namespace ListMarketingautomationListsResponseBody$ { export type Outbound = ListMarketingautomationListsResponseBody$Outbound; } +export function listMarketingautomationListsResponseBodyToJSON( + listMarketingautomationListsResponseBody: + ListMarketingautomationListsResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationListsResponseBody$outboundSchema.parse( + listMarketingautomationListsResponseBody, + ), + ); +} + +export function listMarketingautomationListsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationListsResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationListsResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationListsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationListsResponse$inboundSchema: z.ZodType< ListMarketingautomationListsResponse, @@ -191,3 +242,24 @@ export namespace ListMarketingautomationListsResponse$ { /** @deprecated use `ListMarketingautomationListsResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationListsResponse$Outbound; } + +export function listMarketingautomationListsResponseToJSON( + listMarketingautomationListsResponse: ListMarketingautomationListsResponse, +): string { + return JSON.stringify( + ListMarketingautomationListsResponse$outboundSchema.parse( + listMarketingautomationListsResponse, + ), + ); +} + +export function listMarketingautomationListsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationListsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationListsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationmessages.ts b/src/models/operations/listmarketingautomationmessages.ts index c308914f..b175235c 100644 --- a/src/models/operations/listmarketingautomationmessages.ts +++ b/src/models/operations/listmarketingautomationmessages.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationMessagesRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< export type ListMarketingautomationMessagesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationMessagesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,28 @@ export namespace ListMarketingautomationMessagesRequest$ { export type Outbound = ListMarketingautomationMessagesRequest$Outbound; } +export function listMarketingautomationMessagesRequestToJSON( + listMarketingautomationMessagesRequest: + ListMarketingautomationMessagesRequest, +): string { + return JSON.stringify( + ListMarketingautomationMessagesRequest$outboundSchema.parse( + listMarketingautomationMessagesRequest, + ), + ); +} + +export function listMarketingautomationMessagesRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingautomationMessagesRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingautomationMessagesRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationMessagesResponseBody$inboundSchema: z.ZodType< @@ -152,6 +177,33 @@ export namespace ListMarketingautomationMessagesResponseBody$ { export type Outbound = ListMarketingautomationMessagesResponseBody$Outbound; } +export function listMarketingautomationMessagesResponseBodyToJSON( + listMarketingautomationMessagesResponseBody: + ListMarketingautomationMessagesResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationMessagesResponseBody$outboundSchema.parse( + listMarketingautomationMessagesResponseBody, + ), + ); +} + +export function listMarketingautomationMessagesResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationMessagesResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationMessagesResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationMessagesResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationMessagesResponse$inboundSchema: z.ZodType< ListMarketingautomationMessagesResponse, @@ -201,3 +253,30 @@ export namespace ListMarketingautomationMessagesResponse$ { /** @deprecated use `ListMarketingautomationMessagesResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationMessagesResponse$Outbound; } + +export function listMarketingautomationMessagesResponseToJSON( + listMarketingautomationMessagesResponse: + ListMarketingautomationMessagesResponse, +): string { + return JSON.stringify( + ListMarketingautomationMessagesResponse$outboundSchema.parse( + listMarketingautomationMessagesResponse, + ), + ); +} + +export function listMarketingautomationMessagesResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationMessagesResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationMessagesResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationMessagesResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationtemplates.ts b/src/models/operations/listmarketingautomationtemplates.ts index 429c0884..c7f3bed5 100644 --- a/src/models/operations/listmarketingautomationtemplates.ts +++ b/src/models/operations/listmarketingautomationtemplates.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingautomationTemplatesRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< export type ListMarketingautomationTemplatesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingautomationTemplatesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,33 @@ export namespace ListMarketingautomationTemplatesRequest$ { export type Outbound = ListMarketingautomationTemplatesRequest$Outbound; } +export function listMarketingautomationTemplatesRequestToJSON( + listMarketingautomationTemplatesRequest: + ListMarketingautomationTemplatesRequest, +): string { + return JSON.stringify( + ListMarketingautomationTemplatesRequest$outboundSchema.parse( + listMarketingautomationTemplatesRequest, + ), + ); +} + +export function listMarketingautomationTemplatesRequestFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationTemplatesRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationTemplatesRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationTemplatesRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationTemplatesResponseBody$inboundSchema: z.ZodType< @@ -152,6 +182,33 @@ export namespace ListMarketingautomationTemplatesResponseBody$ { export type Outbound = ListMarketingautomationTemplatesResponseBody$Outbound; } +export function listMarketingautomationTemplatesResponseBodyToJSON( + listMarketingautomationTemplatesResponseBody: + ListMarketingautomationTemplatesResponseBody, +): string { + return JSON.stringify( + ListMarketingautomationTemplatesResponseBody$outboundSchema.parse( + listMarketingautomationTemplatesResponseBody, + ), + ); +} + +export function listMarketingautomationTemplatesResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationTemplatesResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationTemplatesResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationTemplatesResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingautomationTemplatesResponse$inboundSchema: z.ZodType< ListMarketingautomationTemplatesResponse, @@ -201,3 +258,30 @@ export namespace ListMarketingautomationTemplatesResponse$ { /** @deprecated use `ListMarketingautomationTemplatesResponse$Outbound` instead. */ export type Outbound = ListMarketingautomationTemplatesResponse$Outbound; } + +export function listMarketingautomationTemplatesResponseToJSON( + listMarketingautomationTemplatesResponse: + ListMarketingautomationTemplatesResponse, +): string { + return JSON.stringify( + ListMarketingautomationTemplatesResponse$outboundSchema.parse( + listMarketingautomationTemplatesResponse, + ), + ); +} + +export function listMarketingautomationTemplatesResponseFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingautomationTemplatesResponse, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingautomationTemplatesResponse$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingautomationTemplatesResponse' from JSON`, + ); +} diff --git a/src/models/operations/listmarketingautomationusers.ts b/src/models/operations/listmarketingautomationusers.ts index 82551070..5ef339f2 100644 --- a/src/models/operations/listmarketingautomationusers.ts +++ b/src/models/operations/listmarketingautomationusers.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListMarketingAutomationUsersRequest = { /** @@ -43,7 +46,7 @@ export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListMarketingAutomationUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -92,6 +95,27 @@ export namespace ListMarketingAutomationUsersRequest$ { export type Outbound = ListMarketingAutomationUsersRequest$Outbound; } +export function listMarketingAutomationUsersRequestToJSON( + listMarketingAutomationUsersRequest: ListMarketingAutomationUsersRequest, +): string { + return JSON.stringify( + ListMarketingAutomationUsersRequest$outboundSchema.parse( + listMarketingAutomationUsersRequest, + ), + ); +} + +export function listMarketingAutomationUsersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationUsersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingAutomationUsersRequest' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationUsersResponseBody$inboundSchema: z.ZodType< ListMarketingAutomationUsersResponseBody, @@ -146,6 +170,33 @@ export namespace ListMarketingAutomationUsersResponseBody$ { export type Outbound = ListMarketingAutomationUsersResponseBody$Outbound; } +export function listMarketingAutomationUsersResponseBodyToJSON( + listMarketingAutomationUsersResponseBody: + ListMarketingAutomationUsersResponseBody, +): string { + return JSON.stringify( + ListMarketingAutomationUsersResponseBody$outboundSchema.parse( + listMarketingAutomationUsersResponseBody, + ), + ); +} + +export function listMarketingAutomationUsersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + ListMarketingAutomationUsersResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationUsersResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ListMarketingAutomationUsersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListMarketingAutomationUsersResponse$inboundSchema: z.ZodType< ListMarketingAutomationUsersResponse, @@ -191,3 +242,24 @@ export namespace ListMarketingAutomationUsersResponse$ { /** @deprecated use `ListMarketingAutomationUsersResponse$Outbound` instead. */ export type Outbound = ListMarketingAutomationUsersResponse$Outbound; } + +export function listMarketingAutomationUsersResponseToJSON( + listMarketingAutomationUsersResponse: ListMarketingAutomationUsersResponse, +): string { + return JSON.stringify( + ListMarketingAutomationUsersResponse$outboundSchema.parse( + listMarketingAutomationUsersResponse, + ), + ); +} + +export function listMarketingAutomationUsersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListMarketingAutomationUsersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListMarketingAutomationUsersResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingaccount.ts b/src/models/operations/listticketingaccount.ts index 947cb618..39cffd48 100644 --- a/src/models/operations/listticketingaccount.ts +++ b/src/models/operations/listticketingaccount.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingAccountRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingAccountRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingAccountRequest$inboundSchema: z.ZodType< export type ListTicketingAccountRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingAccountRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListTicketingAccountRequest$ { export type Outbound = ListTicketingAccountRequest$Outbound; } +export function listTicketingAccountRequestToJSON( + listTicketingAccountRequest: ListTicketingAccountRequest, +): string { + return JSON.stringify( + ListTicketingAccountRequest$outboundSchema.parse( + listTicketingAccountRequest, + ), + ); +} + +export function listTicketingAccountRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingAccountRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAccountRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingAccountResponseBody$inboundSchema: z.ZodType< ListTicketingAccountResponseBody, @@ -142,6 +165,26 @@ export namespace ListTicketingAccountResponseBody$ { export type Outbound = ListTicketingAccountResponseBody$Outbound; } +export function listTicketingAccountResponseBodyToJSON( + listTicketingAccountResponseBody: ListTicketingAccountResponseBody, +): string { + return JSON.stringify( + ListTicketingAccountResponseBody$outboundSchema.parse( + listTicketingAccountResponseBody, + ), + ); +} + +export function listTicketingAccountResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingAccountResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAccountResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingAccountResponse$inboundSchema: z.ZodType< ListTicketingAccountResponse, @@ -185,3 +228,23 @@ export namespace ListTicketingAccountResponse$ { /** @deprecated use `ListTicketingAccountResponse$Outbound` instead. */ export type Outbound = ListTicketingAccountResponse$Outbound; } + +export function listTicketingAccountResponseToJSON( + listTicketingAccountResponse: ListTicketingAccountResponse, +): string { + return JSON.stringify( + ListTicketingAccountResponse$outboundSchema.parse( + listTicketingAccountResponse, + ), + ); +} + +export function listTicketingAccountResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingAccountResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAccountResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingattachments.ts b/src/models/operations/listticketingattachments.ts index b2d5b434..aded871c 100644 --- a/src/models/operations/listticketingattachments.ts +++ b/src/models/operations/listticketingattachments.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingAttachmentsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< export type ListTicketingAttachmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingAttachmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListTicketingAttachmentsRequest$ { export type Outbound = ListTicketingAttachmentsRequest$Outbound; } +export function listTicketingAttachmentsRequestToJSON( + listTicketingAttachmentsRequest: ListTicketingAttachmentsRequest, +): string { + return JSON.stringify( + ListTicketingAttachmentsRequest$outboundSchema.parse( + listTicketingAttachmentsRequest, + ), + ); +} + +export function listTicketingAttachmentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingAttachmentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAttachmentsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingAttachmentsResponseBody$inboundSchema: z.ZodType< ListTicketingAttachmentsResponseBody, @@ -144,6 +167,27 @@ export namespace ListTicketingAttachmentsResponseBody$ { export type Outbound = ListTicketingAttachmentsResponseBody$Outbound; } +export function listTicketingAttachmentsResponseBodyToJSON( + listTicketingAttachmentsResponseBody: ListTicketingAttachmentsResponseBody, +): string { + return JSON.stringify( + ListTicketingAttachmentsResponseBody$outboundSchema.parse( + listTicketingAttachmentsResponseBody, + ), + ); +} + +export function listTicketingAttachmentsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListTicketingAttachmentsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAttachmentsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingAttachmentsResponse$inboundSchema: z.ZodType< ListTicketingAttachmentsResponse, @@ -187,3 +231,23 @@ export namespace ListTicketingAttachmentsResponse$ { /** @deprecated use `ListTicketingAttachmentsResponse$Outbound` instead. */ export type Outbound = ListTicketingAttachmentsResponse$Outbound; } + +export function listTicketingAttachmentsResponseToJSON( + listTicketingAttachmentsResponse: ListTicketingAttachmentsResponse, +): string { + return JSON.stringify( + ListTicketingAttachmentsResponse$outboundSchema.parse( + listTicketingAttachmentsResponse, + ), + ); +} + +export function listTicketingAttachmentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingAttachmentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingAttachmentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingcollections.ts b/src/models/operations/listticketingcollections.ts index cb3d3bb7..79e8ff67 100644 --- a/src/models/operations/listticketingcollections.ts +++ b/src/models/operations/listticketingcollections.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingCollectionsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< export type ListTicketingCollectionsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingCollectionsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListTicketingCollectionsRequest$ { export type Outbound = ListTicketingCollectionsRequest$Outbound; } +export function listTicketingCollectionsRequestToJSON( + listTicketingCollectionsRequest: ListTicketingCollectionsRequest, +): string { + return JSON.stringify( + ListTicketingCollectionsRequest$outboundSchema.parse( + listTicketingCollectionsRequest, + ), + ); +} + +export function listTicketingCollectionsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingCollectionsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCollectionsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingCollectionsResponseBody$inboundSchema: z.ZodType< ListTicketingCollectionsResponseBody, @@ -144,6 +167,27 @@ export namespace ListTicketingCollectionsResponseBody$ { export type Outbound = ListTicketingCollectionsResponseBody$Outbound; } +export function listTicketingCollectionsResponseBodyToJSON( + listTicketingCollectionsResponseBody: ListTicketingCollectionsResponseBody, +): string { + return JSON.stringify( + ListTicketingCollectionsResponseBody$outboundSchema.parse( + listTicketingCollectionsResponseBody, + ), + ); +} + +export function listTicketingCollectionsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListTicketingCollectionsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCollectionsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingCollectionsResponse$inboundSchema: z.ZodType< ListTicketingCollectionsResponse, @@ -187,3 +231,23 @@ export namespace ListTicketingCollectionsResponse$ { /** @deprecated use `ListTicketingCollectionsResponse$Outbound` instead. */ export type Outbound = ListTicketingCollectionsResponse$Outbound; } + +export function listTicketingCollectionsResponseToJSON( + listTicketingCollectionsResponse: ListTicketingCollectionsResponse, +): string { + return JSON.stringify( + ListTicketingCollectionsResponse$outboundSchema.parse( + listTicketingCollectionsResponse, + ), + ); +} + +export function listTicketingCollectionsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingCollectionsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCollectionsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingcomments.ts b/src/models/operations/listticketingcomments.ts index 5e40af0b..1a4489b5 100644 --- a/src/models/operations/listticketingcomments.ts +++ b/src/models/operations/listticketingcomments.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingCommentsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< export type ListTicketingCommentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingCommentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListTicketingCommentsRequest$ { export type Outbound = ListTicketingCommentsRequest$Outbound; } +export function listTicketingCommentsRequestToJSON( + listTicketingCommentsRequest: ListTicketingCommentsRequest, +): string { + return JSON.stringify( + ListTicketingCommentsRequest$outboundSchema.parse( + listTicketingCommentsRequest, + ), + ); +} + +export function listTicketingCommentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingCommentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCommentsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingCommentsResponseBody$inboundSchema: z.ZodType< ListTicketingCommentsResponseBody, @@ -143,6 +166,26 @@ export namespace ListTicketingCommentsResponseBody$ { export type Outbound = ListTicketingCommentsResponseBody$Outbound; } +export function listTicketingCommentsResponseBodyToJSON( + listTicketingCommentsResponseBody: ListTicketingCommentsResponseBody, +): string { + return JSON.stringify( + ListTicketingCommentsResponseBody$outboundSchema.parse( + listTicketingCommentsResponseBody, + ), + ); +} + +export function listTicketingCommentsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingCommentsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCommentsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingCommentsResponse$inboundSchema: z.ZodType< ListTicketingCommentsResponse, @@ -186,3 +229,23 @@ export namespace ListTicketingCommentsResponse$ { /** @deprecated use `ListTicketingCommentsResponse$Outbound` instead. */ export type Outbound = ListTicketingCommentsResponse$Outbound; } + +export function listTicketingCommentsResponseToJSON( + listTicketingCommentsResponse: ListTicketingCommentsResponse, +): string { + return JSON.stringify( + ListTicketingCommentsResponse$outboundSchema.parse( + listTicketingCommentsResponse, + ), + ); +} + +export function listTicketingCommentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingCommentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingCommentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingcontacts.ts b/src/models/operations/listticketingcontacts.ts index a3d53db5..03ef3a13 100644 --- a/src/models/operations/listticketingcontacts.ts +++ b/src/models/operations/listticketingcontacts.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingContactsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingContactsRequest$inboundSchema: z.ZodType< export type ListTicketingContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,26 @@ export namespace ListTicketingContactsRequest$ { export type Outbound = ListTicketingContactsRequest$Outbound; } +export function listTicketingContactsRequestToJSON( + listTicketingContactsRequest: ListTicketingContactsRequest, +): string { + return JSON.stringify( + ListTicketingContactsRequest$outboundSchema.parse( + listTicketingContactsRequest, + ), + ); +} + +export function listTicketingContactsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingContactsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingContactsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingContactsResponseBody$inboundSchema: z.ZodType< ListTicketingContactsResponseBody, @@ -143,6 +166,26 @@ export namespace ListTicketingContactsResponseBody$ { export type Outbound = ListTicketingContactsResponseBody$Outbound; } +export function listTicketingContactsResponseBodyToJSON( + listTicketingContactsResponseBody: ListTicketingContactsResponseBody, +): string { + return JSON.stringify( + ListTicketingContactsResponseBody$outboundSchema.parse( + listTicketingContactsResponseBody, + ), + ); +} + +export function listTicketingContactsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingContactsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingContactsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingContactsResponse$inboundSchema: z.ZodType< ListTicketingContactsResponse, @@ -186,3 +229,23 @@ export namespace ListTicketingContactsResponse$ { /** @deprecated use `ListTicketingContactsResponse$Outbound` instead. */ export type Outbound = ListTicketingContactsResponse$Outbound; } + +export function listTicketingContactsResponseToJSON( + listTicketingContactsResponse: ListTicketingContactsResponse, +): string { + return JSON.stringify( + ListTicketingContactsResponse$outboundSchema.parse( + listTicketingContactsResponse, + ), + ); +} + +export function listTicketingContactsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingContactsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingContactsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingtags.ts b/src/models/operations/listticketingtags.ts index b854569e..19f087ae 100644 --- a/src/models/operations/listticketingtags.ts +++ b/src/models/operations/listticketingtags.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingTagsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingTagsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingTagsRequest$inboundSchema: z.ZodType< export type ListTicketingTagsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingTagsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListTicketingTagsRequest$ { export type Outbound = ListTicketingTagsRequest$Outbound; } +export function listTicketingTagsRequestToJSON( + listTicketingTagsRequest: ListTicketingTagsRequest, +): string { + return JSON.stringify( + ListTicketingTagsRequest$outboundSchema.parse(listTicketingTagsRequest), + ); +} + +export function listTicketingTagsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTagsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTagsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingTagsResponseBody$inboundSchema: z.ZodType< ListTicketingTagsResponseBody, @@ -142,6 +163,26 @@ export namespace ListTicketingTagsResponseBody$ { export type Outbound = ListTicketingTagsResponseBody$Outbound; } +export function listTicketingTagsResponseBodyToJSON( + listTicketingTagsResponseBody: ListTicketingTagsResponseBody, +): string { + return JSON.stringify( + ListTicketingTagsResponseBody$outboundSchema.parse( + listTicketingTagsResponseBody, + ), + ); +} + +export function listTicketingTagsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTagsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTagsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingTagsResponse$inboundSchema: z.ZodType< ListTicketingTagsResponse, @@ -185,3 +226,21 @@ export namespace ListTicketingTagsResponse$ { /** @deprecated use `ListTicketingTagsResponse$Outbound` instead. */ export type Outbound = ListTicketingTagsResponse$Outbound; } + +export function listTicketingTagsResponseToJSON( + listTicketingTagsResponse: ListTicketingTagsResponse, +): string { + return JSON.stringify( + ListTicketingTagsResponse$outboundSchema.parse(listTicketingTagsResponse), + ); +} + +export function listTicketingTagsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTagsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTagsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingteams.ts b/src/models/operations/listticketingteams.ts index 7216894e..a712baf0 100644 --- a/src/models/operations/listticketingteams.ts +++ b/src/models/operations/listticketingteams.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingTeamsRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< export type ListTicketingTeamsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingTeamsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListTicketingTeamsRequest$ { export type Outbound = ListTicketingTeamsRequest$Outbound; } +export function listTicketingTeamsRequestToJSON( + listTicketingTeamsRequest: ListTicketingTeamsRequest, +): string { + return JSON.stringify( + ListTicketingTeamsRequest$outboundSchema.parse(listTicketingTeamsRequest), + ); +} + +export function listTicketingTeamsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTeamsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTeamsRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingTeamsResponseBody$inboundSchema: z.ZodType< ListTicketingTeamsResponseBody, @@ -142,6 +163,26 @@ export namespace ListTicketingTeamsResponseBody$ { export type Outbound = ListTicketingTeamsResponseBody$Outbound; } +export function listTicketingTeamsResponseBodyToJSON( + listTicketingTeamsResponseBody: ListTicketingTeamsResponseBody, +): string { + return JSON.stringify( + ListTicketingTeamsResponseBody$outboundSchema.parse( + listTicketingTeamsResponseBody, + ), + ); +} + +export function listTicketingTeamsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTeamsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTeamsResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingTeamsResponse$inboundSchema: z.ZodType< ListTicketingTeamsResponse, @@ -185,3 +226,21 @@ export namespace ListTicketingTeamsResponse$ { /** @deprecated use `ListTicketingTeamsResponse$Outbound` instead. */ export type Outbound = ListTicketingTeamsResponse$Outbound; } + +export function listTicketingTeamsResponseToJSON( + listTicketingTeamsResponse: ListTicketingTeamsResponse, +): string { + return JSON.stringify( + ListTicketingTeamsResponse$outboundSchema.parse(listTicketingTeamsResponse), + ); +} + +export function listTicketingTeamsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTeamsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTeamsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingticket.ts b/src/models/operations/listticketingticket.ts index 09953b63..a96dc80e 100644 --- a/src/models/operations/listticketingticket.ts +++ b/src/models/operations/listticketingticket.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingTicketRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingTicketRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingTicketRequest$inboundSchema: z.ZodType< export type ListTicketingTicketRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingTicketRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListTicketingTicketRequest$ { export type Outbound = ListTicketingTicketRequest$Outbound; } +export function listTicketingTicketRequestToJSON( + listTicketingTicketRequest: ListTicketingTicketRequest, +): string { + return JSON.stringify( + ListTicketingTicketRequest$outboundSchema.parse(listTicketingTicketRequest), + ); +} + +export function listTicketingTicketRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTicketRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTicketRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingTicketResponseBody$inboundSchema: z.ZodType< ListTicketingTicketResponseBody, @@ -142,6 +163,26 @@ export namespace ListTicketingTicketResponseBody$ { export type Outbound = ListTicketingTicketResponseBody$Outbound; } +export function listTicketingTicketResponseBodyToJSON( + listTicketingTicketResponseBody: ListTicketingTicketResponseBody, +): string { + return JSON.stringify( + ListTicketingTicketResponseBody$outboundSchema.parse( + listTicketingTicketResponseBody, + ), + ); +} + +export function listTicketingTicketResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTicketResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTicketResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingTicketResponse$inboundSchema: z.ZodType< ListTicketingTicketResponse, @@ -185,3 +226,23 @@ export namespace ListTicketingTicketResponse$ { /** @deprecated use `ListTicketingTicketResponse$Outbound` instead. */ export type Outbound = ListTicketingTicketResponse$Outbound; } + +export function listTicketingTicketResponseToJSON( + listTicketingTicketResponse: ListTicketingTicketResponse, +): string { + return JSON.stringify( + ListTicketingTicketResponse$outboundSchema.parse( + listTicketingTicketResponse, + ), + ); +} + +export function listTicketingTicketResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingTicketResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingTicketResponse' from JSON`, + ); +} diff --git a/src/models/operations/listticketingusers.ts b/src/models/operations/listticketingusers.ts index 60ba2576..9ef20a36 100644 --- a/src/models/operations/listticketingusers.ts +++ b/src/models/operations/listticketingusers.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTicketingUsersRequest = { /** @@ -43,7 +46,7 @@ export const ListTicketingUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -56,7 +59,7 @@ export const ListTicketingUsersRequest$inboundSchema: z.ZodType< export type ListTicketingUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit: number; + limit?: number | undefined; cursor?: string | undefined; }; @@ -68,7 +71,7 @@ export const ListTicketingUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().default(50), + limit: z.number().optional(), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -90,6 +93,24 @@ export namespace ListTicketingUsersRequest$ { export type Outbound = ListTicketingUsersRequest$Outbound; } +export function listTicketingUsersRequestToJSON( + listTicketingUsersRequest: ListTicketingUsersRequest, +): string { + return JSON.stringify( + ListTicketingUsersRequest$outboundSchema.parse(listTicketingUsersRequest), + ); +} + +export function listTicketingUsersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingUsersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingUsersRequest' from JSON`, + ); +} + /** @internal */ export const ListTicketingUsersResponseBody$inboundSchema: z.ZodType< ListTicketingUsersResponseBody, @@ -142,6 +163,26 @@ export namespace ListTicketingUsersResponseBody$ { export type Outbound = ListTicketingUsersResponseBody$Outbound; } +export function listTicketingUsersResponseBodyToJSON( + listTicketingUsersResponseBody: ListTicketingUsersResponseBody, +): string { + return JSON.stringify( + ListTicketingUsersResponseBody$outboundSchema.parse( + listTicketingUsersResponseBody, + ), + ); +} + +export function listTicketingUsersResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingUsersResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingUsersResponseBody' from JSON`, + ); +} + /** @internal */ export const ListTicketingUsersResponse$inboundSchema: z.ZodType< ListTicketingUsersResponse, @@ -185,3 +226,21 @@ export namespace ListTicketingUsersResponse$ { /** @deprecated use `ListTicketingUsersResponse$Outbound` instead. */ export type Outbound = ListTicketingUsersResponse$Outbound; } + +export function listTicketingUsersResponseToJSON( + listTicketingUsersResponse: ListTicketingUsersResponse, +): string { + return JSON.stringify( + ListTicketingUsersResponse$outboundSchema.parse(listTicketingUsersResponse), + ); +} + +export function listTicketingUsersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTicketingUsersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTicketingUsersResponse' from JSON`, + ); +} diff --git a/src/models/operations/query.ts b/src/models/operations/query.ts index 3b6cb732..c5c18c28 100644 --- a/src/models/operations/query.ts +++ b/src/models/operations/query.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type QueryRequest = { /** @@ -62,3 +65,17 @@ export namespace QueryRequest$ { /** @deprecated use `QueryRequest$Outbound` instead. */ export type Outbound = QueryRequest$Outbound; } + +export function queryRequestToJSON(queryRequest: QueryRequest): string { + return JSON.stringify(QueryRequest$outboundSchema.parse(queryRequest)); +} + +export function queryRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => QueryRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'QueryRequest' from JSON`, + ); +} diff --git a/src/models/operations/remoteid.ts b/src/models/operations/remoteid.ts index 74be8fc1..c086495a 100644 --- a/src/models/operations/remoteid.ts +++ b/src/models/operations/remoteid.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RemoteIdRequest = { remoteId: string; @@ -43,3 +46,19 @@ export namespace RemoteIdRequest$ { /** @deprecated use `RemoteIdRequest$Outbound` instead. */ export type Outbound = RemoteIdRequest$Outbound; } + +export function remoteIdRequestToJSON( + remoteIdRequest: RemoteIdRequest, +): string { + return JSON.stringify(RemoteIdRequest$outboundSchema.parse(remoteIdRequest)); +} + +export function remoteIdRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RemoteIdRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoteIdRequest' from JSON`, + ); +} diff --git a/src/models/operations/request.ts b/src/models/operations/request.ts index 18b0a2ef..8c48af82 100644 --- a/src/models/operations/request.ts +++ b/src/models/operations/request.ts @@ -4,21 +4,18 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RequestRequest = { xConnectionToken: string; passThroughRequestDto: components.PassThroughRequestDto; }; -export type RequestPassthroughResponseBody = {}; - export type RequestResponseBody = {}; -export type RequestResponse = - | RequestResponseBody - | RequestPassthroughResponseBody; - /** @internal */ export const RequestRequest$inboundSchema: z.ZodType< RequestRequest, @@ -68,34 +65,18 @@ export namespace RequestRequest$ { export type Outbound = RequestRequest$Outbound; } -/** @internal */ -export const RequestPassthroughResponseBody$inboundSchema: z.ZodType< - RequestPassthroughResponseBody, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type RequestPassthroughResponseBody$Outbound = {}; - -/** @internal */ -export const RequestPassthroughResponseBody$outboundSchema: z.ZodType< - RequestPassthroughResponseBody$Outbound, - z.ZodTypeDef, - RequestPassthroughResponseBody -> = z.object({}); +export function requestRequestToJSON(requestRequest: RequestRequest): string { + return JSON.stringify(RequestRequest$outboundSchema.parse(requestRequest)); +} -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestPassthroughResponseBody$ { - /** @deprecated use `RequestPassthroughResponseBody$inboundSchema` instead. */ - export const inboundSchema = RequestPassthroughResponseBody$inboundSchema; - /** @deprecated use `RequestPassthroughResponseBody$outboundSchema` instead. */ - export const outboundSchema = RequestPassthroughResponseBody$outboundSchema; - /** @deprecated use `RequestPassthroughResponseBody$Outbound` instead. */ - export type Outbound = RequestPassthroughResponseBody$Outbound; +export function requestRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestRequest' from JSON`, + ); } /** @internal */ @@ -128,40 +109,20 @@ export namespace RequestResponseBody$ { export type Outbound = RequestResponseBody$Outbound; } -/** @internal */ -export const RequestResponse$inboundSchema: z.ZodType< - RequestResponse, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => RequestResponseBody$inboundSchema), - z.lazy(() => RequestPassthroughResponseBody$inboundSchema), -]); - -/** @internal */ -export type RequestResponse$Outbound = - | RequestResponseBody$Outbound - | RequestPassthroughResponseBody$Outbound; - -/** @internal */ -export const RequestResponse$outboundSchema: z.ZodType< - RequestResponse$Outbound, - z.ZodTypeDef, - RequestResponse -> = z.union([ - z.lazy(() => RequestResponseBody$outboundSchema), - z.lazy(() => RequestPassthroughResponseBody$outboundSchema), -]); +export function requestResponseBodyToJSON( + requestResponseBody: RequestResponseBody, +): string { + return JSON.stringify( + RequestResponseBody$outboundSchema.parse(requestResponseBody), + ); +} -/** - * @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; +export function requestResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestResponseBody' from JSON`, + ); } diff --git a/src/models/operations/retrieveaccountingaccount.ts b/src/models/operations/retrieveaccountingaccount.ts index bb270393..9a10c36a 100644 --- a/src/models/operations/retrieveaccountingaccount.ts +++ b/src/models/operations/retrieveaccountingaccount.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingAccountRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingAccountRequest$ { /** @deprecated use `RetrieveAccountingAccountRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingAccountRequest$Outbound; } + +export function retrieveAccountingAccountRequestToJSON( + retrieveAccountingAccountRequest: RetrieveAccountingAccountRequest, +): string { + return JSON.stringify( + RetrieveAccountingAccountRequest$outboundSchema.parse( + retrieveAccountingAccountRequest, + ), + ); +} + +export function retrieveAccountingAccountRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingAccountRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingAccountRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingaddress.ts b/src/models/operations/retrieveaccountingaddress.ts index b28f7d47..df93216b 100644 --- a/src/models/operations/retrieveaccountingaddress.ts +++ b/src/models/operations/retrieveaccountingaddress.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingAddressRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingAddressRequest$ { /** @deprecated use `RetrieveAccountingAddressRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingAddressRequest$Outbound; } + +export function retrieveAccountingAddressRequestToJSON( + retrieveAccountingAddressRequest: RetrieveAccountingAddressRequest, +): string { + return JSON.stringify( + RetrieveAccountingAddressRequest$outboundSchema.parse( + retrieveAccountingAddressRequest, + ), + ); +} + +export function retrieveAccountingAddressRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingAddressRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingAddressRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingattachment.ts b/src/models/operations/retrieveaccountingattachment.ts index 0fc233c2..07222c35 100644 --- a/src/models/operations/retrieveaccountingattachment.ts +++ b/src/models/operations/retrieveaccountingattachment.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingAttachmentRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingAttachmentRequest$ { /** @deprecated use `RetrieveAccountingAttachmentRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingAttachmentRequest$Outbound; } + +export function retrieveAccountingAttachmentRequestToJSON( + retrieveAccountingAttachmentRequest: RetrieveAccountingAttachmentRequest, +): string { + return JSON.stringify( + RetrieveAccountingAttachmentRequest$outboundSchema.parse( + retrieveAccountingAttachmentRequest, + ), + ); +} + +export function retrieveAccountingAttachmentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingAttachmentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingAttachmentRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingbalancesheet.ts b/src/models/operations/retrieveaccountingbalancesheet.ts index 2254bec8..9061dea5 100644 --- a/src/models/operations/retrieveaccountingbalancesheet.ts +++ b/src/models/operations/retrieveaccountingbalancesheet.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingBalanceSheetRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingBalanceSheetRequest$ { /** @deprecated use `RetrieveAccountingBalanceSheetRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingBalanceSheetRequest$Outbound; } + +export function retrieveAccountingBalanceSheetRequestToJSON( + retrieveAccountingBalanceSheetRequest: RetrieveAccountingBalanceSheetRequest, +): string { + return JSON.stringify( + RetrieveAccountingBalanceSheetRequest$outboundSchema.parse( + retrieveAccountingBalanceSheetRequest, + ), + ); +} + +export function retrieveAccountingBalanceSheetRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingBalanceSheetRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingBalanceSheetRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingcashflowstatement.ts b/src/models/operations/retrieveaccountingcashflowstatement.ts index 40b1787c..89f578ee 100644 --- a/src/models/operations/retrieveaccountingcashflowstatement.ts +++ b/src/models/operations/retrieveaccountingcashflowstatement.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingCashflowStatementRequest = { /** @@ -72,3 +75,30 @@ export namespace RetrieveAccountingCashflowStatementRequest$ { /** @deprecated use `RetrieveAccountingCashflowStatementRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingCashflowStatementRequest$Outbound; } + +export function retrieveAccountingCashflowStatementRequestToJSON( + retrieveAccountingCashflowStatementRequest: + RetrieveAccountingCashflowStatementRequest, +): string { + return JSON.stringify( + RetrieveAccountingCashflowStatementRequest$outboundSchema.parse( + retrieveAccountingCashflowStatementRequest, + ), + ); +} + +export function retrieveAccountingCashflowStatementRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveAccountingCashflowStatementRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveAccountingCashflowStatementRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveAccountingCashflowStatementRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingcompanyinfo.ts b/src/models/operations/retrieveaccountingcompanyinfo.ts index fbf9e99e..df436426 100644 --- a/src/models/operations/retrieveaccountingcompanyinfo.ts +++ b/src/models/operations/retrieveaccountingcompanyinfo.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingCompanyInfoRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingCompanyInfoRequest$ { /** @deprecated use `RetrieveAccountingCompanyInfoRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingCompanyInfoRequest$Outbound; } + +export function retrieveAccountingCompanyInfoRequestToJSON( + retrieveAccountingCompanyInfoRequest: RetrieveAccountingCompanyInfoRequest, +): string { + return JSON.stringify( + RetrieveAccountingCompanyInfoRequest$outboundSchema.parse( + retrieveAccountingCompanyInfoRequest, + ), + ); +} + +export function retrieveAccountingCompanyInfoRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingCompanyInfoRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingCompanyInfoRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingcontact.ts b/src/models/operations/retrieveaccountingcontact.ts index cd56d013..e2666df5 100644 --- a/src/models/operations/retrieveaccountingcontact.ts +++ b/src/models/operations/retrieveaccountingcontact.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingContactRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingContactRequest$ { /** @deprecated use `RetrieveAccountingContactRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingContactRequest$Outbound; } + +export function retrieveAccountingContactRequestToJSON( + retrieveAccountingContactRequest: RetrieveAccountingContactRequest, +): string { + return JSON.stringify( + RetrieveAccountingContactRequest$outboundSchema.parse( + retrieveAccountingContactRequest, + ), + ); +} + +export function retrieveAccountingContactRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingContactRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingcreditnote.ts b/src/models/operations/retrieveaccountingcreditnote.ts index 3a9fea3b..ec60ecc5 100644 --- a/src/models/operations/retrieveaccountingcreditnote.ts +++ b/src/models/operations/retrieveaccountingcreditnote.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingCreditNoteRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingCreditNoteRequest$ { /** @deprecated use `RetrieveAccountingCreditNoteRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingCreditNoteRequest$Outbound; } + +export function retrieveAccountingCreditNoteRequestToJSON( + retrieveAccountingCreditNoteRequest: RetrieveAccountingCreditNoteRequest, +): string { + return JSON.stringify( + RetrieveAccountingCreditNoteRequest$outboundSchema.parse( + retrieveAccountingCreditNoteRequest, + ), + ); +} + +export function retrieveAccountingCreditNoteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingCreditNoteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingCreditNoteRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingexpense.ts b/src/models/operations/retrieveaccountingexpense.ts index 57ef5c14..4d0d0a59 100644 --- a/src/models/operations/retrieveaccountingexpense.ts +++ b/src/models/operations/retrieveaccountingexpense.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingExpenseRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingExpenseRequest$ { /** @deprecated use `RetrieveAccountingExpenseRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingExpenseRequest$Outbound; } + +export function retrieveAccountingExpenseRequestToJSON( + retrieveAccountingExpenseRequest: RetrieveAccountingExpenseRequest, +): string { + return JSON.stringify( + RetrieveAccountingExpenseRequest$outboundSchema.parse( + retrieveAccountingExpenseRequest, + ), + ); +} + +export function retrieveAccountingExpenseRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingExpenseRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingExpenseRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingincomestatement.ts b/src/models/operations/retrieveaccountingincomestatement.ts index dd153ff8..17b36ceb 100644 --- a/src/models/operations/retrieveaccountingincomestatement.ts +++ b/src/models/operations/retrieveaccountingincomestatement.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingIncomeStatementRequest = { /** @@ -73,3 +76,30 @@ export namespace RetrieveAccountingIncomeStatementRequest$ { /** @deprecated use `RetrieveAccountingIncomeStatementRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingIncomeStatementRequest$Outbound; } + +export function retrieveAccountingIncomeStatementRequestToJSON( + retrieveAccountingIncomeStatementRequest: + RetrieveAccountingIncomeStatementRequest, +): string { + return JSON.stringify( + RetrieveAccountingIncomeStatementRequest$outboundSchema.parse( + retrieveAccountingIncomeStatementRequest, + ), + ); +} + +export function retrieveAccountingIncomeStatementRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveAccountingIncomeStatementRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveAccountingIncomeStatementRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveAccountingIncomeStatementRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountinginvoice.ts b/src/models/operations/retrieveaccountinginvoice.ts index 1ff5096a..c8c9f4e0 100644 --- a/src/models/operations/retrieveaccountinginvoice.ts +++ b/src/models/operations/retrieveaccountinginvoice.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingInvoiceRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingInvoiceRequest$ { /** @deprecated use `RetrieveAccountingInvoiceRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingInvoiceRequest$Outbound; } + +export function retrieveAccountingInvoiceRequestToJSON( + retrieveAccountingInvoiceRequest: RetrieveAccountingInvoiceRequest, +): string { + return JSON.stringify( + RetrieveAccountingInvoiceRequest$outboundSchema.parse( + retrieveAccountingInvoiceRequest, + ), + ); +} + +export function retrieveAccountingInvoiceRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingInvoiceRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingInvoiceRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingitem.ts b/src/models/operations/retrieveaccountingitem.ts index 00b4c2f7..b3fded64 100644 --- a/src/models/operations/retrieveaccountingitem.ts +++ b/src/models/operations/retrieveaccountingitem.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingItemRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingItemRequest$ { /** @deprecated use `RetrieveAccountingItemRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingItemRequest$Outbound; } + +export function retrieveAccountingItemRequestToJSON( + retrieveAccountingItemRequest: RetrieveAccountingItemRequest, +): string { + return JSON.stringify( + RetrieveAccountingItemRequest$outboundSchema.parse( + retrieveAccountingItemRequest, + ), + ); +} + +export function retrieveAccountingItemRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingItemRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingItemRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingjournalentry.ts b/src/models/operations/retrieveaccountingjournalentry.ts index ac834df6..abe97e63 100644 --- a/src/models/operations/retrieveaccountingjournalentry.ts +++ b/src/models/operations/retrieveaccountingjournalentry.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingJournalEntryRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingJournalEntryRequest$ { /** @deprecated use `RetrieveAccountingJournalEntryRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingJournalEntryRequest$Outbound; } + +export function retrieveAccountingJournalEntryRequestToJSON( + retrieveAccountingJournalEntryRequest: RetrieveAccountingJournalEntryRequest, +): string { + return JSON.stringify( + RetrieveAccountingJournalEntryRequest$outboundSchema.parse( + retrieveAccountingJournalEntryRequest, + ), + ); +} + +export function retrieveAccountingJournalEntryRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingJournalEntryRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingJournalEntryRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingpayment.ts b/src/models/operations/retrieveaccountingpayment.ts index 9f0dc44c..27f8443e 100644 --- a/src/models/operations/retrieveaccountingpayment.ts +++ b/src/models/operations/retrieveaccountingpayment.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingPaymentRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingPaymentRequest$ { /** @deprecated use `RetrieveAccountingPaymentRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingPaymentRequest$Outbound; } + +export function retrieveAccountingPaymentRequestToJSON( + retrieveAccountingPaymentRequest: RetrieveAccountingPaymentRequest, +): string { + return JSON.stringify( + RetrieveAccountingPaymentRequest$outboundSchema.parse( + retrieveAccountingPaymentRequest, + ), + ); +} + +export function retrieveAccountingPaymentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingPaymentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingPaymentRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingphonenumber.ts b/src/models/operations/retrieveaccountingphonenumber.ts index 7b2b98a0..a5ad1f0f 100644 --- a/src/models/operations/retrieveaccountingphonenumber.ts +++ b/src/models/operations/retrieveaccountingphonenumber.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingPhonenumberRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingPhonenumberRequest$ { /** @deprecated use `RetrieveAccountingPhonenumberRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingPhonenumberRequest$Outbound; } + +export function retrieveAccountingPhonenumberRequestToJSON( + retrieveAccountingPhonenumberRequest: RetrieveAccountingPhonenumberRequest, +): string { + return JSON.stringify( + RetrieveAccountingPhonenumberRequest$outboundSchema.parse( + retrieveAccountingPhonenumberRequest, + ), + ); +} + +export function retrieveAccountingPhonenumberRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingPhonenumberRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingPhonenumberRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingpurchaseorder.ts b/src/models/operations/retrieveaccountingpurchaseorder.ts index fea9173b..9aa170bf 100644 --- a/src/models/operations/retrieveaccountingpurchaseorder.ts +++ b/src/models/operations/retrieveaccountingpurchaseorder.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingPurchaseOrderRequest = { /** @@ -73,3 +76,25 @@ export namespace RetrieveAccountingPurchaseOrderRequest$ { /** @deprecated use `RetrieveAccountingPurchaseOrderRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingPurchaseOrderRequest$Outbound; } + +export function retrieveAccountingPurchaseOrderRequestToJSON( + retrieveAccountingPurchaseOrderRequest: + RetrieveAccountingPurchaseOrderRequest, +): string { + return JSON.stringify( + RetrieveAccountingPurchaseOrderRequest$outboundSchema.parse( + retrieveAccountingPurchaseOrderRequest, + ), + ); +} + +export function retrieveAccountingPurchaseOrderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingPurchaseOrderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingPurchaseOrderRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingtaxrate.ts b/src/models/operations/retrieveaccountingtaxrate.ts index 48142983..aecca823 100644 --- a/src/models/operations/retrieveaccountingtaxrate.ts +++ b/src/models/operations/retrieveaccountingtaxrate.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingTaxRateRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveAccountingTaxRateRequest$ { /** @deprecated use `RetrieveAccountingTaxRateRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingTaxRateRequest$Outbound; } + +export function retrieveAccountingTaxRateRequestToJSON( + retrieveAccountingTaxRateRequest: RetrieveAccountingTaxRateRequest, +): string { + return JSON.stringify( + RetrieveAccountingTaxRateRequest$outboundSchema.parse( + retrieveAccountingTaxRateRequest, + ), + ); +} + +export function retrieveAccountingTaxRateRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveAccountingTaxRateRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingTaxRateRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingtrackingcategory.ts b/src/models/operations/retrieveaccountingtrackingcategory.ts index 7572cee1..fbefe10e 100644 --- a/src/models/operations/retrieveaccountingtrackingcategory.ts +++ b/src/models/operations/retrieveaccountingtrackingcategory.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingTrackingCategoryRequest = { /** @@ -74,3 +77,30 @@ export namespace RetrieveAccountingTrackingCategoryRequest$ { /** @deprecated use `RetrieveAccountingTrackingCategoryRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingTrackingCategoryRequest$Outbound; } + +export function retrieveAccountingTrackingCategoryRequestToJSON( + retrieveAccountingTrackingCategoryRequest: + RetrieveAccountingTrackingCategoryRequest, +): string { + return JSON.stringify( + RetrieveAccountingTrackingCategoryRequest$outboundSchema.parse( + retrieveAccountingTrackingCategoryRequest, + ), + ); +} + +export function retrieveAccountingTrackingCategoryRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveAccountingTrackingCategoryRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveAccountingTrackingCategoryRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveAccountingTrackingCategoryRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingtransaction.ts b/src/models/operations/retrieveaccountingtransaction.ts index d00d7075..dbc6c317 100644 --- a/src/models/operations/retrieveaccountingtransaction.ts +++ b/src/models/operations/retrieveaccountingtransaction.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingTransactionRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingTransactionRequest$ { /** @deprecated use `RetrieveAccountingTransactionRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingTransactionRequest$Outbound; } + +export function retrieveAccountingTransactionRequestToJSON( + retrieveAccountingTransactionRequest: RetrieveAccountingTransactionRequest, +): string { + return JSON.stringify( + RetrieveAccountingTransactionRequest$outboundSchema.parse( + retrieveAccountingTransactionRequest, + ), + ); +} + +export function retrieveAccountingTransactionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingTransactionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingTransactionRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveaccountingvendorcredit.ts b/src/models/operations/retrieveaccountingvendorcredit.ts index 3737a0e6..c2f55d66 100644 --- a/src/models/operations/retrieveaccountingvendorcredit.ts +++ b/src/models/operations/retrieveaccountingvendorcredit.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveAccountingVendorCreditRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveAccountingVendorCreditRequest$ { /** @deprecated use `RetrieveAccountingVendorCreditRequest$Outbound` instead. */ export type Outbound = RetrieveAccountingVendorCreditRequest$Outbound; } + +export function retrieveAccountingVendorCreditRequestToJSON( + retrieveAccountingVendorCreditRequest: RetrieveAccountingVendorCreditRequest, +): string { + return JSON.stringify( + RetrieveAccountingVendorCreditRequest$outboundSchema.parse( + retrieveAccountingVendorCreditRequest, + ), + ); +} + +export function retrieveAccountingVendorCreditRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveAccountingVendorCreditRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveAccountingVendorCreditRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveatsactivity.ts b/src/models/operations/retrieveatsactivity.ts deleted file mode 100644 index 39eb290b..00000000 --- a/src/models/operations/retrieveatsactivity.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsActivityRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the activity you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsActivityRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsapplication.ts b/src/models/operations/retrieveatsapplication.ts deleted file mode 100644 index 4f7b52c8..00000000 --- a/src/models/operations/retrieveatsapplication.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsApplicationRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the application you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsApplicationRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsattachment.ts b/src/models/operations/retrieveatsattachment.ts deleted file mode 100644 index 356faaff..00000000 --- a/src/models/operations/retrieveatsattachment.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsAttachmentRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the attachment you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsAttachmentRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatscandidate.ts b/src/models/operations/retrieveatscandidate.ts deleted file mode 100644 index 9fbe7fee..00000000 --- a/src/models/operations/retrieveatscandidate.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsCandidateRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the candidate you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsCandidateRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsdepartment.ts b/src/models/operations/retrieveatsdepartment.ts deleted file mode 100644 index a22ee13f..00000000 --- a/src/models/operations/retrieveatsdepartment.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -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; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatseeocs.ts b/src/models/operations/retrieveatseeocs.ts deleted file mode 100644 index 260e44fd..00000000 --- a/src/models/operations/retrieveatseeocs.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsEeocsRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the eeocs you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsEeocsRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsinterview.ts b/src/models/operations/retrieveatsinterview.ts deleted file mode 100644 index ccc2e9cc..00000000 --- a/src/models/operations/retrieveatsinterview.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsInterviewRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the interview you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsInterviewRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsjob.ts b/src/models/operations/retrieveatsjob.ts deleted file mode 100644 index 6e845120..00000000 --- a/src/models/operations/retrieveatsjob.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsJobRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the job you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsJobRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsjobinterviewstage.ts b/src/models/operations/retrieveatsjobinterviewstage.ts deleted file mode 100644 index d307a6e5..00000000 --- a/src/models/operations/retrieveatsjobinterviewstage.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsJobInterviewStageRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the jobinterviewstage you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsJobInterviewStageRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsoffer.ts b/src/models/operations/retrieveatsoffer.ts deleted file mode 100644 index c4824ac4..00000000 --- a/src/models/operations/retrieveatsoffer.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsOfferRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the offer you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsOfferRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsoffice.ts b/src/models/operations/retrieveatsoffice.ts deleted file mode 100644 index a3548d1c..00000000 --- a/src/models/operations/retrieveatsoffice.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsOfficeRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the office you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsOfficeRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsrejectreason.ts b/src/models/operations/retrieveatsrejectreason.ts deleted file mode 100644 index ec1509cb..00000000 --- a/src/models/operations/retrieveatsrejectreason.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -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; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsscorecard.ts b/src/models/operations/retrieveatsscorecard.ts deleted file mode 100644 index 2a71dac9..00000000 --- a/src/models/operations/retrieveatsscorecard.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsScorecardRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the scorecard you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsScorecardRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatstag.ts b/src/models/operations/retrieveatstag.ts deleted file mode 100644 index bdb8b3f4..00000000 --- a/src/models/operations/retrieveatstag.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsTagRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the tag you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsTagRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrieveatsuser.ts b/src/models/operations/retrieveatsuser.ts deleted file mode 100644 index 0205e2ee..00000000 --- a/src/models/operations/retrieveatsuser.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveAtsUserRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the user you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Ats software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveAtsUserRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievecollection.ts b/src/models/operations/retrievecollection.ts index 6faf631e..48fe0ef5 100644 --- a/src/models/operations/retrievecollection.ts +++ b/src/models/operations/retrievecollection.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCollectionRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCollectionRequest$ { /** @deprecated use `RetrieveCollectionRequest$Outbound` instead. */ export type Outbound = RetrieveCollectionRequest$Outbound; } + +export function retrieveCollectionRequestToJSON( + retrieveCollectionRequest: RetrieveCollectionRequest, +): string { + return JSON.stringify( + RetrieveCollectionRequest$outboundSchema.parse(retrieveCollectionRequest), + ); +} + +export function retrieveCollectionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCollectionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCollectionRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmcompany.ts b/src/models/operations/retrievecrmcompany.ts index 96681f6f..585e398d 100644 --- a/src/models/operations/retrievecrmcompany.ts +++ b/src/models/operations/retrievecrmcompany.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmCompanyRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmCompanyRequest$ { /** @deprecated use `RetrieveCrmCompanyRequest$Outbound` instead. */ export type Outbound = RetrieveCrmCompanyRequest$Outbound; } + +export function retrieveCrmCompanyRequestToJSON( + retrieveCrmCompanyRequest: RetrieveCrmCompanyRequest, +): string { + return JSON.stringify( + RetrieveCrmCompanyRequest$outboundSchema.parse(retrieveCrmCompanyRequest), + ); +} + +export function retrieveCrmCompanyRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmCompanyRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmCompanyRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmcontact.ts b/src/models/operations/retrievecrmcontact.ts index 3c22bb9b..02770433 100644 --- a/src/models/operations/retrievecrmcontact.ts +++ b/src/models/operations/retrievecrmcontact.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmContactRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmContactRequest$ { /** @deprecated use `RetrieveCrmContactRequest$Outbound` instead. */ export type Outbound = RetrieveCrmContactRequest$Outbound; } + +export function retrieveCrmContactRequestToJSON( + retrieveCrmContactRequest: RetrieveCrmContactRequest, +): string { + return JSON.stringify( + RetrieveCrmContactRequest$outboundSchema.parse(retrieveCrmContactRequest), + ); +} + +export function retrieveCrmContactRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmContactRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmdeal.ts b/src/models/operations/retrievecrmdeal.ts index c8fcc1b1..89962705 100644 --- a/src/models/operations/retrievecrmdeal.ts +++ b/src/models/operations/retrievecrmdeal.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmDealRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmDealRequest$ { /** @deprecated use `RetrieveCrmDealRequest$Outbound` instead. */ export type Outbound = RetrieveCrmDealRequest$Outbound; } + +export function retrieveCrmDealRequestToJSON( + retrieveCrmDealRequest: RetrieveCrmDealRequest, +): string { + return JSON.stringify( + RetrieveCrmDealRequest$outboundSchema.parse(retrieveCrmDealRequest), + ); +} + +export function retrieveCrmDealRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmDealRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmDealRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmengagement.ts b/src/models/operations/retrievecrmengagement.ts index 2f14e6d1..b84909f9 100644 --- a/src/models/operations/retrievecrmengagement.ts +++ b/src/models/operations/retrievecrmengagement.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmEngagementRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveCrmEngagementRequest$ { /** @deprecated use `RetrieveCrmEngagementRequest$Outbound` instead. */ export type Outbound = RetrieveCrmEngagementRequest$Outbound; } + +export function retrieveCrmEngagementRequestToJSON( + retrieveCrmEngagementRequest: RetrieveCrmEngagementRequest, +): string { + return JSON.stringify( + RetrieveCrmEngagementRequest$outboundSchema.parse( + retrieveCrmEngagementRequest, + ), + ); +} + +export function retrieveCrmEngagementRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmEngagementRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmEngagementRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmnote.ts b/src/models/operations/retrievecrmnote.ts index 03c44543..6cdba922 100644 --- a/src/models/operations/retrievecrmnote.ts +++ b/src/models/operations/retrievecrmnote.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmNoteRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmNoteRequest$ { /** @deprecated use `RetrieveCrmNoteRequest$Outbound` instead. */ export type Outbound = RetrieveCrmNoteRequest$Outbound; } + +export function retrieveCrmNoteRequestToJSON( + retrieveCrmNoteRequest: RetrieveCrmNoteRequest, +): string { + return JSON.stringify( + RetrieveCrmNoteRequest$outboundSchema.parse(retrieveCrmNoteRequest), + ); +} + +export function retrieveCrmNoteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmNoteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmNoteRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmstage.ts b/src/models/operations/retrievecrmstage.ts index 7a86cc1f..ba916c31 100644 --- a/src/models/operations/retrievecrmstage.ts +++ b/src/models/operations/retrievecrmstage.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmStageRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmStageRequest$ { /** @deprecated use `RetrieveCrmStageRequest$Outbound` instead. */ export type Outbound = RetrieveCrmStageRequest$Outbound; } + +export function retrieveCrmStageRequestToJSON( + retrieveCrmStageRequest: RetrieveCrmStageRequest, +): string { + return JSON.stringify( + RetrieveCrmStageRequest$outboundSchema.parse(retrieveCrmStageRequest), + ); +} + +export function retrieveCrmStageRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmStageRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmStageRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmtask.ts b/src/models/operations/retrievecrmtask.ts index f88fa9dd..ad2500f0 100644 --- a/src/models/operations/retrievecrmtask.ts +++ b/src/models/operations/retrievecrmtask.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmTaskRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmTaskRequest$ { /** @deprecated use `RetrieveCrmTaskRequest$Outbound` instead. */ export type Outbound = RetrieveCrmTaskRequest$Outbound; } + +export function retrieveCrmTaskRequestToJSON( + retrieveCrmTaskRequest: RetrieveCrmTaskRequest, +): string { + return JSON.stringify( + RetrieveCrmTaskRequest$outboundSchema.parse(retrieveCrmTaskRequest), + ); +} + +export function retrieveCrmTaskRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmTaskRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmTaskRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievecrmuser.ts b/src/models/operations/retrievecrmuser.ts index d22f4ce0..4121e0b1 100644 --- a/src/models/operations/retrievecrmuser.ts +++ b/src/models/operations/retrievecrmuser.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveCrmUserRequest = { /** @@ -71,3 +74,21 @@ export namespace RetrieveCrmUserRequest$ { /** @deprecated use `RetrieveCrmUserRequest$Outbound` instead. */ export type Outbound = RetrieveCrmUserRequest$Outbound; } + +export function retrieveCrmUserRequestToJSON( + retrieveCrmUserRequest: RetrieveCrmUserRequest, +): string { + return JSON.stringify( + RetrieveCrmUserRequest$outboundSchema.parse(retrieveCrmUserRequest), + ); +} + +export function retrieveCrmUserRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveCrmUserRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveCrmUserRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveecommercecustomer.ts b/src/models/operations/retrieveecommercecustomer.ts index 50575daf..e6fa174d 100644 --- a/src/models/operations/retrieveecommercecustomer.ts +++ b/src/models/operations/retrieveecommercecustomer.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveEcommerceCustomerRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveEcommerceCustomerRequest$ { /** @deprecated use `RetrieveEcommerceCustomerRequest$Outbound` instead. */ export type Outbound = RetrieveEcommerceCustomerRequest$Outbound; } + +export function retrieveEcommerceCustomerRequestToJSON( + retrieveEcommerceCustomerRequest: RetrieveEcommerceCustomerRequest, +): string { + return JSON.stringify( + RetrieveEcommerceCustomerRequest$outboundSchema.parse( + retrieveEcommerceCustomerRequest, + ), + ); +} + +export function retrieveEcommerceCustomerRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveEcommerceCustomerRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveEcommerceCustomerRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveecommercefulfillment.ts b/src/models/operations/retrieveecommercefulfillment.ts index 48ecc345..0ba60eb0 100644 --- a/src/models/operations/retrieveecommercefulfillment.ts +++ b/src/models/operations/retrieveecommercefulfillment.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveEcommerceFulfillmentRequest = { /** @@ -73,3 +76,24 @@ export namespace RetrieveEcommerceFulfillmentRequest$ { /** @deprecated use `RetrieveEcommerceFulfillmentRequest$Outbound` instead. */ export type Outbound = RetrieveEcommerceFulfillmentRequest$Outbound; } + +export function retrieveEcommerceFulfillmentRequestToJSON( + retrieveEcommerceFulfillmentRequest: RetrieveEcommerceFulfillmentRequest, +): string { + return JSON.stringify( + RetrieveEcommerceFulfillmentRequest$outboundSchema.parse( + retrieveEcommerceFulfillmentRequest, + ), + ); +} + +export function retrieveEcommerceFulfillmentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveEcommerceFulfillmentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveEcommerceFulfillmentRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveecommerceorder.ts b/src/models/operations/retrieveecommerceorder.ts index 7308f85a..a20846f9 100644 --- a/src/models/operations/retrieveecommerceorder.ts +++ b/src/models/operations/retrieveecommerceorder.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveEcommerceOrderRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveEcommerceOrderRequest$ { /** @deprecated use `RetrieveEcommerceOrderRequest$Outbound` instead. */ export type Outbound = RetrieveEcommerceOrderRequest$Outbound; } + +export function retrieveEcommerceOrderRequestToJSON( + retrieveEcommerceOrderRequest: RetrieveEcommerceOrderRequest, +): string { + return JSON.stringify( + RetrieveEcommerceOrderRequest$outboundSchema.parse( + retrieveEcommerceOrderRequest, + ), + ); +} + +export function retrieveEcommerceOrderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveEcommerceOrderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveEcommerceOrderRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveecommerceproduct.ts b/src/models/operations/retrieveecommerceproduct.ts index 8be917ca..e68aa128 100644 --- a/src/models/operations/retrieveecommerceproduct.ts +++ b/src/models/operations/retrieveecommerceproduct.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveEcommerceProductRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveEcommerceProductRequest$ { /** @deprecated use `RetrieveEcommerceProductRequest$Outbound` instead. */ export type Outbound = RetrieveEcommerceProductRequest$Outbound; } + +export function retrieveEcommerceProductRequestToJSON( + retrieveEcommerceProductRequest: RetrieveEcommerceProductRequest, +): string { + return JSON.stringify( + RetrieveEcommerceProductRequest$outboundSchema.parse( + retrieveEcommerceProductRequest, + ), + ); +} + +export function retrieveEcommerceProductRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveEcommerceProductRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveEcommerceProductRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievefilestoragefile.ts b/src/models/operations/retrievefilestoragefile.ts index 9733922a..a9c14c3b 100644 --- a/src/models/operations/retrievefilestoragefile.ts +++ b/src/models/operations/retrievefilestoragefile.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveFilestorageFileRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveFilestorageFileRequest$ { /** @deprecated use `RetrieveFilestorageFileRequest$Outbound` instead. */ export type Outbound = RetrieveFilestorageFileRequest$Outbound; } + +export function retrieveFilestorageFileRequestToJSON( + retrieveFilestorageFileRequest: RetrieveFilestorageFileRequest, +): string { + return JSON.stringify( + RetrieveFilestorageFileRequest$outboundSchema.parse( + retrieveFilestorageFileRequest, + ), + ); +} + +export function retrieveFilestorageFileRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveFilestorageFileRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveFilestorageFileRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievefilestoragefolder.ts b/src/models/operations/retrievefilestoragefolder.ts index 378b7a36..e12931e3 100644 --- a/src/models/operations/retrievefilestoragefolder.ts +++ b/src/models/operations/retrievefilestoragefolder.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveFilestorageFolderRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveFilestorageFolderRequest$ { /** @deprecated use `RetrieveFilestorageFolderRequest$Outbound` instead. */ export type Outbound = RetrieveFilestorageFolderRequest$Outbound; } + +export function retrieveFilestorageFolderRequestToJSON( + retrieveFilestorageFolderRequest: RetrieveFilestorageFolderRequest, +): string { + return JSON.stringify( + RetrieveFilestorageFolderRequest$outboundSchema.parse( + retrieveFilestorageFolderRequest, + ), + ); +} + +export function retrieveFilestorageFolderRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveFilestorageFolderRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveFilestorageFolderRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievefilestoragegroup.ts b/src/models/operations/retrievefilestoragegroup.ts index 3f7a6fca..9f89162e 100644 --- a/src/models/operations/retrievefilestoragegroup.ts +++ b/src/models/operations/retrievefilestoragegroup.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveFilestorageGroupRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveFilestorageGroupRequest$ { /** @deprecated use `RetrieveFilestorageGroupRequest$Outbound` instead. */ export type Outbound = RetrieveFilestorageGroupRequest$Outbound; } + +export function retrieveFilestorageGroupRequestToJSON( + retrieveFilestorageGroupRequest: RetrieveFilestorageGroupRequest, +): string { + return JSON.stringify( + RetrieveFilestorageGroupRequest$outboundSchema.parse( + retrieveFilestorageGroupRequest, + ), + ); +} + +export function retrieveFilestorageGroupRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveFilestorageGroupRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveFilestorageGroupRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievefilestorageuser.ts b/src/models/operations/retrievefilestorageuser.ts index 3b4c047a..0fd4f920 100644 --- a/src/models/operations/retrievefilestorageuser.ts +++ b/src/models/operations/retrievefilestorageuser.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveFilestorageUserRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveFilestorageUserRequest$ { /** @deprecated use `RetrieveFilestorageUserRequest$Outbound` instead. */ export type Outbound = RetrieveFilestorageUserRequest$Outbound; } + +export function retrieveFilestorageUserRequestToJSON( + retrieveFilestorageUserRequest: RetrieveFilestorageUserRequest, +): string { + return JSON.stringify( + RetrieveFilestorageUserRequest$outboundSchema.parse( + retrieveFilestorageUserRequest, + ), + ); +} + +export function retrieveFilestorageUserRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveFilestorageUserRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveFilestorageUserRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievehrisbankinfo.ts b/src/models/operations/retrievehrisbankinfo.ts deleted file mode 100644 index f08f854d..00000000 --- a/src/models/operations/retrievehrisbankinfo.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisBankInfoRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the bank info you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisBankInfoRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisbenefit.ts b/src/models/operations/retrievehrisbenefit.ts deleted file mode 100644 index 21f0ce65..00000000 --- a/src/models/operations/retrievehrisbenefit.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisBenefitRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the benefit you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisBenefitRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehriscompany.ts b/src/models/operations/retrievehriscompany.ts deleted file mode 100644 index c85adf99..00000000 --- a/src/models/operations/retrievehriscompany.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisCompanyRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the company you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisCompanyRequest$inboundSchema: z.ZodType< - RetrieveHrisCompanyRequest, - 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 RetrieveHrisCompanyRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisCompanyRequest$outboundSchema: z.ZodType< - RetrieveHrisCompanyRequest$Outbound, - z.ZodTypeDef, - RetrieveHrisCompanyRequest -> = 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 RetrieveHrisCompanyRequest$ { - /** @deprecated use `RetrieveHrisCompanyRequest$inboundSchema` instead. */ - export const inboundSchema = RetrieveHrisCompanyRequest$inboundSchema; - /** @deprecated use `RetrieveHrisCompanyRequest$outboundSchema` instead. */ - export const outboundSchema = RetrieveHrisCompanyRequest$outboundSchema; - /** @deprecated use `RetrieveHrisCompanyRequest$Outbound` instead. */ - export type Outbound = RetrieveHrisCompanyRequest$Outbound; -} diff --git a/src/models/operations/retrievehrisdependent.ts b/src/models/operations/retrievehrisdependent.ts deleted file mode 100644 index 619f4bc9..00000000 --- a/src/models/operations/retrievehrisdependent.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisDependentRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the dependent you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisDependentRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisemployee.ts b/src/models/operations/retrievehrisemployee.ts deleted file mode 100644 index 802e6213..00000000 --- a/src/models/operations/retrievehrisemployee.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisEmployeeRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the employee you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisEmployeeRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisemployeepayrollrun.ts b/src/models/operations/retrievehrisemployeepayrollrun.ts deleted file mode 100644 index dacb1e0b..00000000 --- a/src/models/operations/retrievehrisemployeepayrollrun.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisEmployeePayrollRunRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the employeepayrollrun you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisEmployeePayrollRunRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisemployerbenefit.ts b/src/models/operations/retrievehrisemployerbenefit.ts deleted file mode 100644 index 537ba958..00000000 --- a/src/models/operations/retrievehrisemployerbenefit.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisEmployerBenefitRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the employer benefit you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisEmployerBenefitRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisemployment.ts b/src/models/operations/retrievehrisemployment.ts deleted file mode 100644 index 3a46cc9d..00000000 --- a/src/models/operations/retrievehrisemployment.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisEmploymentRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the employment you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisEmploymentRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrisgroup.ts b/src/models/operations/retrievehrisgroup.ts deleted file mode 100644 index cca58a43..00000000 --- a/src/models/operations/retrievehrisgroup.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisGroupRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the group you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisGroupRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrislocation.ts b/src/models/operations/retrievehrislocation.ts deleted file mode 100644 index 76c0947b..00000000 --- a/src/models/operations/retrievehrislocation.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisLocationRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the location you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisLocationRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrispaygroup.ts b/src/models/operations/retrievehrispaygroup.ts deleted file mode 100644 index 87691b40..00000000 --- a/src/models/operations/retrievehrispaygroup.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisPaygroupRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the paygroup you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisPaygroupRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehrispayrollrun.ts b/src/models/operations/retrievehrispayrollrun.ts deleted file mode 100644 index f9167033..00000000 --- a/src/models/operations/retrievehrispayrollrun.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisPayrollRunRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the payroll run you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisPayrollRunRequest$inboundSchema: z.ZodType< - RetrieveHrisPayrollRunRequest, - 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 RetrieveHrisPayrollRunRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisPayrollRunRequest$outboundSchema: z.ZodType< - RetrieveHrisPayrollRunRequest$Outbound, - z.ZodTypeDef, - RetrieveHrisPayrollRunRequest -> = 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 RetrieveHrisPayrollRunRequest$ { - /** @deprecated use `RetrieveHrisPayrollRunRequest$inboundSchema` instead. */ - export const inboundSchema = RetrieveHrisPayrollRunRequest$inboundSchema; - /** @deprecated use `RetrieveHrisPayrollRunRequest$outboundSchema` instead. */ - export const outboundSchema = RetrieveHrisPayrollRunRequest$outboundSchema; - /** @deprecated use `RetrieveHrisPayrollRunRequest$Outbound` instead. */ - export type Outbound = RetrieveHrisPayrollRunRequest$Outbound; -} diff --git a/src/models/operations/retrievehristimeoff.ts b/src/models/operations/retrievehristimeoff.ts deleted file mode 100644 index 8e502390..00000000 --- a/src/models/operations/retrievehristimeoff.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisTimeoffRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the time off you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisTimeoffRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehristimeoffbalance.ts b/src/models/operations/retrievehristimeoffbalance.ts deleted file mode 100644 index e64b8240..00000000 --- a/src/models/operations/retrievehristimeoffbalance.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisTimeoffbalanceRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the timeoffbalance you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -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", - }); -}); - -/** @internal */ -export type RetrieveHrisTimeoffbalanceRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @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; -} diff --git a/src/models/operations/retrievehristimesheetentry.ts b/src/models/operations/retrievehristimesheetentry.ts deleted file mode 100644 index e676a44b..00000000 --- a/src/models/operations/retrievehristimesheetentry.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; - -export type RetrieveHrisTimesheetentryRequest = { - /** - * The connection token - */ - xConnectionToken: string; - /** - * id of the timesheetentry you want to retrieve. - */ - id: string; - /** - * Set to true to include data from the original Hris software. - */ - remoteData?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisTimesheetentryRequest$inboundSchema: z.ZodType< - RetrieveHrisTimesheetentryRequest, - 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 RetrieveHrisTimesheetentryRequest$Outbound = { - "x-connection-token": string; - id: string; - remote_data?: boolean | undefined; -}; - -/** @internal */ -export const RetrieveHrisTimesheetentryRequest$outboundSchema: z.ZodType< - RetrieveHrisTimesheetentryRequest$Outbound, - z.ZodTypeDef, - RetrieveHrisTimesheetentryRequest -> = 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 RetrieveHrisTimesheetentryRequest$ { - /** @deprecated use `RetrieveHrisTimesheetentryRequest$inboundSchema` instead. */ - export const inboundSchema = RetrieveHrisTimesheetentryRequest$inboundSchema; - /** @deprecated use `RetrieveHrisTimesheetentryRequest$outboundSchema` instead. */ - export const outboundSchema = - RetrieveHrisTimesheetentryRequest$outboundSchema; - /** @deprecated use `RetrieveHrisTimesheetentryRequest$Outbound` instead. */ - export type Outbound = RetrieveHrisTimesheetentryRequest$Outbound; -} diff --git a/src/models/operations/retrievelinkeduser.ts b/src/models/operations/retrievelinkeduser.ts index 7542b60e..eea7e771 100644 --- a/src/models/operations/retrievelinkeduser.ts +++ b/src/models/operations/retrievelinkeduser.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveLinkedUserRequest = { id: string; @@ -43,3 +46,21 @@ export namespace RetrieveLinkedUserRequest$ { /** @deprecated use `RetrieveLinkedUserRequest$Outbound` instead. */ export type Outbound = RetrieveLinkedUserRequest$Outbound; } + +export function retrieveLinkedUserRequestToJSON( + retrieveLinkedUserRequest: RetrieveLinkedUserRequest, +): string { + return JSON.stringify( + RetrieveLinkedUserRequest$outboundSchema.parse(retrieveLinkedUserRequest), + ); +} + +export function retrieveLinkedUserRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveLinkedUserRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveLinkedUserRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationaction.ts b/src/models/operations/retrievemarketingautomationaction.ts index 0934f53a..06387b95 100644 --- a/src/models/operations/retrievemarketingautomationaction.ts +++ b/src/models/operations/retrievemarketingautomationaction.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationActionRequest = { /** @@ -73,3 +76,30 @@ export namespace RetrieveMarketingautomationActionRequest$ { /** @deprecated use `RetrieveMarketingautomationActionRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationActionRequest$Outbound; } + +export function retrieveMarketingautomationActionRequestToJSON( + retrieveMarketingautomationActionRequest: + RetrieveMarketingautomationActionRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationActionRequest$outboundSchema.parse( + retrieveMarketingautomationActionRequest, + ), + ); +} + +export function retrieveMarketingautomationActionRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationActionRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationActionRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationActionRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationautomation.ts b/src/models/operations/retrievemarketingautomationautomation.ts index 67316e4d..67089ebe 100644 --- a/src/models/operations/retrievemarketingautomationautomation.ts +++ b/src/models/operations/retrievemarketingautomationautomation.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationAutomationRequest = { /** @@ -75,3 +78,30 @@ export namespace RetrieveMarketingautomationAutomationRequest$ { /** @deprecated use `RetrieveMarketingautomationAutomationRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationAutomationRequest$Outbound; } + +export function retrieveMarketingautomationAutomationRequestToJSON( + retrieveMarketingautomationAutomationRequest: + RetrieveMarketingautomationAutomationRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationAutomationRequest$outboundSchema.parse( + retrieveMarketingautomationAutomationRequest, + ), + ); +} + +export function retrieveMarketingautomationAutomationRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationAutomationRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationAutomationRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationAutomationRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationcampaign.ts b/src/models/operations/retrievemarketingautomationcampaign.ts index c12468d0..1f89d348 100644 --- a/src/models/operations/retrievemarketingautomationcampaign.ts +++ b/src/models/operations/retrievemarketingautomationcampaign.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationCampaignRequest = { /** @@ -72,3 +75,30 @@ export namespace RetrieveMarketingautomationCampaignRequest$ { /** @deprecated use `RetrieveMarketingautomationCampaignRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationCampaignRequest$Outbound; } + +export function retrieveMarketingautomationCampaignRequestToJSON( + retrieveMarketingautomationCampaignRequest: + RetrieveMarketingautomationCampaignRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationCampaignRequest$outboundSchema.parse( + retrieveMarketingautomationCampaignRequest, + ), + ); +} + +export function retrieveMarketingautomationCampaignRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationCampaignRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationCampaignRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationCampaignRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationcontact.ts b/src/models/operations/retrievemarketingautomationcontact.ts index 1be85f7f..70ef4648 100644 --- a/src/models/operations/retrievemarketingautomationcontact.ts +++ b/src/models/operations/retrievemarketingautomationcontact.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingAutomationContactRequest = { /** @@ -74,3 +77,30 @@ export namespace RetrieveMarketingAutomationContactRequest$ { /** @deprecated use `RetrieveMarketingAutomationContactRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingAutomationContactRequest$Outbound; } + +export function retrieveMarketingAutomationContactRequestToJSON( + retrieveMarketingAutomationContactRequest: + RetrieveMarketingAutomationContactRequest, +): string { + return JSON.stringify( + RetrieveMarketingAutomationContactRequest$outboundSchema.parse( + retrieveMarketingAutomationContactRequest, + ), + ); +} + +export function retrieveMarketingAutomationContactRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingAutomationContactRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingAutomationContactRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingAutomationContactRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationemail.ts b/src/models/operations/retrievemarketingautomationemail.ts index 00a2e1f4..feec809c 100644 --- a/src/models/operations/retrievemarketingautomationemail.ts +++ b/src/models/operations/retrievemarketingautomationemail.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationEmailRequest = { /** @@ -73,3 +76,30 @@ export namespace RetrieveMarketingautomationEmailRequest$ { /** @deprecated use `RetrieveMarketingautomationEmailRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationEmailRequest$Outbound; } + +export function retrieveMarketingautomationEmailRequestToJSON( + retrieveMarketingautomationEmailRequest: + RetrieveMarketingautomationEmailRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationEmailRequest$outboundSchema.parse( + retrieveMarketingautomationEmailRequest, + ), + ); +} + +export function retrieveMarketingautomationEmailRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationEmailRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationEmailRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationEmailRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationevent.ts b/src/models/operations/retrievemarketingautomationevent.ts index c3c3670f..6ac58705 100644 --- a/src/models/operations/retrievemarketingautomationevent.ts +++ b/src/models/operations/retrievemarketingautomationevent.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationEventRequest = { /** @@ -73,3 +76,30 @@ export namespace RetrieveMarketingautomationEventRequest$ { /** @deprecated use `RetrieveMarketingautomationEventRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationEventRequest$Outbound; } + +export function retrieveMarketingautomationEventRequestToJSON( + retrieveMarketingautomationEventRequest: + RetrieveMarketingautomationEventRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationEventRequest$outboundSchema.parse( + retrieveMarketingautomationEventRequest, + ), + ); +} + +export function retrieveMarketingautomationEventRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationEventRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationEventRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationEventRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationlist.ts b/src/models/operations/retrievemarketingautomationlist.ts index 81b83f41..d4aeb150 100644 --- a/src/models/operations/retrievemarketingautomationlist.ts +++ b/src/models/operations/retrievemarketingautomationlist.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationListRequest = { /** @@ -73,3 +76,25 @@ export namespace RetrieveMarketingautomationListRequest$ { /** @deprecated use `RetrieveMarketingautomationListRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationListRequest$Outbound; } + +export function retrieveMarketingautomationListRequestToJSON( + retrieveMarketingautomationListRequest: + RetrieveMarketingautomationListRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationListRequest$outboundSchema.parse( + retrieveMarketingautomationListRequest, + ), + ); +} + +export function retrieveMarketingautomationListRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationListRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveMarketingautomationListRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationmessage.ts b/src/models/operations/retrievemarketingautomationmessage.ts index 0278b6df..18ceca33 100644 --- a/src/models/operations/retrievemarketingautomationmessage.ts +++ b/src/models/operations/retrievemarketingautomationmessage.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationMessageRequest = { /** @@ -74,3 +77,30 @@ export namespace RetrieveMarketingautomationMessageRequest$ { /** @deprecated use `RetrieveMarketingautomationMessageRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationMessageRequest$Outbound; } + +export function retrieveMarketingautomationMessageRequestToJSON( + retrieveMarketingautomationMessageRequest: + RetrieveMarketingautomationMessageRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationMessageRequest$outboundSchema.parse( + retrieveMarketingautomationMessageRequest, + ), + ); +} + +export function retrieveMarketingautomationMessageRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationMessageRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationMessageRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationMessageRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationtemplate.ts b/src/models/operations/retrievemarketingautomationtemplate.ts index 968eec3f..de930064 100644 --- a/src/models/operations/retrievemarketingautomationtemplate.ts +++ b/src/models/operations/retrievemarketingautomationtemplate.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingautomationTemplateRequest = { /** @@ -72,3 +75,30 @@ export namespace RetrieveMarketingautomationTemplateRequest$ { /** @deprecated use `RetrieveMarketingautomationTemplateRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingautomationTemplateRequest$Outbound; } + +export function retrieveMarketingautomationTemplateRequestToJSON( + retrieveMarketingautomationTemplateRequest: + RetrieveMarketingautomationTemplateRequest, +): string { + return JSON.stringify( + RetrieveMarketingautomationTemplateRequest$outboundSchema.parse( + retrieveMarketingautomationTemplateRequest, + ), + ); +} + +export function retrieveMarketingautomationTemplateRequestFromJSON( + jsonString: string, +): SafeParseResult< + RetrieveMarketingautomationTemplateRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + RetrieveMarketingautomationTemplateRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'RetrieveMarketingautomationTemplateRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrievemarketingautomationuser.ts b/src/models/operations/retrievemarketingautomationuser.ts index 91521b19..4f00b58a 100644 --- a/src/models/operations/retrievemarketingautomationuser.ts +++ b/src/models/operations/retrievemarketingautomationuser.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveMarketingAutomationUserRequest = { /** @@ -73,3 +76,25 @@ export namespace RetrieveMarketingAutomationUserRequest$ { /** @deprecated use `RetrieveMarketingAutomationUserRequest$Outbound` instead. */ export type Outbound = RetrieveMarketingAutomationUserRequest$Outbound; } + +export function retrieveMarketingAutomationUserRequestToJSON( + retrieveMarketingAutomationUserRequest: + RetrieveMarketingAutomationUserRequest, +): string { + return JSON.stringify( + RetrieveMarketingAutomationUserRequest$outboundSchema.parse( + retrieveMarketingAutomationUserRequest, + ), + ); +} + +export function retrieveMarketingAutomationUserRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveMarketingAutomationUserRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveMarketingAutomationUserRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingaccount.ts b/src/models/operations/retrieveticketingaccount.ts index 22a1d5e2..221b11fc 100644 --- a/src/models/operations/retrieveticketingaccount.ts +++ b/src/models/operations/retrieveticketingaccount.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingAccountRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveTicketingAccountRequest$ { /** @deprecated use `RetrieveTicketingAccountRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingAccountRequest$Outbound; } + +export function retrieveTicketingAccountRequestToJSON( + retrieveTicketingAccountRequest: RetrieveTicketingAccountRequest, +): string { + return JSON.stringify( + RetrieveTicketingAccountRequest$outboundSchema.parse( + retrieveTicketingAccountRequest, + ), + ); +} + +export function retrieveTicketingAccountRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingAccountRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingAccountRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingattachment.ts b/src/models/operations/retrieveticketingattachment.ts index d7667d16..73b3e7d1 100644 --- a/src/models/operations/retrieveticketingattachment.ts +++ b/src/models/operations/retrieveticketingattachment.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingAttachmentRequest = { /** @@ -72,3 +75,24 @@ export namespace RetrieveTicketingAttachmentRequest$ { /** @deprecated use `RetrieveTicketingAttachmentRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingAttachmentRequest$Outbound; } + +export function retrieveTicketingAttachmentRequestToJSON( + retrieveTicketingAttachmentRequest: RetrieveTicketingAttachmentRequest, +): string { + return JSON.stringify( + RetrieveTicketingAttachmentRequest$outboundSchema.parse( + retrieveTicketingAttachmentRequest, + ), + ); +} + +export function retrieveTicketingAttachmentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveTicketingAttachmentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingAttachmentRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingcomment.ts b/src/models/operations/retrieveticketingcomment.ts index 9cde96f3..b47e1204 100644 --- a/src/models/operations/retrieveticketingcomment.ts +++ b/src/models/operations/retrieveticketingcomment.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingCommentRequest = { /** @@ -79,6 +82,26 @@ export namespace RetrieveTicketingCommentRequest$ { export type Outbound = RetrieveTicketingCommentRequest$Outbound; } +export function retrieveTicketingCommentRequestToJSON( + retrieveTicketingCommentRequest: RetrieveTicketingCommentRequest, +): string { + return JSON.stringify( + RetrieveTicketingCommentRequest$outboundSchema.parse( + retrieveTicketingCommentRequest, + ), + ); +} + +export function retrieveTicketingCommentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingCommentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingCommentRequest' from JSON`, + ); +} + /** @internal */ export const RetrieveTicketingCommentResponseBody$inboundSchema: z.ZodType< RetrieveTicketingCommentResponseBody, @@ -132,3 +155,24 @@ export namespace RetrieveTicketingCommentResponseBody$ { /** @deprecated use `RetrieveTicketingCommentResponseBody$Outbound` instead. */ export type Outbound = RetrieveTicketingCommentResponseBody$Outbound; } + +export function retrieveTicketingCommentResponseBodyToJSON( + retrieveTicketingCommentResponseBody: RetrieveTicketingCommentResponseBody, +): string { + return JSON.stringify( + RetrieveTicketingCommentResponseBody$outboundSchema.parse( + retrieveTicketingCommentResponseBody, + ), + ); +} + +export function retrieveTicketingCommentResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveTicketingCommentResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingCommentResponseBody' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingcontact.ts b/src/models/operations/retrieveticketingcontact.ts index 3e3212fe..3130aa1c 100644 --- a/src/models/operations/retrieveticketingcontact.ts +++ b/src/models/operations/retrieveticketingcontact.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingContactRequest = { /** @@ -79,6 +82,26 @@ export namespace RetrieveTicketingContactRequest$ { export type Outbound = RetrieveTicketingContactRequest$Outbound; } +export function retrieveTicketingContactRequestToJSON( + retrieveTicketingContactRequest: RetrieveTicketingContactRequest, +): string { + return JSON.stringify( + RetrieveTicketingContactRequest$outboundSchema.parse( + retrieveTicketingContactRequest, + ), + ); +} + +export function retrieveTicketingContactRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingContactRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingContactRequest' from JSON`, + ); +} + /** @internal */ export const RetrieveTicketingContactResponseBody$inboundSchema: z.ZodType< RetrieveTicketingContactResponseBody, @@ -132,3 +155,24 @@ export namespace RetrieveTicketingContactResponseBody$ { /** @deprecated use `RetrieveTicketingContactResponseBody$Outbound` instead. */ export type Outbound = RetrieveTicketingContactResponseBody$Outbound; } + +export function retrieveTicketingContactResponseBodyToJSON( + retrieveTicketingContactResponseBody: RetrieveTicketingContactResponseBody, +): string { + return JSON.stringify( + RetrieveTicketingContactResponseBody$outboundSchema.parse( + retrieveTicketingContactResponseBody, + ), + ); +} + +export function retrieveTicketingContactResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RetrieveTicketingContactResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingContactResponseBody' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingtag.ts b/src/models/operations/retrieveticketingtag.ts index a608183f..997c6add 100644 --- a/src/models/operations/retrieveticketingtag.ts +++ b/src/models/operations/retrieveticketingtag.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingTagRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveTicketingTagRequest$ { /** @deprecated use `RetrieveTicketingTagRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingTagRequest$Outbound; } + +export function retrieveTicketingTagRequestToJSON( + retrieveTicketingTagRequest: RetrieveTicketingTagRequest, +): string { + return JSON.stringify( + RetrieveTicketingTagRequest$outboundSchema.parse( + retrieveTicketingTagRequest, + ), + ); +} + +export function retrieveTicketingTagRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingTagRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingTagRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingteam.ts b/src/models/operations/retrieveticketingteam.ts index 02a04089..b9af855e 100644 --- a/src/models/operations/retrieveticketingteam.ts +++ b/src/models/operations/retrieveticketingteam.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingTeamRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveTicketingTeamRequest$ { /** @deprecated use `RetrieveTicketingTeamRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingTeamRequest$Outbound; } + +export function retrieveTicketingTeamRequestToJSON( + retrieveTicketingTeamRequest: RetrieveTicketingTeamRequest, +): string { + return JSON.stringify( + RetrieveTicketingTeamRequest$outboundSchema.parse( + retrieveTicketingTeamRequest, + ), + ); +} + +export function retrieveTicketingTeamRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingTeamRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingTeamRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketingticket.ts b/src/models/operations/retrieveticketingticket.ts index 9df6ab61..80686798 100644 --- a/src/models/operations/retrieveticketingticket.ts +++ b/src/models/operations/retrieveticketingticket.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingTicketRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveTicketingTicketRequest$ { /** @deprecated use `RetrieveTicketingTicketRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingTicketRequest$Outbound; } + +export function retrieveTicketingTicketRequestToJSON( + retrieveTicketingTicketRequest: RetrieveTicketingTicketRequest, +): string { + return JSON.stringify( + RetrieveTicketingTicketRequest$outboundSchema.parse( + retrieveTicketingTicketRequest, + ), + ); +} + +export function retrieveTicketingTicketRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingTicketRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingTicketRequest' from JSON`, + ); +} diff --git a/src/models/operations/retrieveticketinguser.ts b/src/models/operations/retrieveticketinguser.ts index ed329496..071780af 100644 --- a/src/models/operations/retrieveticketinguser.ts +++ b/src/models/operations/retrieveticketinguser.ts @@ -4,6 +4,9 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RetrieveTicketingUserRequest = { /** @@ -71,3 +74,23 @@ export namespace RetrieveTicketingUserRequest$ { /** @deprecated use `RetrieveTicketingUserRequest$Outbound` instead. */ export type Outbound = RetrieveTicketingUserRequest$Outbound; } + +export function retrieveTicketingUserRequestToJSON( + retrieveTicketingUserRequest: RetrieveTicketingUserRequest, +): string { + return JSON.stringify( + RetrieveTicketingUserRequest$outboundSchema.parse( + retrieveTicketingUserRequest, + ), + ); +} + +export function retrieveTicketingUserRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RetrieveTicketingUserRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RetrieveTicketingUserRequest' from JSON`, + ); +} diff --git a/src/models/operations/status.ts b/src/models/operations/status.ts index ba48bddc..941b4931 100644 --- a/src/models/operations/status.ts +++ b/src/models/operations/status.ts @@ -3,14 +3,15 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export enum Vertical { Ticketing = "ticketing", Marketingautomation = "marketingautomation", Crm = "crm", Filestorage = "filestorage", - Ats = "ats", - Hris = "hris", Accounting = "accounting", Ecommerce = "ecommerce", } @@ -73,3 +74,17 @@ export namespace StatusRequest$ { /** @deprecated use `StatusRequest$Outbound` instead. */ export type Outbound = StatusRequest$Outbound; } + +export function statusRequestToJSON(statusRequest: StatusRequest): string { + return JSON.stringify(StatusRequest$outboundSchema.parse(statusRequest)); +} + +export function statusRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => StatusRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'StatusRequest' from JSON`, + ); +} diff --git a/src/models/operations/updatepullfrequency.ts b/src/models/operations/updatepullfrequency.ts deleted file mode 100644 index 602f4a03..00000000 --- a/src/models/operations/updatepullfrequency.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export type UpdatePullFrequencyResponseBody = {}; - -/** @internal */ -export const UpdatePullFrequencyResponseBody$inboundSchema: z.ZodType< - UpdatePullFrequencyResponseBody, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type UpdatePullFrequencyResponseBody$Outbound = {}; - -/** @internal */ -export const UpdatePullFrequencyResponseBody$outboundSchema: z.ZodType< - UpdatePullFrequencyResponseBody$Outbound, - z.ZodTypeDef, - UpdatePullFrequencyResponseBody -> = 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 UpdatePullFrequencyResponseBody$ { - /** @deprecated use `UpdatePullFrequencyResponseBody$inboundSchema` instead. */ - export const inboundSchema = UpdatePullFrequencyResponseBody$inboundSchema; - /** @deprecated use `UpdatePullFrequencyResponseBody$outboundSchema` instead. */ - export const outboundSchema = UpdatePullFrequencyResponseBody$outboundSchema; - /** @deprecated use `UpdatePullFrequencyResponseBody$Outbound` instead. */ - export type Outbound = UpdatePullFrequencyResponseBody$Outbound; -} diff --git a/src/models/operations/updatestatus.ts b/src/models/operations/updatestatus.ts index 14cfc286..99789318 100644 --- a/src/models/operations/updatestatus.ts +++ b/src/models/operations/updatestatus.ts @@ -3,6 +3,9 @@ */ import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateStatusRequest = { /** @@ -46,3 +49,21 @@ export namespace UpdateStatusRequest$ { /** @deprecated use `UpdateStatusRequest$Outbound` instead. */ export type Outbound = UpdateStatusRequest$Outbound; } + +export function updateStatusRequestToJSON( + updateStatusRequest: UpdateStatusRequest, +): string { + return JSON.stringify( + UpdateStatusRequest$outboundSchema.parse(updateStatusRequest), + ); +} + +export function updateStatusRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateStatusRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateStatusRequest' from JSON`, + ); +} diff --git a/src/sdk/accounting.ts b/src/sdk/accounting.ts index dabbe432..f9f32acd 100644 --- a/src/sdk/accounting.ts +++ b/src/sdk/accounting.ts @@ -4,6 +4,7 @@ import { ClientSDK } from "../lib/sdks.js"; import { Addresses } from "./addresses.js"; +import { Attachments } from "./attachments.js"; import { Balancesheets } from "./balancesheets.js"; import { Cashflowstatements } from "./cashflowstatements.js"; import { Companyinfos } from "./companyinfos.js"; @@ -15,7 +16,6 @@ import { Items } from "./items.js"; import { Journalentries } from "./journalentries.js"; import { PanoraAccountingContacts } from "./panoraaccountingcontacts.js"; import { PanoraAccounts } from "./panoraaccounts.js"; -import { PanoraAttachments } from "./panoraattachments.js"; import { Payments } from "./payments.js"; import { Phonenumbers } from "./phonenumbers.js"; import { Purchaseorders } from "./purchaseorders.js"; @@ -27,101 +27,101 @@ import { Vendorcredits } from "./vendorcredits.js"; export class Accounting extends ClientSDK { private _accounts?: PanoraAccounts; get accounts(): PanoraAccounts { - return (this._accounts ??= new PanoraAccounts(this.options$)); + return (this._accounts ??= new PanoraAccounts(this._options)); } private _addresses?: Addresses; get addresses(): Addresses { - return (this._addresses ??= new Addresses(this.options$)); + return (this._addresses ??= new Addresses(this._options)); } - private _attachments?: PanoraAttachments; - get attachments(): PanoraAttachments { - return (this._attachments ??= new PanoraAttachments(this.options$)); + private _attachments?: Attachments; + get attachments(): Attachments { + return (this._attachments ??= new Attachments(this._options)); } private _balancesheets?: Balancesheets; get balancesheets(): Balancesheets { - return (this._balancesheets ??= new Balancesheets(this.options$)); + return (this._balancesheets ??= new Balancesheets(this._options)); } private _cashflowstatements?: Cashflowstatements; get cashflowstatements(): Cashflowstatements { - return (this._cashflowstatements ??= new Cashflowstatements(this.options$)); + return (this._cashflowstatements ??= new Cashflowstatements(this._options)); } private _companyinfos?: Companyinfos; get companyinfos(): Companyinfos { - return (this._companyinfos ??= new Companyinfos(this.options$)); + return (this._companyinfos ??= new Companyinfos(this._options)); } private _contacts?: PanoraAccountingContacts; get contacts(): PanoraAccountingContacts { - return (this._contacts ??= new PanoraAccountingContacts(this.options$)); + return (this._contacts ??= new PanoraAccountingContacts(this._options)); } private _creditnotes?: Creditnotes; get creditnotes(): Creditnotes { - return (this._creditnotes ??= new Creditnotes(this.options$)); + return (this._creditnotes ??= new Creditnotes(this._options)); } private _expenses?: Expenses; get expenses(): Expenses { - return (this._expenses ??= new Expenses(this.options$)); + return (this._expenses ??= new Expenses(this._options)); } private _incomestatements?: Incomestatements; get incomestatements(): Incomestatements { - return (this._incomestatements ??= new Incomestatements(this.options$)); + return (this._incomestatements ??= new Incomestatements(this._options)); } private _invoices?: Invoices; get invoices(): Invoices { - return (this._invoices ??= new Invoices(this.options$)); + return (this._invoices ??= new Invoices(this._options)); } private _items?: Items; get items(): Items { - return (this._items ??= new Items(this.options$)); + return (this._items ??= new Items(this._options)); } private _journalentries?: Journalentries; get journalentries(): Journalentries { - return (this._journalentries ??= new Journalentries(this.options$)); + return (this._journalentries ??= new Journalentries(this._options)); } private _payments?: Payments; get payments(): Payments { - return (this._payments ??= new Payments(this.options$)); + return (this._payments ??= new Payments(this._options)); } private _phonenumbers?: Phonenumbers; get phonenumbers(): Phonenumbers { - return (this._phonenumbers ??= new Phonenumbers(this.options$)); + return (this._phonenumbers ??= new Phonenumbers(this._options)); } private _purchaseorders?: Purchaseorders; get purchaseorders(): Purchaseorders { - return (this._purchaseorders ??= new Purchaseorders(this.options$)); + return (this._purchaseorders ??= new Purchaseorders(this._options)); } private _taxrates?: Taxrates; get taxrates(): Taxrates { - return (this._taxrates ??= new Taxrates(this.options$)); + return (this._taxrates ??= new Taxrates(this._options)); } private _trackingcategories?: Trackingcategories; get trackingcategories(): Trackingcategories { - return (this._trackingcategories ??= new Trackingcategories(this.options$)); + return (this._trackingcategories ??= new Trackingcategories(this._options)); } private _transactions?: Transactions; get transactions(): Transactions { - return (this._transactions ??= new Transactions(this.options$)); + return (this._transactions ??= new Transactions(this._options)); } private _vendorcredits?: Vendorcredits; get vendorcredits(): Vendorcredits { - return (this._vendorcredits ??= new Vendorcredits(this.options$)); + return (this._vendorcredits ??= new Vendorcredits(this._options)); } } diff --git a/src/sdk/activities.ts b/src/sdk/activities.ts deleted file mode 100644 index 00abe049..00000000 --- a/src/sdk/activities.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsActivitiesCreate } from "../funcs/atsActivitiesCreate.js"; -import { atsActivitiesList } from "../funcs/atsActivitiesList.js"; -import { atsActivitiesRetrieve } from "../funcs/atsActivitiesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Activities extends ClientSDK { - /** - * List Activities - */ - async list( - request: operations.ListAtsActivityRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsActivitiesList( - this, - request, - options, - )); - } - - /** - * Create Activities - * - * @remarks - * Create Activities in any supported Ats software - */ - async create( - request: operations.CreateAtsActivityRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsActivitiesCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Activities - * - * @remarks - * Retrieve Activities from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsActivityRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsActivitiesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/applications.ts b/src/sdk/applications.ts deleted file mode 100644 index d96dd873..00000000 --- a/src/sdk/applications.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsApplicationsCreate } from "../funcs/atsApplicationsCreate.js"; -import { atsApplicationsList } from "../funcs/atsApplicationsList.js"; -import { atsApplicationsRetrieve } from "../funcs/atsApplicationsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Applications extends ClientSDK { - /** - * List Applications - */ - async list( - request: operations.ListAtsApplicationRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsApplicationsList( - this, - request, - options, - )); - } - - /** - * Create Applications - * - * @remarks - * Create Applications in any supported Ats software - */ - async create( - request: operations.CreateAtsApplicationRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsApplicationsCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Applications - * - * @remarks - * Retrieve Applications from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsApplicationRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsApplicationsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/ats.ts b/src/sdk/ats.ts deleted file mode 100644 index bd45880e..00000000 --- a/src/sdk/ats.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Activities } from "./activities.js"; -import { Applications } from "./applications.js"; -import { Attachments } from "./attachments.js"; -import { Candidates } from "./candidates.js"; -import { Departments } from "./departments.js"; -import { Eeocs } from "./eeocs.js"; -import { Interviews } from "./interviews.js"; -import { Jobinterviewstages } from "./jobinterviewstages.js"; -import { Jobs } from "./jobs.js"; -import { Offers } from "./offers.js"; -import { Offices } from "./offices.js"; -import { PanoraAtsUsers } from "./panoraatsusers.js"; -import { PanoraTags } from "./panoratags.js"; -import { Rejectreasons } from "./rejectreasons.js"; -import { Scorecards } from "./scorecards.js"; - -export class Ats extends ClientSDK { - private _activities?: Activities; - get activities(): Activities { - return (this._activities ??= new Activities(this.options$)); - } - - private _applications?: Applications; - get applications(): Applications { - return (this._applications ??= new Applications(this.options$)); - } - - private _attachments?: Attachments; - get attachments(): Attachments { - return (this._attachments ??= new Attachments(this.options$)); - } - - private _candidates?: Candidates; - get candidates(): Candidates { - return (this._candidates ??= new Candidates(this.options$)); - } - - private _departments?: Departments; - get departments(): Departments { - return (this._departments ??= new Departments(this.options$)); - } - - private _interviews?: Interviews; - get interviews(): Interviews { - return (this._interviews ??= new Interviews(this.options$)); - } - - private _jobinterviewstages?: Jobinterviewstages; - get jobinterviewstages(): Jobinterviewstages { - return (this._jobinterviewstages ??= new Jobinterviewstages(this.options$)); - } - - private _jobs?: Jobs; - get jobs(): Jobs { - return (this._jobs ??= new Jobs(this.options$)); - } - - private _offers?: Offers; - get offers(): Offers { - return (this._offers ??= new Offers(this.options$)); - } - - private _offices?: Offices; - get offices(): Offices { - return (this._offices ??= new Offices(this.options$)); - } - - private _rejectreasons?: Rejectreasons; - get rejectreasons(): Rejectreasons { - return (this._rejectreasons ??= new Rejectreasons(this.options$)); - } - - private _scorecards?: Scorecards; - get scorecards(): Scorecards { - return (this._scorecards ??= new Scorecards(this.options$)); - } - - private _tags?: PanoraTags; - get tags(): PanoraTags { - return (this._tags ??= new PanoraTags(this.options$)); - } - - private _users?: PanoraAtsUsers; - get users(): PanoraAtsUsers { - return (this._users ??= new PanoraAtsUsers(this.options$)); - } - - private _eeocs?: Eeocs; - get eeocs(): Eeocs { - return (this._eeocs ??= new Eeocs(this.options$)); - } -} diff --git a/src/sdk/attachments.ts b/src/sdk/attachments.ts index 210be987..5c80d937 100644 --- a/src/sdk/attachments.ts +++ b/src/sdk/attachments.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { atsAttachmentsCreate } from "../funcs/atsAttachmentsCreate.js"; -import { atsAttachmentsList } from "../funcs/atsAttachmentsList.js"; -import { atsAttachmentsRetrieve } from "../funcs/atsAttachmentsRetrieve.js"; +import { accountingAttachmentsCreate } from "../funcs/accountingAttachmentsCreate.js"; +import { accountingAttachmentsList } from "../funcs/accountingAttachmentsList.js"; +import { accountingAttachmentsRetrieve } from "../funcs/accountingAttachmentsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -16,10 +16,10 @@ export class Attachments extends ClientSDK { * List Attachments */ async list( - request: operations.ListAtsAttachmentRequest, + request: operations.ListAccountingAttachmentsRequest, options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsAttachmentsList( + ): Promise> { + return unwrapResultIterator(accountingAttachmentsList( this, request, options, @@ -30,13 +30,13 @@ export class Attachments extends ClientSDK { * Create Attachments * * @remarks - * Create Attachments in any supported ATS software + * Create attachments in any supported Accounting software */ async create( - request: operations.CreateAtsAttachmentRequest, + request: operations.CreateAccountingAttachmentRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(atsAttachmentsCreate( + ): Promise { + return unwrapAsync(accountingAttachmentsCreate( this, request, options, @@ -47,13 +47,13 @@ export class Attachments extends ClientSDK { * Retrieve Attachments * * @remarks - * Retrieve Attachments from any connected Ats software + * Retrieve attachments from any connected Accounting software */ async retrieve( - request: operations.RetrieveAtsAttachmentRequest, + request: operations.RetrieveAccountingAttachmentRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(atsAttachmentsRetrieve( + ): Promise { + return unwrapAsync(accountingAttachmentsRetrieve( this, request, options, diff --git a/src/sdk/auth.ts b/src/sdk/auth.ts index 9408e6f7..12f33d0b 100644 --- a/src/sdk/auth.ts +++ b/src/sdk/auth.ts @@ -8,6 +8,6 @@ import { Login } from "./login.js"; export class Auth extends ClientSDK { private _login?: Login; get login(): Login { - return (this._login ??= new Login(this.options$)); + return (this._login ??= new Login(this._options)); } } diff --git a/src/sdk/bankinfos.ts b/src/sdk/bankinfos.ts deleted file mode 100644 index 3d37e5ff..00000000 --- a/src/sdk/bankinfos.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisBankinfosList } from "../funcs/hrisBankinfosList.js"; -import { hrisBankinfosRetrieve } from "../funcs/hrisBankinfosRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Bankinfos extends ClientSDK { - /** - * List Bank Info - */ - async list( - request: operations.ListHrisBankInfoRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisBankinfosList( - this, - request, - options, - )); - } - - /** - * Retrieve Bank Info - * - * @remarks - * Retrieve Bank Info from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisBankInfoRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisBankinfosRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/benefits.ts b/src/sdk/benefits.ts deleted file mode 100644 index 4aff74c9..00000000 --- a/src/sdk/benefits.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisBenefitsList } from "../funcs/hrisBenefitsList.js"; -import { hrisBenefitsRetrieve } from "../funcs/hrisBenefitsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Benefits extends ClientSDK { - /** - * List Benefits - */ - async list( - request: operations.ListHrisBenefitsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisBenefitsList( - this, - request, - options, - )); - } - - /** - * Retrieve Benefit - * - * @remarks - * Retrieve a Benefit from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisBenefitRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisBenefitsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/candidates.ts b/src/sdk/candidates.ts deleted file mode 100644 index 6cd8a445..00000000 --- a/src/sdk/candidates.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsCandidatesCreate } from "../funcs/atsCandidatesCreate.js"; -import { atsCandidatesList } from "../funcs/atsCandidatesList.js"; -import { atsCandidatesRetrieve } from "../funcs/atsCandidatesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Candidates extends ClientSDK { - /** - * List Candidates - */ - async list( - request: operations.ListAtsCandidateRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsCandidatesList( - this, - request, - options, - )); - } - - /** - * Create Candidates - * - * @remarks - * Create Candidates in any supported Ats software - */ - async create( - request: operations.CreateAtsCandidateRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsCandidatesCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Candidates - * - * @remarks - * Retrieve Candidates from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsCandidateRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsCandidatesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/crm.ts b/src/sdk/crm.ts index 08e655de..8751a492 100644 --- a/src/sdk/crm.ts +++ b/src/sdk/crm.ts @@ -15,41 +15,41 @@ import { Tasks } from "./tasks.js"; export class Crm extends ClientSDK { private _companies?: Companies; get companies(): Companies { - return (this._companies ??= new Companies(this.options$)); + return (this._companies ??= new Companies(this._options)); } private _contacts?: PanoraContacts; get contacts(): PanoraContacts { - return (this._contacts ??= new PanoraContacts(this.options$)); + return (this._contacts ??= new PanoraContacts(this._options)); } private _deals?: Deals; get deals(): Deals { - return (this._deals ??= new Deals(this.options$)); + return (this._deals ??= new Deals(this._options)); } private _engagements?: Engagements; get engagements(): Engagements { - return (this._engagements ??= new Engagements(this.options$)); + return (this._engagements ??= new Engagements(this._options)); } private _notes?: Notes; get notes(): Notes { - return (this._notes ??= new Notes(this.options$)); + return (this._notes ??= new Notes(this._options)); } private _stages?: Stages; get stages(): Stages { - return (this._stages ??= new Stages(this.options$)); + return (this._stages ??= new Stages(this._options)); } private _tasks?: Tasks; get tasks(): Tasks { - return (this._tasks ??= new Tasks(this.options$)); + return (this._tasks ??= new Tasks(this._options)); } private _users?: PanoraUsers; get users(): PanoraUsers { - return (this._users ??= new PanoraUsers(this.options$)); + return (this._users ??= new PanoraUsers(this._options)); } } diff --git a/src/sdk/departments.ts b/src/sdk/departments.ts deleted file mode 100644 index 0808f66e..00000000 --- a/src/sdk/departments.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsDepartmentsList } from "../funcs/atsDepartmentsList.js"; -import { atsDepartmentsRetrieve } from "../funcs/atsDepartmentsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Departments extends ClientSDK { - /** - * List Departments - */ - async list( - request: operations.ListAtsDepartmentsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsDepartmentsList( - this, - request, - options, - )); - } - - /** - * Retrieve Departments - * - * @remarks - * Retrieve Departments from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsDepartmentRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsDepartmentsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/dependents.ts b/src/sdk/dependents.ts deleted file mode 100644 index 2d0c54d8..00000000 --- a/src/sdk/dependents.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisDependentsList } from "../funcs/hrisDependentsList.js"; -import { hrisDependentsRetrieve } from "../funcs/hrisDependentsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Dependents extends ClientSDK { - /** - * List Dependents - */ - async list( - request: operations.ListHrisDependentsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisDependentsList( - this, - request, - options, - )); - } - - /** - * Retrieve Dependent - * - * @remarks - * Retrieve a Dependent from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisDependentRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisDependentsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/ecommerce.ts b/src/sdk/ecommerce.ts index c3f08d50..73dea79a 100644 --- a/src/sdk/ecommerce.ts +++ b/src/sdk/ecommerce.ts @@ -11,21 +11,21 @@ import { Products } from "./products.js"; export class Ecommerce extends ClientSDK { private _products?: Products; get products(): Products { - return (this._products ??= new Products(this.options$)); + return (this._products ??= new Products(this._options)); } private _orders?: Orders; get orders(): Orders { - return (this._orders ??= new Orders(this.options$)); + return (this._orders ??= new Orders(this._options)); } private _customers?: Customers; get customers(): Customers { - return (this._customers ??= new Customers(this.options$)); + return (this._customers ??= new Customers(this._options)); } private _fulfillments?: Fulfillments; get fulfillments(): Fulfillments { - return (this._fulfillments ??= new Fulfillments(this.options$)); + return (this._fulfillments ??= new Fulfillments(this._options)); } } diff --git a/src/sdk/eeocs.ts b/src/sdk/eeocs.ts deleted file mode 100644 index 8ea69468..00000000 --- a/src/sdk/eeocs.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsEeocsList } from "../funcs/atsEeocsList.js"; -import { atsEeocsRetrieve } from "../funcs/atsEeocsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Eeocs extends ClientSDK { - /** - * List Eeocss - */ - async list( - request: operations.ListAtsEeocsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsEeocsList( - this, - request, - options, - )); - } - - /** - * Retrieve Eeocs - * - * @remarks - * Retrieve a eeocs from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsEeocsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsEeocsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/employeepayrollruns.ts b/src/sdk/employeepayrollruns.ts deleted file mode 100644 index 28f9d8eb..00000000 --- a/src/sdk/employeepayrollruns.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisEmployeepayrollrunsList } from "../funcs/hrisEmployeepayrollrunsList.js"; -import { hrisEmployeepayrollrunsRetrieve } from "../funcs/hrisEmployeepayrollrunsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Employeepayrollruns extends ClientSDK { - /** - * List Employee Payroll Runs - */ - async list( - request: operations.ListHrisEmployeePayrollRunRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisEmployeepayrollrunsList( - this, - request, - options, - )); - } - - /** - * Retrieve Employee Payroll Run - * - * @remarks - * Retrieve Employee Payroll Run from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisEmployeePayrollRunRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisEmployeepayrollrunsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/employees.ts b/src/sdk/employees.ts deleted file mode 100644 index 1b81fc77..00000000 --- a/src/sdk/employees.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisEmployeesCreate } from "../funcs/hrisEmployeesCreate.js"; -import { hrisEmployeesList } from "../funcs/hrisEmployeesList.js"; -import { hrisEmployeesRetrieve } from "../funcs/hrisEmployeesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Employees extends ClientSDK { - /** - * List Employees - */ - async list( - request: operations.ListHrisEmployeesRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisEmployeesList( - this, - request, - options, - )); - } - - /** - * Create Employees - * - * @remarks - * Create Employees in any supported Hris software - */ - async create( - request: operations.CreateHrisEmployeeRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisEmployeesCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Employee - * - * @remarks - * Retrieve an Employee from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisEmployeeRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisEmployeesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/employerbenefits.ts b/src/sdk/employerbenefits.ts deleted file mode 100644 index 1002d511..00000000 --- a/src/sdk/employerbenefits.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisEmployerbenefitsList } from "../funcs/hrisEmployerbenefitsList.js"; -import { hrisEmployerbenefitsRetrieve } from "../funcs/hrisEmployerbenefitsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Employerbenefits extends ClientSDK { - /** - * List Employer Benefits - */ - async list( - request: operations.ListHrisEmployerBenefitsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisEmployerbenefitsList( - this, - request, - options, - )); - } - - /** - * Retrieve Employer Benefit - * - * @remarks - * Retrieve an Employer Benefit from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisEmployerBenefitRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisEmployerbenefitsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/employments.ts b/src/sdk/employments.ts deleted file mode 100644 index 1fcbf42e..00000000 --- a/src/sdk/employments.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisEmploymentsList } from "../funcs/hrisEmploymentsList.js"; -import { hrisEmploymentsRetrieve } from "../funcs/hrisEmploymentsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Employments extends ClientSDK { - /** - * List Employments - */ - async list( - request: operations.ListHrisEmploymentsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisEmploymentsList( - this, - request, - options, - )); - } - - /** - * Retrieve Employment - * - * @remarks - * Retrieve an Employment from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisEmploymentRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisEmploymentsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/filestorage.ts b/src/sdk/filestorage.ts index 0cf4c410..feee1906 100644 --- a/src/sdk/filestorage.ts +++ b/src/sdk/filestorage.ts @@ -5,27 +5,27 @@ import { ClientSDK } from "../lib/sdks.js"; import { Files } from "./files.js"; import { Folders } from "./folders.js"; +import { Groups } from "./groups.js"; import { PanoraFilestorageUsers } from "./panorafilestorageusers.js"; -import { PanoraGroups } from "./panoragroups.js"; export class Filestorage extends ClientSDK { private _files?: Files; get files(): Files { - return (this._files ??= new Files(this.options$)); + return (this._files ??= new Files(this._options)); } private _folders?: Folders; get folders(): Folders { - return (this._folders ??= new Folders(this.options$)); + return (this._folders ??= new Folders(this._options)); } - private _groups?: PanoraGroups; - get groups(): PanoraGroups { - return (this._groups ??= new PanoraGroups(this.options$)); + private _groups?: Groups; + get groups(): Groups { + return (this._groups ??= new Groups(this._options)); } private _users?: PanoraFilestorageUsers; get users(): PanoraFilestorageUsers { - return (this._users ??= new PanoraFilestorageUsers(this.options$)); + return (this._users ??= new PanoraFilestorageUsers(this._options)); } } diff --git a/src/sdk/groups.ts b/src/sdk/groups.ts index e37b252b..dade155a 100644 --- a/src/sdk/groups.ts +++ b/src/sdk/groups.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { hrisGroupsList } from "../funcs/hrisGroupsList.js"; -import { hrisGroupsRetrieve } from "../funcs/hrisGroupsRetrieve.js"; +import { filestorageGroupsList } from "../funcs/filestorageGroupsList.js"; +import { filestorageGroupsRetrieve } from "../funcs/filestorageGroupsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -12,13 +12,13 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Groups extends ClientSDK { /** - * List Groups + * List Groups */ async list( - request: operations.ListHrisGroupsRequest, + request: operations.ListFilestorageGroupRequest, options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisGroupsList( + ): Promise> { + return unwrapResultIterator(filestorageGroupsList( this, request, options, @@ -26,16 +26,16 @@ export class Groups extends ClientSDK { } /** - * Retrieve Group + * Retrieve Groups * * @remarks - * Retrieve a Group from any connected Hris software + * Retrieve Groups from any connected Filestorage software */ async retrieve( - request: operations.RetrieveHrisGroupRequest, + request: operations.RetrieveFilestorageGroupRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisGroupsRetrieve( + ): Promise { + return unwrapAsync(filestorageGroupsRetrieve( this, request, options, diff --git a/src/sdk/hris.ts b/src/sdk/hris.ts deleted file mode 100644 index 9e136392..00000000 --- a/src/sdk/hris.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Bankinfos } from "./bankinfos.js"; -import { Benefits } from "./benefits.js"; -import { Dependents } from "./dependents.js"; -import { Employeepayrollruns } from "./employeepayrollruns.js"; -import { Employees } from "./employees.js"; -import { Employerbenefits } from "./employerbenefits.js"; -import { Employments } from "./employments.js"; -import { Groups } from "./groups.js"; -import { Locations } from "./locations.js"; -import { PanoraCompanies } from "./panoracompanies.js"; -import { Paygroups } from "./paygroups.js"; -import { Payrollruns } from "./payrollruns.js"; -import { Timeoffbalances } from "./timeoffbalances.js"; -import { Timeoffs } from "./timeoffs.js"; -import { Timesheetentries } from "./timesheetentries.js"; - -export class Hris extends ClientSDK { - private _bankinfos?: Bankinfos; - get bankinfos(): Bankinfos { - return (this._bankinfos ??= new Bankinfos(this.options$)); - } - - private _benefits?: Benefits; - get benefits(): Benefits { - return (this._benefits ??= new Benefits(this.options$)); - } - - private _companies?: PanoraCompanies; - get companies(): PanoraCompanies { - return (this._companies ??= new PanoraCompanies(this.options$)); - } - - private _dependents?: Dependents; - get dependents(): Dependents { - return (this._dependents ??= new Dependents(this.options$)); - } - - private _employeepayrollruns?: Employeepayrollruns; - get employeepayrollruns(): Employeepayrollruns { - return (this._employeepayrollruns ??= new Employeepayrollruns( - this.options$, - )); - } - - private _employees?: Employees; - get employees(): Employees { - return (this._employees ??= new Employees(this.options$)); - } - - private _employerbenefits?: Employerbenefits; - get employerbenefits(): Employerbenefits { - return (this._employerbenefits ??= new Employerbenefits(this.options$)); - } - - private _employments?: Employments; - get employments(): Employments { - return (this._employments ??= new Employments(this.options$)); - } - - private _groups?: Groups; - get groups(): Groups { - return (this._groups ??= new Groups(this.options$)); - } - - private _locations?: Locations; - get locations(): Locations { - return (this._locations ??= new Locations(this.options$)); - } - - private _paygroups?: Paygroups; - get paygroups(): Paygroups { - return (this._paygroups ??= new Paygroups(this.options$)); - } - - private _payrollruns?: Payrollruns; - get payrollruns(): Payrollruns { - return (this._payrollruns ??= new Payrollruns(this.options$)); - } - - private _timeoffs?: Timeoffs; - get timeoffs(): Timeoffs { - return (this._timeoffs ??= new Timeoffs(this.options$)); - } - - private _timeoffbalances?: Timeoffbalances; - get timeoffbalances(): Timeoffbalances { - return (this._timeoffbalances ??= new Timeoffbalances(this.options$)); - } - - private _timesheetentries?: Timesheetentries; - get timesheetentries(): Timesheetentries { - return (this._timesheetentries ??= new Timesheetentries(this.options$)); - } -} diff --git a/src/sdk/interviews.ts b/src/sdk/interviews.ts deleted file mode 100644 index 2035e5e8..00000000 --- a/src/sdk/interviews.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsInterviewsCreate } from "../funcs/atsInterviewsCreate.js"; -import { atsInterviewsList } from "../funcs/atsInterviewsList.js"; -import { atsInterviewsRetrieve } from "../funcs/atsInterviewsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Interviews extends ClientSDK { - /** - * List Interviews - */ - async list( - request: operations.ListAtsInterviewRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsInterviewsList( - this, - request, - options, - )); - } - - /** - * Create Interviews - * - * @remarks - * Create Interviews in any supported Ats software - */ - async create( - request: operations.CreateAtsInterviewRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsInterviewsCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Interviews - * - * @remarks - * Retrieve Interviews from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsInterviewRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsInterviewsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/jobinterviewstages.ts b/src/sdk/jobinterviewstages.ts deleted file mode 100644 index 548bd476..00000000 --- a/src/sdk/jobinterviewstages.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsJobinterviewstagesList } from "../funcs/atsJobinterviewstagesList.js"; -import { atsJobinterviewstagesRetrieve } from "../funcs/atsJobinterviewstagesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Jobinterviewstages extends ClientSDK { - /** - * List JobInterviewStages - */ - async list( - request: operations.ListAtsJobInterviewStageRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsJobinterviewstagesList( - this, - request, - options, - )); - } - - /** - * Retrieve Job Interview Stages - * - * @remarks - * Retrieve Job Interview Stages from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsJobInterviewStageRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsJobinterviewstagesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/jobs.ts b/src/sdk/jobs.ts deleted file mode 100644 index f53b38a3..00000000 --- a/src/sdk/jobs.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsJobsList } from "../funcs/atsJobsList.js"; -import { atsJobsRetrieve } from "../funcs/atsJobsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Jobs extends ClientSDK { - /** - * List Jobs - */ - async list( - request: operations.ListAtsJobRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsJobsList( - this, - request, - options, - )); - } - - /** - * Retrieve Jobs - * - * @remarks - * Retrieve Jobs from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsJobRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsJobsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/locations.ts b/src/sdk/locations.ts deleted file mode 100644 index 3e17d9da..00000000 --- a/src/sdk/locations.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisLocationsList } from "../funcs/hrisLocationsList.js"; -import { hrisLocationsRetrieve } from "../funcs/hrisLocationsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Locations extends ClientSDK { - /** - * List Locations - */ - async list( - request: operations.ListHrisLocationsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisLocationsList( - this, - request, - options, - )); - } - - /** - * Retrieve Location - * - * @remarks - * Retrieve a Location from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisLocationRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisLocationsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/marketingautomation.ts b/src/sdk/marketingautomation.ts index cedb4ec1..2a86b495 100644 --- a/src/sdk/marketingautomation.ts +++ b/src/sdk/marketingautomation.ts @@ -17,53 +17,53 @@ import { Templates } from "./templates.js"; export class Marketingautomation extends ClientSDK { private _actions?: Actions; get actions(): Actions { - return (this._actions ??= new Actions(this.options$)); + return (this._actions ??= new Actions(this._options)); } private _automations?: Automations; get automations(): Automations { - return (this._automations ??= new Automations(this.options$)); + return (this._automations ??= new Automations(this._options)); } private _campaigns?: Campaigns; get campaigns(): Campaigns { - return (this._campaigns ??= new Campaigns(this.options$)); + return (this._campaigns ??= new Campaigns(this._options)); } private _contacts?: PanoraMarketingautomationContacts; get contacts(): PanoraMarketingautomationContacts { return (this._contacts ??= new PanoraMarketingautomationContacts( - this.options$, + this._options, )); } private _emails?: Emails; get emails(): Emails { - return (this._emails ??= new Emails(this.options$)); + return (this._emails ??= new Emails(this._options)); } private _events?: PanoraEvents; get events(): PanoraEvents { - return (this._events ??= new PanoraEvents(this.options$)); + return (this._events ??= new PanoraEvents(this._options)); } private _lists?: Lists; get lists(): Lists { - return (this._lists ??= new Lists(this.options$)); + return (this._lists ??= new Lists(this._options)); } private _messages?: Messages; get messages(): Messages { - return (this._messages ??= new Messages(this.options$)); + return (this._messages ??= new Messages(this._options)); } private _templates?: Templates; get templates(): Templates { - return (this._templates ??= new Templates(this.options$)); + return (this._templates ??= new Templates(this._options)); } private _users?: PanoraMarketingautomationUsers; get users(): PanoraMarketingautomationUsers { - return (this._users ??= new PanoraMarketingautomationUsers(this.options$)); + return (this._users ??= new PanoraMarketingautomationUsers(this._options)); } } diff --git a/src/sdk/offers.ts b/src/sdk/offers.ts deleted file mode 100644 index 2852447b..00000000 --- a/src/sdk/offers.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsOffersList } from "../funcs/atsOffersList.js"; -import { atsOffersRetrieve } from "../funcs/atsOffersRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Offers extends ClientSDK { - /** - * List Offers - */ - async list( - request: operations.ListAtsOfferRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsOffersList( - this, - request, - options, - )); - } - - /** - * Retrieve Offers - * - * @remarks - * Retrieve Offers from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsOfferRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsOffersRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/offices.ts b/src/sdk/offices.ts deleted file mode 100644 index 2b9a377a..00000000 --- a/src/sdk/offices.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsOfficesList } from "../funcs/atsOfficesList.js"; -import { atsOfficesRetrieve } from "../funcs/atsOfficesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Offices extends ClientSDK { - /** - * List Offices - */ - async list( - request: operations.ListAtsOfficeRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsOfficesList( - this, - request, - options, - )); - } - - /** - * Retrieve Offices - * - * @remarks - * Retrieve Offices from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsOfficeRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsOfficesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/panoraatsusers.ts b/src/sdk/panoraatsusers.ts deleted file mode 100644 index fa56818b..00000000 --- a/src/sdk/panoraatsusers.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsUsersList } from "../funcs/atsUsersList.js"; -import { atsUsersRetrieve } from "../funcs/atsUsersRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PanoraAtsUsers extends ClientSDK { - /** - * List Users - */ - async list( - request: operations.ListAtsUsersRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsUsersList( - this, - request, - options, - )); - } - - /** - * Retrieve Users - * - * @remarks - * Retrieve Users from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsUserRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsUsersRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/panoraattachments.ts b/src/sdk/panoraattachments.ts index 0b3cde65..e99b611d 100644 --- a/src/sdk/panoraattachments.ts +++ b/src/sdk/panoraattachments.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { accountingAttachmentsCreate } from "../funcs/accountingAttachmentsCreate.js"; -import { accountingAttachmentsList } from "../funcs/accountingAttachmentsList.js"; -import { accountingAttachmentsRetrieve } from "../funcs/accountingAttachmentsRetrieve.js"; +import { ticketingAttachmentsCreate } from "../funcs/ticketingAttachmentsCreate.js"; +import { ticketingAttachmentsList } from "../funcs/ticketingAttachmentsList.js"; +import { ticketingAttachmentsRetrieve } from "../funcs/ticketingAttachmentsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -16,10 +16,10 @@ export class PanoraAttachments extends ClientSDK { * List Attachments */ async list( - request: operations.ListAccountingAttachmentsRequest, + request: operations.ListTicketingAttachmentsRequest, options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(accountingAttachmentsList( + ): Promise> { + return unwrapResultIterator(ticketingAttachmentsList( this, request, options, @@ -30,13 +30,13 @@ export class PanoraAttachments extends ClientSDK { * Create Attachments * * @remarks - * Create attachments in any supported Accounting software + * Create Attachments in any supported Ticketing software */ async create( - request: operations.CreateAccountingAttachmentRequest, + request: operations.CreateTicketingAttachmentRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(accountingAttachmentsCreate( + ): Promise { + return unwrapAsync(ticketingAttachmentsCreate( this, request, options, @@ -47,13 +47,13 @@ export class PanoraAttachments extends ClientSDK { * Retrieve Attachments * * @remarks - * Retrieve attachments from any connected Accounting software + * Retrieve Attachments from any connected Ticketing software */ async retrieve( - request: operations.RetrieveAccountingAttachmentRequest, + request: operations.RetrieveTicketingAttachmentRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(accountingAttachmentsRetrieve( + ): Promise { + return unwrapAsync(ticketingAttachmentsRetrieve( this, request, options, diff --git a/src/sdk/panoracompanies.ts b/src/sdk/panoracompanies.ts deleted file mode 100644 index 2c0875f9..00000000 --- a/src/sdk/panoracompanies.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisCompaniesList } from "../funcs/hrisCompaniesList.js"; -import { hrisCompaniesRetrieve } from "../funcs/hrisCompaniesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PanoraCompanies extends ClientSDK { - /** - * List Companies - */ - async list( - request: operations.ListHrisCompaniesRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisCompaniesList( - this, - request, - options, - )); - } - - /** - * Retrieve Company - * - * @remarks - * Retrieve a Company from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisCompanyRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisCompaniesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/panoragroups.ts b/src/sdk/panoragroups.ts deleted file mode 100644 index 5ed79032..00000000 --- a/src/sdk/panoragroups.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { filestorageGroupsList } from "../funcs/filestorageGroupsList.js"; -import { filestorageGroupsRetrieve } from "../funcs/filestorageGroupsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PanoraGroups extends ClientSDK { - /** - * List Groups - */ - async list( - request: operations.ListFilestorageGroupRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(filestorageGroupsList( - this, - request, - options, - )); - } - - /** - * Retrieve Groups - * - * @remarks - * Retrieve Groups from any connected Filestorage software - */ - async retrieve( - request: operations.RetrieveFilestorageGroupRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(filestorageGroupsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/panoratags.ts b/src/sdk/panoratags.ts deleted file mode 100644 index ce24b7ba..00000000 --- a/src/sdk/panoratags.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsTagsList } from "../funcs/atsTagsList.js"; -import { atsTagsRetrieve } from "../funcs/atsTagsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PanoraTags extends ClientSDK { - /** - * List Tags - */ - async list( - request: operations.ListAtsTagsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsTagsList( - this, - request, - options, - )); - } - - /** - * Retrieve Tags - * - * @remarks - * Retrieve Tags from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsTagRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsTagsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/panoraticketingattachments.ts b/src/sdk/panoraticketingattachments.ts deleted file mode 100644 index 1300d4a2..00000000 --- a/src/sdk/panoraticketingattachments.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ticketingAttachmentsCreate } from "../funcs/ticketingAttachmentsCreate.js"; -import { ticketingAttachmentsList } from "../funcs/ticketingAttachmentsList.js"; -import { ticketingAttachmentsRetrieve } from "../funcs/ticketingAttachmentsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PanoraTicketingAttachments extends ClientSDK { - /** - * List Attachments - */ - async list( - request: operations.ListTicketingAttachmentsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(ticketingAttachmentsList( - this, - request, - options, - )); - } - - /** - * Create Attachments - * - * @remarks - * Create Attachments in any supported Ticketing software - */ - async create( - request: operations.CreateTicketingAttachmentRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(ticketingAttachmentsCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Attachments - * - * @remarks - * Retrieve Attachments from any connected Ticketing software - */ - async retrieve( - request: operations.RetrieveTicketingAttachmentRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(ticketingAttachmentsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/passthrough.ts b/src/sdk/passthrough.ts index 217f7148..f1e41f95 100644 --- a/src/sdk/passthrough.ts +++ b/src/sdk/passthrough.ts @@ -11,7 +11,7 @@ import { Retryid } from "./retryid.js"; export class Passthrough extends ClientSDK { private _retryid?: Retryid; get retryid(): Retryid { - return (this._retryid ??= new Retryid(this.options$)); + return (this._retryid ??= new Retryid(this._options)); } /** @@ -20,7 +20,7 @@ export class Passthrough extends ClientSDK { async request( request: operations.RequestRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(passthroughRequest( this, request, diff --git a/src/sdk/paygroups.ts b/src/sdk/paygroups.ts deleted file mode 100644 index f93e0586..00000000 --- a/src/sdk/paygroups.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisPaygroupsList } from "../funcs/hrisPaygroupsList.js"; -import { hrisPaygroupsRetrieve } from "../funcs/hrisPaygroupsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Paygroups extends ClientSDK { - /** - * List Pay Groups - */ - async list( - request: operations.ListHrisPaygroupsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisPaygroupsList( - this, - request, - options, - )); - } - - /** - * Retrieve Pay Group - * - * @remarks - * Retrieve a Pay Group from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisPaygroupRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisPaygroupsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/payrollruns.ts b/src/sdk/payrollruns.ts deleted file mode 100644 index 99bf495a..00000000 --- a/src/sdk/payrollruns.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisPayrollrunsList } from "../funcs/hrisPayrollrunsList.js"; -import { hrisPayrollrunsRetrieve } from "../funcs/hrisPayrollrunsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Payrollruns extends ClientSDK { - /** - * List Payroll Runs - */ - async list( - request: operations.ListHrisPayrollRunsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisPayrollrunsList( - this, - request, - options, - )); - } - - /** - * Retrieve Payroll Run - * - * @remarks - * Retrieve a Payroll Run from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisPayrollRunRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisPayrollrunsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/rejectreasons.ts b/src/sdk/rejectreasons.ts deleted file mode 100644 index 4e05bfd5..00000000 --- a/src/sdk/rejectreasons.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsRejectreasonsList } from "../funcs/atsRejectreasonsList.js"; -import { atsRejectreasonsRetrieve } from "../funcs/atsRejectreasonsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Rejectreasons extends ClientSDK { - /** - * List RejectReasons - */ - async list( - request: operations.ListAtsRejectReasonsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsRejectreasonsList( - this, - request, - options, - )); - } - - /** - * Retrieve Reject Reasons - * - * @remarks - * Retrieve Reject Reasons from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsRejectReasonRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsRejectreasonsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/scorecards.ts b/src/sdk/scorecards.ts deleted file mode 100644 index 37c4965c..00000000 --- a/src/sdk/scorecards.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { atsScorecardsList } from "../funcs/atsScorecardsList.js"; -import { atsScorecardsRetrieve } from "../funcs/atsScorecardsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Scorecards extends ClientSDK { - /** - * List ScoreCards - */ - async list( - request: operations.ListAtsScorecardRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(atsScorecardsList( - this, - request, - options, - )); - } - - /** - * Retrieve Score Cards - * - * @remarks - * Retrieve Score Cards from any connected Ats software - */ - async retrieve( - request: operations.RetrieveAtsScorecardRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(atsScorecardsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 2446a1c8..b4ff67f6 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -7,7 +7,6 @@ import { hello } from "../funcs/hello.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; import { Accounting } from "./accounting.js"; -import { Ats } from "./ats.js"; import { Auth } from "./auth.js"; import { Connections } from "./connections.js"; import { Crm } from "./crm.js"; @@ -15,7 +14,6 @@ import { Ecommerce } from "./ecommerce.js"; import { Events } from "./events.js"; import { FieldMappings } from "./fieldmappings.js"; import { Filestorage } from "./filestorage.js"; -import { Hris } from "./hris.js"; import { LinkedUsers } from "./linkedusers.js"; import { Marketingautomation } from "./marketingautomation.js"; import { Passthrough } from "./passthrough.js"; @@ -28,94 +26,84 @@ import { Webhooks } from "./webhooks.js"; export class Panora extends ClientSDK { private _rag?: Rag; get rag(): Rag { - return (this._rag ??= new Rag(this.options$)); + return (this._rag ??= new Rag(this._options)); } private _filestorage?: Filestorage; get filestorage(): Filestorage { - return (this._filestorage ??= new Filestorage(this.options$)); + return (this._filestorage ??= new Filestorage(this._options)); } private _auth?: Auth; get auth(): Auth { - return (this._auth ??= new Auth(this.options$)); + return (this._auth ??= new Auth(this._options)); } private _connections?: Connections; get connections(): Connections { - return (this._connections ??= new Connections(this.options$)); + return (this._connections ??= new Connections(this._options)); } private _webhooks?: Webhooks; get webhooks(): Webhooks { - return (this._webhooks ??= new Webhooks(this.options$)); + return (this._webhooks ??= new Webhooks(this._options)); } private _ticketing?: Ticketing; get ticketing(): Ticketing { - return (this._ticketing ??= new Ticketing(this.options$)); + return (this._ticketing ??= new Ticketing(this._options)); } private _sync?: Sync; get sync(): Sync { - return (this._sync ??= new Sync(this.options$)); + return (this._sync ??= new Sync(this._options)); } private _crm?: Crm; get crm(): Crm { - return (this._crm ??= new Crm(this.options$)); + return (this._crm ??= new Crm(this._options)); } private _linkedUsers?: LinkedUsers; get linkedUsers(): LinkedUsers { - return (this._linkedUsers ??= new LinkedUsers(this.options$)); + return (this._linkedUsers ??= new LinkedUsers(this._options)); } private _projects?: Projects; get projects(): Projects { - return (this._projects ??= new Projects(this.options$)); + return (this._projects ??= new Projects(this._options)); } private _fieldMappings?: FieldMappings; get fieldMappings(): FieldMappings { - return (this._fieldMappings ??= new FieldMappings(this.options$)); + return (this._fieldMappings ??= new FieldMappings(this._options)); } private _events?: Events; get events(): Events { - return (this._events ??= new Events(this.options$)); + return (this._events ??= new Events(this._options)); } private _passthrough?: Passthrough; get passthrough(): Passthrough { - return (this._passthrough ??= new Passthrough(this.options$)); - } - - private _hris?: Hris; - get hris(): Hris { - return (this._hris ??= new Hris(this.options$)); + return (this._passthrough ??= new Passthrough(this._options)); } private _marketingautomation?: Marketingautomation; get marketingautomation(): Marketingautomation { return (this._marketingautomation ??= new Marketingautomation( - this.options$, + this._options, )); } - private _ats?: Ats; - get ats(): Ats { - return (this._ats ??= new Ats(this.options$)); - } - private _accounting?: Accounting; get accounting(): Accounting { - return (this._accounting ??= new Accounting(this.options$)); + return (this._accounting ??= new Accounting(this._options)); } private _ecommerce?: Ecommerce; get ecommerce(): Ecommerce { - return (this._ecommerce ??= new Ecommerce(this.options$)); + return (this._ecommerce ??= new Ecommerce(this._options)); } async hello( diff --git a/src/sdk/sync.ts b/src/sdk/sync.ts index 18067249..7ce7a85d 100644 --- a/src/sdk/sync.ts +++ b/src/sdk/sync.ts @@ -44,7 +44,7 @@ export class Sync extends ClientSDK { async updatePullFrequency( request: components.UpdatePullFrequencyDto, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(syncUpdatePullFrequency( this, request, diff --git a/src/sdk/ticketing.ts b/src/sdk/ticketing.ts index b7ea236d..dd6f1e61 100644 --- a/src/sdk/ticketing.ts +++ b/src/sdk/ticketing.ts @@ -7,7 +7,7 @@ import { Accounts } from "./accounts.js"; import { Collections } from "./collections.js"; import { Comments } from "./comments.js"; import { Contacts } from "./contacts.js"; -import { PanoraTicketingAttachments } from "./panoraticketingattachments.js"; +import { PanoraAttachments } from "./panoraattachments.js"; import { Tags } from "./tags.js"; import { Teams } from "./teams.js"; import { Tickets } from "./tickets.js"; @@ -16,48 +16,46 @@ import { Users } from "./users.js"; export class Ticketing extends ClientSDK { private _tickets?: Tickets; get tickets(): Tickets { - return (this._tickets ??= new Tickets(this.options$)); + return (this._tickets ??= new Tickets(this._options)); } private _users?: Users; get users(): Users { - return (this._users ??= new Users(this.options$)); + return (this._users ??= new Users(this._options)); } private _accounts?: Accounts; get accounts(): Accounts { - return (this._accounts ??= new Accounts(this.options$)); + return (this._accounts ??= new Accounts(this._options)); } private _contacts?: Contacts; get contacts(): Contacts { - return (this._contacts ??= new Contacts(this.options$)); + return (this._contacts ??= new Contacts(this._options)); } private _collections?: Collections; get collections(): Collections { - return (this._collections ??= new Collections(this.options$)); + return (this._collections ??= new Collections(this._options)); } private _comments?: Comments; get comments(): Comments { - return (this._comments ??= new Comments(this.options$)); + return (this._comments ??= new Comments(this._options)); } private _tags?: Tags; get tags(): Tags { - return (this._tags ??= new Tags(this.options$)); + return (this._tags ??= new Tags(this._options)); } private _teams?: Teams; get teams(): Teams { - return (this._teams ??= new Teams(this.options$)); + return (this._teams ??= new Teams(this._options)); } - private _attachments?: PanoraTicketingAttachments; - get attachments(): PanoraTicketingAttachments { - return (this._attachments ??= new PanoraTicketingAttachments( - this.options$, - )); + private _attachments?: PanoraAttachments; + get attachments(): PanoraAttachments { + return (this._attachments ??= new PanoraAttachments(this._options)); } } diff --git a/src/sdk/timeoffbalances.ts b/src/sdk/timeoffbalances.ts deleted file mode 100644 index c1d15ce8..00000000 --- a/src/sdk/timeoffbalances.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisTimeoffbalancesList } from "../funcs/hrisTimeoffbalancesList.js"; -import { hrisTimeoffbalancesRetrieve } from "../funcs/hrisTimeoffbalancesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Timeoffbalances extends ClientSDK { - /** - * List TimeoffBalances - */ - async list( - request: operations.ListHrisTimeoffbalancesRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisTimeoffbalancesList( - this, - request, - options, - )); - } - - /** - * Retrieve Time off Balances - * - * @remarks - * Retrieve Time off Balances from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisTimeoffbalanceRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisTimeoffbalancesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/timeoffs.ts b/src/sdk/timeoffs.ts deleted file mode 100644 index 060c34e1..00000000 --- a/src/sdk/timeoffs.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisTimeoffsCreate } from "../funcs/hrisTimeoffsCreate.js"; -import { hrisTimeoffsList } from "../funcs/hrisTimeoffsList.js"; -import { hrisTimeoffsRetrieve } from "../funcs/hrisTimeoffsRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Timeoffs extends ClientSDK { - /** - * List Time Offs - */ - async list( - request: operations.ListHrisTimeoffsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisTimeoffsList( - this, - request, - options, - )); - } - - /** - * Create Timeoffs - * - * @remarks - * Create Timeoffs in any supported Hris software - */ - async create( - request: operations.CreateHrisTimeoffRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisTimeoffsCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Time Off - * - * @remarks - * Retrieve a Time Off from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisTimeoffRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisTimeoffsRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/timesheetentries.ts b/src/sdk/timesheetentries.ts deleted file mode 100644 index be5cd108..00000000 --- a/src/sdk/timesheetentries.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { hrisTimesheetentriesCreate } from "../funcs/hrisTimesheetentriesCreate.js"; -import { hrisTimesheetentriesList } from "../funcs/hrisTimesheetentriesList.js"; -import { hrisTimesheetentriesRetrieve } from "../funcs/hrisTimesheetentriesRetrieve.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Timesheetentries extends ClientSDK { - /** - * List Timesheetentries - */ - async list( - request: operations.ListHrisTimesheetentriesRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(hrisTimesheetentriesList( - this, - request, - options, - )); - } - - /** - * Create Timesheetentrys - * - * @remarks - * Create Timesheetentrys in any supported Hris software - */ - async create( - request: operations.CreateHrisTimesheetentryRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisTimesheetentriesCreate( - this, - request, - options, - )); - } - - /** - * Retrieve Timesheetentry - * - * @remarks - * Retrieve an Timesheetentry from any connected Hris software - */ - async retrieve( - request: operations.RetrieveHrisTimesheetentryRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(hrisTimesheetentriesRetrieve( - this, - request, - options, - )); - } -} diff --git a/src/sdk/webhooks.ts b/src/sdk/webhooks.ts index 1d66dd47..d8ef8d7e 100644 --- a/src/sdk/webhooks.ts +++ b/src/sdk/webhooks.ts @@ -45,7 +45,7 @@ export class Webhooks extends ClientSDK { async delete( request: operations.DeleteRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(webhooksDelete( this, request, @@ -59,7 +59,7 @@ export class Webhooks extends ClientSDK { async updateStatus( request: operations.UpdateStatusRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(webhooksUpdateStatus( this, request,