From b98774c2a7ac6080fb3cef8825ce3e367e9b268f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 6 Aug 2024 04:46:33 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.352.2 --- .speakeasy/gen.lock | 86 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- codeSamples.yaml | 3098 +++++++++-------- .../listaccountingaccountsresponse.md | 8 + .../listaccountingaddressresponse.md | 8 + .../listaccountingattachmentsresponse.md | 8 + .../listaccountingbalancesheetsresponse.md | 8 + ...listaccountingcashflowstatementresponse.md | 8 + .../listaccountingcompanyinfosresponse.md | 8 + .../listaccountingcontactsresponse.md | 8 + .../listaccountingcreditnoteresponse.md | 8 + .../listaccountingexpenseresponse.md | 8 + .../listaccountingincomestatementresponse.md | 8 + .../listaccountinginvoiceresponse.md | 8 + .../operations/listaccountingitemresponse.md | 8 + .../listaccountingjournalentryresponse.md | 8 + .../listaccountingpaymentresponse.md | 8 + .../listaccountingphonenumberresponse.md | 8 + .../listaccountingpurchaseorderresponse.md | 8 + .../listaccountingtaxrateresponse.md | 8 + ...listaccountingtrackingcategorysresponse.md | 8 + .../listaccountingtransactionresponse.md | 8 + .../listaccountingvendorcreditresponse.md | 8 + .../operations/listatsactivityresponse.md | 8 + .../operations/listatsapplicationresponse.md | 8 + .../operations/listatsattachmentresponse.md | 8 + .../operations/listatscandidateresponse.md | 8 + .../operations/listatsdepartmentsresponse.md | 8 + .../models/operations/listatseeocsresponse.md | 8 + .../operations/listatsinterviewresponse.md | 8 + .../listatsjobinterviewstageresponse.md | 8 + docs/models/operations/listatsjobresponse.md | 8 + .../models/operations/listatsofferresponse.md | 8 + .../operations/listatsofficeresponse.md | 8 + .../listatsrejectreasonsresponse.md | 8 + .../operations/listatsscorecardresponse.md | 8 + docs/models/operations/listatstagsresponse.md | 8 + .../models/operations/listatsusersresponse.md | 8 + .../operations/listcrmcompanyresponse.md | 8 + .../operations/listcrmcontactsresponse.md | 8 + .../models/operations/listcrmdealsresponse.md | 8 + .../operations/listcrmengagementsresponse.md | 8 + docs/models/operations/listcrmnoteresponse.md | 8 + .../operations/listcrmstagesresponse.md | 8 + docs/models/operations/listcrmtaskresponse.md | 8 + .../models/operations/listcrmusersresponse.md | 8 + .../listfilestoragedrivesresponse.md | 8 + .../operations/listfilestoragefileresponse.md | 8 + .../listfilestoragefolderresponse.md | 8 + .../listfilestoragegroupresponse.md | 8 + .../listfilestorageusersresponse.md | 8 + .../operations/listhrisbankinforesponse.md | 8 + .../operations/listhrisbenefitsresponse.md | 8 + .../operations/listhriscompaniesresponse.md | 8 + .../operations/listhrisdependentsresponse.md | 8 + .../listhrisemployeepayrollrunresponse.md | 8 + .../operations/listhrisemployeesresponse.md | 8 + .../listhrisemployerbenefitsresponse.md | 8 + .../operations/listhrisemploymentsresponse.md | 8 + .../operations/listhrisgroupsresponse.md | 8 + .../operations/listhrislocationsresponse.md | 8 + .../operations/listhrispaygroupsresponse.md | 8 + .../operations/listhrispayrollrunsresponse.md | 8 + .../listhristimeoffbalancesresponse.md | 8 + .../operations/listhristimeoffsresponse.md | 8 + .../listmarketingautomationactionresponse.md | 8 + ...tmarketingautomationautomationsresponse.md | 8 + ...istmarketingautomationcampaignsresponse.md | 8 + ...listmarketingautomationcontactsresponse.md | 8 + .../listmarketingautomationemailsresponse.md | 8 + .../listmarketingautomationeventsresponse.md | 8 + .../listmarketingautomationlistsresponse.md | 8 + ...listmarketingautomationmessagesresponse.md | 8 + ...istmarketingautomationtemplatesresponse.md | 8 + .../listmarketingautomationusersresponse.md | 8 + .../listticketingaccountresponse.md | 8 + .../listticketingattachmentsresponse.md | 8 + .../listticketingcollectionsresponse.md | 8 + .../listticketingcommentsresponse.md | 8 + .../listticketingcontactsresponse.md | 8 + .../operations/listticketingtagsresponse.md | 8 + .../operations/listticketingteamsresponse.md | 8 + .../operations/listticketingusersresponse.md | 8 + docs/sdks/accounts/README.md | 7 +- docs/sdks/actions/README.md | 7 +- docs/sdks/activities/README.md | 7 +- docs/sdks/addresses/README.md | 7 +- docs/sdks/applications/README.md | 7 +- docs/sdks/attachments/README.md | 7 +- docs/sdks/automations/README.md | 7 +- docs/sdks/balancesheets/README.md | 7 +- docs/sdks/bankinfos/README.md | 7 +- docs/sdks/benefits/README.md | 7 +- docs/sdks/campaigns/README.md | 7 +- docs/sdks/candidates/README.md | 7 +- docs/sdks/cashflowstatements/README.md | 7 +- docs/sdks/collections/README.md | 7 +- docs/sdks/comments/README.md | 7 +- docs/sdks/companies/README.md | 7 +- docs/sdks/companyinfos/README.md | 7 +- docs/sdks/contacts/README.md | 7 +- docs/sdks/creditnotes/README.md | 7 +- docs/sdks/deals/README.md | 7 +- docs/sdks/departments/README.md | 7 +- docs/sdks/dependents/README.md | 7 +- docs/sdks/drives/README.md | 7 +- docs/sdks/eeocs/README.md | 7 +- docs/sdks/emails/README.md | 7 +- docs/sdks/employeepayrollruns/README.md | 7 +- docs/sdks/employees/README.md | 7 +- docs/sdks/employerbenefits/README.md | 7 +- docs/sdks/employments/README.md | 7 +- docs/sdks/engagements/README.md | 7 +- docs/sdks/expenses/README.md | 7 +- docs/sdks/files/README.md | 7 +- docs/sdks/folders/README.md | 7 +- docs/sdks/groups/README.md | 7 +- docs/sdks/incomestatements/README.md | 7 +- docs/sdks/interviews/README.md | 7 +- docs/sdks/invoices/README.md | 7 +- docs/sdks/items/README.md | 7 +- docs/sdks/jobinterviewstages/README.md | 7 +- docs/sdks/jobs/README.md | 7 +- docs/sdks/journalentries/README.md | 7 +- docs/sdks/lists/README.md | 7 +- docs/sdks/locations/README.md | 7 +- docs/sdks/messages/README.md | 7 +- docs/sdks/notes/README.md | 7 +- docs/sdks/offers/README.md | 7 +- docs/sdks/offices/README.md | 7 +- docs/sdks/panoraaccountingcontacts/README.md | 7 +- docs/sdks/panoraaccounts/README.md | 7 +- docs/sdks/panoraatsusers/README.md | 7 +- docs/sdks/panoraattachments/README.md | 7 +- docs/sdks/panoracompanies/README.md | 7 +- docs/sdks/panoracontacts/README.md | 7 +- docs/sdks/panoraevents/README.md | 7 +- docs/sdks/panorafilestorageusers/README.md | 7 +- docs/sdks/panoragroups/README.md | 7 +- .../README.md | 7 +- .../panoramarketingautomationusers/README.md | 7 +- docs/sdks/panoratags/README.md | 7 +- .../sdks/panoraticketingattachments/README.md | 7 +- docs/sdks/panorausers/README.md | 7 +- docs/sdks/paygroups/README.md | 7 +- docs/sdks/payments/README.md | 7 +- docs/sdks/payrollruns/README.md | 7 +- docs/sdks/phonenumbers/README.md | 7 +- docs/sdks/purchaseorders/README.md | 7 +- docs/sdks/rejectreasons/README.md | 7 +- docs/sdks/scorecards/README.md | 7 +- docs/sdks/stages/README.md | 7 +- docs/sdks/tags/README.md | 7 +- docs/sdks/tasks/README.md | 7 +- docs/sdks/taxrates/README.md | 7 +- docs/sdks/teams/README.md | 7 +- docs/sdks/templates/README.md | 7 +- docs/sdks/timeoffbalances/README.md | 7 +- docs/sdks/timeoffs/README.md | 7 +- docs/sdks/trackingcategories/README.md | 7 +- docs/sdks/transactions/README.md | 7 +- docs/sdks/users/README.md | 7 +- docs/sdks/vendorcredits/README.md | 7 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/lib/config.ts | 4 +- .../operations/listaccountingaccounts.ts | 52 + .../operations/listaccountingaddress.ts | 52 + .../operations/listaccountingattachments.ts | 52 + .../operations/listaccountingbalancesheets.ts | 52 + .../listaccountingcashflowstatement.ts | 52 + .../operations/listaccountingcompanyinfos.ts | 52 + .../operations/listaccountingcontacts.ts | 52 + .../operations/listaccountingcreditnote.ts | 52 + .../operations/listaccountingexpense.ts | 52 + .../listaccountingincomestatement.ts | 52 + .../operations/listaccountinginvoice.ts | 52 + src/models/operations/listaccountingitem.ts | 52 + .../operations/listaccountingjournalentry.ts | 52 + .../operations/listaccountingpayment.ts | 52 + .../operations/listaccountingphonenumber.ts | 52 + .../operations/listaccountingpurchaseorder.ts | 52 + .../operations/listaccountingtaxrate.ts | 52 + .../listaccountingtrackingcategorys.ts | 52 + .../operations/listaccountingtransaction.ts | 52 + .../operations/listaccountingvendorcredit.ts | 52 + src/models/operations/listatsactivity.ts | 52 + src/models/operations/listatsapplication.ts | 52 + src/models/operations/listatsattachment.ts | 52 + src/models/operations/listatscandidate.ts | 52 + src/models/operations/listatsdepartments.ts | 52 + src/models/operations/listatseeocs.ts | 52 + src/models/operations/listatsinterview.ts | 52 + src/models/operations/listatsjob.ts | 52 + .../operations/listatsjobinterviewstage.ts | 52 + src/models/operations/listatsoffer.ts | 52 + src/models/operations/listatsoffice.ts | 52 + src/models/operations/listatsrejectreasons.ts | 52 + src/models/operations/listatsscorecard.ts | 52 + src/models/operations/listatstags.ts | 52 + src/models/operations/listatsusers.ts | 52 + src/models/operations/listcrmcompany.ts | 52 + src/models/operations/listcrmcontacts.ts | 52 + src/models/operations/listcrmdeals.ts | 52 + src/models/operations/listcrmengagements.ts | 52 + src/models/operations/listcrmnote.ts | 52 + src/models/operations/listcrmstages.ts | 52 + src/models/operations/listcrmtask.ts | 52 + src/models/operations/listcrmusers.ts | 52 + .../operations/listfilestoragedrives.ts | 52 + src/models/operations/listfilestoragefile.ts | 52 + .../operations/listfilestoragefolder.ts | 52 + src/models/operations/listfilestoragegroup.ts | 52 + src/models/operations/listfilestorageusers.ts | 52 + src/models/operations/listhrisbankinfo.ts | 52 + src/models/operations/listhrisbenefits.ts | 52 + src/models/operations/listhriscompanies.ts | 52 + src/models/operations/listhrisdependents.ts | 52 + .../operations/listhrisemployeepayrollrun.ts | 52 + src/models/operations/listhrisemployees.ts | 52 + .../operations/listhrisemployerbenefits.ts | 52 + src/models/operations/listhrisemployments.ts | 52 + src/models/operations/listhrisgroups.ts | 52 + src/models/operations/listhrislocations.ts | 52 + src/models/operations/listhrispaygroups.ts | 52 + src/models/operations/listhrispayrollruns.ts | 52 + .../operations/listhristimeoffbalances.ts | 52 + src/models/operations/listhristimeoffs.ts | 52 + .../listmarketingautomationaction.ts | 52 + .../listmarketingautomationautomations.ts | 52 + .../listmarketingautomationcampaigns.ts | 52 + .../listmarketingautomationcontacts.ts | 52 + .../listmarketingautomationemails.ts | 52 + .../listmarketingautomationevents.ts | 52 + .../listmarketingautomationlists.ts | 52 + .../listmarketingautomationmessages.ts | 52 + .../listmarketingautomationtemplates.ts | 52 + .../listmarketingautomationusers.ts | 52 + src/models/operations/listticketingaccount.ts | 52 + .../operations/listticketingattachments.ts | 52 + .../operations/listticketingcollections.ts | 52 + .../operations/listticketingcomments.ts | 52 + .../operations/listticketingcontacts.ts | 52 + src/models/operations/listticketingtags.ts | 52 + src/models/operations/listticketingteams.ts | 52 + src/models/operations/listticketingusers.ts | 52 + src/sdk/accounts.ts | 38 +- src/sdk/actions.ts | 40 +- src/sdk/activities.ts | 36 +- src/sdk/addresses.ts | 38 +- src/sdk/applications.ts | 38 +- src/sdk/attachments.ts | 38 +- src/sdk/automations.ts | 40 +- src/sdk/balancesheets.ts | 40 +- src/sdk/bankinfos.ts | 38 +- src/sdk/benefits.ts | 38 +- src/sdk/campaigns.ts | 40 +- src/sdk/candidates.ts | 38 +- src/sdk/cashflowstatements.ts | 40 +- src/sdk/collections.ts | 40 +- src/sdk/comments.ts | 38 +- src/sdk/companies.ts | 36 +- src/sdk/companyinfos.ts | 40 +- src/sdk/contacts.ts | 38 +- src/sdk/creditnotes.ts | 40 +- src/sdk/deals.ts | 36 +- src/sdk/departments.ts | 38 +- src/sdk/dependents.ts | 38 +- src/sdk/drives.ts | 38 +- src/sdk/eeocs.ts | 36 +- src/sdk/emails.ts | 40 +- src/sdk/employeepayrollruns.ts | 40 +- src/sdk/employees.ts | 38 +- src/sdk/employerbenefits.ts | 40 +- src/sdk/employments.ts | 38 +- src/sdk/engagements.ts | 38 +- src/sdk/expenses.ts | 38 +- src/sdk/files.ts | 38 +- src/sdk/folders.ts | 38 +- src/sdk/groups.ts | 36 +- src/sdk/incomestatements.ts | 40 +- src/sdk/interviews.ts | 38 +- src/sdk/invoices.ts | 38 +- src/sdk/items.ts | 38 +- src/sdk/jobinterviewstages.ts | 40 +- src/sdk/jobs.ts | 36 +- src/sdk/journalentries.ts | 40 +- src/sdk/lists.ts | 40 +- src/sdk/locations.ts | 38 +- src/sdk/messages.ts | 40 +- src/sdk/notes.ts | 36 +- src/sdk/offers.ts | 36 +- src/sdk/offices.ts | 36 +- src/sdk/panoraaccountingcontacts.ts | 40 +- src/sdk/panoraaccounts.ts | 40 +- src/sdk/panoraatsusers.ts | 36 +- src/sdk/panoraattachments.ts | 40 +- src/sdk/panoracompanies.ts | 38 +- src/sdk/panoracontacts.ts | 36 +- src/sdk/panoraevents.ts | 40 +- src/sdk/panorafilestorageusers.ts | 38 +- src/sdk/panoragroups.ts | 38 +- src/sdk/panoramarketingautomationcontacts.ts | 40 +- src/sdk/panoramarketingautomationusers.ts | 40 +- src/sdk/panoratags.ts | 36 +- src/sdk/panoraticketingattachments.ts | 40 +- src/sdk/panorausers.ts | 36 +- src/sdk/paygroups.ts | 38 +- src/sdk/payments.ts | 38 +- src/sdk/payrollruns.ts | 38 +- src/sdk/phonenumbers.ts | 40 +- src/sdk/purchaseorders.ts | 40 +- src/sdk/rejectreasons.ts | 38 +- src/sdk/scorecards.ts | 38 +- src/sdk/stages.ts | 36 +- src/sdk/tags.ts | 38 +- src/sdk/tasks.ts | 36 +- src/sdk/taxrates.ts | 38 +- src/sdk/teams.ts | 38 +- src/sdk/templates.ts | 40 +- src/sdk/timeoffbalances.ts | 40 +- src/sdk/timeoffs.ts | 38 +- src/sdk/trackingcategories.ts | 40 +- src/sdk/transactions.ts | 40 +- src/sdk/users.ts | 38 +- src/sdk/vendorcredits.ts | 40 +- 329 files changed, 9405 insertions(+), 2245 deletions(-) create mode 100644 docs/models/operations/listaccountingaccountsresponse.md create mode 100644 docs/models/operations/listaccountingaddressresponse.md create mode 100644 docs/models/operations/listaccountingattachmentsresponse.md create mode 100644 docs/models/operations/listaccountingbalancesheetsresponse.md create mode 100644 docs/models/operations/listaccountingcashflowstatementresponse.md create mode 100644 docs/models/operations/listaccountingcompanyinfosresponse.md create mode 100644 docs/models/operations/listaccountingcontactsresponse.md create mode 100644 docs/models/operations/listaccountingcreditnoteresponse.md create mode 100644 docs/models/operations/listaccountingexpenseresponse.md create mode 100644 docs/models/operations/listaccountingincomestatementresponse.md create mode 100644 docs/models/operations/listaccountinginvoiceresponse.md create mode 100644 docs/models/operations/listaccountingitemresponse.md create mode 100644 docs/models/operations/listaccountingjournalentryresponse.md create mode 100644 docs/models/operations/listaccountingpaymentresponse.md create mode 100644 docs/models/operations/listaccountingphonenumberresponse.md create mode 100644 docs/models/operations/listaccountingpurchaseorderresponse.md create mode 100644 docs/models/operations/listaccountingtaxrateresponse.md create mode 100644 docs/models/operations/listaccountingtrackingcategorysresponse.md create mode 100644 docs/models/operations/listaccountingtransactionresponse.md create mode 100644 docs/models/operations/listaccountingvendorcreditresponse.md create mode 100644 docs/models/operations/listatsactivityresponse.md create mode 100644 docs/models/operations/listatsapplicationresponse.md create mode 100644 docs/models/operations/listatsattachmentresponse.md create mode 100644 docs/models/operations/listatscandidateresponse.md create mode 100644 docs/models/operations/listatsdepartmentsresponse.md create mode 100644 docs/models/operations/listatseeocsresponse.md create mode 100644 docs/models/operations/listatsinterviewresponse.md create mode 100644 docs/models/operations/listatsjobinterviewstageresponse.md create mode 100644 docs/models/operations/listatsjobresponse.md create mode 100644 docs/models/operations/listatsofferresponse.md create mode 100644 docs/models/operations/listatsofficeresponse.md create mode 100644 docs/models/operations/listatsrejectreasonsresponse.md create mode 100644 docs/models/operations/listatsscorecardresponse.md create mode 100644 docs/models/operations/listatstagsresponse.md create mode 100644 docs/models/operations/listatsusersresponse.md create mode 100644 docs/models/operations/listcrmcompanyresponse.md create mode 100644 docs/models/operations/listcrmcontactsresponse.md create mode 100644 docs/models/operations/listcrmdealsresponse.md create mode 100644 docs/models/operations/listcrmengagementsresponse.md create mode 100644 docs/models/operations/listcrmnoteresponse.md create mode 100644 docs/models/operations/listcrmstagesresponse.md create mode 100644 docs/models/operations/listcrmtaskresponse.md create mode 100644 docs/models/operations/listcrmusersresponse.md create mode 100644 docs/models/operations/listfilestoragedrivesresponse.md create mode 100644 docs/models/operations/listfilestoragefileresponse.md create mode 100644 docs/models/operations/listfilestoragefolderresponse.md create mode 100644 docs/models/operations/listfilestoragegroupresponse.md create mode 100644 docs/models/operations/listfilestorageusersresponse.md create mode 100644 docs/models/operations/listhrisbankinforesponse.md create mode 100644 docs/models/operations/listhrisbenefitsresponse.md create mode 100644 docs/models/operations/listhriscompaniesresponse.md create mode 100644 docs/models/operations/listhrisdependentsresponse.md create mode 100644 docs/models/operations/listhrisemployeepayrollrunresponse.md create mode 100644 docs/models/operations/listhrisemployeesresponse.md create mode 100644 docs/models/operations/listhrisemployerbenefitsresponse.md create mode 100644 docs/models/operations/listhrisemploymentsresponse.md create mode 100644 docs/models/operations/listhrisgroupsresponse.md create mode 100644 docs/models/operations/listhrislocationsresponse.md create mode 100644 docs/models/operations/listhrispaygroupsresponse.md create mode 100644 docs/models/operations/listhrispayrollrunsresponse.md create mode 100644 docs/models/operations/listhristimeoffbalancesresponse.md create mode 100644 docs/models/operations/listhristimeoffsresponse.md create mode 100644 docs/models/operations/listmarketingautomationactionresponse.md create mode 100644 docs/models/operations/listmarketingautomationautomationsresponse.md create mode 100644 docs/models/operations/listmarketingautomationcampaignsresponse.md create mode 100644 docs/models/operations/listmarketingautomationcontactsresponse.md create mode 100644 docs/models/operations/listmarketingautomationemailsresponse.md create mode 100644 docs/models/operations/listmarketingautomationeventsresponse.md create mode 100644 docs/models/operations/listmarketingautomationlistsresponse.md create mode 100644 docs/models/operations/listmarketingautomationmessagesresponse.md create mode 100644 docs/models/operations/listmarketingautomationtemplatesresponse.md create mode 100644 docs/models/operations/listmarketingautomationusersresponse.md create mode 100644 docs/models/operations/listticketingaccountresponse.md create mode 100644 docs/models/operations/listticketingattachmentsresponse.md create mode 100644 docs/models/operations/listticketingcollectionsresponse.md create mode 100644 docs/models/operations/listticketingcommentsresponse.md create mode 100644 docs/models/operations/listticketingcontactsresponse.md create mode 100644 docs/models/operations/listticketingtagsresponse.md create mode 100644 docs/models/operations/listticketingteamsresponse.md create mode 100644 docs/models/operations/listticketingusersresponse.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f25941af..276c25c6 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: dd7efeb95cef6daa10a1d8d56e4c9f80 + docChecksum: f31581b6c385b4f8f05068b0f2598833 docVersion: "1.0" speakeasyVersion: 1.352.2 generationVersion: 2.385.2 - releaseVersion: 0.8.0 - configChecksum: 7589c0488e2ec56115f50034f3c91a7d + releaseVersion: 0.8.1 + configChecksum: 498967b334f13ae4c825fac0e7b0a978 repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true @@ -724,63 +724,79 @@ generatedFiles: - docs/models/operations/retrieveticketingticketrequest.md - docs/models/operations/listticketingusersrequest.md - docs/models/operations/listticketingusersresponsebody.md + - docs/models/operations/listticketingusersresponse.md - docs/models/operations/retrieveticketinguserrequest.md - docs/models/operations/listticketingaccountrequest.md - docs/models/operations/listticketingaccountresponsebody.md + - docs/models/operations/listticketingaccountresponse.md - docs/models/operations/retrieveticketingaccountrequest.md - docs/models/operations/listticketingcontactsrequest.md - docs/models/operations/listticketingcontactsresponsebody.md + - docs/models/operations/listticketingcontactsresponse.md - docs/models/operations/retrieveticketingcontactrequest.md - docs/models/operations/retrieveticketingcontactresponsebody.md - docs/models/operations/listticketingcollectionsrequest.md - docs/models/operations/listticketingcollectionsresponsebody.md + - docs/models/operations/listticketingcollectionsresponse.md - docs/models/operations/retrievecollectionrequest.md - docs/models/operations/listticketingcommentsrequest.md - docs/models/operations/listticketingcommentsresponsebody.md + - docs/models/operations/listticketingcommentsresponse.md - docs/models/operations/createticketingcommentrequest.md - docs/models/operations/retrieveticketingcommentrequest.md - docs/models/operations/retrieveticketingcommentresponsebody.md - docs/models/operations/listticketingtagsrequest.md - docs/models/operations/listticketingtagsresponsebody.md + - docs/models/operations/listticketingtagsresponse.md - docs/models/operations/retrieveticketingtagrequest.md - docs/models/operations/listticketingteamsrequest.md - docs/models/operations/listticketingteamsresponsebody.md + - docs/models/operations/listticketingteamsresponse.md - docs/models/operations/retrieveticketingteamrequest.md - docs/models/operations/listticketingattachmentsrequest.md - docs/models/operations/listticketingattachmentsresponsebody.md + - docs/models/operations/listticketingattachmentsresponse.md - docs/models/operations/createticketingattachmentrequest.md - docs/models/operations/retrieveticketingattachmentrequest.md - docs/models/operations/vertical.md - docs/models/operations/statusrequest.md - docs/models/operations/listcrmcompanyrequest.md - docs/models/operations/listcrmcompanyresponsebody.md + - docs/models/operations/listcrmcompanyresponse.md - docs/models/operations/createcrmcompanyrequest.md - docs/models/operations/retrievecrmcompanyrequest.md - docs/models/operations/listcrmcontactsrequest.md - docs/models/operations/listcrmcontactsresponsebody.md + - docs/models/operations/listcrmcontactsresponse.md - docs/models/operations/createcrmcontactrequest.md - docs/models/operations/retrievecrmcontactrequest.md - docs/models/operations/listcrmdealsrequest.md - docs/models/operations/listcrmdealsresponsebody.md + - docs/models/operations/listcrmdealsresponse.md - docs/models/operations/createcrmdealrequest.md - docs/models/operations/retrievecrmdealrequest.md - docs/models/operations/listcrmengagementsrequest.md - docs/models/operations/listcrmengagementsresponsebody.md + - docs/models/operations/listcrmengagementsresponse.md - docs/models/operations/createcrmengagementrequest.md - docs/models/operations/retrievecrmengagementrequest.md - docs/models/operations/listcrmnoterequest.md - docs/models/operations/listcrmnoteresponsebody.md + - docs/models/operations/listcrmnoteresponse.md - docs/models/operations/createcrmnoterequest.md - docs/models/operations/retrievecrmnoterequest.md - docs/models/operations/listcrmstagesrequest.md - docs/models/operations/listcrmstagesresponsebody.md + - docs/models/operations/listcrmstagesresponse.md - docs/models/operations/retrievecrmstagerequest.md - docs/models/operations/listcrmtaskrequest.md - docs/models/operations/listcrmtaskresponsebody.md + - docs/models/operations/listcrmtaskresponse.md - docs/models/operations/createcrmtaskrequest.md - docs/models/operations/retrievecrmtaskrequest.md - docs/models/operations/listcrmusersrequest.md - docs/models/operations/listcrmusersresponsebody.md + - docs/models/operations/listcrmusersresponse.md - docs/models/operations/retrievecrmuserrequest.md - docs/models/operations/retrievelinkeduserrequest.md - docs/models/operations/remoteidrequest.md @@ -788,218 +804,282 @@ generatedFiles: - docs/models/operations/requestrequest.md - docs/models/operations/listhrisbankinforequest.md - docs/models/operations/listhrisbankinforesponsebody.md + - docs/models/operations/listhrisbankinforesponse.md - docs/models/operations/retrievehrisbankinforequest.md - docs/models/operations/listhrisbenefitsrequest.md - docs/models/operations/listhrisbenefitsresponsebody.md + - docs/models/operations/listhrisbenefitsresponse.md - docs/models/operations/retrievehrisbenefitrequest.md - docs/models/operations/listhriscompaniesrequest.md - docs/models/operations/listhriscompaniesresponsebody.md + - docs/models/operations/listhriscompaniesresponse.md - docs/models/operations/retrievehriscompanyrequest.md - docs/models/operations/listhrisdependentsrequest.md - docs/models/operations/listhrisdependentsresponsebody.md + - docs/models/operations/listhrisdependentsresponse.md - docs/models/operations/retrievehrisdependentrequest.md - docs/models/operations/listhrisemployeepayrollrunrequest.md - docs/models/operations/listhrisemployeepayrollrunresponsebody.md + - docs/models/operations/listhrisemployeepayrollrunresponse.md - docs/models/operations/retrievehrisemployeepayrollrunrequest.md - docs/models/operations/listhrisemployeesrequest.md - docs/models/operations/listhrisemployeesresponsebody.md + - docs/models/operations/listhrisemployeesresponse.md - docs/models/operations/createhrisemployeerequest.md - docs/models/operations/retrievehrisemployeerequest.md - docs/models/operations/listhrisemployerbenefitsrequest.md - docs/models/operations/listhrisemployerbenefitsresponsebody.md + - docs/models/operations/listhrisemployerbenefitsresponse.md - docs/models/operations/retrievehrisemployerbenefitrequest.md - docs/models/operations/listhrisemploymentsrequest.md - docs/models/operations/listhrisemploymentsresponsebody.md + - docs/models/operations/listhrisemploymentsresponse.md - docs/models/operations/retrievehrisemploymentrequest.md - docs/models/operations/listhrisgroupsrequest.md - docs/models/operations/listhrisgroupsresponsebody.md + - docs/models/operations/listhrisgroupsresponse.md - docs/models/operations/retrievehrisgrouprequest.md - docs/models/operations/listhrislocationsrequest.md - docs/models/operations/listhrislocationsresponsebody.md + - docs/models/operations/listhrislocationsresponse.md - docs/models/operations/retrievehrislocationrequest.md - docs/models/operations/listhrispaygroupsrequest.md - docs/models/operations/listhrispaygroupsresponsebody.md + - docs/models/operations/listhrispaygroupsresponse.md - docs/models/operations/retrievehrispaygrouprequest.md - docs/models/operations/listhrispayrollrunsrequest.md - docs/models/operations/listhrispayrollrunsresponsebody.md + - docs/models/operations/listhrispayrollrunsresponse.md - docs/models/operations/retrievehrispayrollrunrequest.md - docs/models/operations/listhristimeoffsrequest.md - docs/models/operations/listhristimeoffsresponsebody.md + - docs/models/operations/listhristimeoffsresponse.md - docs/models/operations/createhristimeoffrequest.md - docs/models/operations/retrievehristimeoffrequest.md - docs/models/operations/listhristimeoffbalancesrequest.md - docs/models/operations/listhristimeoffbalancesresponsebody.md + - docs/models/operations/listhristimeoffbalancesresponse.md - docs/models/operations/retrievehristimeoffbalancerequest.md - docs/models/operations/listmarketingautomationactionrequest.md - docs/models/operations/listmarketingautomationactionresponsebody.md + - docs/models/operations/listmarketingautomationactionresponse.md - docs/models/operations/createmarketingautomationactionrequest.md - docs/models/operations/retrievemarketingautomationactionrequest.md - docs/models/operations/listmarketingautomationautomationsrequest.md - docs/models/operations/listmarketingautomationautomationsresponsebody.md + - docs/models/operations/listmarketingautomationautomationsresponse.md - docs/models/operations/createmarketingautomationautomationrequest.md - docs/models/operations/retrievemarketingautomationautomationrequest.md - docs/models/operations/listmarketingautomationcampaignsrequest.md - docs/models/operations/listmarketingautomationcampaignsresponsebody.md + - docs/models/operations/listmarketingautomationcampaignsresponse.md - docs/models/operations/createmarketingautomationcampaignrequest.md - docs/models/operations/retrievemarketingautomationcampaignrequest.md - docs/models/operations/listmarketingautomationcontactsrequest.md - docs/models/operations/listmarketingautomationcontactsresponsebody.md + - docs/models/operations/listmarketingautomationcontactsresponse.md - docs/models/operations/createmarketingautomationcontactrequest.md - docs/models/operations/retrievemarketingautomationcontactrequest.md - docs/models/operations/listmarketingautomationemailsrequest.md - docs/models/operations/listmarketingautomationemailsresponsebody.md + - docs/models/operations/listmarketingautomationemailsresponse.md - docs/models/operations/retrievemarketingautomationemailrequest.md - docs/models/operations/listmarketingautomationeventsrequest.md - docs/models/operations/listmarketingautomationeventsresponsebody.md + - docs/models/operations/listmarketingautomationeventsresponse.md - docs/models/operations/retrievemarketingautomationeventrequest.md - docs/models/operations/listmarketingautomationlistsrequest.md - docs/models/operations/listmarketingautomationlistsresponsebody.md + - docs/models/operations/listmarketingautomationlistsresponse.md - docs/models/operations/createmarketingautomationlistrequest.md - docs/models/operations/retrievemarketingautomationlistrequest.md - docs/models/operations/listmarketingautomationmessagesrequest.md - docs/models/operations/listmarketingautomationmessagesresponsebody.md + - docs/models/operations/listmarketingautomationmessagesresponse.md - docs/models/operations/retrievemarketingautomationmessagerequest.md - docs/models/operations/listmarketingautomationtemplatesrequest.md - docs/models/operations/listmarketingautomationtemplatesresponsebody.md + - docs/models/operations/listmarketingautomationtemplatesresponse.md - docs/models/operations/createmarketingautomationtemplaterequest.md - docs/models/operations/retrievemarketingautomationtemplaterequest.md - docs/models/operations/listmarketingautomationusersrequest.md - docs/models/operations/listmarketingautomationusersresponsebody.md + - docs/models/operations/listmarketingautomationusersresponse.md - docs/models/operations/retrievemarketingautomationuserrequest.md - docs/models/operations/listatsactivityrequest.md - docs/models/operations/listatsactivityresponsebody.md + - docs/models/operations/listatsactivityresponse.md - docs/models/operations/createatsactivityrequest.md - docs/models/operations/retrieveatsactivityrequest.md - docs/models/operations/listatsapplicationrequest.md - docs/models/operations/listatsapplicationresponsebody.md + - docs/models/operations/listatsapplicationresponse.md - docs/models/operations/createatsapplicationrequest.md - docs/models/operations/retrieveatsapplicationrequest.md - docs/models/operations/listatsattachmentrequest.md - docs/models/operations/listatsattachmentresponsebody.md + - docs/models/operations/listatsattachmentresponse.md - docs/models/operations/createatsattachmentrequest.md - docs/models/operations/retrieveatsattachmentrequest.md - docs/models/operations/listatscandidaterequest.md - docs/models/operations/listatscandidateresponsebody.md + - docs/models/operations/listatscandidateresponse.md - docs/models/operations/createatscandidaterequest.md - docs/models/operations/retrieveatscandidaterequest.md - docs/models/operations/listatsdepartmentsrequest.md - docs/models/operations/listatsdepartmentsresponsebody.md + - docs/models/operations/listatsdepartmentsresponse.md - docs/models/operations/retrieveatsdepartmentrequest.md - docs/models/operations/listatsinterviewrequest.md - docs/models/operations/listatsinterviewresponsebody.md + - docs/models/operations/listatsinterviewresponse.md - docs/models/operations/createatsinterviewrequest.md - docs/models/operations/retrieveatsinterviewrequest.md - docs/models/operations/listatsjobinterviewstagerequest.md - docs/models/operations/listatsjobinterviewstageresponsebody.md + - docs/models/operations/listatsjobinterviewstageresponse.md - docs/models/operations/retrieveatsjobinterviewstagerequest.md - docs/models/operations/listatsjobrequest.md - docs/models/operations/listatsjobresponsebody.md + - docs/models/operations/listatsjobresponse.md - docs/models/operations/retrieveatsjobrequest.md - docs/models/operations/listatsofferrequest.md - docs/models/operations/listatsofferresponsebody.md + - docs/models/operations/listatsofferresponse.md - docs/models/operations/retrieveatsofferrequest.md - docs/models/operations/listatsofficerequest.md - docs/models/operations/listatsofficeresponsebody.md + - docs/models/operations/listatsofficeresponse.md - docs/models/operations/retrieveatsofficerequest.md - docs/models/operations/listatsrejectreasonsrequest.md - docs/models/operations/listatsrejectreasonsresponsebody.md + - docs/models/operations/listatsrejectreasonsresponse.md - docs/models/operations/retrieveatsrejectreasonrequest.md - docs/models/operations/listatsscorecardrequest.md - docs/models/operations/listatsscorecardresponsebody.md + - docs/models/operations/listatsscorecardresponse.md - docs/models/operations/retrieveatsscorecardrequest.md - docs/models/operations/listatstagsrequest.md - docs/models/operations/listatstagsresponsebody.md + - docs/models/operations/listatstagsresponse.md - docs/models/operations/retrieveatstagrequest.md - docs/models/operations/listatsusersrequest.md - docs/models/operations/listatsusersresponsebody.md + - docs/models/operations/listatsusersresponse.md - docs/models/operations/retrieveatsuserrequest.md - docs/models/operations/listatseeocsrequest.md - docs/models/operations/listatseeocsresponsebody.md + - docs/models/operations/listatseeocsresponse.md - docs/models/operations/retrieveatseeocsrequest.md - docs/models/operations/listaccountingaccountsrequest.md - docs/models/operations/listaccountingaccountsresponsebody.md + - docs/models/operations/listaccountingaccountsresponse.md - docs/models/operations/createaccountingaccountrequest.md - docs/models/operations/retrieveaccountingaccountrequest.md - docs/models/operations/listaccountingaddressrequest.md - docs/models/operations/listaccountingaddressresponsebody.md + - docs/models/operations/listaccountingaddressresponse.md - docs/models/operations/retrieveaccountingaddressrequest.md - docs/models/operations/listaccountingattachmentsrequest.md - docs/models/operations/listaccountingattachmentsresponsebody.md + - docs/models/operations/listaccountingattachmentsresponse.md - docs/models/operations/createaccountingattachmentrequest.md - docs/models/operations/retrieveaccountingattachmentrequest.md - docs/models/operations/listaccountingbalancesheetsrequest.md - docs/models/operations/listaccountingbalancesheetsresponsebody.md + - docs/models/operations/listaccountingbalancesheetsresponse.md - docs/models/operations/retrieveaccountingbalancesheetrequest.md - docs/models/operations/listaccountingcashflowstatementrequest.md - docs/models/operations/listaccountingcashflowstatementresponsebody.md + - docs/models/operations/listaccountingcashflowstatementresponse.md - docs/models/operations/retrieveaccountingcashflowstatementrequest.md - docs/models/operations/listaccountingcompanyinfosrequest.md - docs/models/operations/listaccountingcompanyinfosresponsebody.md + - docs/models/operations/listaccountingcompanyinfosresponse.md - docs/models/operations/retrieveaccountingcompanyinforequest.md - docs/models/operations/listaccountingcontactsrequest.md - docs/models/operations/listaccountingcontactsresponsebody.md + - docs/models/operations/listaccountingcontactsresponse.md - docs/models/operations/createaccountingcontactrequest.md - docs/models/operations/retrieveaccountingcontactrequest.md - docs/models/operations/listaccountingcreditnoterequest.md - docs/models/operations/listaccountingcreditnoteresponsebody.md + - docs/models/operations/listaccountingcreditnoteresponse.md - docs/models/operations/retrieveaccountingcreditnoterequest.md - docs/models/operations/listaccountingexpenserequest.md - docs/models/operations/listaccountingexpenseresponsebody.md + - docs/models/operations/listaccountingexpenseresponse.md - docs/models/operations/createaccountingexpenserequest.md - docs/models/operations/retrieveaccountingexpenserequest.md - docs/models/operations/listaccountingincomestatementrequest.md - docs/models/operations/listaccountingincomestatementresponsebody.md + - docs/models/operations/listaccountingincomestatementresponse.md - docs/models/operations/retrieveaccountingincomestatementrequest.md - docs/models/operations/listaccountinginvoicerequest.md - docs/models/operations/listaccountinginvoiceresponsebody.md + - docs/models/operations/listaccountinginvoiceresponse.md - docs/models/operations/createaccountinginvoicerequest.md - docs/models/operations/retrieveaccountinginvoicerequest.md - docs/models/operations/listaccountingitemrequest.md - docs/models/operations/listaccountingitemresponsebody.md + - docs/models/operations/listaccountingitemresponse.md - docs/models/operations/retrieveaccountingitemrequest.md - docs/models/operations/listaccountingjournalentryrequest.md - docs/models/operations/listaccountingjournalentryresponsebody.md + - docs/models/operations/listaccountingjournalentryresponse.md - docs/models/operations/createaccountingjournalentryrequest.md - docs/models/operations/retrieveaccountingjournalentryrequest.md - docs/models/operations/listaccountingpaymentrequest.md - docs/models/operations/listaccountingpaymentresponsebody.md + - docs/models/operations/listaccountingpaymentresponse.md - docs/models/operations/createaccountingpaymentrequest.md - docs/models/operations/retrieveaccountingpaymentrequest.md - docs/models/operations/listaccountingphonenumberrequest.md - docs/models/operations/listaccountingphonenumberresponsebody.md + - docs/models/operations/listaccountingphonenumberresponse.md - docs/models/operations/retrieveaccountingphonenumberrequest.md - docs/models/operations/listaccountingpurchaseorderrequest.md - docs/models/operations/listaccountingpurchaseorderresponsebody.md + - docs/models/operations/listaccountingpurchaseorderresponse.md - docs/models/operations/createaccountingpurchaseorderrequest.md - docs/models/operations/retrieveaccountingpurchaseorderrequest.md - docs/models/operations/listaccountingtaxraterequest.md - docs/models/operations/listaccountingtaxrateresponsebody.md + - docs/models/operations/listaccountingtaxrateresponse.md - docs/models/operations/retrieveaccountingtaxraterequest.md - docs/models/operations/listaccountingtrackingcategorysrequest.md - docs/models/operations/listaccountingtrackingcategorysresponsebody.md + - docs/models/operations/listaccountingtrackingcategorysresponse.md - docs/models/operations/retrieveaccountingtrackingcategoryrequest.md - docs/models/operations/listaccountingtransactionrequest.md - docs/models/operations/listaccountingtransactionresponsebody.md + - docs/models/operations/listaccountingtransactionresponse.md - docs/models/operations/retrieveaccountingtransactionrequest.md - docs/models/operations/listaccountingvendorcreditrequest.md - docs/models/operations/listaccountingvendorcreditresponsebody.md + - docs/models/operations/listaccountingvendorcreditresponse.md - docs/models/operations/retrieveaccountingvendorcreditrequest.md - docs/models/operations/listfilestoragedrivesrequest.md - docs/models/operations/listfilestoragedrivesresponsebody.md + - docs/models/operations/listfilestoragedrivesresponse.md - docs/models/operations/retrievefilestoragedriverequest.md - docs/models/operations/listfilestoragefilerequest.md - docs/models/operations/listfilestoragefileresponsebody.md + - docs/models/operations/listfilestoragefileresponse.md - docs/models/operations/createfilestoragefilerequest.md - docs/models/operations/retrievefilestoragefilerequest.md - docs/models/operations/listfilestoragefolderrequest.md - docs/models/operations/listfilestoragefolderresponsebody.md + - docs/models/operations/listfilestoragefolderresponse.md - docs/models/operations/createfilestoragefolderrequest.md - docs/models/operations/retrievefilestoragefolderrequest.md - docs/models/operations/listfilestoragegrouprequest.md - docs/models/operations/listfilestoragegroupresponsebody.md + - docs/models/operations/listfilestoragegroupresponse.md - docs/models/operations/retrievefilestoragegrouprequest.md - docs/models/operations/listfilestorageusersrequest.md - docs/models/operations/listfilestorageusersresponsebody.md + - docs/models/operations/listfilestorageusersresponse.md - docs/models/operations/retrievefilestorageuserrequest.md - docs/lib/utils/retryconfig.md - docs/sdks/panora/README.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7c65c130..57d2f2a1 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.8.0 + version: 0.8.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 025da8b3..c05c4511 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.352.2 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:d31ee6b03492d006ff057c755b122e4ea6693e7080f1292b0e2aeb4328f05361 - sourceBlobDigest: sha256:0ae8f7f57a3bb70f698bd200ddba96884c8d822104c8ba089194956a7b38059b + sourceRevisionDigest: sha256:0513646fd752c111649d303c7a4bd25aba6edb0e6943ed6b7c56e1b5b27fb6fc + sourceBlobDigest: sha256:41cac15577f1a69df1f8cc067473d009de6242662eb117bc48559534531aba62 tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:d31ee6b03492d006ff057c755b122e4ea6693e7080f1292b0e2aeb4328f05361 - sourceBlobDigest: sha256:0ae8f7f57a3bb70f698bd200ddba96884c8d822104c8ba089194956a7b38059b + sourceRevisionDigest: sha256:0513646fd752c111649d303c7a4bd25aba6edb0e6943ed6b7c56e1b5b27fb6fc + sourceBlobDigest: sha256:41cac15577f1a69df1f8cc067473d009de6242662eb117bc48559534531aba62 codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:27673a51cea00662072e057728706c5cf768148f9c06e33d1e6937b7ea0922a9 + codeSamplesRevisionDigest: sha256:ebfee6ee6f50f4e0fc10298192146c72c0d59f38b4af2edb76ca4f021db5f80b outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index a544a8ac..93d429fc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -148,4 +148,14 @@ Based on: ### Generated - [typescript v0.8.0] . ### Releases -- [NPM v0.8.0] https://www.npmjs.com/package/@panora/sdk/v/0.8.0 - . \ No newline at end of file +- [NPM v0.8.0] https://www.npmjs.com/package/@panora/sdk/v/0.8.0 - . + +## 2024-08-06 04:43:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.8.1] . +### Releases +- [NPM v0.8.1] https://www.npmjs.com/package/@panora/sdk/v/0.8.1 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index a237c71e..3eed1ffd 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,11 +3,11 @@ info: title: CodeSamples overlay for typescript target version: 0.0.0 actions: - - target: $["paths"]["/webhooks"]["get"] + - target: $["paths"]["/crm/stages"]["get"] update: x-codeSamples: - lang: typescript - label: listWebhooks + label: listCrmStages source: |- import { Panora } from "@panora/sdk"; @@ -16,18 +16,24 @@ actions: }); async function run() { - const result = await panora.webhooks.list(); + const result = await panora.crm.stages.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/contacts/{id}"]["get"] + - target: $["paths"]["/hris/employments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmContact + label: retrieveHrisEmployment source: |- import { Panora } from "@panora/sdk"; @@ -36,7 +42,7 @@ actions: }); async function run() { - const result = await panora.crm.contacts.retrieve({ + const result = await panora.hris.employments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -47,11 +53,11 @@ actions: } run(); - - target: $["paths"]["/ats/applications/{id}"]["get"] + - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsApplication + label: retrieveMarketingautomationMessage source: |- import { Panora } from "@panora/sdk"; @@ -60,7 +66,7 @@ actions: }); async function run() { - const result = await panora.ats.applications.retrieve({ + const result = await panora.marketingautomation.messages.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -71,24 +77,35 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs"]["get"] + - target: $["paths"]["/ats/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsEeocs + label: createAtsAttachment source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsAttachmentInputAttachmentType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.eeocs.list({ + const result = await panora.ats.attachments.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAtsAttachmentInput: { + fileUrl: "https://example.com/file.pdf", + fileName: "file.pdf", + attachmentType: UnifiedAtsAttachmentInputAttachmentType.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", + }, + }, }); // Handle the result @@ -96,11 +113,17 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments/{id}"]["get"] + - target: $["paths"]["/sync/status/{vertical}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAttachment + label: status + source: "import { Panora } from \"@panora/sdk\";\nimport { Vertical } from \"@panora/sdk/models/operations\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.sync.status({\n vertical: Vertical.Ticketing,\n });\n\n \n}\n\nrun();" + - target: $["paths"]["/marketingautomation/lists"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createMarketingautomationList source: |- import { Panora } from "@panora/sdk"; @@ -109,10 +132,9 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.retrieve({ + const result = await panora.marketingautomation.lists.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedMarketingautomationListInput: {}, }); // Handle the result @@ -120,11 +142,11 @@ actions: } run(); - - target: $["paths"]["/ats/activities"]["get"] + - target: $["paths"]["/linked_users/fromRemoteId"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsActivity + label: remoteId source: |- import { Panora } from "@panora/sdk"; @@ -133,11 +155,8 @@ actions: }); async function run() { - const result = await panora.ats.activities.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.linkedUsers.remoteId({ + remoteId: "id_1", }); // Handle the result @@ -145,67 +164,25 @@ actions: } run(); - - target: $["paths"]["/ats/candidates"]["post"] + - target: $["paths"]["/field_mappings/define"]["post"] update: x-codeSamples: - lang: typescript - label: createAtsCandidate + label: definitions source: |- import { Panora } from "@panora/sdk"; - import { EmailAddressType, PhoneType } from "@panora/sdk/models/components"; + import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components"; 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: PhoneType.Work, - }, - ], - emailAddresses: [ - { - emailAddress: "joedoe@gmail.com", - emailAddressType: EmailAddressType.Work, - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + const result = await panora.fieldMappings.definitions({ + objectTypeOwner: ObjectTypeOwner.Company, + name: "fav_dish", + description: "My favorite dish", + dataType: DataType.String, }); // Handle the result @@ -213,11 +190,11 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers"]["get"] + - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPhonenumber + label: retrieveAccountingTrackingCategory source: |- import { Panora } from "@panora/sdk"; @@ -226,11 +203,10 @@ actions: }); async function run() { - const result = await panora.accounting.phonenumbers.list({ + const result = await panora.accounting.trackingcategories.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -238,11 +214,11 @@ actions: } run(); - - target: $["paths"]["/hris/bankinfos"]["get"] + - target: $["paths"]["/ticketing/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisBankInfo + label: listTicketingAttachments source: |- import { Panora } from "@panora/sdk"; @@ -251,23 +227,24 @@ actions: }); async function run() { - const result = await panora.hris.bankinfos.list({ + const result = await panora.ticketing.attachments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/paygroups"]["get"] + - target: $["paths"]["/crm/engagements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPaygroups + label: retrieveCrmEngagement source: |- import { Panora } from "@panora/sdk"; @@ -276,11 +253,10 @@ actions: }); async function run() { - const result = await panora.hris.paygroups.list({ + const result = await panora.crm.engagements.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -288,11 +264,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/drives/{id}"]["get"] + - target: $["paths"]["/marketingautomation/messages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageDrive + label: listMarketingautomationMessages source: |- import { Panora } from "@panora/sdk"; @@ -301,22 +277,24 @@ actions: }); async function run() { - const result = await panora.filestorage.drives.retrieve({ + const result = await panora.marketingautomation.messages.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/webhooks/{id}"]["delete"] + - target: $["paths"]["/accounting/items"]["get"] update: x-codeSamples: - lang: typescript - label: delete + label: listAccountingItem source: |- import { Panora } from "@panora/sdk"; @@ -325,20 +303,24 @@ actions: }); async function run() { - const result = await panora.webhooks.delete({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.accounting.items.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/transactions/{id}"]["get"] + - target: $["paths"]["/crm/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTransaction + label: retrieveCrmCompany source: |- import { Panora } from "@panora/sdk"; @@ -347,7 +329,7 @@ actions: }); async function run() { - const result = await panora.accounting.transactions.retrieve({ + const result = await panora.crm.companies.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -358,11 +340,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/users/{id}"]["get"] + - target: $["paths"]["/hris/groups"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingUser + label: listHrisGroups source: |- import { Panora } from "@panora/sdk"; @@ -371,22 +353,24 @@ actions: }); async function run() { - const result = await panora.ticketing.users.retrieve({ + const result = await panora.hris.groups.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/deals"]["get"] + - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmDeals + label: retrieveMarketingautomationEmail source: |- import { Panora } from "@panora/sdk"; @@ -395,11 +379,10 @@ actions: }); async function run() { - const result = await panora.crm.deals.list({ + const result = await panora.marketingautomation.emails.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -407,11 +390,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs"]["get"] + - target: $["paths"]["/hris/benefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffs + label: retrieveHrisBenefit source: |- import { Panora } from "@panora/sdk"; @@ -420,11 +403,10 @@ actions: }); async function run() { - const result = await panora.hris.timeoffs.list({ + const result = await panora.hris.benefits.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -432,48 +414,37 @@ actions: } run(); - - target: $["paths"]["/crm/tasks"]["post"] + - target: $["paths"]["/marketingautomation/automations"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmTask + label: listMarketingautomationAutomations source: |- import { Panora } from "@panora/sdk"; - import { UnifiedCrmTaskInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.tasks.create({ + const result = await panora.marketingautomation.automations.list({ xConnectionToken: "", - unifiedCrmTaskInput: { - subject: "Answer customers", - content: "Prepare email campaign", - status: UnifiedCrmTaskInputStatus.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", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/payments"]["post"] + - target: $["paths"]["/ats/activities/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingPayment + label: retrieveAtsActivity source: |- import { Panora } from "@panora/sdk"; @@ -482,10 +453,10 @@ actions: }); async function run() { - const result = await panora.accounting.payments.create({ + const result = await panora.ats.activities.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingPaymentInput: {}, }); // Handle the result @@ -493,11 +464,11 @@ actions: } run(); - - target: $["paths"]["/hris/companies/{id}"]["get"] + - target: $["paths"]["/projects"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisCompany + label: createProject source: |- import { Panora } from "@panora/sdk"; @@ -506,10 +477,10 @@ actions: }); async function run() { - const result = await panora.hris.companies.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.projects.create({ + name: "Project Name", + idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -517,11 +488,11 @@ actions: } run(); - - target: $["paths"]["/hris/groups/{id}"]["get"] + - target: $["paths"]["/hris/companies"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisGroup + label: listHrisCompanies source: |- import { Panora } from "@panora/sdk"; @@ -530,22 +501,24 @@ actions: }); async function run() { - const result = await panora.hris.groups.retrieve({ + const result = await panora.hris.companies.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/addresses"]["get"] + - target: $["paths"]["/ats/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAddress + label: listAtsUsers source: |- import { Panora } from "@panora/sdk"; @@ -554,23 +527,24 @@ actions: }); async function run() { - const result = await panora.accounting.addresses.list({ + const result = await panora.ats.users.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/employees"]["post"] + - target: $["paths"]["/crm/notes"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisEmployee + label: listCrmNote source: |- import { Panora } from "@panora/sdk"; @@ -579,21 +553,24 @@ actions: }); async function run() { - const result = await panora.hris.employees.create({ + const result = await panora.crm.notes.list({ xConnectionToken: "", - unifiedHrisEmployeeInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/timeoffs"]["post"] + - target: $["paths"]["/hris/dependents/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisTimeoff + label: retrieveHrisDependent source: |- import { Panora } from "@panora/sdk"; @@ -602,9 +579,10 @@ actions: }); async function run() { - const result = await panora.hris.timeoffs.create({ + const result = await panora.hris.dependents.retrieve({ xConnectionToken: "", - unifiedHrisTimeoffInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -612,11 +590,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationCampaign + label: createMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; @@ -625,10 +603,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.retrieve({ + const result = await panora.marketingautomation.campaigns.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedMarketingautomationCampaignInput: {}, }); // Handle the result @@ -636,17 +614,37 @@ actions: } run(); - - target: $["paths"]["/auth/login"]["post"] + - target: $["paths"]["/ats/offers"]["get"] update: x-codeSamples: - lang: typescript - label: signIn - source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.auth.login.signIn({\n idUser: \"\",\n email: \"Oda.Treutel97@hotmail.com\",\n passwordHash: \"\",\n });\n\n \n}\n\nrun();" - - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] + label: listAtsOffer + source: |- + 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 page + } + } + + run(); + - target: $["paths"]["/ticketing/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEmail + label: retrieveTicketingUser source: |- import { Panora } from "@panora/sdk"; @@ -655,7 +653,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.emails.retrieve({ + const result = await panora.ticketing.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -666,11 +664,11 @@ actions: } run(); - - target: $["paths"]["/ats/departments"]["get"] + - target: $["paths"]["/ats/applications"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsDepartments + label: createAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -679,11 +677,27 @@ actions: }); async function run() { - const result = await panora.ats.departments.list({ + const result = await panora.ats.applications.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + 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 @@ -691,11 +705,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections"]["get"] + - target: $["paths"]["/crm/tasks"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingCollections + label: listCrmTask source: |- import { Panora } from "@panora/sdk"; @@ -704,23 +718,24 @@ actions: }); async function run() { - const result = await panora.ticketing.collections.list({ + const result = await panora.crm.tasks.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/employments"]["get"] + - target: $["paths"]["/linked_users/batch"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisEmployments + label: importBatch source: |- import { Panora } from "@panora/sdk"; @@ -729,11 +744,11 @@ actions: }); async function run() { - const result = await panora.hris.employments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.linkedUsers.importBatch({ + linkedUserOriginIds: [ + "id_1", + ], + alias: "acme", }); // Handle the result @@ -741,11 +756,11 @@ actions: } run(); - - target: $["paths"]["/ats/offices"]["get"] + - target: $["paths"]["/hris/payrollruns"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsOffice + label: listHrisPayrollRuns source: |- import { Panora } from "@panora/sdk"; @@ -754,23 +769,24 @@ actions: }); async function run() { - const result = await panora.ats.offices.list({ + const result = await panora.hris.payrollruns.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/trackingcategories"]["get"] + - target: $["paths"]["/accounting/journalentries"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTrackingCategorys + label: listAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -779,23 +795,24 @@ actions: }); async function run() { - const result = await panora.accounting.trackingcategories.list({ + const result = await panora.accounting.journalentries.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/groups/{id}"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageGroup + label: createAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; @@ -804,10 +821,10 @@ actions: }); async function run() { - const result = await panora.filestorage.groups.retrieve({ + const result = await panora.accounting.purchaseorders.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingPurchaseorderInput: {}, }); // Handle the result @@ -815,28 +832,23 @@ actions: } run(); - - target: $["paths"]["/field_mappings"]["post"] + - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: defineCustomField + label: retrieveHrisEmployeePayrollRun 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", + const result = await panora.hris.employeepayrollruns.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -844,11 +856,11 @@ actions: } run(); - - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] + - target: $["paths"]["/ticketing/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployerBenefit + label: listTicketingContacts source: |- import { Panora } from "@panora/sdk"; @@ -857,22 +869,24 @@ actions: }); async function run() { - const result = await panora.hris.employerbenefits.retrieve({ + const result = await panora.ticketing.contacts.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/applications"]["post"] + - target: $["paths"]["/ticketing/collections/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsApplication + label: retrieveCollection source: |- import { Panora } from "@panora/sdk"; @@ -881,27 +895,10 @@ actions: }); async function run() { - const result = await panora.ats.applications.create({ + const result = await panora.ticketing.collections.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 @@ -909,11 +906,11 @@ actions: } run(); - - target: $["paths"]["/webhooks/verifyEvent"]["post"] + - target: $["paths"]["/crm/deals/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: verifyEvent + label: retrieveCrmDeal source: |- import { Panora } from "@panora/sdk"; @@ -922,12 +919,10 @@ actions: }); async function run() { - const result = await panora.webhooks.verifyEvent({ - payload: { - "key": "", - }, - signature: "", - secret: "", + const result = await panora.crm.deals.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -935,11 +930,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users"]["get"] + - target: $["paths"]["/hris/payrollruns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationUsers + label: retrieveHrisPayrollRun source: |- import { Panora } from "@panora/sdk"; @@ -948,11 +943,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.users.list({ + const result = await panora.hris.payrollruns.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -960,11 +954,11 @@ actions: } run(); - - target: $["paths"]["/accounting/transactions"]["get"] + - target: $["paths"]["/ats/offices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTransaction + label: retrieveAtsOffice source: |- import { Panora } from "@panora/sdk"; @@ -973,11 +967,10 @@ actions: }); async function run() { - const result = await panora.accounting.transactions.list({ + const result = await panora.ats.offices.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -985,11 +978,11 @@ actions: } run(); - - target: $["paths"]["/events"]["get"] + - target: $["paths"]["/accounting/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getPanoraCoreEvents + label: retrieveAccountingAccount source: |- import { Panora } from "@panora/sdk"; @@ -998,53 +991,42 @@ actions: }); async function run() { - const result = await panora.events.getPanoraCoreEvents({}); + 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"]["/ticketing/comments"]["post"] + - target: $["paths"]["/webhooks"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingComment + label: listWebhooks source: |- import { Panora } from "@panora/sdk"; - import { UnifiedTicketingCommentInputCreatorType } from "@panora/sdk/models/components"; 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: UnifiedTicketingCommentInputCreatorType.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", - ], - }, - }); + const result = await panora.webhooks.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/tags"]["get"] + - target: $["paths"]["/accounting/incomestatements"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTags + label: listAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; @@ -1053,23 +1035,24 @@ actions: }); async function run() { - const result = await panora.ticketing.tags.list({ + const result = await panora.accounting.incomestatements.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/offices/{id}"]["get"] + - target: $["paths"]["/accounting/taxrates"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffice + label: listAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; @@ -1078,22 +1061,24 @@ actions: }); async function run() { - const result = await panora.ats.offices.retrieve({ + const result = await panora.accounting.taxrates.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/journalentries"]["get"] + - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingJournalEntry + label: retrieveAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; @@ -1102,11 +1087,10 @@ actions: }); async function run() { - const result = await panora.accounting.journalentries.list({ + const result = await panora.accounting.cashflowstatements.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1114,11 +1098,11 @@ actions: } run(); - - target: $["paths"]["/hris/groups"]["get"] + - target: $["paths"]["/accounting/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisGroups + label: retrieveAccountingContact source: |- import { Panora } from "@panora/sdk"; @@ -1127,11 +1111,10 @@ actions: }); async function run() { - const result = await panora.hris.groups.list({ + const result = await panora.accounting.contacts.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1139,11 +1122,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["post"] + - target: $["paths"]["/accounting/expenses"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationCampaign + label: listAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -1152,22 +1135,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.create({ + const result = await panora.accounting.expenses.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationCampaignInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/users/{id}"]["get"] + - target: $["paths"]["/accounting/payments"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsUser + label: createAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -1176,10 +1161,10 @@ actions: }); async function run() { - const result = await panora.ats.users.retrieve({ + const result = await panora.accounting.payments.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingPaymentInput: {}, }); // Handle the result @@ -1187,11 +1172,11 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates/{id}"]["get"] + - target: $["paths"]["/crm/tasks/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTaxRate + label: retrieveCrmTask source: |- import { Panora } from "@panora/sdk"; @@ -1200,7 +1185,7 @@ actions: }); async function run() { - const result = await panora.accounting.taxrates.retrieve({ + const result = await panora.crm.tasks.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1211,11 +1196,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["get"] + - target: $["paths"]["/accounting/balancesheets"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTicket + label: listAccountingBalanceSheets source: |- import { Panora } from "@panora/sdk"; @@ -1224,7 +1209,7 @@ actions: }); async function run() { - const result = await panora.ticketing.tickets.list({ + const result = await panora.accounting.balancesheets.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -1237,11 +1222,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/tags/{id}"]["get"] + - target: $["paths"]["/ticketing/tags"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTag + label: listTicketingTags source: |- import { Panora } from "@panora/sdk"; @@ -1250,22 +1235,24 @@ actions: }); async function run() { - const result = await panora.ticketing.tags.retrieve({ + const result = await panora.ticketing.tags.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/notes/{id}"]["get"] + - target: $["paths"]["/crm/engagements"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmNote + label: listCrmEngagements source: |- import { Panora } from "@panora/sdk"; @@ -1274,22 +1261,24 @@ actions: }); async function run() { - const result = await panora.crm.notes.retrieve({ + const result = await panora.crm.engagements.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/events/{id}"]["get"] + - target: $["paths"]["/ats/scorecards"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEvent + label: listAtsScorecard source: |- import { Panora } from "@panora/sdk"; @@ -1298,22 +1287,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.events.retrieve({ + const result = await panora.ats.scorecards.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/payments/{id}"]["get"] + - target: $["paths"]["/ats/eeocs"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPayment + label: listAtsEeocs source: |- import { Panora } from "@panora/sdk"; @@ -1322,22 +1313,24 @@ actions: }); async function run() { - const result = await panora.accounting.payments.retrieve({ + const result = await panora.ats.eeocs.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ticketing/tickets/{id}"]["get"] + - target: $["paths"]["/webhooks/verifyEvent"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTicket + label: verifyEvent source: |- import { Panora } from "@panora/sdk"; @@ -1346,10 +1339,12 @@ actions: }); async function run() { - const result = await panora.ticketing.tickets.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.webhooks.verifyEvent({ + payload: { + "key": "", + }, + signature: "", + secret: "", }); // Handle the result @@ -1357,11 +1352,11 @@ actions: } run(); - - target: $["paths"]["/hris/benefits/{id}"]["get"] + - target: $["paths"]["/ticketing/users"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBenefit + label: listTicketingUsers source: |- import { Panora } from "@panora/sdk"; @@ -1370,22 +1365,24 @@ actions: }); async function run() { - const result = await panora.hris.benefits.retrieve({ + const result = await panora.ticketing.users.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/locations"]["get"] + - target: $["paths"]["/crm/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisLocations + label: listCrmContacts source: |- import { Panora } from "@panora/sdk"; @@ -1394,23 +1391,24 @@ actions: }); async function run() { - const result = await panora.hris.locations.list({ + const result = await panora.crm.contacts.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationTemplate + label: delete source: |- import { Panora } from "@panora/sdk"; @@ -1419,10 +1417,8 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.delete({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, }); // Handle the result @@ -1430,11 +1426,11 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders"]["post"] + - target: $["paths"]["/ticketing/teams"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingPurchaseOrder + label: listTicketingTeams source: |- import { Panora } from "@panora/sdk"; @@ -1443,34 +1439,48 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.create({ + const result = await panora.ticketing.teams.list({ xConnectionToken: "", - remoteData: false, - unifiedAccountingPurchaseorderInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] + - target: $["paths"]["/ats/activities"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCreditNote + label: createAtsActivity source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsActivityInputActivityType, UnifiedAtsActivityInputVisibility } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.creditnotes.retrieve({ + const result = await panora.ats.activities.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAtsActivityInput: { + activityType: UnifiedAtsActivityInputActivityType.Note, + subject: "Email subject", + body: "Dear Diana, I love you", + visibility: UnifiedAtsActivityInputVisibility.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 @@ -1478,11 +1488,11 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs/{id}"]["get"] + - target: $["paths"]["/filestorage/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoff + label: retrieveFilestorageGroup source: |- import { Panora } from "@panora/sdk"; @@ -1491,7 +1501,7 @@ actions: }); async function run() { - const result = await panora.hris.timeoffs.retrieve({ + const result = await panora.filestorage.groups.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1502,11 +1512,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations"]["get"] + - target: $["paths"]["/ticketing/comments"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAutomations + label: listTicketingComments source: |- import { Panora } from "@panora/sdk"; @@ -1515,23 +1525,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.list({ + const result = await panora.ticketing.comments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/templates"]["post"] + - target: $["paths"]["/accounting/invoices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationTemplate + label: retrieveAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -1540,9 +1551,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.create({ + const result = await panora.accounting.invoices.retrieve({ xConnectionToken: "", - unifiedMarketingautomationTemplateInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1550,11 +1562,11 @@ actions: } run(); - - target: $["paths"]["/ats/candidates/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsCandidate + label: retrieveMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; @@ -1563,7 +1575,7 @@ actions: }); async function run() { - const result = await panora.ats.candidates.retrieve({ + const result = await panora.marketingautomation.campaigns.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1574,11 +1586,11 @@ actions: } run(); - - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] + - target: $["paths"]["/ats/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCashflowStatement + label: retrieveAtsTag source: |- import { Panora } from "@panora/sdk"; @@ -1587,7 +1599,7 @@ actions: }); async function run() { - const result = await panora.accounting.cashflowstatements.retrieve({ + const result = await panora.ats.tags.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1598,11 +1610,11 @@ actions: } run(); - - target: $["paths"]["/accounting/companyinfos"]["get"] + - target: $["paths"]["/connections"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCompanyInfos + label: getConnections source: |- import { Panora } from "@panora/sdk"; @@ -1611,23 +1623,18 @@ actions: }); async function run() { - const result = await panora.accounting.companyinfos.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.connections.getConnections(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/accounting/journalentries"]["post"] + - target: $["paths"]["/ticketing/comments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingJournalEntry + label: retrieveTicketingComment source: |- import { Panora } from "@panora/sdk"; @@ -1636,10 +1643,9 @@ actions: }); async function run() { - const result = await panora.accounting.journalentries.create({ + const result = await panora.ticketing.comments.retrieve({ xConnectionToken: "", - remoteData: false, - unifiedAccountingJournalentryInput: {}, + id: "", }); // Handle the result @@ -1647,11 +1653,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments"]["get"] + - target: $["paths"]["/filestorage/files"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingComments + label: listFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -1660,23 +1666,24 @@ actions: }); async function run() { - const result = await panora.ticketing.comments.list({ + const result = await panora.filestorage.files.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/locations/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisLocation + label: createHrisTimeoff source: |- import { Panora } from "@panora/sdk"; @@ -1685,10 +1692,9 @@ actions: }); async function run() { - const result = await panora.hris.locations.retrieve({ + const result = await panora.hris.timeoffs.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedHrisTimeoffInput: {}, }); // Handle the result @@ -1696,11 +1702,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/accounts"]["get"] + - target: $["paths"]["/accounting/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAccount + label: listAccountingContacts source: |- import { Panora } from "@panora/sdk"; @@ -1709,23 +1715,24 @@ actions: }); async function run() { - const result = await panora.ticketing.accounts.list({ + const result = await panora.accounting.contacts.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] + - target: $["paths"]["/filestorage/groups"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAction + label: listFilestorageGroup source: |- import { Panora } from "@panora/sdk"; @@ -1734,22 +1741,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.retrieve({ + const result = await panora.filestorage.groups.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/contacts"]["post"] + - target: $["paths"]["/ticketing/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingAutomationContact + label: listTicketingAccount source: |- import { Panora } from "@panora/sdk"; @@ -1758,22 +1767,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.contacts.create({ + const result = await panora.ticketing.accounts.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationContactInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/lists"]["post"] + - target: $["paths"]["/hris/bankinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationList + label: retrieveHrisBankInfo source: |- import { Panora } from "@panora/sdk"; @@ -1782,9 +1793,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.create({ + const result = await panora.hris.bankinfos.retrieve({ xConnectionToken: "", - unifiedMarketingautomationListInput: {}, + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -1792,11 +1804,11 @@ actions: } run(); - - target: $["paths"]["/ats/tags/{id}"]["get"] + - target: $["paths"]["/hris/employees"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsTag + label: createHrisEmployee source: |- import { Panora } from "@panora/sdk"; @@ -1805,10 +1817,9 @@ actions: }); async function run() { - const result = await panora.ats.tags.retrieve({ + const result = await panora.hris.employees.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + unifiedHrisEmployeeInput: {}, }); // Handle the result @@ -1816,11 +1827,11 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments"]["post"] + - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingAttachment + label: retrieveMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; @@ -1829,10 +1840,10 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.create({ + const result = await panora.marketingautomation.contacts.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingAttachmentInput: {}, }); // Handle the result @@ -1840,11 +1851,11 @@ actions: } run(); - - target: $["paths"]["/accounting/creditnotes"]["get"] + - target: $["paths"]["/linked_users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCreditNote + label: retrieveLinkedUser source: |- import { Panora } from "@panora/sdk"; @@ -1853,11 +1864,8 @@ actions: }); async function run() { - const result = await panora.accounting.creditnotes.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + const result = await panora.linkedUsers.retrieve({ + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", }); // Handle the result @@ -1865,11 +1873,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] + - target: $["paths"]["/accounting/creditnotes"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationList + label: listAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; @@ -1878,22 +1886,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.retrieve({ + const result = await panora.accounting.creditnotes.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/items/{id}"]["get"] + - target: $["paths"]["/crm/companies"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingItem + label: listCrmCompany source: |- import { Panora } from "@panora/sdk"; @@ -1902,22 +1912,24 @@ actions: }); async function run() { - const result = await panora.accounting.items.retrieve({ + const result = await panora.crm.companies.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/users"]["get"] + - target: $["paths"]["/crm/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsUsers + label: listCrmUsers source: |- import { Panora } from "@panora/sdk"; @@ -1926,23 +1938,24 @@ actions: }); async function run() { - const result = await panora.ats.users.list({ + const result = await panora.crm.users.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/attachments"]["get"] + - target: $["paths"]["/events"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAttachments + label: getPanoraCoreEvents source: |- import { Panora } from "@panora/sdk"; @@ -1951,23 +1964,18 @@ actions: }); async function run() { - const result = await panora.accounting.attachments.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.events.getPanoraCoreEvents({}); // Handle the result console.log(result) } run(); - - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] + - target: $["paths"]["/filestorage/folders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingIncomeStatement + label: retrieveFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -1976,7 +1984,7 @@ actions: }); async function run() { - const result = await panora.accounting.incomestatements.retrieve({ + const result = await panora.filestorage.folders.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -1987,11 +1995,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/accounts/{id}"]["get"] + - target: $["paths"]["/ats/offices"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAccount + label: listAtsOffice source: |- import { Panora } from "@panora/sdk"; @@ -2000,21 +2008,24 @@ actions: }); async function run() { - const result = await panora.ticketing.accounts.retrieve({ + const result = await panora.ats.offices.list({ xConnectionToken: "", - id: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/linked_users/{id}"]["get"] + - target: $["paths"]["/accounting/invoices"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveLinkedUser + label: createAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -2023,8 +2034,10 @@ actions: }); async function run() { - const result = await panora.linkedUsers.retrieve({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.accounting.invoices.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -2032,69 +2045,23 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["post"] + - target: $["paths"]["/hris/paygroups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingTicket + label: retrieveHrisPaygroup source: |- import { Panora } from "@panora/sdk"; - import { - UnifiedTicketingTicketInputCreatorType, - UnifiedTicketingTicketInputPriority, - UnifiedTicketingTicketInputStatus, - UnifiedTicketingTicketInputType, - } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ticketing.tickets.create({ + const result = await panora.hris.paygroups.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedTicketingTicketInput: { - name: "Customer Service Inquiry", - status: UnifiedTicketingTicketInputStatus.Open, - description: "Help customer", - dueDate: new Date("2024-10-01T12:00:00Z"), - type: UnifiedTicketingTicketInputType.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: UnifiedTicketingTicketInputPriority.High, - assignedTo: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], - comment: { - body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: UnifiedTicketingTicketInputCreatorType.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 @@ -2102,56 +2069,23 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["post"] + - target: $["paths"]["/ats/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmContact + label: retrieveAtsAttachment source: |- import { Panora } from "@panora/sdk"; - import { AddressType, EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.contacts.create({ + const result = await panora.ats.attachments.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedCrmContactInput: { - firstName: "John", - lastName: "Doe", - emailAddresses: [ - { - emailAddress: "Jena.Nienow28@yahoo.com", - emailAddressType: EmailAddressType.Personal, - }, - ], - phoneNumbers: [ - { - phoneNumber: "", - phoneType: PhoneType.Work, - }, - ], - addresses: [ - { - street1: "", - street2: "", - city: "Anytown", - state: "CA", - postalCode: "97398", - country: "USA", - addressType: AddressType.Personal, - ownerType: "", - }, - ], - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, }); // Handle the result @@ -2159,11 +2093,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["get"] + - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationCampaigns + label: retrieveAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; @@ -2172,11 +2106,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.campaigns.list({ + const result = await panora.accounting.creditnotes.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2184,23 +2117,41 @@ actions: } run(); - - target: $["paths"]["/crm/deals/{id}"]["get"] + - target: $["paths"]["/ats/interviews"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmDeal + label: createAtsInterview source: |- import { Panora } from "@panora/sdk"; + import { UnifiedAtsInterviewInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.deals.retrieve({ + const result = await panora.ats.interviews.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAtsInterviewInput: { + status: UnifiedAtsInterviewInputStatus.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 @@ -2208,11 +2159,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/events"]["get"] + - target: $["paths"]["/health"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationEvents + label: health source: |- import { Panora } from "@panora/sdk"; @@ -2221,23 +2172,18 @@ actions: }); async function run() { - const result = await panora.marketingautomation.events.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); + const result = await panora.health(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/marketingautomation/lists"]["get"] + - target: $["paths"]["/hris/dependents"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationLists + label: listHrisDependents source: |- import { Panora } from "@panora/sdk"; @@ -2246,23 +2192,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.lists.list({ + const result = await panora.hris.dependents.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/messages"]["get"] + - target: $["paths"]["/accounting/expenses"]["post"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationMessages + label: createAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -2271,11 +2218,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.messages.list({ + const result = await panora.accounting.expenses.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingExpenseInput: {}, }); // Handle the result @@ -2283,11 +2229,11 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates"]["get"] + - target: $["paths"]["/accounting/journalentries"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingTaxRate + label: createAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -2296,11 +2242,10 @@ actions: }); async function run() { - const result = await panora.accounting.taxrates.list({ + const result = await panora.accounting.journalentries.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingJournalentryInput: {}, }); // Handle the result @@ -2308,17 +2253,11 @@ actions: } run(); - - target: $["paths"]["/sync/status/{vertical}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: status - source: "import { Panora } from \"@panora/sdk\";\nimport { Vertical } from \"@panora/sdk/models/operations\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.sync.status({\n vertical: Vertical.Ticketing,\n });\n\n \n}\n\nrun();" - - target: $["paths"]["/ats/jobs/{id}"]["get"] + - target: $["paths"]["/filestorage/folders"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJob + label: listFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -2327,22 +2266,24 @@ actions: }); async function run() { - const result = await panora.ats.jobs.retrieve({ + const result = await panora.filestorage.folders.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/folders/{id}"]["get"] + - target: $["paths"]["/filestorage/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFolder + label: retrieveFilestorageUser source: |- import { Panora } from "@panora/sdk"; @@ -2351,7 +2292,7 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.retrieve({ + const result = await panora.filestorage.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2362,11 +2303,11 @@ actions: } run(); - - target: $["paths"]["/crm/notes"]["get"] + - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmNote + label: retrieveMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; @@ -2375,11 +2316,10 @@ actions: }); async function run() { - const result = await panora.crm.notes.list({ + const result = await panora.marketingautomation.actions.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2387,11 +2327,11 @@ actions: } run(); - - target: $["paths"]["/projects"]["post"] + - target: $["paths"]["/ats/candidates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createProject + label: retrieveAtsCandidate source: |- import { Panora } from "@panora/sdk"; @@ -2400,10 +2340,10 @@ actions: }); async function run() { - const result = await panora.projects.create({ - name: "Project Name", - idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.ats.candidates.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2411,32 +2351,65 @@ actions: } run(); - - target: $["paths"]["/passthrough"]["post"] + - target: $["paths"]["/ats/candidates"]["post"] update: x-codeSamples: - lang: typescript - label: request + label: createAtsCandidate source: |- import { Panora } from "@panora/sdk"; - import { PassThroughRequestDtoMethod } from "@panora/sdk/models/components"; + import { EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.passthrough.request({ - integrationId: "", - linkedUserId: "", - vertical: "", - passThroughRequestDto: { - method: PassThroughRequestDtoMethod.Get, - path: "/dev", - data: { - "key": "", + 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", }, - headers: { - "key": "", + ], + phoneNumbers: [ + { + phoneNumber: "+33660688899", + phoneType: PhoneType.Work, + }, + ], + emailAddresses: [ + { + emailAddress: "joedoe@gmail.com", + emailAddressType: EmailAddressType.Work, + }, + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", }, }, }); @@ -2446,11 +2419,11 @@ actions: } run(); - - target: $["paths"]["/sync/resync"]["post"] + - target: $["paths"]["/ats/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: resync + label: retrieveAtsUser source: |- import { Panora } from "@panora/sdk"; @@ -2459,18 +2432,22 @@ actions: }); async function run() { - const result = await panora.sync.resync(); + const result = await panora.ats.users.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/crm/companies/{id}"]["get"] + - target: $["paths"]["/accounting/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmCompany + label: retrieveAccountingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2479,7 +2456,7 @@ actions: }); async function run() { - const result = await panora.crm.companies.retrieve({ + const result = await panora.accounting.attachments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2490,11 +2467,11 @@ actions: } run(); - - target: $["paths"]["/crm/deals"]["post"] + - target: $["paths"]["/marketingautomation/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: createCrmDeal + label: createMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; @@ -2503,20 +2480,10 @@ actions: }); async function run() { - const result = await panora.crm.deals.create({ + const result = await panora.marketingautomation.contacts.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", - }, - }, + remoteData: false, + unifiedMarketingautomationContactInput: {}, }); // Handle the result @@ -2524,11 +2491,11 @@ actions: } run(); - - target: $["paths"]["/ats/departments/{id}"]["get"] + - target: $["paths"]["/ats/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsDepartment + label: listAtsAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2537,22 +2504,24 @@ actions: }); async function run() { - const result = await panora.ats.departments.retrieve({ + const result = await panora.ats.attachments.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/cashflowstatements"]["get"] + - target: $["paths"]["/ats/interviews"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCashflowStatement + label: listAtsInterview source: |- import { Panora } from "@panora/sdk"; @@ -2561,23 +2530,24 @@ actions: }); async function run() { - const result = await panora.accounting.cashflowstatements.list({ + const result = await panora.ats.interviews.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/contacts"]["get"] + - target: $["paths"]["/crm/notes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationContacts + label: retrieveCrmNote source: |- import { Panora } from "@panora/sdk"; @@ -2586,11 +2556,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.contacts.list({ + const result = await panora.crm.notes.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2598,11 +2567,11 @@ actions: } run(); - - target: $["paths"]["/ats/rejectreasons"]["get"] + - target: $["paths"]["/hris/employerbenefits"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsRejectReasons + label: listHrisEmployerBenefits source: |- import { Panora } from "@panora/sdk"; @@ -2611,36 +2580,49 @@ actions: }); async function run() { - const result = await panora.ats.rejectreasons.list({ + const result = await panora.hris.employerbenefits.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/balancesheets"]["get"] + - target: $["paths"]["/crm/tasks"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingBalanceSheets + label: createCrmTask source: |- import { Panora } from "@panora/sdk"; + import { UnifiedCrmTaskInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.balancesheets.list({ + const result = await panora.crm.tasks.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + unifiedCrmTaskInput: { + subject: "Answer customers", + content: "Prepare email campaign", + status: UnifiedCrmTaskInputStatus.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 @@ -2648,11 +2630,11 @@ actions: } run(); - - target: $["paths"]["/hris/payrollruns"]["get"] + - target: $["paths"]["/accounting/items/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPayrollRuns + label: retrieveAccountingItem source: |- import { Panora } from "@panora/sdk"; @@ -2661,11 +2643,10 @@ actions: }); async function run() { - const result = await panora.hris.payrollruns.list({ + const result = await panora.accounting.items.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2673,11 +2654,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] + - target: $["paths"]["/linked_users"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationContact + label: listLinkedUsers source: |- import { Panora } from "@panora/sdk"; @@ -2686,22 +2667,18 @@ actions: }); async function run() { - const result = await panora.marketingautomation.contacts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); + const result = await panora.linkedUsers.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ats/candidates"]["get"] + - target: $["paths"]["/hris/locations"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsCandidate + label: listHrisLocations source: |- import { Panora } from "@panora/sdk"; @@ -2710,23 +2687,24 @@ actions: }); async function run() { - const result = await panora.ats.candidates.list({ + const result = await panora.hris.locations.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ticketing/attachments/{id}"]["get"] + - target: $["paths"]["/ats/scorecards/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAttachment + label: retrieveAtsScorecard source: |- import { Panora } from "@panora/sdk"; @@ -2735,7 +2713,7 @@ actions: }); async function run() { - const result = await panora.ticketing.attachments.retrieve({ + const result = await panora.ats.scorecards.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2746,11 +2724,11 @@ actions: } run(); - - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] + - target: $["paths"]["/ticketing/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTrackingCategory + label: retrieveTicketingContact source: |- import { Panora } from "@panora/sdk"; @@ -2759,10 +2737,9 @@ actions: }); async function run() { - const result = await panora.accounting.trackingcategories.retrieve({ + const result = await panora.ticketing.contacts.retrieve({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + id: "", }); // Handle the result @@ -2770,11 +2747,11 @@ actions: } run(); - - target: $["paths"]["/hris/benefits"]["get"] + - target: $["paths"]["/marketingautomation/emails"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisBenefits + label: listMarketingautomationEmails source: |- import { Panora } from "@panora/sdk"; @@ -2783,23 +2760,24 @@ actions: }); async function run() { - const result = await panora.hris.benefits.list({ + const result = await panora.marketingautomation.emails.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/dependents"]["get"] + - target: $["paths"]["/marketingautomation/lists"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisDependents + label: listMarketingautomationLists source: |- import { Panora } from "@panora/sdk"; @@ -2808,23 +2786,24 @@ actions: }); async function run() { - const result = await panora.hris.dependents.list({ + const result = await panora.marketingautomation.lists.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/actions"]["post"] + - target: $["paths"]["/accounting/cashflowstatements"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAction + label: listAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; @@ -2833,22 +2812,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.create({ + const result = await panora.accounting.cashflowstatements.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationActionInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/attachments"]["get"] + - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsAttachment + label: retrieveMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; @@ -2857,11 +2838,10 @@ actions: }); async function run() { - const result = await panora.ats.attachments.list({ + const result = await panora.marketingautomation.automations.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2869,11 +2849,11 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts"]["get"] + - target: $["paths"]["/ticketing/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAccounts + label: retrieveTicketingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -2882,11 +2862,10 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.list({ + const result = await panora.ticketing.attachments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -2894,11 +2873,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/users/{id}"]["get"] + - target: $["paths"]["/crm/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageUser + label: retrieveCrmContact source: |- import { Panora } from "@panora/sdk"; @@ -2907,7 +2886,7 @@ actions: }); async function run() { - const result = await panora.filestorage.users.retrieve({ + const result = await panora.crm.contacts.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -2918,11 +2897,11 @@ actions: } run(); - - target: $["paths"]["/health"]["get"] + - target: $["paths"]["/accounting/expenses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: health + label: retrieveAccountingExpense source: |- import { Panora } from "@panora/sdk"; @@ -2931,18 +2910,22 @@ actions: }); async function run() { - const result = await panora.health(); + 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"]["/hris/bankinfos/{id}"]["get"] + - target: $["paths"]["/accounting/trackingcategories"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBankInfo + label: listAccountingTrackingCategorys source: |- import { Panora } from "@panora/sdk"; @@ -2951,35 +2934,53 @@ actions: }); async function run() { - const result = await panora.hris.bankinfos.retrieve({ + const result = await panora.accounting.trackingcategories.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/vendorcredits"]["get"] + - target: $["paths"]["/crm/engagements"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingVendorCredit + label: createCrmEngagement source: |- import { Panora } from "@panora/sdk"; + import { UnifiedCrmEngagementInputDirection, UnifiedCrmEngagementInputType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.accounting.vendorcredits.list({ + const result = await panora.crm.engagements.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedCrmEngagementInput: { + content: "Meeting call with CTO", + direction: UnifiedCrmEngagementInputDirection.Inbound, + subject: "Technical features planning", + startAt: new Date("2024-10-01T12:00:00Z"), + endTime: new Date("2024-10-01T22:00:00Z"), + type: UnifiedCrmEngagementInputType.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 @@ -2987,11 +2988,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["post"] + - target: $["paths"]["/marketingautomation/templates"]["post"] update: x-codeSamples: - lang: typescript - label: createTicketingAttachment + label: createMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; @@ -3000,19 +3001,9 @@ actions: }); async function run() { - const result = await panora.ticketing.attachments.create({ + const result = await panora.marketingautomation.templates.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", - }, - }, + unifiedMarketingautomationTemplateInput: {}, }); // Handle the result @@ -3020,11 +3011,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] + - target: $["paths"]["/ticketing/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationMessage + label: createTicketingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -3033,10 +3024,19 @@ actions: }); async function run() { - const result = await panora.marketingautomation.messages.retrieve({ + const result = await panora.ticketing.attachments.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + 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 @@ -3044,11 +3044,11 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts/{id}"]["get"] + - target: $["paths"]["/ats/jobinterviewstages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAccount + label: listAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; @@ -3057,22 +3057,24 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.retrieve({ + const result = await panora.ats.jobinterviewstages.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/addresses/{id}"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAddress + label: listAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; @@ -3081,22 +3083,24 @@ actions: }); async function run() { - const result = await panora.accounting.addresses.retrieve({ + const result = await panora.accounting.purchaseorders.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/scorecards"]["get"] + - target: $["paths"]["/marketingautomation/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsScorecard + label: listMarketingAutomationUsers source: |- import { Panora } from "@panora/sdk"; @@ -3105,23 +3109,24 @@ actions: }); async function run() { - const result = await panora.ats.scorecards.list({ + const result = await panora.marketingautomation.users.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/contacts/{id}"]["get"] + - target: $["paths"]["/projects"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingContact + label: getProjects source: |- import { Panora } from "@panora/sdk"; @@ -3130,46 +3135,35 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); + const result = await panora.projects.getProjects(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/crm/engagements"]["post"] + - target: $["paths"]["/crm/notes"]["post"] update: x-codeSamples: - lang: typescript - label: createCrmEngagement + label: createCrmNote source: |- import { Panora } from "@panora/sdk"; - import { UnifiedCrmEngagementInputDirection, UnifiedCrmEngagementInputType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.engagements.create({ + const result = await panora.crm.notes.create({ xConnectionToken: "", remoteData: false, - unifiedCrmEngagementInput: { - content: "Meeting call with CTO", - direction: UnifiedCrmEngagementInputDirection.Inbound, - subject: "Technical features planning", - startAt: new Date("2024-10-01T12:00:00Z"), - endTime: new Date("2024-10-01T22:00:00Z"), - type: UnifiedCrmEngagementInputType.Meeting, + unifiedCrmNoteInput: { + content: "My notes taken during the meeting", userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", companyId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contacts: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], + contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + dealId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", fieldMappings: { "fav_dish": "broccoli", "fav_color": "red", @@ -3182,11 +3176,11 @@ actions: } run(); - - target: $["paths"]["/projects"]["get"] + - target: $["paths"]["/ticketing/collections"]["get"] update: x-codeSamples: - lang: typescript - label: getProjects + label: listTicketingCollections source: |- import { Panora } from "@panora/sdk"; @@ -3195,18 +3189,24 @@ actions: }); async function run() { - const result = await panora.projects.getProjects(); + const result = await panora.ticketing.collections.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] + - target: $["paths"]["/filestorage/drives/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAutomation + label: retrieveFilestorageDrive source: |- import { Panora } from "@panora/sdk"; @@ -3215,7 +3215,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.retrieve({ + const result = await panora.filestorage.drives.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3226,11 +3226,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/emails"]["get"] + - target: $["paths"]["/ticketing/teams/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationEmails + label: retrieveTicketingTeam source: |- import { Panora } from "@panora/sdk"; @@ -3239,11 +3239,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.emails.list({ + const result = await panora.ticketing.teams.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3251,11 +3250,11 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices/{id}"]["get"] + - target: $["paths"]["/accounting/invoices"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingInvoice + label: listAccountingInvoice source: |- import { Panora } from "@panora/sdk"; @@ -3264,36 +3263,82 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.retrieve({ + const result = await panora.accounting.invoices.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) - } - + for await (const page of result) { + // handle page + } + } + run(); - - target: $["paths"]["/field_mappings/define"]["post"] + - target: $["paths"]["/ticketing/tickets"]["post"] update: x-codeSamples: - lang: typescript - label: definitions + label: createTicketingTicket source: |- import { Panora } from "@panora/sdk"; - import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components"; + import { + UnifiedTicketingTicketInputCreatorType, + UnifiedTicketingTicketInputPriority, + UnifiedTicketingTicketInputStatus, + UnifiedTicketingTicketInputType, + } 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, + const result = await panora.ticketing.tickets.create({ + xConnectionToken: "", + remoteData: false, + unifiedTicketingTicketInput: { + name: "Customer Service Inquiry", + status: UnifiedTicketingTicketInputStatus.Open, + description: "Help customer", + dueDate: new Date("2024-10-01T12:00:00Z"), + type: UnifiedTicketingTicketInputType.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: UnifiedTicketingTicketInputPriority.High, + assignedTo: [ + "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + ], + comment: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: UnifiedTicketingTicketInputCreatorType.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 @@ -3301,11 +3346,11 @@ actions: } run(); - - target: $["paths"]["/hris/employees"]["get"] + - target: $["paths"]["/ats/applications/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployees + label: retrieveAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -3314,11 +3359,10 @@ actions: }); async function run() { - const result = await panora.hris.employees.list({ + const result = await panora.ats.applications.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3326,11 +3370,11 @@ actions: } run(); - - target: $["paths"]["/ats/applications"]["get"] + - target: $["paths"]["/accounting/vendorcredits"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsApplication + label: listAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; @@ -3339,23 +3383,24 @@ actions: }); async function run() { - const result = await panora.ats.applications.list({ + const result = await panora.accounting.vendorcredits.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ticketing/comments/{id}"]["get"] + - target: $["paths"]["/filestorage/files/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingComment + label: retrieveFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -3364,9 +3409,10 @@ actions: }); async function run() { - const result = await panora.ticketing.comments.retrieve({ + const result = await panora.filestorage.files.retrieve({ xConnectionToken: "", - id: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3374,11 +3420,11 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["get"] + - target: $["paths"]["/ticketing/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingContacts + label: retrieveTicketingAccount source: |- import { Panora } from "@panora/sdk"; @@ -3387,11 +3433,9 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.list({ + const result = await panora.ticketing.accounts.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "", }); // Handle the result @@ -3399,11 +3443,11 @@ actions: } run(); - - target: $["paths"]["/"]["get"] + - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: hello + label: retrieveHrisEmployerBenefit source: |- import { Panora } from "@panora/sdk"; @@ -3412,18 +3456,22 @@ actions: }); async function run() { - const result = await panora.hello(); + const result = await panora.hris.employerbenefits.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/contacts"]["get"] + - target: $["paths"]["/accounting/transactions"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingContacts + label: listAccountingTransaction source: |- import { Panora } from "@panora/sdk"; @@ -3432,35 +3480,41 @@ actions: }); async function run() { - const result = await panora.ticketing.contacts.list({ + const result = await panora.accounting.transactions.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/paygroups/{id}"]["get"] + - target: $["paths"]["/field_mappings"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisPaygroup + label: defineCustomField 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.hris.paygroups.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + 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 @@ -3468,11 +3522,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions"]["get"] + - target: $["paths"]["/accounting/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAction + label: createAccountingContact source: |- import { Panora } from "@panora/sdk"; @@ -3481,11 +3535,10 @@ actions: }); async function run() { - const result = await panora.marketingautomation.actions.list({ + const result = await panora.accounting.contacts.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedAccountingContactInput: {}, }); // Handle the result @@ -3493,11 +3546,11 @@ actions: } run(); - - target: $["paths"]["/crm/users/{id}"]["get"] + - target: $["paths"]["/sync/resync"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmUser + label: resync source: |- import { Panora } from "@panora/sdk"; @@ -3506,22 +3559,18 @@ actions: }); async function run() { - const result = await panora.crm.users.retrieve({ - xConnectionToken: "", - id: "b008e199-eda9-4629-bd41-a01b6195864a", - remoteData: true, - }); + const result = await panora.sync.resync(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/field_mappings/map"]["post"] + - target: $["paths"]["/accounting/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: map + label: listAccountingAttachments source: |- import { Panora } from "@panora/sdk"; @@ -3530,23 +3579,24 @@ actions: }); 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", + const result = await panora.accounting.attachments.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/jobs"]["get"] + - target: $["paths"]["/filestorage/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsJob + label: listFilestorageUsers source: |- import { Panora } from "@panora/sdk"; @@ -3555,23 +3605,24 @@ actions: }); async function run() { - const result = await panora.ats.jobs.list({ + const result = await panora.filestorage.users.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/tasks"]["get"] + - target: $["paths"]["/accounting/phonenumbers"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmTask + label: listAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; @@ -3580,23 +3631,24 @@ actions: }); async function run() { - const result = await panora.crm.tasks.list({ + const result = await panora.accounting.phonenumbers.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/tasks/{id}"]["get"] + - target: $["paths"]["/webhooks"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmTask + label: createWebhookPublic source: |- import { Panora } from "@panora/sdk"; @@ -3605,10 +3657,12 @@ actions: }); async function run() { - const result = await panora.crm.tasks.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + const result = await panora.webhooks.create({ + url: "https://acme.com/webhook_receiver", + description: "Webhook to receive connection events", + scope: [ + "connection.created", + ], }); // Handle the result @@ -3616,11 +3670,11 @@ actions: } run(); - - target: $["paths"]["/hris/employees/{id}"]["get"] + - target: $["paths"]["/ticketing/tickets"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployee + label: listTicketingTicket source: |- import { Panora } from "@panora/sdk"; @@ -3629,22 +3683,24 @@ actions: }); async function run() { - const result = await panora.hris.employees.retrieve({ + const result = await panora.ticketing.tickets.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/employerbenefits"]["get"] + - target: $["paths"]["/filestorage/folders"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisEmployerBenefits + label: createFilestorageFolder source: |- import { Panora } from "@panora/sdk"; @@ -3653,35 +3709,23 @@ actions: }); async function run() { - const result = await panora.hris.employerbenefits.list({ + const result = await panora.filestorage.folders.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/ats/attachments/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAtsAttachment - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.ats.attachments.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 @@ -3689,11 +3733,11 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries/{id}"]["get"] + - target: $["paths"]["/marketingautomation/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingJournalEntry + label: retrieveMarketingAutomationUser source: |- import { Panora } from "@panora/sdk"; @@ -3702,7 +3746,7 @@ actions: }); async function run() { - const result = await panora.accounting.journalentries.retrieve({ + const result = await panora.marketingautomation.users.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3713,11 +3757,11 @@ actions: } run(); - - target: $["paths"]["/hris/companies"]["get"] + - target: $["paths"]["/ats/jobs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisCompanies + label: retrieveAtsJob source: |- import { Panora } from "@panora/sdk"; @@ -3726,11 +3770,10 @@ actions: }); async function run() { - const result = await panora.hris.companies.list({ + const result = await panora.ats.jobs.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3738,11 +3781,11 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs/{id}"]["get"] + - target: $["paths"]["/hris/employeepayrollruns"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsEeocs + label: listHrisEmployeePayrollRun source: |- import { Panora } from "@panora/sdk"; @@ -3751,21 +3794,24 @@ actions: }); async function run() { - const result = await panora.ats.eeocs.retrieve({ + const result = await panora.hris.employeepayrollruns.list({ xConnectionToken: "", - id: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/expenses"]["get"] + - target: $["paths"]["/marketingautomation/events"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingExpense + label: listMarketingAutomationEvents source: |- import { Panora } from "@panora/sdk"; @@ -3774,23 +3820,24 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.list({ + const result = await panora.marketingautomation.events.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/expenses/{id}"]["get"] + - target: $["paths"]["/crm/stages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingExpense + label: retrieveCrmStage source: |- import { Panora } from "@panora/sdk"; @@ -3799,7 +3846,7 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.retrieve({ + const result = await panora.crm.stages.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -3810,11 +3857,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/contacts/{id}"]["get"] + - target: $["paths"]["/ats/rejectreasons"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingContact + label: listAtsRejectReasons source: |- import { Panora } from "@panora/sdk"; @@ -3823,21 +3870,24 @@ actions: }); async function run() { - const result = await panora.ticketing.contacts.retrieve({ + const result = await panora.ats.rejectreasons.list({ xConnectionToken: "", - id: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/crm/notes"]["post"] + - target: $["paths"]["/ticketing/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmNote + label: retrieveTicketingTag source: |- import { Panora } from "@panora/sdk"; @@ -3846,20 +3896,10 @@ actions: }); async function run() { - const result = await panora.crm.notes.create({ + const result = await panora.ticketing.tags.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 @@ -3867,24 +3907,34 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns"]["get"] + - target: $["paths"]["/ticketing/comments"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisEmployeePayrollRun + label: createTicketingComment source: |- import { Panora } from "@panora/sdk"; + import { UnifiedTicketingCommentInputCreatorType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.hris.employeepayrollruns.list({ + const result = await panora.ticketing.comments.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + unifiedTicketingCommentInput: { + body: "Assigned to Eric !", + htmlBody: "

Assigned to Eric !

", + isPrivate: false, + creatorType: UnifiedTicketingCommentInputCreatorType.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 @@ -3892,11 +3942,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/users"]["get"] + - target: $["paths"]["/hris/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageUsers + label: retrieveHrisGroup source: |- import { Panora } from "@panora/sdk"; @@ -3905,11 +3955,10 @@ actions: }); async function run() { - const result = await panora.filestorage.users.list({ + const result = await panora.hris.groups.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3917,11 +3966,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/teams"]["get"] + - target: $["paths"]["/marketingautomation/events/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTeams + label: retrieveMarketingautomationEvent source: |- import { Panora } from "@panora/sdk"; @@ -3930,11 +3979,10 @@ actions: }); async function run() { - const result = await panora.ticketing.teams.list({ + const result = await panora.marketingautomation.events.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -3942,41 +3990,23 @@ actions: } run(); - - target: $["paths"]["/ats/interviews"]["post"] + - target: $["paths"]["/accounting/transactions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsInterview + label: retrieveAccountingTransaction source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsInterviewInputStatus } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.interviews.create({ + const result = await panora.accounting.transactions.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAtsInterviewInput: { - status: UnifiedAtsInterviewInputStatus.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 @@ -3984,11 +4014,11 @@ actions: } run(); - - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] + - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsRejectReason + label: hello source: |- import { Panora } from "@panora/sdk"; @@ -3997,22 +4027,18 @@ actions: }); async function run() { - const result = await panora.ats.rejectreasons.retrieve({ - xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, - }); + const result = await panora.hello(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["put"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingBalanceSheet + label: updateStatus source: |- import { Panora } from "@panora/sdk"; @@ -4021,10 +4047,8 @@ actions: }); async function run() { - const result = await panora.accounting.balancesheets.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.updateStatus({ id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, }); // Handle the result @@ -4032,11 +4056,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/users"]["get"] + - target: $["paths"]["/ats/activities"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingUsers + label: listAtsActivity source: |- import { Panora } from "@panora/sdk"; @@ -4045,23 +4069,24 @@ actions: }); async function run() { - const result = await panora.ticketing.users.list({ + const result = await panora.ats.activities.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/linked_users/fromRemoteId"]["get"] + - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: remoteId + label: retrieveAtsRejectReason source: |- import { Panora } from "@panora/sdk"; @@ -4070,8 +4095,10 @@ actions: }); async function run() { - const result = await panora.linkedUsers.remoteId({ - remoteId: "id_1", + const result = await panora.ats.rejectreasons.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4079,11 +4106,11 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] + - target: $["paths"]["/accounting/payments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployeePayrollRun + label: retrieveAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -4092,7 +4119,7 @@ actions: }); async function run() { - const result = await panora.hris.employeepayrollruns.retrieve({ + const result = await panora.accounting.payments.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4103,35 +4130,23 @@ actions: } run(); - - target: $["paths"]["/ats/activities"]["post"] + - target: $["paths"]["/marketingautomation/actions"]["post"] update: x-codeSamples: - lang: typescript - label: createAtsActivity + label: createMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsActivityInputActivityType, UnifiedAtsActivityInputVisibility } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.activities.create({ + const result = await panora.marketingautomation.actions.create({ xConnectionToken: "", remoteData: false, - unifiedAtsActivityInput: { - activityType: UnifiedAtsActivityInputActivityType.Note, - subject: "Email subject", - body: "Dear Diana, I love you", - visibility: UnifiedAtsActivityInputVisibility.Public, - candidateId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteCreatedAt: new Date("2024-10-01T12:00:00Z"), - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + unifiedMarketingautomationActionInput: {}, }); // Handle the result @@ -4139,11 +4154,11 @@ actions: } run(); - - target: $["paths"]["/ats/jobinterviewstages"]["get"] + - target: $["paths"]["/marketingautomation/templates"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsJobInterviewStage + label: listMarketingautomationTemplates source: |- import { Panora } from "@panora/sdk"; @@ -4152,23 +4167,24 @@ actions: }); async function run() { - const result = await panora.ats.jobinterviewstages.list({ + const result = await panora.marketingautomation.templates.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/invoices"]["get"] + - target: $["paths"]["/hris/employees"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingInvoice + label: listHrisEmployees source: |- import { Panora } from "@panora/sdk"; @@ -4177,23 +4193,24 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.list({ + const result = await panora.hris.employees.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/folders"]["get"] + - target: $["paths"]["/ats/jobs"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageFolder + label: listAtsJob source: |- import { Panora } from "@panora/sdk"; @@ -4202,23 +4219,24 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.list({ + const result = await panora.ats.jobs.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] + - target: $["paths"]["/accounting/companyinfos"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoffbalance + label: listAccountingCompanyInfos source: |- import { Panora } from "@panora/sdk"; @@ -4227,22 +4245,24 @@ actions: }); async function run() { - const result = await panora.hris.timeoffbalances.retrieve({ + const result = await panora.accounting.companyinfos.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/accounts"]["post"] + - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingAccount + label: retrieveAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; @@ -4251,10 +4271,10 @@ actions: }); async function run() { - const result = await panora.accounting.accounts.create({ + const result = await panora.accounting.vendorcredits.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingAccountInput: {}, }); // Handle the result @@ -4262,11 +4282,11 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["post"] + - target: $["paths"]["/accounting/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingContact + label: listAccountingAccounts source: |- import { Panora } from "@panora/sdk"; @@ -4275,22 +4295,24 @@ actions: }); async function run() { - const result = await panora.accounting.contacts.create({ + const result = await panora.accounting.accounts.list({ xConnectionToken: "", - remoteData: false, - unifiedAccountingContactInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/folders"]["post"] + - target: $["paths"]["/filestorage/files"]["post"] update: x-codeSamples: - lang: typescript - label: createFilestorageFolder + label: createFilestorageFile source: |- import { Panora } from "@panora/sdk"; @@ -4299,18 +4321,17 @@ actions: }); async function run() { - const result = await panora.filestorage.folders.create({ + const result = await panora.filestorage.files.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", + 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", @@ -4323,11 +4344,11 @@ actions: } run(); - - target: $["paths"]["/webhooks"]["post"] + - target: $["paths"]["/linked_users"]["post"] update: x-codeSamples: - lang: typescript - label: createWebhookPublic + label: createLinkedUser source: |- import { Panora } from "@panora/sdk"; @@ -4336,12 +4357,9 @@ actions: }); async function run() { - const result = await panora.webhooks.create({ - url: "https://acme.com/webhook_receiver", - description: "Webhook to receive connection events", - scope: [ - "connection.created", - ], + const result = await panora.linkedUsers.create({ + linkedUserOriginId: "id_1", + alias: "acme", }); // Handle the result @@ -4349,11 +4367,11 @@ actions: } run(); - - target: $["paths"]["/crm/engagements/{id}"]["get"] + - target: $["paths"]["/ats/candidates"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmEngagement + label: listAtsCandidate source: |- import { Panora } from "@panora/sdk"; @@ -4362,22 +4380,24 @@ actions: }); async function run() { - const result = await panora.crm.engagements.retrieve({ + const result = await panora.ats.candidates.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/hris/timeoffbalances"]["get"] + - target: $["paths"]["/marketingautomation/automations"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffbalances + label: createMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; @@ -4386,11 +4406,10 @@ actions: }); async function run() { - const result = await panora.hris.timeoffbalances.list({ + const result = await panora.marketingautomation.automations.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedMarketingautomationAutomationInput: {}, }); // Handle the result @@ -4398,11 +4417,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCollection + label: listMarketingAutomationContacts source: |- import { Panora } from "@panora/sdk"; @@ -4411,22 +4430,24 @@ actions: }); async function run() { - const result = await panora.ticketing.collections.retrieve({ + const result = await panora.marketingautomation.contacts.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/marketingautomation/templates"]["get"] + - target: $["paths"]["/hris/employments"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationTemplates + label: listHrisEmployments source: |- import { Panora } from "@panora/sdk"; @@ -4435,23 +4456,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.templates.list({ + const result = await panora.hris.employments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/invoices"]["post"] + - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingInvoice + label: retrieveHrisTimeoffbalance source: |- import { Panora } from "@panora/sdk"; @@ -4460,10 +4482,10 @@ actions: }); async function run() { - const result = await panora.accounting.invoices.create({ + const result = await panora.hris.timeoffbalances.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -4471,11 +4493,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/teams/{id}"]["get"] + - target: $["paths"]["/accounting/journalentries/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTeam + label: retrieveAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; @@ -4484,7 +4506,7 @@ actions: }); async function run() { - const result = await panora.ticketing.teams.retrieve({ + const result = await panora.accounting.journalentries.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4495,11 +4517,11 @@ actions: } run(); - - target: $["paths"]["/crm/engagements"]["get"] + - target: $["paths"]["/accounting/taxrates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmEngagements + label: retrieveAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; @@ -4508,11 +4530,10 @@ actions: }); async function run() { - const result = await panora.crm.engagements.list({ + const result = await panora.accounting.taxrates.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4520,35 +4541,23 @@ actions: } run(); - - target: $["paths"]["/ats/attachments"]["post"] + - target: $["paths"]["/hris/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsAttachment + label: retrieveHrisCompany source: |- import { Panora } from "@panora/sdk"; - import { UnifiedAtsAttachmentInputAttachmentType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.ats.attachments.create({ + const result = await panora.hris.companies.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAtsAttachmentInput: { - fileUrl: "https://example.com/file.pdf", - fileName: "file.pdf", - attachmentType: UnifiedAtsAttachmentInputAttachmentType.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", - }, - }, }); // Handle the result @@ -4556,11 +4565,11 @@ actions: } run(); - - target: $["paths"]["/accounting/incomestatements"]["get"] + - target: $["paths"]["/hris/timeoffs"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingIncomeStatement + label: listHrisTimeoffs source: |- import { Panora } from "@panora/sdk"; @@ -4569,36 +4578,111 @@ actions: }); async function run() { - const result = await panora.accounting.incomestatements.list({ + 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 page + } + } + + run(); + - target: $["paths"]["/passthrough"]["post"] + update: + x-codeSamples: + - lang: typescript + label: request + 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({ + integrationId: "", + linkedUserId: "", + vertical: "", + passThroughRequestDto: { + method: PassThroughRequestDtoMethod.Get, + path: "/dev", + data: { + "key": "", + }, + headers: { + "key": "", + }, + }, + }); + // Handle the result console.log(result) } run(); - - target: $["paths"]["/crm/stages"]["get"] + - target: $["paths"]["/auth/login"]["post"] update: x-codeSamples: - lang: typescript - label: listCrmStages + label: signIn + source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"\",\n});\n\nasync function run() {\n await panora.auth.login.signIn({\n idUser: \"\",\n email: \"Oda.Treutel97@hotmail.com\",\n passwordHash: \"\",\n });\n\n \n}\n\nrun();" + - target: $["paths"]["/crm/companies"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createCrmCompany source: |- import { Panora } from "@panora/sdk"; + import { AddressType, EmailAddressType, PhoneType, UnifiedCrmCompanyInputIndustry } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.stages.list({ + const result = await panora.crm.companies.create({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + remoteData: false, + unifiedCrmCompanyInput: { + name: "Acme", + industry: UnifiedCrmCompanyInputIndustry.Accounting, + numberOfEmployees: 10, + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + emailAddresses: [ + { + emailAddress: "acme@gmail.com", + emailAddressType: EmailAddressType.Work, + }, + ], + addresses: [ + { + street1: "5th Avenue", + street2: "", + city: "New York", + state: "NY", + postalCode: "46842", + country: "USA", + addressType: AddressType.Work, + ownerType: "", + }, + ], + phoneNumbers: [ + { + phoneNumber: "+33660606067", + phoneType: PhoneType.Work, + }, + ], + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4606,11 +4690,11 @@ actions: } run(); - - target: $["paths"]["/linked_users"]["get"] + - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listLinkedUsers + label: retrieveAccountingCompanyInfo source: |- import { Panora } from "@panora/sdk"; @@ -4619,18 +4703,22 @@ actions: }); async function run() { - const result = await panora.linkedUsers.list(); + 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"]["/hris/payrollruns/{id}"]["get"] + - target: $["paths"]["/crm/deals"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisPayrollRun + label: createCrmDeal source: |- import { Panora } from "@panora/sdk"; @@ -4639,10 +4727,20 @@ actions: }); async function run() { - const result = await panora.hris.payrollruns.retrieve({ + const result = await panora.crm.deals.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + 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 @@ -4650,11 +4748,11 @@ actions: } run(); - - target: $["paths"]["/ats/interviews"]["get"] + - target: $["paths"]["/ats/departments"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsInterview + label: listAtsDepartments source: |- import { Panora } from "@panora/sdk"; @@ -4663,23 +4761,24 @@ actions: }); async function run() { - const result = await panora.ats.interviews.list({ + const result = await panora.ats.departments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/scorecards/{id}"]["get"] + - target: $["paths"]["/ats/applications"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsScorecard + label: listAtsApplication source: |- import { Panora } from "@panora/sdk"; @@ -4688,22 +4787,24 @@ actions: }); async function run() { - const result = await panora.ats.scorecards.retrieve({ + const result = await panora.ats.applications.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/payments"]["get"] + - target: $["paths"]["/accounting/addresses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPayment + label: retrieveAccountingAddress source: |- import { Panora } from "@panora/sdk"; @@ -4712,11 +4813,10 @@ actions: }); async function run() { - const result = await panora.accounting.payments.list({ + const result = await panora.accounting.addresses.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -4724,21 +4824,56 @@ actions: } run(); - - target: $["paths"]["/webhooks/{id}"]["put"] + - target: $["paths"]["/crm/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: updateStatus + label: createCrmContact source: |- import { Panora } from "@panora/sdk"; + import { AddressType, EmailAddressType, PhoneType } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.webhooks.updateStatus({ - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + const result = await panora.crm.contacts.create({ + xConnectionToken: "", + remoteData: false, + unifiedCrmContactInput: { + firstName: "John", + lastName: "Doe", + emailAddresses: [ + { + emailAddress: "Jena.Nienow28@yahoo.com", + emailAddressType: EmailAddressType.Personal, + }, + ], + phoneNumbers: [ + { + phoneNumber: "", + phoneType: PhoneType.Work, + }, + ], + addresses: [ + { + street1: "", + street2: "", + city: "Anytown", + state: "CA", + postalCode: "97398", + country: "USA", + addressType: AddressType.Personal, + ownerType: "", + }, + ], + userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + fieldMappings: { + "fav_dish": "broccoli", + "fav_color": "red", + }, + }, }); // Handle the result @@ -4746,11 +4881,11 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["get"] + - target: $["paths"]["/hris/paygroups"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAttachments + label: listHrisPaygroups source: |- import { Panora } from "@panora/sdk"; @@ -4759,23 +4894,24 @@ actions: }); async function run() { - const result = await panora.ticketing.attachments.list({ + const result = await panora.hris.paygroups.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/linked_users/batch"]["post"] + - target: $["paths"]["/hris/benefits"]["get"] update: x-codeSamples: - lang: typescript - label: importBatch + label: listHrisBenefits source: |- import { Panora } from "@panora/sdk"; @@ -4784,23 +4920,24 @@ actions: }); async function run() { - const result = await panora.linkedUsers.importBatch({ - linkedUserOriginIds: [ - "id_1", - ], - alias: "acme", + const result = await panora.hris.benefits.list({ + xConnectionToken: "", + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/connections"]["get"] + - target: $["paths"]["/ats/offers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: getConnections + label: retrieveAtsOffer source: |- import { Panora } from "@panora/sdk"; @@ -4809,18 +4946,22 @@ actions: }); async function run() { - const result = await panora.connections.getConnections(); + const result = await panora.ats.offers.retrieve({ + xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/linked_users"]["post"] + - target: $["paths"]["/accounting/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: createLinkedUser + label: createAccountingAttachment source: |- import { Panora } from "@panora/sdk"; @@ -4829,9 +4970,10 @@ actions: }); async function run() { - const result = await panora.linkedUsers.create({ - linkedUserOriginId: "id_1", - alias: "acme", + const result = await panora.accounting.attachments.create({ + xConnectionToken: "", + remoteData: false, + unifiedAccountingAttachmentInput: {}, }); // Handle the result @@ -4839,11 +4981,11 @@ actions: } run(); - - target: $["paths"]["/hris/dependents/{id}"]["get"] + - target: $["paths"]["/hris/employees/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisDependent + label: retrieveHrisEmployee source: |- import { Panora } from "@panora/sdk"; @@ -4852,7 +4994,7 @@ actions: }); async function run() { - const result = await panora.hris.dependents.retrieve({ + const result = await panora.hris.employees.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4863,11 +5005,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationUser + label: retrieveHrisTimeoff source: |- import { Panora } from "@panora/sdk"; @@ -4876,7 +5018,7 @@ actions: }); async function run() { - const result = await panora.marketingautomation.users.retrieve({ + const result = await panora.hris.timeoffs.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4887,11 +5029,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/files"]["post"] + - target: $["paths"]["/ats/interviews/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createFilestorageFile + label: retrieveAtsInterview source: |- import { Panora } from "@panora/sdk"; @@ -4900,22 +5042,10 @@ actions: }); async function run() { - const result = await panora.filestorage.files.create({ + const result = await panora.ats.interviews.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", 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 @@ -4923,11 +5053,11 @@ actions: } run(); - - target: $["paths"]["/ats/offers"]["get"] + - target: $["paths"]["/accounting/payments"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsOffer + label: listAccountingPayment source: |- import { Panora } from "@panora/sdk"; @@ -4936,47 +5066,24 @@ actions: }); async function run() { - const result = await panora.ats.offers.list({ + const result = await panora.accounting.payments.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: retrieveAccountingCompanyInfo - 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) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] + - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJobInterviewStage + label: retrieveAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; @@ -4985,7 +5092,7 @@ actions: }); async function run() { - const result = await panora.ats.jobinterviewstages.retrieve({ + const result = await panora.accounting.purchaseorders.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -4996,11 +5103,11 @@ actions: } run(); - - target: $["paths"]["/ats/tags"]["get"] + - target: $["paths"]["/field_mappings/map"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsTags + label: map source: |- import { Panora } from "@panora/sdk"; @@ -5009,11 +5116,11 @@ actions: }); async function run() { - const result = await panora.ats.tags.list({ - xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + 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 @@ -5021,69 +5128,37 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["post"] + - target: $["paths"]["/hris/timeoffbalances"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmCompany + label: listHrisTimeoffbalances source: |- import { Panora } from "@panora/sdk"; - import { AddressType, EmailAddressType, PhoneType, UnifiedCrmCompanyInputIndustry } from "@panora/sdk/models/components"; const panora = new Panora({ apiKey: "", }); async function run() { - const result = await panora.crm.companies.create({ + const result = await panora.hris.timeoffbalances.list({ xConnectionToken: "", - remoteData: false, - unifiedCrmCompanyInput: { - name: "Acme", - industry: UnifiedCrmCompanyInputIndustry.Accounting, - numberOfEmployees: 10, - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - emailAddresses: [ - { - emailAddress: "acme@gmail.com", - emailAddressType: EmailAddressType.Work, - }, - ], - addresses: [ - { - street1: "5th Avenue", - street2: "", - city: "New York", - state: "NY", - postalCode: "46842", - country: "USA", - addressType: AddressType.Work, - ownerType: "", - }, - ], - phoneNumbers: [ - { - phoneNumber: "+33660606067", - phoneType: PhoneType.Work, - }, - ], - fieldMappings: { - "fav_dish": "broccoli", - "fav_color": "red", - }, - }, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/activities/{id}"]["get"] + - target: $["paths"]["/hris/locations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsActivity + label: retrieveHrisLocation source: |- import { Panora } from "@panora/sdk"; @@ -5092,7 +5167,7 @@ actions: }); async function run() { - const result = await panora.ats.activities.retrieve({ + const result = await panora.hris.locations.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5103,11 +5178,11 @@ actions: } run(); - - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] + - target: $["paths"]["/ats/eeocs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingVendorCredit + label: retrieveAtsEeocs source: |- import { Panora } from "@panora/sdk"; @@ -5116,10 +5191,9 @@ actions: }); async function run() { - const result = await panora.accounting.vendorcredits.retrieve({ + const result = await panora.ats.eeocs.retrieve({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + id: "", }); // Handle the result @@ -5127,11 +5201,11 @@ actions: } run(); - - target: $["paths"]["/crm/stages/{id}"]["get"] + - target: $["paths"]["/accounting/accounts"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmStage + label: createAccountingAccount source: |- import { Panora } from "@panora/sdk"; @@ -5140,10 +5214,10 @@ actions: }); async function run() { - const result = await panora.crm.stages.retrieve({ + const result = await panora.accounting.accounts.create({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, + unifiedAccountingAccountInput: {}, }); // Handle the result @@ -5151,11 +5225,11 @@ actions: } run(); - - target: $["paths"]["/crm/users"]["get"] + - target: $["paths"]["/crm/deals"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmUsers + label: listCrmDeals source: |- import { Panora } from "@panora/sdk"; @@ -5164,23 +5238,24 @@ actions: }); async function run() { - const result = await panora.crm.users.list({ + const result = await panora.crm.deals.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/items"]["get"] + - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingItem + label: retrieveAccountingBalanceSheet source: |- import { Panora } from "@panora/sdk"; @@ -5189,11 +5264,10 @@ actions: }); async function run() { - const result = await panora.accounting.items.list({ + const result = await panora.accounting.balancesheets.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5201,11 +5275,11 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] + - target: $["paths"]["/filestorage/drives"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPhonenumber + label: listFilestorageDrives source: |- import { Panora } from "@panora/sdk"; @@ -5214,22 +5288,24 @@ actions: }); async function run() { - const result = await panora.accounting.phonenumbers.retrieve({ + const result = await panora.filestorage.drives.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/files/{id}"]["get"] + - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFile + label: retrieveMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; @@ -5238,7 +5314,7 @@ actions: }); async function run() { - const result = await panora.filestorage.files.retrieve({ + const result = await panora.marketingautomation.templates.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5249,11 +5325,11 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] + - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPurchaseOrder + label: retrieveAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; @@ -5262,7 +5338,7 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.retrieve({ + const result = await panora.ats.jobinterviewstages.retrieve({ xConnectionToken: "", id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, @@ -5273,11 +5349,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/groups"]["get"] + - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageGroup + label: retrieveAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; @@ -5286,11 +5362,10 @@ actions: }); async function run() { - const result = await panora.filestorage.groups.list({ + const result = await panora.accounting.incomestatements.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5298,11 +5373,11 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses"]["post"] + - target: $["paths"]["/ticketing/tickets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingExpense + label: retrieveTicketingTicket source: |- import { Panora } from "@panora/sdk"; @@ -5311,10 +5386,10 @@ actions: }); async function run() { - const result = await panora.accounting.expenses.create({ + const result = await panora.ticketing.tickets.retrieve({ xConnectionToken: "", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteData: false, - unifiedAccountingExpenseInput: {}, }); // Handle the result @@ -5322,11 +5397,11 @@ actions: } run(); - - target: $["paths"]["/filestorage/drives"]["get"] + - target: $["paths"]["/crm/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageDrives + label: retrieveCrmUser source: |- import { Panora } from "@panora/sdk"; @@ -5335,11 +5410,10 @@ actions: }); async function run() { - const result = await panora.filestorage.drives.list({ + const result = await panora.crm.users.retrieve({ xConnectionToken: "", + id: "b008e199-eda9-4629-bd41-a01b6195864a", remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); // Handle the result @@ -5347,11 +5421,11 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations"]["post"] + - target: $["paths"]["/hris/bankinfos"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAutomation + label: listHrisBankInfo source: |- import { Panora } from "@panora/sdk"; @@ -5360,22 +5434,24 @@ actions: }); async function run() { - const result = await panora.marketingautomation.automations.create({ + const result = await panora.hris.bankinfos.list({ xConnectionToken: "", - remoteData: false, - unifiedMarketingautomationAutomationInput: {}, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/filestorage/files"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageFile + label: listMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; @@ -5384,23 +5460,24 @@ actions: }); async function run() { - const result = await panora.filestorage.files.list({ + const result = await panora.marketingautomation.actions.list({ xConnectionToken: "", remoteData: true, limit: 10, cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/offers/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffer + label: listMarketingautomationCampaigns source: |- import { Panora } from "@panora/sdk"; @@ -5409,22 +5486,24 @@ actions: }); async function run() { - const result = await panora.ats.offers.retrieve({ + const result = await panora.marketingautomation.campaigns.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/accounting/purchaseorders"]["get"] + - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPurchaseOrder + label: retrieveMarketingautomationList source: |- import { Panora } from "@panora/sdk"; @@ -5433,11 +5512,10 @@ actions: }); async function run() { - const result = await panora.accounting.purchaseorders.list({ + const result = await panora.marketingautomation.lists.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5445,11 +5523,11 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["get"] + - target: $["paths"]["/ats/departments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmCompany + label: retrieveAtsDepartment source: |- import { Panora } from "@panora/sdk"; @@ -5458,11 +5536,10 @@ actions: }); async function run() { - const result = await panora.crm.companies.list({ + const result = await panora.ats.departments.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5470,11 +5547,11 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["get"] + - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmContacts + label: retrieveAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; @@ -5483,11 +5560,10 @@ actions: }); async function run() { - const result = await panora.crm.contacts.list({ + const result = await panora.accounting.phonenumbers.retrieve({ xConnectionToken: "", - remoteData: true, - limit: 10, - cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", + id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", + remoteData: false, }); // Handle the result @@ -5495,11 +5571,11 @@ actions: } run(); - - target: $["paths"]["/hris/employments/{id}"]["get"] + - target: $["paths"]["/ats/tags"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployment + label: listAtsTags source: |- import { Panora } from "@panora/sdk"; @@ -5508,22 +5584,24 @@ actions: }); async function run() { - const result = await panora.hris.employments.retrieve({ + const result = await panora.ats.tags.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); - - target: $["paths"]["/ats/interviews/{id}"]["get"] + - target: $["paths"]["/accounting/addresses"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsInterview + label: listAccountingAddress source: |- import { Panora } from "@panora/sdk"; @@ -5532,14 +5610,16 @@ actions: }); async function run() { - const result = await panora.ats.interviews.retrieve({ + const result = await panora.accounting.addresses.list({ xConnectionToken: "", - id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - remoteData: false, + remoteData: true, + limit: 10, + cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); diff --git a/docs/models/operations/listaccountingaccountsresponse.md b/docs/models/operations/listaccountingaccountsresponse.md new file mode 100644 index 00000000..12c6fdf8 --- /dev/null +++ b/docs/models/operations/listaccountingaccountsresponse.md @@ -0,0 +1,8 @@ +# ListAccountingAccountsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingAccountsResponseBody](../../models/operations/listaccountingaccountsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingaddressresponse.md b/docs/models/operations/listaccountingaddressresponse.md new file mode 100644 index 00000000..8ade2e47 --- /dev/null +++ b/docs/models/operations/listaccountingaddressresponse.md @@ -0,0 +1,8 @@ +# ListAccountingAddressResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingAddressResponseBody](../../models/operations/listaccountingaddressresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingattachmentsresponse.md b/docs/models/operations/listaccountingattachmentsresponse.md new file mode 100644 index 00000000..d7737d77 --- /dev/null +++ b/docs/models/operations/listaccountingattachmentsresponse.md @@ -0,0 +1,8 @@ +# ListAccountingAttachmentsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingAttachmentsResponseBody](../../models/operations/listaccountingattachmentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingbalancesheetsresponse.md b/docs/models/operations/listaccountingbalancesheetsresponse.md new file mode 100644 index 00000000..d6cafdf1 --- /dev/null +++ b/docs/models/operations/listaccountingbalancesheetsresponse.md @@ -0,0 +1,8 @@ +# ListAccountingBalanceSheetsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingBalanceSheetsResponseBody](../../models/operations/listaccountingbalancesheetsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingcashflowstatementresponse.md b/docs/models/operations/listaccountingcashflowstatementresponse.md new file mode 100644 index 00000000..fb0d7dfb --- /dev/null +++ b/docs/models/operations/listaccountingcashflowstatementresponse.md @@ -0,0 +1,8 @@ +# ListAccountingCashflowStatementResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingCashflowStatementResponseBody](../../models/operations/listaccountingcashflowstatementresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingcompanyinfosresponse.md b/docs/models/operations/listaccountingcompanyinfosresponse.md new file mode 100644 index 00000000..450e49a0 --- /dev/null +++ b/docs/models/operations/listaccountingcompanyinfosresponse.md @@ -0,0 +1,8 @@ +# ListAccountingCompanyInfosResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingCompanyInfosResponseBody](../../models/operations/listaccountingcompanyinfosresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingcontactsresponse.md b/docs/models/operations/listaccountingcontactsresponse.md new file mode 100644 index 00000000..a369c458 --- /dev/null +++ b/docs/models/operations/listaccountingcontactsresponse.md @@ -0,0 +1,8 @@ +# ListAccountingContactsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingContactsResponseBody](../../models/operations/listaccountingcontactsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingcreditnoteresponse.md b/docs/models/operations/listaccountingcreditnoteresponse.md new file mode 100644 index 00000000..e726b51b --- /dev/null +++ b/docs/models/operations/listaccountingcreditnoteresponse.md @@ -0,0 +1,8 @@ +# ListAccountingCreditNoteResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingCreditNoteResponseBody](../../models/operations/listaccountingcreditnoteresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingexpenseresponse.md b/docs/models/operations/listaccountingexpenseresponse.md new file mode 100644 index 00000000..882ef760 --- /dev/null +++ b/docs/models/operations/listaccountingexpenseresponse.md @@ -0,0 +1,8 @@ +# ListAccountingExpenseResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingExpenseResponseBody](../../models/operations/listaccountingexpenseresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingincomestatementresponse.md b/docs/models/operations/listaccountingincomestatementresponse.md new file mode 100644 index 00000000..14713ed1 --- /dev/null +++ b/docs/models/operations/listaccountingincomestatementresponse.md @@ -0,0 +1,8 @@ +# ListAccountingIncomeStatementResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingIncomeStatementResponseBody](../../models/operations/listaccountingincomestatementresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountinginvoiceresponse.md b/docs/models/operations/listaccountinginvoiceresponse.md new file mode 100644 index 00000000..9f389b71 --- /dev/null +++ b/docs/models/operations/listaccountinginvoiceresponse.md @@ -0,0 +1,8 @@ +# ListAccountingInvoiceResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingInvoiceResponseBody](../../models/operations/listaccountinginvoiceresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingitemresponse.md b/docs/models/operations/listaccountingitemresponse.md new file mode 100644 index 00000000..08eaba6e --- /dev/null +++ b/docs/models/operations/listaccountingitemresponse.md @@ -0,0 +1,8 @@ +# ListAccountingItemResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingItemResponseBody](../../models/operations/listaccountingitemresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingjournalentryresponse.md b/docs/models/operations/listaccountingjournalentryresponse.md new file mode 100644 index 00000000..6e6a4c67 --- /dev/null +++ b/docs/models/operations/listaccountingjournalentryresponse.md @@ -0,0 +1,8 @@ +# ListAccountingJournalEntryResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingJournalEntryResponseBody](../../models/operations/listaccountingjournalentryresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingpaymentresponse.md b/docs/models/operations/listaccountingpaymentresponse.md new file mode 100644 index 00000000..ec2037aa --- /dev/null +++ b/docs/models/operations/listaccountingpaymentresponse.md @@ -0,0 +1,8 @@ +# ListAccountingPaymentResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingPaymentResponseBody](../../models/operations/listaccountingpaymentresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingphonenumberresponse.md b/docs/models/operations/listaccountingphonenumberresponse.md new file mode 100644 index 00000000..10e65e1f --- /dev/null +++ b/docs/models/operations/listaccountingphonenumberresponse.md @@ -0,0 +1,8 @@ +# ListAccountingPhonenumberResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingPhonenumberResponseBody](../../models/operations/listaccountingphonenumberresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingpurchaseorderresponse.md b/docs/models/operations/listaccountingpurchaseorderresponse.md new file mode 100644 index 00000000..6c8a0d3d --- /dev/null +++ b/docs/models/operations/listaccountingpurchaseorderresponse.md @@ -0,0 +1,8 @@ +# ListAccountingPurchaseOrderResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingPurchaseOrderResponseBody](../../models/operations/listaccountingpurchaseorderresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingtaxrateresponse.md b/docs/models/operations/listaccountingtaxrateresponse.md new file mode 100644 index 00000000..5a8dec5a --- /dev/null +++ b/docs/models/operations/listaccountingtaxrateresponse.md @@ -0,0 +1,8 @@ +# ListAccountingTaxRateResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListAccountingTaxRateResponseBody](../../models/operations/listaccountingtaxrateresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingtrackingcategorysresponse.md b/docs/models/operations/listaccountingtrackingcategorysresponse.md new file mode 100644 index 00000000..0e0eb9f8 --- /dev/null +++ b/docs/models/operations/listaccountingtrackingcategorysresponse.md @@ -0,0 +1,8 @@ +# ListAccountingTrackingCategorysResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingTrackingCategorysResponseBody](../../models/operations/listaccountingtrackingcategorysresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingtransactionresponse.md b/docs/models/operations/listaccountingtransactionresponse.md new file mode 100644 index 00000000..541b5db6 --- /dev/null +++ b/docs/models/operations/listaccountingtransactionresponse.md @@ -0,0 +1,8 @@ +# ListAccountingTransactionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingTransactionResponseBody](../../models/operations/listaccountingtransactionresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listaccountingvendorcreditresponse.md b/docs/models/operations/listaccountingvendorcreditresponse.md new file mode 100644 index 00000000..3f22abfc --- /dev/null +++ b/docs/models/operations/listaccountingvendorcreditresponse.md @@ -0,0 +1,8 @@ +# ListAccountingVendorCreditResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListAccountingVendorCreditResponseBody](../../models/operations/listaccountingvendorcreditresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listatsactivityresponse.md b/docs/models/operations/listatsactivityresponse.md new file mode 100644 index 00000000..1a724274 --- /dev/null +++ b/docs/models/operations/listatsactivityresponse.md @@ -0,0 +1,8 @@ +# ListAtsActivityResponse + + +## 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/listatsapplicationresponse.md b/docs/models/operations/listatsapplicationresponse.md new file mode 100644 index 00000000..590d035b --- /dev/null +++ b/docs/models/operations/listatsapplicationresponse.md @@ -0,0 +1,8 @@ +# ListAtsApplicationResponse + + +## 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/listatsattachmentresponse.md b/docs/models/operations/listatsattachmentresponse.md new file mode 100644 index 00000000..447948d3 --- /dev/null +++ b/docs/models/operations/listatsattachmentresponse.md @@ -0,0 +1,8 @@ +# ListAtsAttachmentResponse + + +## 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/listatscandidateresponse.md b/docs/models/operations/listatscandidateresponse.md new file mode 100644 index 00000000..34912d4a --- /dev/null +++ b/docs/models/operations/listatscandidateresponse.md @@ -0,0 +1,8 @@ +# ListAtsCandidateResponse + + +## 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/listatsdepartmentsresponse.md b/docs/models/operations/listatsdepartmentsresponse.md new file mode 100644 index 00000000..1d4fb04b --- /dev/null +++ b/docs/models/operations/listatsdepartmentsresponse.md @@ -0,0 +1,8 @@ +# ListAtsDepartmentsResponse + + +## 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/listatseeocsresponse.md b/docs/models/operations/listatseeocsresponse.md new file mode 100644 index 00000000..5fdd297d --- /dev/null +++ b/docs/models/operations/listatseeocsresponse.md @@ -0,0 +1,8 @@ +# ListAtsEeocsResponse + + +## 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/listatsinterviewresponse.md b/docs/models/operations/listatsinterviewresponse.md new file mode 100644 index 00000000..53496254 --- /dev/null +++ b/docs/models/operations/listatsinterviewresponse.md @@ -0,0 +1,8 @@ +# ListAtsInterviewResponse + + +## 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/listatsjobinterviewstageresponse.md b/docs/models/operations/listatsjobinterviewstageresponse.md new file mode 100644 index 00000000..c863d0e0 --- /dev/null +++ b/docs/models/operations/listatsjobinterviewstageresponse.md @@ -0,0 +1,8 @@ +# ListAtsJobInterviewStageResponse + + +## 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/listatsjobresponse.md b/docs/models/operations/listatsjobresponse.md new file mode 100644 index 00000000..504d9a74 --- /dev/null +++ b/docs/models/operations/listatsjobresponse.md @@ -0,0 +1,8 @@ +# ListAtsJobResponse + + +## 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/listatsofferresponse.md b/docs/models/operations/listatsofferresponse.md new file mode 100644 index 00000000..4e24efaa --- /dev/null +++ b/docs/models/operations/listatsofferresponse.md @@ -0,0 +1,8 @@ +# ListAtsOfferResponse + + +## 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/listatsofficeresponse.md b/docs/models/operations/listatsofficeresponse.md new file mode 100644 index 00000000..36cbceea --- /dev/null +++ b/docs/models/operations/listatsofficeresponse.md @@ -0,0 +1,8 @@ +# ListAtsOfficeResponse + + +## 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/listatsrejectreasonsresponse.md b/docs/models/operations/listatsrejectreasonsresponse.md new file mode 100644 index 00000000..54be5b31 --- /dev/null +++ b/docs/models/operations/listatsrejectreasonsresponse.md @@ -0,0 +1,8 @@ +# ListAtsRejectReasonsResponse + + +## 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/listatsscorecardresponse.md b/docs/models/operations/listatsscorecardresponse.md new file mode 100644 index 00000000..ee60321c --- /dev/null +++ b/docs/models/operations/listatsscorecardresponse.md @@ -0,0 +1,8 @@ +# ListAtsScorecardResponse + + +## 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/listatstagsresponse.md b/docs/models/operations/listatstagsresponse.md new file mode 100644 index 00000000..340ecc95 --- /dev/null +++ b/docs/models/operations/listatstagsresponse.md @@ -0,0 +1,8 @@ +# ListAtsTagsResponse + + +## 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/listatsusersresponse.md b/docs/models/operations/listatsusersresponse.md new file mode 100644 index 00000000..14fdb1fd --- /dev/null +++ b/docs/models/operations/listatsusersresponse.md @@ -0,0 +1,8 @@ +# ListAtsUsersResponse + + +## 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/listcrmcompanyresponse.md b/docs/models/operations/listcrmcompanyresponse.md new file mode 100644 index 00000000..2c298c17 --- /dev/null +++ b/docs/models/operations/listcrmcompanyresponse.md @@ -0,0 +1,8 @@ +# ListCrmCompanyResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `result` | [operations.ListCrmCompanyResponseBody](../../models/operations/listcrmcompanyresponsebody.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 new file mode 100644 index 00000000..66de18ea --- /dev/null +++ b/docs/models/operations/listcrmcontactsresponse.md @@ -0,0 +1,8 @@ +# ListCrmContactsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListCrmContactsResponseBody](../../models/operations/listcrmcontactsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmdealsresponse.md b/docs/models/operations/listcrmdealsresponse.md new file mode 100644 index 00000000..84153a87 --- /dev/null +++ b/docs/models/operations/listcrmdealsresponse.md @@ -0,0 +1,8 @@ +# ListCrmDealsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `result` | [operations.ListCrmDealsResponseBody](../../models/operations/listcrmdealsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmengagementsresponse.md b/docs/models/operations/listcrmengagementsresponse.md new file mode 100644 index 00000000..1d69fa21 --- /dev/null +++ b/docs/models/operations/listcrmengagementsresponse.md @@ -0,0 +1,8 @@ +# ListCrmEngagementsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListCrmEngagementsResponseBody](../../models/operations/listcrmengagementsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmnoteresponse.md b/docs/models/operations/listcrmnoteresponse.md new file mode 100644 index 00000000..aff68e46 --- /dev/null +++ b/docs/models/operations/listcrmnoteresponse.md @@ -0,0 +1,8 @@ +# ListCrmNoteResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `result` | [operations.ListCrmNoteResponseBody](../../models/operations/listcrmnoteresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmstagesresponse.md b/docs/models/operations/listcrmstagesresponse.md new file mode 100644 index 00000000..52af288a --- /dev/null +++ b/docs/models/operations/listcrmstagesresponse.md @@ -0,0 +1,8 @@ +# ListCrmStagesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `result` | [operations.ListCrmStagesResponseBody](../../models/operations/listcrmstagesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmtaskresponse.md b/docs/models/operations/listcrmtaskresponse.md new file mode 100644 index 00000000..a615ab2d --- /dev/null +++ b/docs/models/operations/listcrmtaskresponse.md @@ -0,0 +1,8 @@ +# ListCrmTaskResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `result` | [operations.ListCrmTaskResponseBody](../../models/operations/listcrmtaskresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listcrmusersresponse.md b/docs/models/operations/listcrmusersresponse.md new file mode 100644 index 00000000..4ea48cea --- /dev/null +++ b/docs/models/operations/listcrmusersresponse.md @@ -0,0 +1,8 @@ +# ListCrmUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `result` | [operations.ListCrmUsersResponseBody](../../models/operations/listcrmusersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfilestoragedrivesresponse.md b/docs/models/operations/listfilestoragedrivesresponse.md new file mode 100644 index 00000000..d8d15350 --- /dev/null +++ b/docs/models/operations/listfilestoragedrivesresponse.md @@ -0,0 +1,8 @@ +# ListFilestorageDrivesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListFilestorageDrivesResponseBody](../../models/operations/listfilestoragedrivesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfilestoragefileresponse.md b/docs/models/operations/listfilestoragefileresponse.md new file mode 100644 index 00000000..354db74f --- /dev/null +++ b/docs/models/operations/listfilestoragefileresponse.md @@ -0,0 +1,8 @@ +# ListFilestorageFileResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListFilestorageFileResponseBody](../../models/operations/listfilestoragefileresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfilestoragefolderresponse.md b/docs/models/operations/listfilestoragefolderresponse.md new file mode 100644 index 00000000..f1a3e8a7 --- /dev/null +++ b/docs/models/operations/listfilestoragefolderresponse.md @@ -0,0 +1,8 @@ +# ListFilestorageFolderResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListFilestorageFolderResponseBody](../../models/operations/listfilestoragefolderresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfilestoragegroupresponse.md b/docs/models/operations/listfilestoragegroupresponse.md new file mode 100644 index 00000000..33c6b981 --- /dev/null +++ b/docs/models/operations/listfilestoragegroupresponse.md @@ -0,0 +1,8 @@ +# ListFilestorageGroupResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListFilestorageGroupResponseBody](../../models/operations/listfilestoragegroupresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfilestorageusersresponse.md b/docs/models/operations/listfilestorageusersresponse.md new file mode 100644 index 00000000..1c27cc0a --- /dev/null +++ b/docs/models/operations/listfilestorageusersresponse.md @@ -0,0 +1,8 @@ +# ListFilestorageUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListFilestorageUsersResponseBody](../../models/operations/listfilestorageusersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listhrisbankinforesponse.md b/docs/models/operations/listhrisbankinforesponse.md new file mode 100644 index 00000000..d497712c --- /dev/null +++ b/docs/models/operations/listhrisbankinforesponse.md @@ -0,0 +1,8 @@ +# ListHrisBankInfoResponse + + +## 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/listhrisbenefitsresponse.md b/docs/models/operations/listhrisbenefitsresponse.md new file mode 100644 index 00000000..56578655 --- /dev/null +++ b/docs/models/operations/listhrisbenefitsresponse.md @@ -0,0 +1,8 @@ +# ListHrisBenefitsResponse + + +## 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/listhriscompaniesresponse.md b/docs/models/operations/listhriscompaniesresponse.md new file mode 100644 index 00000000..0edf5488 --- /dev/null +++ b/docs/models/operations/listhriscompaniesresponse.md @@ -0,0 +1,8 @@ +# ListHrisCompaniesResponse + + +## 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/listhrisdependentsresponse.md b/docs/models/operations/listhrisdependentsresponse.md new file mode 100644 index 00000000..a1d3affe --- /dev/null +++ b/docs/models/operations/listhrisdependentsresponse.md @@ -0,0 +1,8 @@ +# ListHrisDependentsResponse + + +## 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/listhrisemployeepayrollrunresponse.md b/docs/models/operations/listhrisemployeepayrollrunresponse.md new file mode 100644 index 00000000..65ab25a3 --- /dev/null +++ b/docs/models/operations/listhrisemployeepayrollrunresponse.md @@ -0,0 +1,8 @@ +# ListHrisEmployeePayrollRunResponse + + +## 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/listhrisemployeesresponse.md b/docs/models/operations/listhrisemployeesresponse.md new file mode 100644 index 00000000..96ec79c1 --- /dev/null +++ b/docs/models/operations/listhrisemployeesresponse.md @@ -0,0 +1,8 @@ +# ListHrisEmployeesResponse + + +## 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/listhrisemployerbenefitsresponse.md b/docs/models/operations/listhrisemployerbenefitsresponse.md new file mode 100644 index 00000000..62230e03 --- /dev/null +++ b/docs/models/operations/listhrisemployerbenefitsresponse.md @@ -0,0 +1,8 @@ +# ListHrisEmployerBenefitsResponse + + +## 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/listhrisemploymentsresponse.md b/docs/models/operations/listhrisemploymentsresponse.md new file mode 100644 index 00000000..84666f28 --- /dev/null +++ b/docs/models/operations/listhrisemploymentsresponse.md @@ -0,0 +1,8 @@ +# ListHrisEmploymentsResponse + + +## 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/listhrisgroupsresponse.md b/docs/models/operations/listhrisgroupsresponse.md new file mode 100644 index 00000000..91708eff --- /dev/null +++ b/docs/models/operations/listhrisgroupsresponse.md @@ -0,0 +1,8 @@ +# ListHrisGroupsResponse + + +## 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/listhrislocationsresponse.md b/docs/models/operations/listhrislocationsresponse.md new file mode 100644 index 00000000..5c4f5a50 --- /dev/null +++ b/docs/models/operations/listhrislocationsresponse.md @@ -0,0 +1,8 @@ +# ListHrisLocationsResponse + + +## 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/listhrispaygroupsresponse.md b/docs/models/operations/listhrispaygroupsresponse.md new file mode 100644 index 00000000..f7b857d2 --- /dev/null +++ b/docs/models/operations/listhrispaygroupsresponse.md @@ -0,0 +1,8 @@ +# ListHrisPaygroupsResponse + + +## 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/listhrispayrollrunsresponse.md b/docs/models/operations/listhrispayrollrunsresponse.md new file mode 100644 index 00000000..76768885 --- /dev/null +++ b/docs/models/operations/listhrispayrollrunsresponse.md @@ -0,0 +1,8 @@ +# ListHrisPayrollRunsResponse + + +## 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/listhristimeoffbalancesresponse.md b/docs/models/operations/listhristimeoffbalancesresponse.md new file mode 100644 index 00000000..ba9399d1 --- /dev/null +++ b/docs/models/operations/listhristimeoffbalancesresponse.md @@ -0,0 +1,8 @@ +# ListHrisTimeoffbalancesResponse + + +## 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/listhristimeoffsresponse.md b/docs/models/operations/listhristimeoffsresponse.md new file mode 100644 index 00000000..d06f9927 --- /dev/null +++ b/docs/models/operations/listhristimeoffsresponse.md @@ -0,0 +1,8 @@ +# ListHrisTimeoffsResponse + + +## 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/listmarketingautomationactionresponse.md b/docs/models/operations/listmarketingautomationactionresponse.md new file mode 100644 index 00000000..d510551e --- /dev/null +++ b/docs/models/operations/listmarketingautomationactionresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationActionResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationActionResponseBody](../../models/operations/listmarketingautomationactionresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationautomationsresponse.md b/docs/models/operations/listmarketingautomationautomationsresponse.md new file mode 100644 index 00000000..44157ba0 --- /dev/null +++ b/docs/models/operations/listmarketingautomationautomationsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationAutomationsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationAutomationsResponseBody](../../models/operations/listmarketingautomationautomationsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationcampaignsresponse.md b/docs/models/operations/listmarketingautomationcampaignsresponse.md new file mode 100644 index 00000000..a24206ba --- /dev/null +++ b/docs/models/operations/listmarketingautomationcampaignsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationCampaignsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationCampaignsResponseBody](../../models/operations/listmarketingautomationcampaignsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationcontactsresponse.md b/docs/models/operations/listmarketingautomationcontactsresponse.md new file mode 100644 index 00000000..e9752662 --- /dev/null +++ b/docs/models/operations/listmarketingautomationcontactsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingAutomationContactsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingAutomationContactsResponseBody](../../models/operations/listmarketingautomationcontactsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationemailsresponse.md b/docs/models/operations/listmarketingautomationemailsresponse.md new file mode 100644 index 00000000..2794bcb6 --- /dev/null +++ b/docs/models/operations/listmarketingautomationemailsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationEmailsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationEmailsResponseBody](../../models/operations/listmarketingautomationemailsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationeventsresponse.md b/docs/models/operations/listmarketingautomationeventsresponse.md new file mode 100644 index 00000000..c16d2fcd --- /dev/null +++ b/docs/models/operations/listmarketingautomationeventsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingAutomationEventsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingAutomationEventsResponseBody](../../models/operations/listmarketingautomationeventsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationlistsresponse.md b/docs/models/operations/listmarketingautomationlistsresponse.md new file mode 100644 index 00000000..b8b55fe5 --- /dev/null +++ b/docs/models/operations/listmarketingautomationlistsresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationListsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationListsResponseBody](../../models/operations/listmarketingautomationlistsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationmessagesresponse.md b/docs/models/operations/listmarketingautomationmessagesresponse.md new file mode 100644 index 00000000..4aefd054 --- /dev/null +++ b/docs/models/operations/listmarketingautomationmessagesresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationMessagesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationMessagesResponseBody](../../models/operations/listmarketingautomationmessagesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationtemplatesresponse.md b/docs/models/operations/listmarketingautomationtemplatesresponse.md new file mode 100644 index 00000000..6d044f26 --- /dev/null +++ b/docs/models/operations/listmarketingautomationtemplatesresponse.md @@ -0,0 +1,8 @@ +# ListMarketingautomationTemplatesResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingautomationTemplatesResponseBody](../../models/operations/listmarketingautomationtemplatesresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listmarketingautomationusersresponse.md b/docs/models/operations/listmarketingautomationusersresponse.md new file mode 100644 index 00000000..c5b5db33 --- /dev/null +++ b/docs/models/operations/listmarketingautomationusersresponse.md @@ -0,0 +1,8 @@ +# ListMarketingAutomationUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListMarketingAutomationUsersResponseBody](../../models/operations/listmarketingautomationusersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingaccountresponse.md b/docs/models/operations/listticketingaccountresponse.md new file mode 100644 index 00000000..0c4ca5f1 --- /dev/null +++ b/docs/models/operations/listticketingaccountresponse.md @@ -0,0 +1,8 @@ +# ListTicketingAccountResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListTicketingAccountResponseBody](../../models/operations/listticketingaccountresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingattachmentsresponse.md b/docs/models/operations/listticketingattachmentsresponse.md new file mode 100644 index 00000000..95134a4e --- /dev/null +++ b/docs/models/operations/listticketingattachmentsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingAttachmentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingAttachmentsResponseBody](../../models/operations/listticketingattachmentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingcollectionsresponse.md b/docs/models/operations/listticketingcollectionsresponse.md new file mode 100644 index 00000000..609d69ea --- /dev/null +++ b/docs/models/operations/listticketingcollectionsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingCollectionsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingCollectionsResponseBody](../../models/operations/listticketingcollectionsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingcommentsresponse.md b/docs/models/operations/listticketingcommentsresponse.md new file mode 100644 index 00000000..dac3a082 --- /dev/null +++ b/docs/models/operations/listticketingcommentsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingCommentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingCommentsResponseBody](../../models/operations/listticketingcommentsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingcontactsresponse.md b/docs/models/operations/listticketingcontactsresponse.md new file mode 100644 index 00000000..b90a9568 --- /dev/null +++ b/docs/models/operations/listticketingcontactsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingContactsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingContactsResponseBody](../../models/operations/listticketingcontactsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingtagsresponse.md b/docs/models/operations/listticketingtagsresponse.md new file mode 100644 index 00000000..4ac739db --- /dev/null +++ b/docs/models/operations/listticketingtagsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingTagsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `result` | [operations.ListTicketingTagsResponseBody](../../models/operations/listticketingtagsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingteamsresponse.md b/docs/models/operations/listticketingteamsresponse.md new file mode 100644 index 00000000..8ffb8b3e --- /dev/null +++ b/docs/models/operations/listticketingteamsresponse.md @@ -0,0 +1,8 @@ +# ListTicketingTeamsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingTeamsResponseBody](../../models/operations/listticketingteamsresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listticketingusersresponse.md b/docs/models/operations/listticketingusersresponse.md new file mode 100644 index 00000000..a47148da --- /dev/null +++ b/docs/models/operations/listticketingusersresponse.md @@ -0,0 +1,8 @@ +# ListTicketingUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `result` | [operations.ListTicketingUsersResponseBody](../../models/operations/listticketingusersresponsebody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/accounts/README.md b/docs/sdks/accounts/README.md index d786ae87..9a9766ed 100644 --- a/docs/sdks/accounts/README.md +++ b/docs/sdks/accounts/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingAccountResponseBody](../../models/operations/listticketingaccountresponsebody.md)\>** +**Promise\<[operations.ListTicketingAccountResponse](../../models/operations/listticketingaccountresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index 6e9c7d67..78dbb145 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationActionResponseBody](../../models/operations/listmarketingautomationactionresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationActionResponse](../../models/operations/listmarketingautomationactionresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index eeb4d436..a69fcde7 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAtsActivityResponseBody](../../models/operations/listatsactivityresponsebody.md)\>** +**Promise\<[operations.ListAtsActivityResponse](../../models/operations/listatsactivityresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/addresses/README.md b/docs/sdks/addresses/README.md index eb3afe49..6ccbdeb0 100644 --- a/docs/sdks/addresses/README.md +++ b/docs/sdks/addresses/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingAddressResponseBody](../../models/operations/listaccountingaddressresponsebody.md)\>** +**Promise\<[operations.ListAccountingAddressResponse](../../models/operations/listaccountingaddressresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md index b1712fac..cca20549 100644 --- a/docs/sdks/applications/README.md +++ b/docs/sdks/applications/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAtsApplicationResponseBody](../../models/operations/listatsapplicationresponsebody.md)\>** +**Promise\<[operations.ListAtsApplicationResponse](../../models/operations/listatsapplicationresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 2fc49c0d..25489038 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAtsAttachmentResponseBody](../../models/operations/listatsattachmentresponsebody.md)\>** +**Promise\<[operations.ListAtsAttachmentResponse](../../models/operations/listatsattachmentresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/automations/README.md b/docs/sdks/automations/README.md index b5bd358e..ba3b7ba9 100644 --- a/docs/sdks/automations/README.md +++ b/docs/sdks/automations/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationAutomationsResponseBody](../../models/operations/listmarketingautomationautomationsresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationAutomationsResponse](../../models/operations/listmarketingautomationautomationsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/balancesheets/README.md b/docs/sdks/balancesheets/README.md index 6ad3f4ea..7e27170c 100644 --- a/docs/sdks/balancesheets/README.md +++ b/docs/sdks/balancesheets/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingBalanceSheetsResponseBody](../../models/operations/listaccountingbalancesheetsresponsebody.md)\>** +**Promise\<[operations.ListAccountingBalanceSheetsResponse](../../models/operations/listaccountingbalancesheetsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/bankinfos/README.md b/docs/sdks/bankinfos/README.md index b08163e3..23c44414 100644 --- a/docs/sdks/bankinfos/README.md +++ b/docs/sdks/bankinfos/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisBankInfoResponseBody](../../models/operations/listhrisbankinforesponsebody.md)\>** +**Promise\<[operations.ListHrisBankInfoResponse](../../models/operations/listhrisbankinforesponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/benefits/README.md b/docs/sdks/benefits/README.md index ff98031b..71069d6e 100644 --- a/docs/sdks/benefits/README.md +++ b/docs/sdks/benefits/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisBenefitsResponseBody](../../models/operations/listhrisbenefitsresponsebody.md)\>** +**Promise\<[operations.ListHrisBenefitsResponse](../../models/operations/listhrisbenefitsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/campaigns/README.md b/docs/sdks/campaigns/README.md index 10624940..31da92a4 100644 --- a/docs/sdks/campaigns/README.md +++ b/docs/sdks/campaigns/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationCampaignsResponseBody](../../models/operations/listmarketingautomationcampaignsresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationCampaignsResponse](../../models/operations/listmarketingautomationcampaignsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/candidates/README.md b/docs/sdks/candidates/README.md index 40962a45..bcf1d05f 100644 --- a/docs/sdks/candidates/README.md +++ b/docs/sdks/candidates/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAtsCandidateResponseBody](../../models/operations/listatscandidateresponsebody.md)\>** +**Promise\<[operations.ListAtsCandidateResponse](../../models/operations/listatscandidateresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/cashflowstatements/README.md b/docs/sdks/cashflowstatements/README.md index b43ad6e1..5a922679 100644 --- a/docs/sdks/cashflowstatements/README.md +++ b/docs/sdks/cashflowstatements/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingCashflowStatementResponseBody](../../models/operations/listaccountingcashflowstatementresponsebody.md)\>** +**Promise\<[operations.ListAccountingCashflowStatementResponse](../../models/operations/listaccountingcashflowstatementresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 3119d383..e22b6e24 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingCollectionsResponseBody](../../models/operations/listticketingcollectionsresponsebody.md)\>** +**Promise\<[operations.ListTicketingCollectionsResponse](../../models/operations/listticketingcollectionsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/comments/README.md b/docs/sdks/comments/README.md index 90915a96..a2a6b745 100644 --- a/docs/sdks/comments/README.md +++ b/docs/sdks/comments/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingCommentsResponseBody](../../models/operations/listticketingcommentsresponsebody.md)\>** +**Promise\<[operations.ListTicketingCommentsResponse](../../models/operations/listticketingcommentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 933238dc..7d6b372c 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmCompanyResponseBody](../../models/operations/listcrmcompanyresponsebody.md)\>** +**Promise\<[operations.ListCrmCompanyResponse](../../models/operations/listcrmcompanyresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/companyinfos/README.md b/docs/sdks/companyinfos/README.md index b007beb0..f02b4862 100644 --- a/docs/sdks/companyinfos/README.md +++ b/docs/sdks/companyinfos/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingCompanyInfosResponseBody](../../models/operations/listaccountingcompanyinfosresponsebody.md)\>** +**Promise\<[operations.ListAccountingCompanyInfosResponse](../../models/operations/listaccountingcompanyinfosresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index 7a149320..21363784 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingContactsResponseBody](../../models/operations/listticketingcontactsresponsebody.md)\>** +**Promise\<[operations.ListTicketingContactsResponse](../../models/operations/listticketingcontactsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index 8b1c9b56..0b0cd1fa 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingCreditNoteResponseBody](../../models/operations/listaccountingcreditnoteresponsebody.md)\>** +**Promise\<[operations.ListAccountingCreditNoteResponse](../../models/operations/listaccountingcreditnoteresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/deals/README.md b/docs/sdks/deals/README.md index fdc9e566..51dd5b76 100644 --- a/docs/sdks/deals/README.md +++ b/docs/sdks/deals/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmDealsResponseBody](../../models/operations/listcrmdealsresponsebody.md)\>** +**Promise\<[operations.ListCrmDealsResponse](../../models/operations/listcrmdealsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md index a6befeba..71b3b870 100644 --- a/docs/sdks/departments/README.md +++ b/docs/sdks/departments/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsDepartmentsResponseBody](../../models/operations/listatsdepartmentsresponsebody.md)\>** +**Promise\<[operations.ListAtsDepartmentsResponse](../../models/operations/listatsdepartmentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/dependents/README.md b/docs/sdks/dependents/README.md index e56b53fa..0dc11e8f 100644 --- a/docs/sdks/dependents/README.md +++ b/docs/sdks/dependents/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisDependentsResponseBody](../../models/operations/listhrisdependentsresponsebody.md)\>** +**Promise\<[operations.ListHrisDependentsResponse](../../models/operations/listhrisdependentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/drives/README.md b/docs/sdks/drives/README.md index d0c61dc8..363a34c1 100644 --- a/docs/sdks/drives/README.md +++ b/docs/sdks/drives/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListFilestorageDrivesResponseBody](../../models/operations/listfilestoragedrivesresponsebody.md)\>** +**Promise\<[operations.ListFilestorageDrivesResponse](../../models/operations/listfilestoragedrivesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/eeocs/README.md b/docs/sdks/eeocs/README.md index 3fa27f01..47b9ea87 100644 --- a/docs/sdks/eeocs/README.md +++ b/docs/sdks/eeocs/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsEeocsResponseBody](../../models/operations/listatseeocsresponsebody.md)\>** +**Promise\<[operations.ListAtsEeocsResponse](../../models/operations/listatseeocsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/emails/README.md b/docs/sdks/emails/README.md index 503a9a19..86d3da05 100644 --- a/docs/sdks/emails/README.md +++ b/docs/sdks/emails/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationEmailsResponseBody](../../models/operations/listmarketingautomationemailsresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationEmailsResponse](../../models/operations/listmarketingautomationemailsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employeepayrollruns/README.md b/docs/sdks/employeepayrollruns/README.md index 65070e88..9a05b8ca 100644 --- a/docs/sdks/employeepayrollruns/README.md +++ b/docs/sdks/employeepayrollruns/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisEmployeePayrollRunResponseBody](../../models/operations/listhrisemployeepayrollrunresponsebody.md)\>** +**Promise\<[operations.ListHrisEmployeePayrollRunResponse](../../models/operations/listhrisemployeepayrollrunresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index 30779646..51ac67ab 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListHrisEmployeesResponseBody](../../models/operations/listhrisemployeesresponsebody.md)\>** +**Promise\<[operations.ListHrisEmployeesResponse](../../models/operations/listhrisemployeesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employerbenefits/README.md b/docs/sdks/employerbenefits/README.md index b1818a30..7581ff43 100644 --- a/docs/sdks/employerbenefits/README.md +++ b/docs/sdks/employerbenefits/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisEmployerBenefitsResponseBody](../../models/operations/listhrisemployerbenefitsresponsebody.md)\>** +**Promise\<[operations.ListHrisEmployerBenefitsResponse](../../models/operations/listhrisemployerbenefitsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/employments/README.md b/docs/sdks/employments/README.md index a0d4de34..447fdb84 100644 --- a/docs/sdks/employments/README.md +++ b/docs/sdks/employments/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisEmploymentsResponseBody](../../models/operations/listhrisemploymentsresponsebody.md)\>** +**Promise\<[operations.ListHrisEmploymentsResponse](../../models/operations/listhrisemploymentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/engagements/README.md b/docs/sdks/engagements/README.md index e831104e..2d25b066 100644 --- a/docs/sdks/engagements/README.md +++ b/docs/sdks/engagements/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmEngagementsResponseBody](../../models/operations/listcrmengagementsresponsebody.md)\>** +**Promise\<[operations.ListCrmEngagementsResponse](../../models/operations/listcrmengagementsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 14550751..34e86a4d 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingExpenseResponseBody](../../models/operations/listaccountingexpenseresponsebody.md)\>** +**Promise\<[operations.ListAccountingExpenseResponse](../../models/operations/listaccountingexpenseresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 9cd5806e..8d515c8a 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListFilestorageFileResponseBody](../../models/operations/listfilestoragefileresponsebody.md)\>** +**Promise\<[operations.ListFilestorageFileResponse](../../models/operations/listfilestoragefileresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index 7770d956..9ff6aea2 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListFilestorageFolderResponseBody](../../models/operations/listfilestoragefolderresponsebody.md)\>** +**Promise\<[operations.ListFilestorageFolderResponse](../../models/operations/listfilestoragefolderresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/groups/README.md b/docs/sdks/groups/README.md index 28103bdb..7a0d9138 100644 --- a/docs/sdks/groups/README.md +++ b/docs/sdks/groups/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisGroupsResponseBody](../../models/operations/listhrisgroupsresponsebody.md)\>** +**Promise\<[operations.ListHrisGroupsResponse](../../models/operations/listhrisgroupsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/incomestatements/README.md b/docs/sdks/incomestatements/README.md index 25b75323..af5aa2e9 100644 --- a/docs/sdks/incomestatements/README.md +++ b/docs/sdks/incomestatements/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingIncomeStatementResponseBody](../../models/operations/listaccountingincomestatementresponsebody.md)\>** +**Promise\<[operations.ListAccountingIncomeStatementResponse](../../models/operations/listaccountingincomestatementresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/interviews/README.md b/docs/sdks/interviews/README.md index 1161c7c0..300c0faf 100644 --- a/docs/sdks/interviews/README.md +++ b/docs/sdks/interviews/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAtsInterviewResponseBody](../../models/operations/listatsinterviewresponsebody.md)\>** +**Promise\<[operations.ListAtsInterviewResponse](../../models/operations/listatsinterviewresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 9485ad81..44060811 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingInvoiceResponseBody](../../models/operations/listaccountinginvoiceresponsebody.md)\>** +**Promise\<[operations.ListAccountingInvoiceResponse](../../models/operations/listaccountinginvoiceresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/items/README.md b/docs/sdks/items/README.md index 38f2195f..7380f76a 100644 --- a/docs/sdks/items/README.md +++ b/docs/sdks/items/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingItemResponseBody](../../models/operations/listaccountingitemresponsebody.md)\>** +**Promise\<[operations.ListAccountingItemResponse](../../models/operations/listaccountingitemresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/jobinterviewstages/README.md b/docs/sdks/jobinterviewstages/README.md index 994090df..8680d409 100644 --- a/docs/sdks/jobinterviewstages/README.md +++ b/docs/sdks/jobinterviewstages/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsJobInterviewStageResponseBody](../../models/operations/listatsjobinterviewstageresponsebody.md)\>** +**Promise\<[operations.ListAtsJobInterviewStageResponse](../../models/operations/listatsjobinterviewstageresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index c89ddf74..406b4ad4 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsJobResponseBody](../../models/operations/listatsjobresponsebody.md)\>** +**Promise\<[operations.ListAtsJobResponse](../../models/operations/listatsjobresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index 2ff78408..b72bced5 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingJournalEntryResponseBody](../../models/operations/listaccountingjournalentryresponsebody.md)\>** +**Promise\<[operations.ListAccountingJournalEntryResponse](../../models/operations/listaccountingjournalentryresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/lists/README.md b/docs/sdks/lists/README.md index afee1fa9..b8a1f200 100644 --- a/docs/sdks/lists/README.md +++ b/docs/sdks/lists/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationListsResponseBody](../../models/operations/listmarketingautomationlistsresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationListsResponse](../../models/operations/listmarketingautomationlistsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md index 7513383a..aa3cf31d 100644 --- a/docs/sdks/locations/README.md +++ b/docs/sdks/locations/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisLocationsResponseBody](../../models/operations/listhrislocationsresponsebody.md)\>** +**Promise\<[operations.ListHrisLocationsResponse](../../models/operations/listhrislocationsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 1ea2f6fe..9772a6f2 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationMessagesResponseBody](../../models/operations/listmarketingautomationmessagesresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationMessagesResponse](../../models/operations/listmarketingautomationmessagesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index 5e276901..9ef833fc 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmNoteResponseBody](../../models/operations/listcrmnoteresponsebody.md)\>** +**Promise\<[operations.ListCrmNoteResponse](../../models/operations/listcrmnoteresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/offers/README.md b/docs/sdks/offers/README.md index 06b37804..fd107694 100644 --- a/docs/sdks/offers/README.md +++ b/docs/sdks/offers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsOfferResponseBody](../../models/operations/listatsofferresponsebody.md)\>** +**Promise\<[operations.ListAtsOfferResponse](../../models/operations/listatsofferresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/offices/README.md b/docs/sdks/offices/README.md index c5cf1115..24ff05ba 100644 --- a/docs/sdks/offices/README.md +++ b/docs/sdks/offices/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsOfficeResponseBody](../../models/operations/listatsofficeresponsebody.md)\>** +**Promise\<[operations.ListAtsOfficeResponse](../../models/operations/listatsofficeresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraaccountingcontacts/README.md b/docs/sdks/panoraaccountingcontacts/README.md index ec636c87..7f229820 100644 --- a/docs/sdks/panoraaccountingcontacts/README.md +++ b/docs/sdks/panoraaccountingcontacts/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingContactsResponseBody](../../models/operations/listaccountingcontactsresponsebody.md)\>** +**Promise\<[operations.ListAccountingContactsResponse](../../models/operations/listaccountingcontactsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraaccounts/README.md b/docs/sdks/panoraaccounts/README.md index 9ff94b3f..f17bb228 100644 --- a/docs/sdks/panoraaccounts/README.md +++ b/docs/sdks/panoraaccounts/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingAccountsResponseBody](../../models/operations/listaccountingaccountsresponsebody.md)\>** +**Promise\<[operations.ListAccountingAccountsResponse](../../models/operations/listaccountingaccountsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraatsusers/README.md b/docs/sdks/panoraatsusers/README.md index 77e67fd1..146f3c28 100644 --- a/docs/sdks/panoraatsusers/README.md +++ b/docs/sdks/panoraatsusers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsUsersResponseBody](../../models/operations/listatsusersresponsebody.md)\>** +**Promise\<[operations.ListAtsUsersResponse](../../models/operations/listatsusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraattachments/README.md b/docs/sdks/panoraattachments/README.md index a79fd4a2..5cbfccbe 100644 --- a/docs/sdks/panoraattachments/README.md +++ b/docs/sdks/panoraattachments/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingAttachmentsResponseBody](../../models/operations/listaccountingattachmentsresponsebody.md)\>** +**Promise\<[operations.ListAccountingAttachmentsResponse](../../models/operations/listaccountingattachmentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoracompanies/README.md b/docs/sdks/panoracompanies/README.md index 2dbc7ae3..e39195ed 100644 --- a/docs/sdks/panoracompanies/README.md +++ b/docs/sdks/panoracompanies/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisCompaniesResponseBody](../../models/operations/listhriscompaniesresponsebody.md)\>** +**Promise\<[operations.ListHrisCompaniesResponse](../../models/operations/listhriscompaniesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoracontacts/README.md b/docs/sdks/panoracontacts/README.md index ba8aae54..0d3970d7 100644 --- a/docs/sdks/panoracontacts/README.md +++ b/docs/sdks/panoracontacts/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmContactsResponseBody](../../models/operations/listcrmcontactsresponsebody.md)\>** +**Promise\<[operations.ListCrmContactsResponse](../../models/operations/listcrmcontactsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraevents/README.md b/docs/sdks/panoraevents/README.md index ad8e37be..2466b002 100644 --- a/docs/sdks/panoraevents/README.md +++ b/docs/sdks/panoraevents/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingAutomationEventsResponseBody](../../models/operations/listmarketingautomationeventsresponsebody.md)\>** +**Promise\<[operations.ListMarketingAutomationEventsResponse](../../models/operations/listmarketingautomationeventsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorafilestorageusers/README.md b/docs/sdks/panorafilestorageusers/README.md index cb0eeb67..bc1a2013 100644 --- a/docs/sdks/panorafilestorageusers/README.md +++ b/docs/sdks/panorafilestorageusers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListFilestorageUsersResponseBody](../../models/operations/listfilestorageusersresponsebody.md)\>** +**Promise\<[operations.ListFilestorageUsersResponse](../../models/operations/listfilestorageusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoragroups/README.md b/docs/sdks/panoragroups/README.md index b3973cc2..1537a3e5 100644 --- a/docs/sdks/panoragroups/README.md +++ b/docs/sdks/panoragroups/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListFilestorageGroupResponseBody](../../models/operations/listfilestoragegroupresponsebody.md)\>** +**Promise\<[operations.ListFilestorageGroupResponse](../../models/operations/listfilestoragegroupresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoramarketingautomationcontacts/README.md b/docs/sdks/panoramarketingautomationcontacts/README.md index 193b1024..313c8396 100644 --- a/docs/sdks/panoramarketingautomationcontacts/README.md +++ b/docs/sdks/panoramarketingautomationcontacts/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingAutomationContactsResponseBody](../../models/operations/listmarketingautomationcontactsresponsebody.md)\>** +**Promise\<[operations.ListMarketingAutomationContactsResponse](../../models/operations/listmarketingautomationcontactsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoramarketingautomationusers/README.md b/docs/sdks/panoramarketingautomationusers/README.md index ebdf2c5e..b29f0544 100644 --- a/docs/sdks/panoramarketingautomationusers/README.md +++ b/docs/sdks/panoramarketingautomationusers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingAutomationUsersResponseBody](../../models/operations/listmarketingautomationusersresponsebody.md)\>** +**Promise\<[operations.ListMarketingAutomationUsersResponse](../../models/operations/listmarketingautomationusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoratags/README.md b/docs/sdks/panoratags/README.md index 2f8d018a..f81fafb4 100644 --- a/docs/sdks/panoratags/README.md +++ b/docs/sdks/panoratags/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsTagsResponseBody](../../models/operations/listatstagsresponsebody.md)\>** +**Promise\<[operations.ListAtsTagsResponse](../../models/operations/listatstagsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panoraticketingattachments/README.md b/docs/sdks/panoraticketingattachments/README.md index 095411cf..536a3907 100644 --- a/docs/sdks/panoraticketingattachments/README.md +++ b/docs/sdks/panoraticketingattachments/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingAttachmentsResponseBody](../../models/operations/listticketingattachmentsresponsebody.md)\>** +**Promise\<[operations.ListTicketingAttachmentsResponse](../../models/operations/listticketingattachmentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/panorausers/README.md b/docs/sdks/panorausers/README.md index 2973968a..7b770925 100644 --- a/docs/sdks/panorausers/README.md +++ b/docs/sdks/panorausers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListCrmUsersResponseBody](../../models/operations/listcrmusersresponsebody.md)\>** +**Promise\<[operations.ListCrmUsersResponse](../../models/operations/listcrmusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/paygroups/README.md b/docs/sdks/paygroups/README.md index c21430d4..adc1a883 100644 --- a/docs/sdks/paygroups/README.md +++ b/docs/sdks/paygroups/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisPaygroupsResponseBody](../../models/operations/listhrispaygroupsresponsebody.md)\>** +**Promise\<[operations.ListHrisPaygroupsResponse](../../models/operations/listhrispaygroupsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 712d82ce..9690e7c9 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingPaymentResponseBody](../../models/operations/listaccountingpaymentresponsebody.md)\>** +**Promise\<[operations.ListAccountingPaymentResponse](../../models/operations/listaccountingpaymentresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/payrollruns/README.md b/docs/sdks/payrollruns/README.md index 1f87e506..a0834563 100644 --- a/docs/sdks/payrollruns/README.md +++ b/docs/sdks/payrollruns/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisPayrollRunsResponseBody](../../models/operations/listhrispayrollrunsresponsebody.md)\>** +**Promise\<[operations.ListHrisPayrollRunsResponse](../../models/operations/listhrispayrollrunsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index 0d318b75..cd0f9c3b 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingPhonenumberResponseBody](../../models/operations/listaccountingphonenumberresponsebody.md)\>** +**Promise\<[operations.ListAccountingPhonenumberResponse](../../models/operations/listaccountingphonenumberresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index da3a3d4c..c84d2cb8 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingPurchaseOrderResponseBody](../../models/operations/listaccountingpurchaseorderresponsebody.md)\>** +**Promise\<[operations.ListAccountingPurchaseOrderResponse](../../models/operations/listaccountingpurchaseorderresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/rejectreasons/README.md b/docs/sdks/rejectreasons/README.md index 2516867d..4bbe20ae 100644 --- a/docs/sdks/rejectreasons/README.md +++ b/docs/sdks/rejectreasons/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsRejectReasonsResponseBody](../../models/operations/listatsrejectreasonsresponsebody.md)\>** +**Promise\<[operations.ListAtsRejectReasonsResponse](../../models/operations/listatsrejectreasonsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/scorecards/README.md b/docs/sdks/scorecards/README.md index e61afbc2..2dcbcc3d 100644 --- a/docs/sdks/scorecards/README.md +++ b/docs/sdks/scorecards/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAtsScorecardResponseBody](../../models/operations/listatsscorecardresponsebody.md)\>** +**Promise\<[operations.ListAtsScorecardResponse](../../models/operations/listatsscorecardresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/stages/README.md b/docs/sdks/stages/README.md index 42fa708a..1814ec7b 100644 --- a/docs/sdks/stages/README.md +++ b/docs/sdks/stages/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListCrmStagesResponseBody](../../models/operations/listcrmstagesresponsebody.md)\>** +**Promise\<[operations.ListCrmStagesResponse](../../models/operations/listcrmstagesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index e675ba07..a0491ef6 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingTagsResponseBody](../../models/operations/listticketingtagsresponsebody.md)\>** +**Promise\<[operations.ListTicketingTagsResponse](../../models/operations/listticketingtagsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tasks/README.md b/docs/sdks/tasks/README.md index f176723c..ae741c8e 100644 --- a/docs/sdks/tasks/README.md +++ b/docs/sdks/tasks/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListCrmTaskResponseBody](../../models/operations/listcrmtaskresponsebody.md)\>** +**Promise\<[operations.ListCrmTaskResponse](../../models/operations/listcrmtaskresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index 4ff3a5db..8f265b82 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingTaxRateResponseBody](../../models/operations/listaccountingtaxrateresponsebody.md)\>** +**Promise\<[operations.ListAccountingTaxRateResponse](../../models/operations/listaccountingtaxrateresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index c5e25158..7ed88376 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingTeamsResponseBody](../../models/operations/listticketingteamsresponsebody.md)\>** +**Promise\<[operations.ListTicketingTeamsResponse](../../models/operations/listticketingteamsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/templates/README.md b/docs/sdks/templates/README.md index 32718810..1e8d3868 100644 --- a/docs/sdks/templates/README.md +++ b/docs/sdks/templates/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListMarketingautomationTemplatesResponseBody](../../models/operations/listmarketingautomationtemplatesresponsebody.md)\>** +**Promise\<[operations.ListMarketingautomationTemplatesResponse](../../models/operations/listmarketingautomationtemplatesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/timeoffbalances/README.md b/docs/sdks/timeoffbalances/README.md index a6cc7d2c..9ed00f38 100644 --- a/docs/sdks/timeoffbalances/README.md +++ b/docs/sdks/timeoffbalances/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListHrisTimeoffbalancesResponseBody](../../models/operations/listhristimeoffbalancesresponsebody.md)\>** +**Promise\<[operations.ListHrisTimeoffbalancesResponse](../../models/operations/listhristimeoffbalancesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/timeoffs/README.md b/docs/sdks/timeoffs/README.md index 79f118c1..6fe7b3ec 100644 --- a/docs/sdks/timeoffs/README.md +++ b/docs/sdks/timeoffs/README.md @@ -28,8 +28,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -47,7 +48,7 @@ run(); ### Response -**Promise\<[operations.ListHrisTimeoffsResponseBody](../../models/operations/listhristimeoffsresponsebody.md)\>** +**Promise\<[operations.ListHrisTimeoffsResponse](../../models/operations/listhristimeoffsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index f20e70a9..967568bd 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingTrackingCategorysResponseBody](../../models/operations/listaccountingtrackingcategorysresponsebody.md)\>** +**Promise\<[operations.ListAccountingTrackingCategorysResponse](../../models/operations/listaccountingtrackingcategorysresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/transactions/README.md b/docs/sdks/transactions/README.md index c798ae76..072f5b24 100644 --- a/docs/sdks/transactions/README.md +++ b/docs/sdks/transactions/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingTransactionResponseBody](../../models/operations/listaccountingtransactionresponsebody.md)\>** +**Promise\<[operations.ListAccountingTransactionResponse](../../models/operations/listaccountingtransactionresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index debf4b29..6a4cf20a 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListTicketingUsersResponseBody](../../models/operations/listticketingusersresponsebody.md)\>** +**Promise\<[operations.ListTicketingUsersResponse](../../models/operations/listticketingusersresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/vendorcredits/README.md b/docs/sdks/vendorcredits/README.md index fdbda049..148d2bc7 100644 --- a/docs/sdks/vendorcredits/README.md +++ b/docs/sdks/vendorcredits/README.md @@ -27,8 +27,9 @@ async function run() { cursor: "1b8b05bb-5273-4012-b520-8657b0b90874", }); - // Handle the result - console.log(result) + for await (const page of result) { + // handle page + } } run(); @@ -46,7 +47,7 @@ run(); ### Response -**Promise\<[operations.ListAccountingVendorCreditResponseBody](../../models/operations/listaccountingvendorcreditresponsebody.md)\>** +**Promise\<[operations.ListAccountingVendorCreditResponse](../../models/operations/listaccountingvendorcreditresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | diff --git a/jsr.json b/jsr.json index 6c074e3f..94db93c0 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.8.0", + "version": "0.8.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index cda9df5e..d11d07a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.8.0", + "version": "0.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.8.0", + "version": "0.8.1", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index b9c36f68..66ce653e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.8.0", + "version": "0.8.1", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 18145de5..9b3ed805 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -63,7 +63,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.8.0", + sdkVersion: "0.8.1", genVersion: "2.385.2", - userAgent: "speakeasy-sdk/typescript 0.8.0 2.385.2 1.0 @panora/sdk", + userAgent: "speakeasy-sdk/typescript 0.8.1 2.385.2 1.0 @panora/sdk", } as const; diff --git a/src/models/operations/listaccountingaccounts.ts b/src/models/operations/listaccountingaccounts.ts index 58f130cc..0ccb434e 100644 --- a/src/models/operations/listaccountingaccounts.ts +++ b/src/models/operations/listaccountingaccounts.ts @@ -31,6 +31,10 @@ export type ListAccountingAccountsResponseBody = { data: Array; }; +export type ListAccountingAccountsResponse = { + result: ListAccountingAccountsResponseBody; +}; + /** @internal */ export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< ListAccountingAccountsRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingAccountsResponseBody$ { /** @deprecated use `ListAccountingAccountsResponseBody$Outbound` instead. */ export type Outbound = ListAccountingAccountsResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingAccountsResponse$inboundSchema: z.ZodType< + ListAccountingAccountsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingAccountsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingAccountsResponse$Outbound = { + Result: ListAccountingAccountsResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingAccountsResponse$outboundSchema: z.ZodType< + ListAccountingAccountsResponse$Outbound, + z.ZodTypeDef, + ListAccountingAccountsResponse +> = z + .object({ + result: z.lazy(() => ListAccountingAccountsResponseBody$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 ListAccountingAccountsResponse$ { + /** @deprecated use `ListAccountingAccountsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAccountsResponse$inboundSchema; + /** @deprecated use `ListAccountingAccountsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAccountsResponse$outboundSchema; + /** @deprecated use `ListAccountingAccountsResponse$Outbound` instead. */ + export type Outbound = ListAccountingAccountsResponse$Outbound; +} diff --git a/src/models/operations/listaccountingaddress.ts b/src/models/operations/listaccountingaddress.ts index dd48bd94..2c077fa0 100644 --- a/src/models/operations/listaccountingaddress.ts +++ b/src/models/operations/listaccountingaddress.ts @@ -31,6 +31,10 @@ export type ListAccountingAddressResponseBody = { data: Array; }; +export type ListAccountingAddressResponse = { + result: ListAccountingAddressResponseBody; +}; + /** @internal */ export const ListAccountingAddressRequest$inboundSchema: z.ZodType< ListAccountingAddressRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingAddressResponseBody$ { /** @deprecated use `ListAccountingAddressResponseBody$Outbound` instead. */ export type Outbound = ListAccountingAddressResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingAddressResponse$inboundSchema: z.ZodType< + ListAccountingAddressResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingAddressResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingAddressResponse$Outbound = { + Result: ListAccountingAddressResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingAddressResponse$outboundSchema: z.ZodType< + ListAccountingAddressResponse$Outbound, + z.ZodTypeDef, + ListAccountingAddressResponse +> = z + .object({ + result: z.lazy(() => ListAccountingAddressResponseBody$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 ListAccountingAddressResponse$ { + /** @deprecated use `ListAccountingAddressResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAddressResponse$inboundSchema; + /** @deprecated use `ListAccountingAddressResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAddressResponse$outboundSchema; + /** @deprecated use `ListAccountingAddressResponse$Outbound` instead. */ + export type Outbound = ListAccountingAddressResponse$Outbound; +} diff --git a/src/models/operations/listaccountingattachments.ts b/src/models/operations/listaccountingattachments.ts index e83c6819..efc30879 100644 --- a/src/models/operations/listaccountingattachments.ts +++ b/src/models/operations/listaccountingattachments.ts @@ -31,6 +31,10 @@ export type ListAccountingAttachmentsResponseBody = { data: Array; }; +export type ListAccountingAttachmentsResponse = { + result: ListAccountingAttachmentsResponseBody; +}; + /** @internal */ export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< ListAccountingAttachmentsRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingAttachmentsResponseBody$ { /** @deprecated use `ListAccountingAttachmentsResponseBody$Outbound` instead. */ export type Outbound = ListAccountingAttachmentsResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingAttachmentsResponse$inboundSchema: z.ZodType< + ListAccountingAttachmentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingAttachmentsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingAttachmentsResponse$Outbound = { + Result: ListAccountingAttachmentsResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingAttachmentsResponse$outboundSchema: z.ZodType< + ListAccountingAttachmentsResponse$Outbound, + z.ZodTypeDef, + ListAccountingAttachmentsResponse +> = z + .object({ + result: z.lazy(() => ListAccountingAttachmentsResponseBody$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 ListAccountingAttachmentsResponse$ { + /** @deprecated use `ListAccountingAttachmentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingAttachmentsResponse$inboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingAttachmentsResponse$outboundSchema; + /** @deprecated use `ListAccountingAttachmentsResponse$Outbound` instead. */ + export type Outbound = ListAccountingAttachmentsResponse$Outbound; +} diff --git a/src/models/operations/listaccountingbalancesheets.ts b/src/models/operations/listaccountingbalancesheets.ts index b9dfae7b..19994079 100644 --- a/src/models/operations/listaccountingbalancesheets.ts +++ b/src/models/operations/listaccountingbalancesheets.ts @@ -31,6 +31,10 @@ export type ListAccountingBalanceSheetsResponseBody = { data: Array; }; +export type ListAccountingBalanceSheetsResponse = { + result: ListAccountingBalanceSheetsResponseBody; +}; + /** @internal */ export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< ListAccountingBalanceSheetsRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingBalanceSheetsResponseBody$ { /** @deprecated use `ListAccountingBalanceSheetsResponseBody$Outbound` instead. */ export type Outbound = ListAccountingBalanceSheetsResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingBalanceSheetsResponse$inboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingBalanceSheetsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingBalanceSheetsResponse$Outbound = { + Result: ListAccountingBalanceSheetsResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingBalanceSheetsResponse$outboundSchema: z.ZodType< + ListAccountingBalanceSheetsResponse$Outbound, + z.ZodTypeDef, + ListAccountingBalanceSheetsResponse +> = z + .object({ + result: z.lazy(() => ListAccountingBalanceSheetsResponseBody$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 ListAccountingBalanceSheetsResponse$ { + /** @deprecated use `ListAccountingBalanceSheetsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingBalanceSheetsResponse$inboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingBalanceSheetsResponse$outboundSchema; + /** @deprecated use `ListAccountingBalanceSheetsResponse$Outbound` instead. */ + export type Outbound = ListAccountingBalanceSheetsResponse$Outbound; +} diff --git a/src/models/operations/listaccountingcashflowstatement.ts b/src/models/operations/listaccountingcashflowstatement.ts index 3143eff5..39604555 100644 --- a/src/models/operations/listaccountingcashflowstatement.ts +++ b/src/models/operations/listaccountingcashflowstatement.ts @@ -31,6 +31,10 @@ export type ListAccountingCashflowStatementResponseBody = { data: Array; }; +export type ListAccountingCashflowStatementResponse = { + result: ListAccountingCashflowStatementResponseBody; +}; + /** @internal */ export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< ListAccountingCashflowStatementRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingCashflowStatementResponseBody$ { /** @deprecated use `ListAccountingCashflowStatementResponseBody$Outbound` instead. */ export type Outbound = ListAccountingCashflowStatementResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingCashflowStatementResponse$inboundSchema: z.ZodType< + ListAccountingCashflowStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingCashflowStatementResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingCashflowStatementResponse$Outbound = { + Result: ListAccountingCashflowStatementResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingCashflowStatementResponse$outboundSchema: z.ZodType< + ListAccountingCashflowStatementResponse$Outbound, + z.ZodTypeDef, + ListAccountingCashflowStatementResponse +> = z + .object({ + result: z.lazy(() => ListAccountingCashflowStatementResponseBody$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 ListAccountingCashflowStatementResponse$ { + /** @deprecated use `ListAccountingCashflowStatementResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCashflowStatementResponse$inboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCashflowStatementResponse$outboundSchema; + /** @deprecated use `ListAccountingCashflowStatementResponse$Outbound` instead. */ + export type Outbound = ListAccountingCashflowStatementResponse$Outbound; +} diff --git a/src/models/operations/listaccountingcompanyinfos.ts b/src/models/operations/listaccountingcompanyinfos.ts index 35e79edd..37c000a3 100644 --- a/src/models/operations/listaccountingcompanyinfos.ts +++ b/src/models/operations/listaccountingcompanyinfos.ts @@ -31,6 +31,10 @@ export type ListAccountingCompanyInfosResponseBody = { data: Array; }; +export type ListAccountingCompanyInfosResponse = { + result: ListAccountingCompanyInfosResponseBody; +}; + /** @internal */ export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< ListAccountingCompanyInfosRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingCompanyInfosResponseBody$ { /** @deprecated use `ListAccountingCompanyInfosResponseBody$Outbound` instead. */ export type Outbound = ListAccountingCompanyInfosResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingCompanyInfosResponse$inboundSchema: z.ZodType< + ListAccountingCompanyInfosResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingCompanyInfosResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingCompanyInfosResponse$Outbound = { + Result: ListAccountingCompanyInfosResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingCompanyInfosResponse$outboundSchema: z.ZodType< + ListAccountingCompanyInfosResponse$Outbound, + z.ZodTypeDef, + ListAccountingCompanyInfosResponse +> = z + .object({ + result: z.lazy(() => ListAccountingCompanyInfosResponseBody$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 ListAccountingCompanyInfosResponse$ { + /** @deprecated use `ListAccountingCompanyInfosResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCompanyInfosResponse$inboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCompanyInfosResponse$outboundSchema; + /** @deprecated use `ListAccountingCompanyInfosResponse$Outbound` instead. */ + export type Outbound = ListAccountingCompanyInfosResponse$Outbound; +} diff --git a/src/models/operations/listaccountingcontacts.ts b/src/models/operations/listaccountingcontacts.ts index 2d441681..507f29a7 100644 --- a/src/models/operations/listaccountingcontacts.ts +++ b/src/models/operations/listaccountingcontacts.ts @@ -31,6 +31,10 @@ export type ListAccountingContactsResponseBody = { data: Array; }; +export type ListAccountingContactsResponse = { + result: ListAccountingContactsResponseBody; +}; + /** @internal */ export const ListAccountingContactsRequest$inboundSchema: z.ZodType< ListAccountingContactsRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingContactsResponseBody$ { /** @deprecated use `ListAccountingContactsResponseBody$Outbound` instead. */ export type Outbound = ListAccountingContactsResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingContactsResponse$inboundSchema: z.ZodType< + ListAccountingContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingContactsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingContactsResponse$Outbound = { + Result: ListAccountingContactsResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingContactsResponse$outboundSchema: z.ZodType< + ListAccountingContactsResponse$Outbound, + z.ZodTypeDef, + ListAccountingContactsResponse +> = z + .object({ + result: z.lazy(() => ListAccountingContactsResponseBody$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 ListAccountingContactsResponse$ { + /** @deprecated use `ListAccountingContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingContactsResponse$inboundSchema; + /** @deprecated use `ListAccountingContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingContactsResponse$outboundSchema; + /** @deprecated use `ListAccountingContactsResponse$Outbound` instead. */ + export type Outbound = ListAccountingContactsResponse$Outbound; +} diff --git a/src/models/operations/listaccountingcreditnote.ts b/src/models/operations/listaccountingcreditnote.ts index bddb5186..2fc27fc6 100644 --- a/src/models/operations/listaccountingcreditnote.ts +++ b/src/models/operations/listaccountingcreditnote.ts @@ -31,6 +31,10 @@ export type ListAccountingCreditNoteResponseBody = { data: Array; }; +export type ListAccountingCreditNoteResponse = { + result: ListAccountingCreditNoteResponseBody; +}; + /** @internal */ export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< ListAccountingCreditNoteRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingCreditNoteResponseBody$ { /** @deprecated use `ListAccountingCreditNoteResponseBody$Outbound` instead. */ export type Outbound = ListAccountingCreditNoteResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingCreditNoteResponse$inboundSchema: z.ZodType< + ListAccountingCreditNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingCreditNoteResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingCreditNoteResponse$Outbound = { + Result: ListAccountingCreditNoteResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingCreditNoteResponse$outboundSchema: z.ZodType< + ListAccountingCreditNoteResponse$Outbound, + z.ZodTypeDef, + ListAccountingCreditNoteResponse +> = z + .object({ + result: z.lazy(() => ListAccountingCreditNoteResponseBody$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 ListAccountingCreditNoteResponse$ { + /** @deprecated use `ListAccountingCreditNoteResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingCreditNoteResponse$inboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingCreditNoteResponse$outboundSchema; + /** @deprecated use `ListAccountingCreditNoteResponse$Outbound` instead. */ + export type Outbound = ListAccountingCreditNoteResponse$Outbound; +} diff --git a/src/models/operations/listaccountingexpense.ts b/src/models/operations/listaccountingexpense.ts index e85d7149..19a29c35 100644 --- a/src/models/operations/listaccountingexpense.ts +++ b/src/models/operations/listaccountingexpense.ts @@ -31,6 +31,10 @@ export type ListAccountingExpenseResponseBody = { data: Array; }; +export type ListAccountingExpenseResponse = { + result: ListAccountingExpenseResponseBody; +}; + /** @internal */ export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< ListAccountingExpenseRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingExpenseResponseBody$ { /** @deprecated use `ListAccountingExpenseResponseBody$Outbound` instead. */ export type Outbound = ListAccountingExpenseResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingExpenseResponse$inboundSchema: z.ZodType< + ListAccountingExpenseResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingExpenseResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingExpenseResponse$Outbound = { + Result: ListAccountingExpenseResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingExpenseResponse$outboundSchema: z.ZodType< + ListAccountingExpenseResponse$Outbound, + z.ZodTypeDef, + ListAccountingExpenseResponse +> = z + .object({ + result: z.lazy(() => ListAccountingExpenseResponseBody$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 ListAccountingExpenseResponse$ { + /** @deprecated use `ListAccountingExpenseResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingExpenseResponse$inboundSchema; + /** @deprecated use `ListAccountingExpenseResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingExpenseResponse$outboundSchema; + /** @deprecated use `ListAccountingExpenseResponse$Outbound` instead. */ + export type Outbound = ListAccountingExpenseResponse$Outbound; +} diff --git a/src/models/operations/listaccountingincomestatement.ts b/src/models/operations/listaccountingincomestatement.ts index 8f05069e..79269fea 100644 --- a/src/models/operations/listaccountingincomestatement.ts +++ b/src/models/operations/listaccountingincomestatement.ts @@ -31,6 +31,10 @@ export type ListAccountingIncomeStatementResponseBody = { data: Array; }; +export type ListAccountingIncomeStatementResponse = { + result: ListAccountingIncomeStatementResponseBody; +}; + /** @internal */ export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< ListAccountingIncomeStatementRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingIncomeStatementResponseBody$ { /** @deprecated use `ListAccountingIncomeStatementResponseBody$Outbound` instead. */ export type Outbound = ListAccountingIncomeStatementResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingIncomeStatementResponse$inboundSchema: z.ZodType< + ListAccountingIncomeStatementResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingIncomeStatementResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingIncomeStatementResponse$Outbound = { + Result: ListAccountingIncomeStatementResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingIncomeStatementResponse$outboundSchema: z.ZodType< + ListAccountingIncomeStatementResponse$Outbound, + z.ZodTypeDef, + ListAccountingIncomeStatementResponse +> = z + .object({ + result: z.lazy(() => ListAccountingIncomeStatementResponseBody$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 ListAccountingIncomeStatementResponse$ { + /** @deprecated use `ListAccountingIncomeStatementResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingIncomeStatementResponse$inboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingIncomeStatementResponse$outboundSchema; + /** @deprecated use `ListAccountingIncomeStatementResponse$Outbound` instead. */ + export type Outbound = ListAccountingIncomeStatementResponse$Outbound; +} diff --git a/src/models/operations/listaccountinginvoice.ts b/src/models/operations/listaccountinginvoice.ts index d8d39a1c..9cadf20c 100644 --- a/src/models/operations/listaccountinginvoice.ts +++ b/src/models/operations/listaccountinginvoice.ts @@ -31,6 +31,10 @@ export type ListAccountingInvoiceResponseBody = { data: Array; }; +export type ListAccountingInvoiceResponse = { + result: ListAccountingInvoiceResponseBody; +}; + /** @internal */ export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< ListAccountingInvoiceRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingInvoiceResponseBody$ { /** @deprecated use `ListAccountingInvoiceResponseBody$Outbound` instead. */ export type Outbound = ListAccountingInvoiceResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingInvoiceResponse$inboundSchema: z.ZodType< + ListAccountingInvoiceResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingInvoiceResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingInvoiceResponse$Outbound = { + Result: ListAccountingInvoiceResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingInvoiceResponse$outboundSchema: z.ZodType< + ListAccountingInvoiceResponse$Outbound, + z.ZodTypeDef, + ListAccountingInvoiceResponse +> = z + .object({ + result: z.lazy(() => ListAccountingInvoiceResponseBody$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 ListAccountingInvoiceResponse$ { + /** @deprecated use `ListAccountingInvoiceResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingInvoiceResponse$inboundSchema; + /** @deprecated use `ListAccountingInvoiceResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingInvoiceResponse$outboundSchema; + /** @deprecated use `ListAccountingInvoiceResponse$Outbound` instead. */ + export type Outbound = ListAccountingInvoiceResponse$Outbound; +} diff --git a/src/models/operations/listaccountingitem.ts b/src/models/operations/listaccountingitem.ts index fecc1472..f6b7a353 100644 --- a/src/models/operations/listaccountingitem.ts +++ b/src/models/operations/listaccountingitem.ts @@ -31,6 +31,10 @@ export type ListAccountingItemResponseBody = { data: Array; }; +export type ListAccountingItemResponse = { + result: ListAccountingItemResponseBody; +}; + /** @internal */ export const ListAccountingItemRequest$inboundSchema: z.ZodType< ListAccountingItemRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingItemResponseBody$ { /** @deprecated use `ListAccountingItemResponseBody$Outbound` instead. */ export type Outbound = ListAccountingItemResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingItemResponse$inboundSchema: z.ZodType< + ListAccountingItemResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingItemResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingItemResponse$Outbound = { + Result: ListAccountingItemResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingItemResponse$outboundSchema: z.ZodType< + ListAccountingItemResponse$Outbound, + z.ZodTypeDef, + ListAccountingItemResponse +> = z + .object({ + result: z.lazy(() => ListAccountingItemResponseBody$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 ListAccountingItemResponse$ { + /** @deprecated use `ListAccountingItemResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingItemResponse$inboundSchema; + /** @deprecated use `ListAccountingItemResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingItemResponse$outboundSchema; + /** @deprecated use `ListAccountingItemResponse$Outbound` instead. */ + export type Outbound = ListAccountingItemResponse$Outbound; +} diff --git a/src/models/operations/listaccountingjournalentry.ts b/src/models/operations/listaccountingjournalentry.ts index 5a734d07..66c4e4c2 100644 --- a/src/models/operations/listaccountingjournalentry.ts +++ b/src/models/operations/listaccountingjournalentry.ts @@ -31,6 +31,10 @@ export type ListAccountingJournalEntryResponseBody = { data: Array; }; +export type ListAccountingJournalEntryResponse = { + result: ListAccountingJournalEntryResponseBody; +}; + /** @internal */ export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< ListAccountingJournalEntryRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingJournalEntryResponseBody$ { /** @deprecated use `ListAccountingJournalEntryResponseBody$Outbound` instead. */ export type Outbound = ListAccountingJournalEntryResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingJournalEntryResponse$inboundSchema: z.ZodType< + ListAccountingJournalEntryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingJournalEntryResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingJournalEntryResponse$Outbound = { + Result: ListAccountingJournalEntryResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingJournalEntryResponse$outboundSchema: z.ZodType< + ListAccountingJournalEntryResponse$Outbound, + z.ZodTypeDef, + ListAccountingJournalEntryResponse +> = z + .object({ + result: z.lazy(() => ListAccountingJournalEntryResponseBody$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 ListAccountingJournalEntryResponse$ { + /** @deprecated use `ListAccountingJournalEntryResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingJournalEntryResponse$inboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingJournalEntryResponse$outboundSchema; + /** @deprecated use `ListAccountingJournalEntryResponse$Outbound` instead. */ + export type Outbound = ListAccountingJournalEntryResponse$Outbound; +} diff --git a/src/models/operations/listaccountingpayment.ts b/src/models/operations/listaccountingpayment.ts index b5df897a..c7b5ce1f 100644 --- a/src/models/operations/listaccountingpayment.ts +++ b/src/models/operations/listaccountingpayment.ts @@ -31,6 +31,10 @@ export type ListAccountingPaymentResponseBody = { data: Array; }; +export type ListAccountingPaymentResponse = { + result: ListAccountingPaymentResponseBody; +}; + /** @internal */ export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< ListAccountingPaymentRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingPaymentResponseBody$ { /** @deprecated use `ListAccountingPaymentResponseBody$Outbound` instead. */ export type Outbound = ListAccountingPaymentResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingPaymentResponse$inboundSchema: z.ZodType< + ListAccountingPaymentResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingPaymentResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingPaymentResponse$Outbound = { + Result: ListAccountingPaymentResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingPaymentResponse$outboundSchema: z.ZodType< + ListAccountingPaymentResponse$Outbound, + z.ZodTypeDef, + ListAccountingPaymentResponse +> = z + .object({ + result: z.lazy(() => ListAccountingPaymentResponseBody$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 ListAccountingPaymentResponse$ { + /** @deprecated use `ListAccountingPaymentResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPaymentResponse$inboundSchema; + /** @deprecated use `ListAccountingPaymentResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPaymentResponse$outboundSchema; + /** @deprecated use `ListAccountingPaymentResponse$Outbound` instead. */ + export type Outbound = ListAccountingPaymentResponse$Outbound; +} diff --git a/src/models/operations/listaccountingphonenumber.ts b/src/models/operations/listaccountingphonenumber.ts index cb82e1c4..b1b227b4 100644 --- a/src/models/operations/listaccountingphonenumber.ts +++ b/src/models/operations/listaccountingphonenumber.ts @@ -31,6 +31,10 @@ export type ListAccountingPhonenumberResponseBody = { data: Array; }; +export type ListAccountingPhonenumberResponse = { + result: ListAccountingPhonenumberResponseBody; +}; + /** @internal */ export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< ListAccountingPhonenumberRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingPhonenumberResponseBody$ { /** @deprecated use `ListAccountingPhonenumberResponseBody$Outbound` instead. */ export type Outbound = ListAccountingPhonenumberResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingPhonenumberResponse$inboundSchema: z.ZodType< + ListAccountingPhonenumberResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingPhonenumberResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingPhonenumberResponse$Outbound = { + Result: ListAccountingPhonenumberResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingPhonenumberResponse$outboundSchema: z.ZodType< + ListAccountingPhonenumberResponse$Outbound, + z.ZodTypeDef, + ListAccountingPhonenumberResponse +> = z + .object({ + result: z.lazy(() => ListAccountingPhonenumberResponseBody$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 ListAccountingPhonenumberResponse$ { + /** @deprecated use `ListAccountingPhonenumberResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPhonenumberResponse$inboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPhonenumberResponse$outboundSchema; + /** @deprecated use `ListAccountingPhonenumberResponse$Outbound` instead. */ + export type Outbound = ListAccountingPhonenumberResponse$Outbound; +} diff --git a/src/models/operations/listaccountingpurchaseorder.ts b/src/models/operations/listaccountingpurchaseorder.ts index 8c00a004..5d1d106a 100644 --- a/src/models/operations/listaccountingpurchaseorder.ts +++ b/src/models/operations/listaccountingpurchaseorder.ts @@ -31,6 +31,10 @@ export type ListAccountingPurchaseOrderResponseBody = { data: Array; }; +export type ListAccountingPurchaseOrderResponse = { + result: ListAccountingPurchaseOrderResponseBody; +}; + /** @internal */ export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< ListAccountingPurchaseOrderRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingPurchaseOrderResponseBody$ { /** @deprecated use `ListAccountingPurchaseOrderResponseBody$Outbound` instead. */ export type Outbound = ListAccountingPurchaseOrderResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingPurchaseOrderResponse$inboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingPurchaseOrderResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingPurchaseOrderResponse$Outbound = { + Result: ListAccountingPurchaseOrderResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingPurchaseOrderResponse$outboundSchema: z.ZodType< + ListAccountingPurchaseOrderResponse$Outbound, + z.ZodTypeDef, + ListAccountingPurchaseOrderResponse +> = z + .object({ + result: z.lazy(() => ListAccountingPurchaseOrderResponseBody$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 ListAccountingPurchaseOrderResponse$ { + /** @deprecated use `ListAccountingPurchaseOrderResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingPurchaseOrderResponse$inboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingPurchaseOrderResponse$outboundSchema; + /** @deprecated use `ListAccountingPurchaseOrderResponse$Outbound` instead. */ + export type Outbound = ListAccountingPurchaseOrderResponse$Outbound; +} diff --git a/src/models/operations/listaccountingtaxrate.ts b/src/models/operations/listaccountingtaxrate.ts index feadbc98..500cd699 100644 --- a/src/models/operations/listaccountingtaxrate.ts +++ b/src/models/operations/listaccountingtaxrate.ts @@ -31,6 +31,10 @@ export type ListAccountingTaxRateResponseBody = { data: Array; }; +export type ListAccountingTaxRateResponse = { + result: ListAccountingTaxRateResponseBody; +}; + /** @internal */ export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< ListAccountingTaxRateRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingTaxRateResponseBody$ { /** @deprecated use `ListAccountingTaxRateResponseBody$Outbound` instead. */ export type Outbound = ListAccountingTaxRateResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingTaxRateResponse$inboundSchema: z.ZodType< + ListAccountingTaxRateResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingTaxRateResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingTaxRateResponse$Outbound = { + Result: ListAccountingTaxRateResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingTaxRateResponse$outboundSchema: z.ZodType< + ListAccountingTaxRateResponse$Outbound, + z.ZodTypeDef, + ListAccountingTaxRateResponse +> = z + .object({ + result: z.lazy(() => ListAccountingTaxRateResponseBody$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 ListAccountingTaxRateResponse$ { + /** @deprecated use `ListAccountingTaxRateResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTaxRateResponse$inboundSchema; + /** @deprecated use `ListAccountingTaxRateResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTaxRateResponse$outboundSchema; + /** @deprecated use `ListAccountingTaxRateResponse$Outbound` instead. */ + export type Outbound = ListAccountingTaxRateResponse$Outbound; +} diff --git a/src/models/operations/listaccountingtrackingcategorys.ts b/src/models/operations/listaccountingtrackingcategorys.ts index 23f0e79a..3346d3c1 100644 --- a/src/models/operations/listaccountingtrackingcategorys.ts +++ b/src/models/operations/listaccountingtrackingcategorys.ts @@ -31,6 +31,10 @@ export type ListAccountingTrackingCategorysResponseBody = { data: Array; }; +export type ListAccountingTrackingCategorysResponse = { + result: ListAccountingTrackingCategorysResponseBody; +}; + /** @internal */ export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< ListAccountingTrackingCategorysRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingTrackingCategorysResponseBody$ { /** @deprecated use `ListAccountingTrackingCategorysResponseBody$Outbound` instead. */ export type Outbound = ListAccountingTrackingCategorysResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingTrackingCategorysResponse$inboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingTrackingCategorysResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingTrackingCategorysResponse$Outbound = { + Result: ListAccountingTrackingCategorysResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingTrackingCategorysResponse$outboundSchema: z.ZodType< + ListAccountingTrackingCategorysResponse$Outbound, + z.ZodTypeDef, + ListAccountingTrackingCategorysResponse +> = z + .object({ + result: z.lazy(() => ListAccountingTrackingCategorysResponseBody$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 ListAccountingTrackingCategorysResponse$ { + /** @deprecated use `ListAccountingTrackingCategorysResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTrackingCategorysResponse$inboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTrackingCategorysResponse$outboundSchema; + /** @deprecated use `ListAccountingTrackingCategorysResponse$Outbound` instead. */ + export type Outbound = ListAccountingTrackingCategorysResponse$Outbound; +} diff --git a/src/models/operations/listaccountingtransaction.ts b/src/models/operations/listaccountingtransaction.ts index 57078a25..1b9ea9be 100644 --- a/src/models/operations/listaccountingtransaction.ts +++ b/src/models/operations/listaccountingtransaction.ts @@ -31,6 +31,10 @@ export type ListAccountingTransactionResponseBody = { data: Array; }; +export type ListAccountingTransactionResponse = { + result: ListAccountingTransactionResponseBody; +}; + /** @internal */ export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< ListAccountingTransactionRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingTransactionResponseBody$ { /** @deprecated use `ListAccountingTransactionResponseBody$Outbound` instead. */ export type Outbound = ListAccountingTransactionResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingTransactionResponse$inboundSchema: z.ZodType< + ListAccountingTransactionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingTransactionResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingTransactionResponse$Outbound = { + Result: ListAccountingTransactionResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingTransactionResponse$outboundSchema: z.ZodType< + ListAccountingTransactionResponse$Outbound, + z.ZodTypeDef, + ListAccountingTransactionResponse +> = z + .object({ + result: z.lazy(() => ListAccountingTransactionResponseBody$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 ListAccountingTransactionResponse$ { + /** @deprecated use `ListAccountingTransactionResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingTransactionResponse$inboundSchema; + /** @deprecated use `ListAccountingTransactionResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingTransactionResponse$outboundSchema; + /** @deprecated use `ListAccountingTransactionResponse$Outbound` instead. */ + export type Outbound = ListAccountingTransactionResponse$Outbound; +} diff --git a/src/models/operations/listaccountingvendorcredit.ts b/src/models/operations/listaccountingvendorcredit.ts index 477ac77a..61031590 100644 --- a/src/models/operations/listaccountingvendorcredit.ts +++ b/src/models/operations/listaccountingvendorcredit.ts @@ -31,6 +31,10 @@ export type ListAccountingVendorCreditResponseBody = { data: Array; }; +export type ListAccountingVendorCreditResponse = { + result: ListAccountingVendorCreditResponseBody; +}; + /** @internal */ export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< ListAccountingVendorCreditRequest, @@ -145,3 +149,51 @@ export namespace ListAccountingVendorCreditResponseBody$ { /** @deprecated use `ListAccountingVendorCreditResponseBody$Outbound` instead. */ export type Outbound = ListAccountingVendorCreditResponseBody$Outbound; } + +/** @internal */ +export const ListAccountingVendorCreditResponse$inboundSchema: z.ZodType< + ListAccountingVendorCreditResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListAccountingVendorCreditResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListAccountingVendorCreditResponse$Outbound = { + Result: ListAccountingVendorCreditResponseBody$Outbound; +}; + +/** @internal */ +export const ListAccountingVendorCreditResponse$outboundSchema: z.ZodType< + ListAccountingVendorCreditResponse$Outbound, + z.ZodTypeDef, + ListAccountingVendorCreditResponse +> = z + .object({ + result: z.lazy(() => ListAccountingVendorCreditResponseBody$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 ListAccountingVendorCreditResponse$ { + /** @deprecated use `ListAccountingVendorCreditResponse$inboundSchema` instead. */ + export const inboundSchema = ListAccountingVendorCreditResponse$inboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponse$outboundSchema` instead. */ + export const outboundSchema = ListAccountingVendorCreditResponse$outboundSchema; + /** @deprecated use `ListAccountingVendorCreditResponse$Outbound` instead. */ + export type Outbound = ListAccountingVendorCreditResponse$Outbound; +} diff --git a/src/models/operations/listatsactivity.ts b/src/models/operations/listatsactivity.ts index 6881f367..bfae1fb4 100644 --- a/src/models/operations/listatsactivity.ts +++ b/src/models/operations/listatsactivity.ts @@ -31,6 +31,10 @@ export type ListAtsActivityResponseBody = { data: Array; }; +export type ListAtsActivityResponse = { + result: ListAtsActivityResponseBody; +}; + /** @internal */ export const ListAtsActivityRequest$inboundSchema: z.ZodType< ListAtsActivityRequest, @@ -145,3 +149,51 @@ export namespace ListAtsActivityResponseBody$ { /** @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 index 0ad9f406..325b402b 100644 --- a/src/models/operations/listatsapplication.ts +++ b/src/models/operations/listatsapplication.ts @@ -31,6 +31,10 @@ export type ListAtsApplicationResponseBody = { data: Array; }; +export type ListAtsApplicationResponse = { + result: ListAtsApplicationResponseBody; +}; + /** @internal */ export const ListAtsApplicationRequest$inboundSchema: z.ZodType< ListAtsApplicationRequest, @@ -145,3 +149,51 @@ export namespace ListAtsApplicationResponseBody$ { /** @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 index aa1769e7..a95e46da 100644 --- a/src/models/operations/listatsattachment.ts +++ b/src/models/operations/listatsattachment.ts @@ -31,6 +31,10 @@ export type ListAtsAttachmentResponseBody = { data: Array; }; +export type ListAtsAttachmentResponse = { + result: ListAtsAttachmentResponseBody; +}; + /** @internal */ export const ListAtsAttachmentRequest$inboundSchema: z.ZodType< ListAtsAttachmentRequest, @@ -145,3 +149,51 @@ export namespace ListAtsAttachmentResponseBody$ { /** @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 index d92b4097..0c23fb8e 100644 --- a/src/models/operations/listatscandidate.ts +++ b/src/models/operations/listatscandidate.ts @@ -31,6 +31,10 @@ export type ListAtsCandidateResponseBody = { data: Array; }; +export type ListAtsCandidateResponse = { + result: ListAtsCandidateResponseBody; +}; + /** @internal */ export const ListAtsCandidateRequest$inboundSchema: z.ZodType< ListAtsCandidateRequest, @@ -145,3 +149,51 @@ export namespace ListAtsCandidateResponseBody$ { /** @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 index ef4292f7..b45f21ae 100644 --- a/src/models/operations/listatsdepartments.ts +++ b/src/models/operations/listatsdepartments.ts @@ -31,6 +31,10 @@ export type ListAtsDepartmentsResponseBody = { data: Array; }; +export type ListAtsDepartmentsResponse = { + result: ListAtsDepartmentsResponseBody; +}; + /** @internal */ export const ListAtsDepartmentsRequest$inboundSchema: z.ZodType< ListAtsDepartmentsRequest, @@ -145,3 +149,51 @@ export namespace ListAtsDepartmentsResponseBody$ { /** @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 index f82a0240..a1f95191 100644 --- a/src/models/operations/listatseeocs.ts +++ b/src/models/operations/listatseeocs.ts @@ -31,6 +31,10 @@ export type ListAtsEeocsResponseBody = { data: Array; }; +export type ListAtsEeocsResponse = { + result: ListAtsEeocsResponseBody; +}; + /** @internal */ export const ListAtsEeocsRequest$inboundSchema: z.ZodType< ListAtsEeocsRequest, @@ -145,3 +149,51 @@ export namespace ListAtsEeocsResponseBody$ { /** @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 index 331f98af..1bb938e6 100644 --- a/src/models/operations/listatsinterview.ts +++ b/src/models/operations/listatsinterview.ts @@ -31,6 +31,10 @@ export type ListAtsInterviewResponseBody = { data: Array; }; +export type ListAtsInterviewResponse = { + result: ListAtsInterviewResponseBody; +}; + /** @internal */ export const ListAtsInterviewRequest$inboundSchema: z.ZodType< ListAtsInterviewRequest, @@ -145,3 +149,51 @@ export namespace ListAtsInterviewResponseBody$ { /** @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 index ce6ef72e..619dc07b 100644 --- a/src/models/operations/listatsjob.ts +++ b/src/models/operations/listatsjob.ts @@ -31,6 +31,10 @@ export type ListAtsJobResponseBody = { data: Array; }; +export type ListAtsJobResponse = { + result: ListAtsJobResponseBody; +}; + /** @internal */ export const ListAtsJobRequest$inboundSchema: z.ZodType = z @@ -142,3 +146,51 @@ export namespace ListAtsJobResponseBody$ { /** @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 index a0d17896..b56df1a0 100644 --- a/src/models/operations/listatsjobinterviewstage.ts +++ b/src/models/operations/listatsjobinterviewstage.ts @@ -31,6 +31,10 @@ export type ListAtsJobInterviewStageResponseBody = { data: Array; }; +export type ListAtsJobInterviewStageResponse = { + result: ListAtsJobInterviewStageResponseBody; +}; + /** @internal */ export const ListAtsJobInterviewStageRequest$inboundSchema: z.ZodType< ListAtsJobInterviewStageRequest, @@ -145,3 +149,51 @@ export namespace ListAtsJobInterviewStageResponseBody$ { /** @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 index 298c78af..42840b4e 100644 --- a/src/models/operations/listatsoffer.ts +++ b/src/models/operations/listatsoffer.ts @@ -31,6 +31,10 @@ export type ListAtsOfferResponseBody = { data: Array; }; +export type ListAtsOfferResponse = { + result: ListAtsOfferResponseBody; +}; + /** @internal */ export const ListAtsOfferRequest$inboundSchema: z.ZodType< ListAtsOfferRequest, @@ -145,3 +149,51 @@ export namespace ListAtsOfferResponseBody$ { /** @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 index 3f740a96..86ebf257 100644 --- a/src/models/operations/listatsoffice.ts +++ b/src/models/operations/listatsoffice.ts @@ -31,6 +31,10 @@ export type ListAtsOfficeResponseBody = { data: Array; }; +export type ListAtsOfficeResponse = { + result: ListAtsOfficeResponseBody; +}; + /** @internal */ export const ListAtsOfficeRequest$inboundSchema: z.ZodType< ListAtsOfficeRequest, @@ -145,3 +149,51 @@ export namespace ListAtsOfficeResponseBody$ { /** @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 index d28899e4..4695590d 100644 --- a/src/models/operations/listatsrejectreasons.ts +++ b/src/models/operations/listatsrejectreasons.ts @@ -31,6 +31,10 @@ export type ListAtsRejectReasonsResponseBody = { data: Array; }; +export type ListAtsRejectReasonsResponse = { + result: ListAtsRejectReasonsResponseBody; +}; + /** @internal */ export const ListAtsRejectReasonsRequest$inboundSchema: z.ZodType< ListAtsRejectReasonsRequest, @@ -145,3 +149,51 @@ export namespace ListAtsRejectReasonsResponseBody$ { /** @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 index 7761017f..ee402a6c 100644 --- a/src/models/operations/listatsscorecard.ts +++ b/src/models/operations/listatsscorecard.ts @@ -31,6 +31,10 @@ export type ListAtsScorecardResponseBody = { data: Array; }; +export type ListAtsScorecardResponse = { + result: ListAtsScorecardResponseBody; +}; + /** @internal */ export const ListAtsScorecardRequest$inboundSchema: z.ZodType< ListAtsScorecardRequest, @@ -145,3 +149,51 @@ export namespace ListAtsScorecardResponseBody$ { /** @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 index 198615a3..d8d2c265 100644 --- a/src/models/operations/listatstags.ts +++ b/src/models/operations/listatstags.ts @@ -31,6 +31,10 @@ export type ListAtsTagsResponseBody = { data: Array; }; +export type ListAtsTagsResponse = { + result: ListAtsTagsResponseBody; +}; + /** @internal */ export const ListAtsTagsRequest$inboundSchema: z.ZodType< ListAtsTagsRequest, @@ -145,3 +149,51 @@ export namespace ListAtsTagsResponseBody$ { /** @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 index 2caa266c..1d077ba7 100644 --- a/src/models/operations/listatsusers.ts +++ b/src/models/operations/listatsusers.ts @@ -31,6 +31,10 @@ export type ListAtsUsersResponseBody = { data: Array; }; +export type ListAtsUsersResponse = { + result: ListAtsUsersResponseBody; +}; + /** @internal */ export const ListAtsUsersRequest$inboundSchema: z.ZodType< ListAtsUsersRequest, @@ -145,3 +149,51 @@ export namespace ListAtsUsersResponseBody$ { /** @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 eccdc3ac..af1bcb98 100644 --- a/src/models/operations/listcrmcompany.ts +++ b/src/models/operations/listcrmcompany.ts @@ -31,6 +31,10 @@ export type ListCrmCompanyResponseBody = { data: Array; }; +export type ListCrmCompanyResponse = { + result: ListCrmCompanyResponseBody; +}; + /** @internal */ export const ListCrmCompanyRequest$inboundSchema: z.ZodType< ListCrmCompanyRequest, @@ -145,3 +149,51 @@ export namespace ListCrmCompanyResponseBody$ { /** @deprecated use `ListCrmCompanyResponseBody$Outbound` instead. */ export type Outbound = ListCrmCompanyResponseBody$Outbound; } + +/** @internal */ +export const ListCrmCompanyResponse$inboundSchema: z.ZodType< + ListCrmCompanyResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmCompanyResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmCompanyResponse$Outbound = { + Result: ListCrmCompanyResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmCompanyResponse$outboundSchema: z.ZodType< + ListCrmCompanyResponse$Outbound, + z.ZodTypeDef, + ListCrmCompanyResponse +> = z + .object({ + result: z.lazy(() => ListCrmCompanyResponseBody$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 ListCrmCompanyResponse$ { + /** @deprecated use `ListCrmCompanyResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmCompanyResponse$inboundSchema; + /** @deprecated use `ListCrmCompanyResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmCompanyResponse$outboundSchema; + /** @deprecated use `ListCrmCompanyResponse$Outbound` instead. */ + export type Outbound = ListCrmCompanyResponse$Outbound; +} diff --git a/src/models/operations/listcrmcontacts.ts b/src/models/operations/listcrmcontacts.ts index 3a4a0563..b804c125 100644 --- a/src/models/operations/listcrmcontacts.ts +++ b/src/models/operations/listcrmcontacts.ts @@ -31,6 +31,10 @@ export type ListCrmContactsResponseBody = { data: Array; }; +export type ListCrmContactsResponse = { + result: ListCrmContactsResponseBody; +}; + /** @internal */ export const ListCrmContactsRequest$inboundSchema: z.ZodType< ListCrmContactsRequest, @@ -145,3 +149,51 @@ export namespace ListCrmContactsResponseBody$ { /** @deprecated use `ListCrmContactsResponseBody$Outbound` instead. */ export type Outbound = ListCrmContactsResponseBody$Outbound; } + +/** @internal */ +export const ListCrmContactsResponse$inboundSchema: z.ZodType< + ListCrmContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmContactsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmContactsResponse$Outbound = { + Result: ListCrmContactsResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmContactsResponse$outboundSchema: z.ZodType< + ListCrmContactsResponse$Outbound, + z.ZodTypeDef, + ListCrmContactsResponse +> = z + .object({ + result: z.lazy(() => ListCrmContactsResponseBody$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 ListCrmContactsResponse$ { + /** @deprecated use `ListCrmContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmContactsResponse$inboundSchema; + /** @deprecated use `ListCrmContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmContactsResponse$outboundSchema; + /** @deprecated use `ListCrmContactsResponse$Outbound` instead. */ + export type Outbound = ListCrmContactsResponse$Outbound; +} diff --git a/src/models/operations/listcrmdeals.ts b/src/models/operations/listcrmdeals.ts index 92b7aba9..9ddbb576 100644 --- a/src/models/operations/listcrmdeals.ts +++ b/src/models/operations/listcrmdeals.ts @@ -31,6 +31,10 @@ export type ListCrmDealsResponseBody = { data: Array; }; +export type ListCrmDealsResponse = { + result: ListCrmDealsResponseBody; +}; + /** @internal */ export const ListCrmDealsRequest$inboundSchema: z.ZodType< ListCrmDealsRequest, @@ -145,3 +149,51 @@ export namespace ListCrmDealsResponseBody$ { /** @deprecated use `ListCrmDealsResponseBody$Outbound` instead. */ export type Outbound = ListCrmDealsResponseBody$Outbound; } + +/** @internal */ +export const ListCrmDealsResponse$inboundSchema: z.ZodType< + ListCrmDealsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmDealsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmDealsResponse$Outbound = { + Result: ListCrmDealsResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmDealsResponse$outboundSchema: z.ZodType< + ListCrmDealsResponse$Outbound, + z.ZodTypeDef, + ListCrmDealsResponse +> = z + .object({ + result: z.lazy(() => ListCrmDealsResponseBody$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 ListCrmDealsResponse$ { + /** @deprecated use `ListCrmDealsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmDealsResponse$inboundSchema; + /** @deprecated use `ListCrmDealsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmDealsResponse$outboundSchema; + /** @deprecated use `ListCrmDealsResponse$Outbound` instead. */ + export type Outbound = ListCrmDealsResponse$Outbound; +} diff --git a/src/models/operations/listcrmengagements.ts b/src/models/operations/listcrmengagements.ts index 89c2fae0..47e30053 100644 --- a/src/models/operations/listcrmengagements.ts +++ b/src/models/operations/listcrmengagements.ts @@ -31,6 +31,10 @@ export type ListCrmEngagementsResponseBody = { data: Array; }; +export type ListCrmEngagementsResponse = { + result: ListCrmEngagementsResponseBody; +}; + /** @internal */ export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< ListCrmEngagementsRequest, @@ -145,3 +149,51 @@ export namespace ListCrmEngagementsResponseBody$ { /** @deprecated use `ListCrmEngagementsResponseBody$Outbound` instead. */ export type Outbound = ListCrmEngagementsResponseBody$Outbound; } + +/** @internal */ +export const ListCrmEngagementsResponse$inboundSchema: z.ZodType< + ListCrmEngagementsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmEngagementsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmEngagementsResponse$Outbound = { + Result: ListCrmEngagementsResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmEngagementsResponse$outboundSchema: z.ZodType< + ListCrmEngagementsResponse$Outbound, + z.ZodTypeDef, + ListCrmEngagementsResponse +> = z + .object({ + result: z.lazy(() => ListCrmEngagementsResponseBody$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 ListCrmEngagementsResponse$ { + /** @deprecated use `ListCrmEngagementsResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmEngagementsResponse$inboundSchema; + /** @deprecated use `ListCrmEngagementsResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmEngagementsResponse$outboundSchema; + /** @deprecated use `ListCrmEngagementsResponse$Outbound` instead. */ + export type Outbound = ListCrmEngagementsResponse$Outbound; +} diff --git a/src/models/operations/listcrmnote.ts b/src/models/operations/listcrmnote.ts index 8f7ec43e..84aa07fd 100644 --- a/src/models/operations/listcrmnote.ts +++ b/src/models/operations/listcrmnote.ts @@ -31,6 +31,10 @@ export type ListCrmNoteResponseBody = { data: Array; }; +export type ListCrmNoteResponse = { + result: ListCrmNoteResponseBody; +}; + /** @internal */ export const ListCrmNoteRequest$inboundSchema: z.ZodType< ListCrmNoteRequest, @@ -145,3 +149,51 @@ export namespace ListCrmNoteResponseBody$ { /** @deprecated use `ListCrmNoteResponseBody$Outbound` instead. */ export type Outbound = ListCrmNoteResponseBody$Outbound; } + +/** @internal */ +export const ListCrmNoteResponse$inboundSchema: z.ZodType< + ListCrmNoteResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmNoteResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmNoteResponse$Outbound = { + Result: ListCrmNoteResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmNoteResponse$outboundSchema: z.ZodType< + ListCrmNoteResponse$Outbound, + z.ZodTypeDef, + ListCrmNoteResponse +> = z + .object({ + result: z.lazy(() => ListCrmNoteResponseBody$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 ListCrmNoteResponse$ { + /** @deprecated use `ListCrmNoteResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmNoteResponse$inboundSchema; + /** @deprecated use `ListCrmNoteResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmNoteResponse$outboundSchema; + /** @deprecated use `ListCrmNoteResponse$Outbound` instead. */ + export type Outbound = ListCrmNoteResponse$Outbound; +} diff --git a/src/models/operations/listcrmstages.ts b/src/models/operations/listcrmstages.ts index 1da00a37..fa7c32d7 100644 --- a/src/models/operations/listcrmstages.ts +++ b/src/models/operations/listcrmstages.ts @@ -31,6 +31,10 @@ export type ListCrmStagesResponseBody = { data: Array; }; +export type ListCrmStagesResponse = { + result: ListCrmStagesResponseBody; +}; + /** @internal */ export const ListCrmStagesRequest$inboundSchema: z.ZodType< ListCrmStagesRequest, @@ -145,3 +149,51 @@ export namespace ListCrmStagesResponseBody$ { /** @deprecated use `ListCrmStagesResponseBody$Outbound` instead. */ export type Outbound = ListCrmStagesResponseBody$Outbound; } + +/** @internal */ +export const ListCrmStagesResponse$inboundSchema: z.ZodType< + ListCrmStagesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmStagesResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmStagesResponse$Outbound = { + Result: ListCrmStagesResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmStagesResponse$outboundSchema: z.ZodType< + ListCrmStagesResponse$Outbound, + z.ZodTypeDef, + ListCrmStagesResponse +> = z + .object({ + result: z.lazy(() => ListCrmStagesResponseBody$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 ListCrmStagesResponse$ { + /** @deprecated use `ListCrmStagesResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmStagesResponse$inboundSchema; + /** @deprecated use `ListCrmStagesResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmStagesResponse$outboundSchema; + /** @deprecated use `ListCrmStagesResponse$Outbound` instead. */ + export type Outbound = ListCrmStagesResponse$Outbound; +} diff --git a/src/models/operations/listcrmtask.ts b/src/models/operations/listcrmtask.ts index eab4630b..a0a8daa3 100644 --- a/src/models/operations/listcrmtask.ts +++ b/src/models/operations/listcrmtask.ts @@ -31,6 +31,10 @@ export type ListCrmTaskResponseBody = { data: Array; }; +export type ListCrmTaskResponse = { + result: ListCrmTaskResponseBody; +}; + /** @internal */ export const ListCrmTaskRequest$inboundSchema: z.ZodType< ListCrmTaskRequest, @@ -145,3 +149,51 @@ export namespace ListCrmTaskResponseBody$ { /** @deprecated use `ListCrmTaskResponseBody$Outbound` instead. */ export type Outbound = ListCrmTaskResponseBody$Outbound; } + +/** @internal */ +export const ListCrmTaskResponse$inboundSchema: z.ZodType< + ListCrmTaskResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmTaskResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmTaskResponse$Outbound = { + Result: ListCrmTaskResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmTaskResponse$outboundSchema: z.ZodType< + ListCrmTaskResponse$Outbound, + z.ZodTypeDef, + ListCrmTaskResponse +> = z + .object({ + result: z.lazy(() => ListCrmTaskResponseBody$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 ListCrmTaskResponse$ { + /** @deprecated use `ListCrmTaskResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmTaskResponse$inboundSchema; + /** @deprecated use `ListCrmTaskResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmTaskResponse$outboundSchema; + /** @deprecated use `ListCrmTaskResponse$Outbound` instead. */ + export type Outbound = ListCrmTaskResponse$Outbound; +} diff --git a/src/models/operations/listcrmusers.ts b/src/models/operations/listcrmusers.ts index fc714f67..8ae7e2be 100644 --- a/src/models/operations/listcrmusers.ts +++ b/src/models/operations/listcrmusers.ts @@ -31,6 +31,10 @@ export type ListCrmUsersResponseBody = { data: Array; }; +export type ListCrmUsersResponse = { + result: ListCrmUsersResponseBody; +}; + /** @internal */ export const ListCrmUsersRequest$inboundSchema: z.ZodType< ListCrmUsersRequest, @@ -145,3 +149,51 @@ export namespace ListCrmUsersResponseBody$ { /** @deprecated use `ListCrmUsersResponseBody$Outbound` instead. */ export type Outbound = ListCrmUsersResponseBody$Outbound; } + +/** @internal */ +export const ListCrmUsersResponse$inboundSchema: z.ZodType< + ListCrmUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListCrmUsersResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListCrmUsersResponse$Outbound = { + Result: ListCrmUsersResponseBody$Outbound; +}; + +/** @internal */ +export const ListCrmUsersResponse$outboundSchema: z.ZodType< + ListCrmUsersResponse$Outbound, + z.ZodTypeDef, + ListCrmUsersResponse +> = z + .object({ + result: z.lazy(() => ListCrmUsersResponseBody$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 ListCrmUsersResponse$ { + /** @deprecated use `ListCrmUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListCrmUsersResponse$inboundSchema; + /** @deprecated use `ListCrmUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListCrmUsersResponse$outboundSchema; + /** @deprecated use `ListCrmUsersResponse$Outbound` instead. */ + export type Outbound = ListCrmUsersResponse$Outbound; +} diff --git a/src/models/operations/listfilestoragedrives.ts b/src/models/operations/listfilestoragedrives.ts index 97eac0ba..d87ddfdb 100644 --- a/src/models/operations/listfilestoragedrives.ts +++ b/src/models/operations/listfilestoragedrives.ts @@ -31,6 +31,10 @@ export type ListFilestorageDrivesResponseBody = { data: Array; }; +export type ListFilestorageDrivesResponse = { + result: ListFilestorageDrivesResponseBody; +}; + /** @internal */ export const ListFilestorageDrivesRequest$inboundSchema: z.ZodType< ListFilestorageDrivesRequest, @@ -145,3 +149,51 @@ export namespace ListFilestorageDrivesResponseBody$ { /** @deprecated use `ListFilestorageDrivesResponseBody$Outbound` instead. */ export type Outbound = ListFilestorageDrivesResponseBody$Outbound; } + +/** @internal */ +export const ListFilestorageDrivesResponse$inboundSchema: z.ZodType< + ListFilestorageDrivesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListFilestorageDrivesResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListFilestorageDrivesResponse$Outbound = { + Result: ListFilestorageDrivesResponseBody$Outbound; +}; + +/** @internal */ +export const ListFilestorageDrivesResponse$outboundSchema: z.ZodType< + ListFilestorageDrivesResponse$Outbound, + z.ZodTypeDef, + ListFilestorageDrivesResponse +> = z + .object({ + result: z.lazy(() => ListFilestorageDrivesResponseBody$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 ListFilestorageDrivesResponse$ { + /** @deprecated use `ListFilestorageDrivesResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageDrivesResponse$inboundSchema; + /** @deprecated use `ListFilestorageDrivesResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageDrivesResponse$outboundSchema; + /** @deprecated use `ListFilestorageDrivesResponse$Outbound` instead. */ + export type Outbound = ListFilestorageDrivesResponse$Outbound; +} diff --git a/src/models/operations/listfilestoragefile.ts b/src/models/operations/listfilestoragefile.ts index 24894db7..26a7b6dc 100644 --- a/src/models/operations/listfilestoragefile.ts +++ b/src/models/operations/listfilestoragefile.ts @@ -31,6 +31,10 @@ export type ListFilestorageFileResponseBody = { data: Array; }; +export type ListFilestorageFileResponse = { + result: ListFilestorageFileResponseBody; +}; + /** @internal */ export const ListFilestorageFileRequest$inboundSchema: z.ZodType< ListFilestorageFileRequest, @@ -145,3 +149,51 @@ export namespace ListFilestorageFileResponseBody$ { /** @deprecated use `ListFilestorageFileResponseBody$Outbound` instead. */ export type Outbound = ListFilestorageFileResponseBody$Outbound; } + +/** @internal */ +export const ListFilestorageFileResponse$inboundSchema: z.ZodType< + ListFilestorageFileResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListFilestorageFileResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListFilestorageFileResponse$Outbound = { + Result: ListFilestorageFileResponseBody$Outbound; +}; + +/** @internal */ +export const ListFilestorageFileResponse$outboundSchema: z.ZodType< + ListFilestorageFileResponse$Outbound, + z.ZodTypeDef, + ListFilestorageFileResponse +> = z + .object({ + result: z.lazy(() => ListFilestorageFileResponseBody$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 ListFilestorageFileResponse$ { + /** @deprecated use `ListFilestorageFileResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFileResponse$inboundSchema; + /** @deprecated use `ListFilestorageFileResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFileResponse$outboundSchema; + /** @deprecated use `ListFilestorageFileResponse$Outbound` instead. */ + export type Outbound = ListFilestorageFileResponse$Outbound; +} diff --git a/src/models/operations/listfilestoragefolder.ts b/src/models/operations/listfilestoragefolder.ts index 5d1479f4..e85cd6ea 100644 --- a/src/models/operations/listfilestoragefolder.ts +++ b/src/models/operations/listfilestoragefolder.ts @@ -31,6 +31,10 @@ export type ListFilestorageFolderResponseBody = { data: Array; }; +export type ListFilestorageFolderResponse = { + result: ListFilestorageFolderResponseBody; +}; + /** @internal */ export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< ListFilestorageFolderRequest, @@ -145,3 +149,51 @@ export namespace ListFilestorageFolderResponseBody$ { /** @deprecated use `ListFilestorageFolderResponseBody$Outbound` instead. */ export type Outbound = ListFilestorageFolderResponseBody$Outbound; } + +/** @internal */ +export const ListFilestorageFolderResponse$inboundSchema: z.ZodType< + ListFilestorageFolderResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListFilestorageFolderResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListFilestorageFolderResponse$Outbound = { + Result: ListFilestorageFolderResponseBody$Outbound; +}; + +/** @internal */ +export const ListFilestorageFolderResponse$outboundSchema: z.ZodType< + ListFilestorageFolderResponse$Outbound, + z.ZodTypeDef, + ListFilestorageFolderResponse +> = z + .object({ + result: z.lazy(() => ListFilestorageFolderResponseBody$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 ListFilestorageFolderResponse$ { + /** @deprecated use `ListFilestorageFolderResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageFolderResponse$inboundSchema; + /** @deprecated use `ListFilestorageFolderResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageFolderResponse$outboundSchema; + /** @deprecated use `ListFilestorageFolderResponse$Outbound` instead. */ + export type Outbound = ListFilestorageFolderResponse$Outbound; +} diff --git a/src/models/operations/listfilestoragegroup.ts b/src/models/operations/listfilestoragegroup.ts index a7e1d5ae..6a540c0f 100644 --- a/src/models/operations/listfilestoragegroup.ts +++ b/src/models/operations/listfilestoragegroup.ts @@ -31,6 +31,10 @@ export type ListFilestorageGroupResponseBody = { data: Array; }; +export type ListFilestorageGroupResponse = { + result: ListFilestorageGroupResponseBody; +}; + /** @internal */ export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< ListFilestorageGroupRequest, @@ -145,3 +149,51 @@ export namespace ListFilestorageGroupResponseBody$ { /** @deprecated use `ListFilestorageGroupResponseBody$Outbound` instead. */ export type Outbound = ListFilestorageGroupResponseBody$Outbound; } + +/** @internal */ +export const ListFilestorageGroupResponse$inboundSchema: z.ZodType< + ListFilestorageGroupResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListFilestorageGroupResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListFilestorageGroupResponse$Outbound = { + Result: ListFilestorageGroupResponseBody$Outbound; +}; + +/** @internal */ +export const ListFilestorageGroupResponse$outboundSchema: z.ZodType< + ListFilestorageGroupResponse$Outbound, + z.ZodTypeDef, + ListFilestorageGroupResponse +> = z + .object({ + result: z.lazy(() => ListFilestorageGroupResponseBody$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 ListFilestorageGroupResponse$ { + /** @deprecated use `ListFilestorageGroupResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageGroupResponse$inboundSchema; + /** @deprecated use `ListFilestorageGroupResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageGroupResponse$outboundSchema; + /** @deprecated use `ListFilestorageGroupResponse$Outbound` instead. */ + export type Outbound = ListFilestorageGroupResponse$Outbound; +} diff --git a/src/models/operations/listfilestorageusers.ts b/src/models/operations/listfilestorageusers.ts index 017850ef..c0326b9a 100644 --- a/src/models/operations/listfilestorageusers.ts +++ b/src/models/operations/listfilestorageusers.ts @@ -31,6 +31,10 @@ export type ListFilestorageUsersResponseBody = { data: Array; }; +export type ListFilestorageUsersResponse = { + result: ListFilestorageUsersResponseBody; +}; + /** @internal */ export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< ListFilestorageUsersRequest, @@ -145,3 +149,51 @@ export namespace ListFilestorageUsersResponseBody$ { /** @deprecated use `ListFilestorageUsersResponseBody$Outbound` instead. */ export type Outbound = ListFilestorageUsersResponseBody$Outbound; } + +/** @internal */ +export const ListFilestorageUsersResponse$inboundSchema: z.ZodType< + ListFilestorageUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListFilestorageUsersResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListFilestorageUsersResponse$Outbound = { + Result: ListFilestorageUsersResponseBody$Outbound; +}; + +/** @internal */ +export const ListFilestorageUsersResponse$outboundSchema: z.ZodType< + ListFilestorageUsersResponse$Outbound, + z.ZodTypeDef, + ListFilestorageUsersResponse +> = z + .object({ + result: z.lazy(() => ListFilestorageUsersResponseBody$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 ListFilestorageUsersResponse$ { + /** @deprecated use `ListFilestorageUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListFilestorageUsersResponse$inboundSchema; + /** @deprecated use `ListFilestorageUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListFilestorageUsersResponse$outboundSchema; + /** @deprecated use `ListFilestorageUsersResponse$Outbound` instead. */ + export type Outbound = ListFilestorageUsersResponse$Outbound; +} diff --git a/src/models/operations/listhrisbankinfo.ts b/src/models/operations/listhrisbankinfo.ts index 62d5f975..5f843c6f 100644 --- a/src/models/operations/listhrisbankinfo.ts +++ b/src/models/operations/listhrisbankinfo.ts @@ -31,6 +31,10 @@ export type ListHrisBankInfoResponseBody = { data: Array; }; +export type ListHrisBankInfoResponse = { + result: ListHrisBankInfoResponseBody; +}; + /** @internal */ export const ListHrisBankInfoRequest$inboundSchema: z.ZodType< ListHrisBankInfoRequest, @@ -145,3 +149,51 @@ export namespace ListHrisBankInfoResponseBody$ { /** @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 index 6e95de70..42be29ad 100644 --- a/src/models/operations/listhrisbenefits.ts +++ b/src/models/operations/listhrisbenefits.ts @@ -31,6 +31,10 @@ export type ListHrisBenefitsResponseBody = { data: Array; }; +export type ListHrisBenefitsResponse = { + result: ListHrisBenefitsResponseBody; +}; + /** @internal */ export const ListHrisBenefitsRequest$inboundSchema: z.ZodType< ListHrisBenefitsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisBenefitsResponseBody$ { /** @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 index ae7dd8db..cfea279c 100644 --- a/src/models/operations/listhriscompanies.ts +++ b/src/models/operations/listhriscompanies.ts @@ -31,6 +31,10 @@ export type ListHrisCompaniesResponseBody = { data: Array; }; +export type ListHrisCompaniesResponse = { + result: ListHrisCompaniesResponseBody; +}; + /** @internal */ export const ListHrisCompaniesRequest$inboundSchema: z.ZodType< ListHrisCompaniesRequest, @@ -145,3 +149,51 @@ export namespace ListHrisCompaniesResponseBody$ { /** @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 index 6a8618c4..913b3f9f 100644 --- a/src/models/operations/listhrisdependents.ts +++ b/src/models/operations/listhrisdependents.ts @@ -31,6 +31,10 @@ export type ListHrisDependentsResponseBody = { data: Array; }; +export type ListHrisDependentsResponse = { + result: ListHrisDependentsResponseBody; +}; + /** @internal */ export const ListHrisDependentsRequest$inboundSchema: z.ZodType< ListHrisDependentsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisDependentsResponseBody$ { /** @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 index d6a29741..54998e66 100644 --- a/src/models/operations/listhrisemployeepayrollrun.ts +++ b/src/models/operations/listhrisemployeepayrollrun.ts @@ -31,6 +31,10 @@ export type ListHrisEmployeePayrollRunResponseBody = { data: Array; }; +export type ListHrisEmployeePayrollRunResponse = { + result: ListHrisEmployeePayrollRunResponseBody; +}; + /** @internal */ export const ListHrisEmployeePayrollRunRequest$inboundSchema: z.ZodType< ListHrisEmployeePayrollRunRequest, @@ -145,3 +149,51 @@ export namespace ListHrisEmployeePayrollRunResponseBody$ { /** @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 index ce23c250..10dc22c3 100644 --- a/src/models/operations/listhrisemployees.ts +++ b/src/models/operations/listhrisemployees.ts @@ -31,6 +31,10 @@ export type ListHrisEmployeesResponseBody = { data: Array; }; +export type ListHrisEmployeesResponse = { + result: ListHrisEmployeesResponseBody; +}; + /** @internal */ export const ListHrisEmployeesRequest$inboundSchema: z.ZodType< ListHrisEmployeesRequest, @@ -145,3 +149,51 @@ export namespace ListHrisEmployeesResponseBody$ { /** @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 index f5219de1..854f38c6 100644 --- a/src/models/operations/listhrisemployerbenefits.ts +++ b/src/models/operations/listhrisemployerbenefits.ts @@ -31,6 +31,10 @@ export type ListHrisEmployerBenefitsResponseBody = { data: Array; }; +export type ListHrisEmployerBenefitsResponse = { + result: ListHrisEmployerBenefitsResponseBody; +}; + /** @internal */ export const ListHrisEmployerBenefitsRequest$inboundSchema: z.ZodType< ListHrisEmployerBenefitsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisEmployerBenefitsResponseBody$ { /** @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 index 780e0953..0c319930 100644 --- a/src/models/operations/listhrisemployments.ts +++ b/src/models/operations/listhrisemployments.ts @@ -31,6 +31,10 @@ export type ListHrisEmploymentsResponseBody = { data: Array; }; +export type ListHrisEmploymentsResponse = { + result: ListHrisEmploymentsResponseBody; +}; + /** @internal */ export const ListHrisEmploymentsRequest$inboundSchema: z.ZodType< ListHrisEmploymentsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisEmploymentsResponseBody$ { /** @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 index 06a95fae..c81f8e74 100644 --- a/src/models/operations/listhrisgroups.ts +++ b/src/models/operations/listhrisgroups.ts @@ -31,6 +31,10 @@ export type ListHrisGroupsResponseBody = { data: Array; }; +export type ListHrisGroupsResponse = { + result: ListHrisGroupsResponseBody; +}; + /** @internal */ export const ListHrisGroupsRequest$inboundSchema: z.ZodType< ListHrisGroupsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisGroupsResponseBody$ { /** @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 index 279314b1..ea4f1f59 100644 --- a/src/models/operations/listhrislocations.ts +++ b/src/models/operations/listhrislocations.ts @@ -31,6 +31,10 @@ export type ListHrisLocationsResponseBody = { data: Array; }; +export type ListHrisLocationsResponse = { + result: ListHrisLocationsResponseBody; +}; + /** @internal */ export const ListHrisLocationsRequest$inboundSchema: z.ZodType< ListHrisLocationsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisLocationsResponseBody$ { /** @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 index 3c0a9544..bb2eed65 100644 --- a/src/models/operations/listhrispaygroups.ts +++ b/src/models/operations/listhrispaygroups.ts @@ -31,6 +31,10 @@ export type ListHrisPaygroupsResponseBody = { data: Array; }; +export type ListHrisPaygroupsResponse = { + result: ListHrisPaygroupsResponseBody; +}; + /** @internal */ export const ListHrisPaygroupsRequest$inboundSchema: z.ZodType< ListHrisPaygroupsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisPaygroupsResponseBody$ { /** @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 index 55505478..2022beb8 100644 --- a/src/models/operations/listhrispayrollruns.ts +++ b/src/models/operations/listhrispayrollruns.ts @@ -31,6 +31,10 @@ export type ListHrisPayrollRunsResponseBody = { data: Array; }; +export type ListHrisPayrollRunsResponse = { + result: ListHrisPayrollRunsResponseBody; +}; + /** @internal */ export const ListHrisPayrollRunsRequest$inboundSchema: z.ZodType< ListHrisPayrollRunsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisPayrollRunsResponseBody$ { /** @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 index 3a7e0dd1..d3276a15 100644 --- a/src/models/operations/listhristimeoffbalances.ts +++ b/src/models/operations/listhristimeoffbalances.ts @@ -31,6 +31,10 @@ export type ListHrisTimeoffbalancesResponseBody = { data: Array; }; +export type ListHrisTimeoffbalancesResponse = { + result: ListHrisTimeoffbalancesResponseBody; +}; + /** @internal */ export const ListHrisTimeoffbalancesRequest$inboundSchema: z.ZodType< ListHrisTimeoffbalancesRequest, @@ -145,3 +149,51 @@ export namespace ListHrisTimeoffbalancesResponseBody$ { /** @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 index 912f7a19..9207b73b 100644 --- a/src/models/operations/listhristimeoffs.ts +++ b/src/models/operations/listhristimeoffs.ts @@ -31,6 +31,10 @@ export type ListHrisTimeoffsResponseBody = { data: Array; }; +export type ListHrisTimeoffsResponse = { + result: ListHrisTimeoffsResponseBody; +}; + /** @internal */ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType< ListHrisTimeoffsRequest, @@ -145,3 +149,51 @@ export namespace ListHrisTimeoffsResponseBody$ { /** @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/listmarketingautomationaction.ts b/src/models/operations/listmarketingautomationaction.ts index 2d4dbb3c..e88464b4 100644 --- a/src/models/operations/listmarketingautomationaction.ts +++ b/src/models/operations/listmarketingautomationaction.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationActionResponseBody = { data: Array; }; +export type ListMarketingautomationActionResponse = { + result: ListMarketingautomationActionResponseBody; +}; + /** @internal */ export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< ListMarketingautomationActionRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationActionResponseBody$ { /** @deprecated use `ListMarketingautomationActionResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationActionResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationActionResponse$inboundSchema: z.ZodType< + ListMarketingautomationActionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationActionResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationActionResponse$Outbound = { + Result: ListMarketingautomationActionResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationActionResponse$outboundSchema: z.ZodType< + ListMarketingautomationActionResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationActionResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationActionResponseBody$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 ListMarketingautomationActionResponse$ { + /** @deprecated use `ListMarketingautomationActionResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationActionResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationActionResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationActionResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationActionResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationActionResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationautomations.ts b/src/models/operations/listmarketingautomationautomations.ts index 326b3419..9f75d23d 100644 --- a/src/models/operations/listmarketingautomationautomations.ts +++ b/src/models/operations/listmarketingautomationautomations.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationAutomationsResponseBody = { data: Array; }; +export type ListMarketingautomationAutomationsResponse = { + result: ListMarketingautomationAutomationsResponseBody; +}; + /** @internal */ export const ListMarketingautomationAutomationsRequest$inboundSchema: z.ZodType< ListMarketingautomationAutomationsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationAutomationsResponseBody$ { /** @deprecated use `ListMarketingautomationAutomationsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationAutomationsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationAutomationsResponse$inboundSchema: z.ZodType< + ListMarketingautomationAutomationsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationAutomationsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationAutomationsResponse$Outbound = { + Result: ListMarketingautomationAutomationsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationAutomationsResponse$outboundSchema: z.ZodType< + ListMarketingautomationAutomationsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationAutomationsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationAutomationsResponseBody$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 ListMarketingautomationAutomationsResponse$ { + /** @deprecated use `ListMarketingautomationAutomationsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationAutomationsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationAutomationsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationAutomationsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationAutomationsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationAutomationsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationcampaigns.ts b/src/models/operations/listmarketingautomationcampaigns.ts index fcaf36cf..9b8c8109 100644 --- a/src/models/operations/listmarketingautomationcampaigns.ts +++ b/src/models/operations/listmarketingautomationcampaigns.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationCampaignsResponseBody = { data: Array; }; +export type ListMarketingautomationCampaignsResponse = { + result: ListMarketingautomationCampaignsResponseBody; +}; + /** @internal */ export const ListMarketingautomationCampaignsRequest$inboundSchema: z.ZodType< ListMarketingautomationCampaignsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationCampaignsResponseBody$ { /** @deprecated use `ListMarketingautomationCampaignsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationCampaignsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationCampaignsResponse$inboundSchema: z.ZodType< + ListMarketingautomationCampaignsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationCampaignsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationCampaignsResponse$Outbound = { + Result: ListMarketingautomationCampaignsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationCampaignsResponse$outboundSchema: z.ZodType< + ListMarketingautomationCampaignsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationCampaignsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationCampaignsResponseBody$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 ListMarketingautomationCampaignsResponse$ { + /** @deprecated use `ListMarketingautomationCampaignsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationCampaignsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationCampaignsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationCampaignsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationCampaignsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationCampaignsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationcontacts.ts b/src/models/operations/listmarketingautomationcontacts.ts index 8e97f9c9..abb1ce60 100644 --- a/src/models/operations/listmarketingautomationcontacts.ts +++ b/src/models/operations/listmarketingautomationcontacts.ts @@ -31,6 +31,10 @@ export type ListMarketingAutomationContactsResponseBody = { data: Array; }; +export type ListMarketingAutomationContactsResponse = { + result: ListMarketingAutomationContactsResponseBody; +}; + /** @internal */ export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< ListMarketingAutomationContactsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingAutomationContactsResponseBody$ { /** @deprecated use `ListMarketingAutomationContactsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingAutomationContactsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingAutomationContactsResponse$inboundSchema: z.ZodType< + ListMarketingAutomationContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingAutomationContactsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingAutomationContactsResponse$Outbound = { + Result: ListMarketingAutomationContactsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingAutomationContactsResponse$outboundSchema: z.ZodType< + ListMarketingAutomationContactsResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationContactsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingAutomationContactsResponseBody$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 ListMarketingAutomationContactsResponse$ { + /** @deprecated use `ListMarketingAutomationContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationContactsResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationContactsResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationContactsResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationContactsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationemails.ts b/src/models/operations/listmarketingautomationemails.ts index 60609987..fc179479 100644 --- a/src/models/operations/listmarketingautomationemails.ts +++ b/src/models/operations/listmarketingautomationemails.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationEmailsResponseBody = { data: Array; }; +export type ListMarketingautomationEmailsResponse = { + result: ListMarketingautomationEmailsResponseBody; +}; + /** @internal */ export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< ListMarketingautomationEmailsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationEmailsResponseBody$ { /** @deprecated use `ListMarketingautomationEmailsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationEmailsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationEmailsResponse$inboundSchema: z.ZodType< + ListMarketingautomationEmailsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationEmailsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationEmailsResponse$Outbound = { + Result: ListMarketingautomationEmailsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationEmailsResponse$outboundSchema: z.ZodType< + ListMarketingautomationEmailsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationEmailsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationEmailsResponseBody$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 ListMarketingautomationEmailsResponse$ { + /** @deprecated use `ListMarketingautomationEmailsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationEmailsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationEmailsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationEmailsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationEmailsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationevents.ts b/src/models/operations/listmarketingautomationevents.ts index ddaa50c4..6427ea66 100644 --- a/src/models/operations/listmarketingautomationevents.ts +++ b/src/models/operations/listmarketingautomationevents.ts @@ -31,6 +31,10 @@ export type ListMarketingAutomationEventsResponseBody = { data: Array; }; +export type ListMarketingAutomationEventsResponse = { + result: ListMarketingAutomationEventsResponseBody; +}; + /** @internal */ export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< ListMarketingAutomationEventsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingAutomationEventsResponseBody$ { /** @deprecated use `ListMarketingAutomationEventsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingAutomationEventsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingAutomationEventsResponse$inboundSchema: z.ZodType< + ListMarketingAutomationEventsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingAutomationEventsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingAutomationEventsResponse$Outbound = { + Result: ListMarketingAutomationEventsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingAutomationEventsResponse$outboundSchema: z.ZodType< + ListMarketingAutomationEventsResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationEventsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingAutomationEventsResponseBody$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 ListMarketingAutomationEventsResponse$ { + /** @deprecated use `ListMarketingAutomationEventsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationEventsResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationEventsResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationEventsResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationEventsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationlists.ts b/src/models/operations/listmarketingautomationlists.ts index d3f76013..7f80144c 100644 --- a/src/models/operations/listmarketingautomationlists.ts +++ b/src/models/operations/listmarketingautomationlists.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationListsResponseBody = { data: Array; }; +export type ListMarketingautomationListsResponse = { + result: ListMarketingautomationListsResponseBody; +}; + /** @internal */ export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< ListMarketingautomationListsRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationListsResponseBody$ { /** @deprecated use `ListMarketingautomationListsResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationListsResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationListsResponse$inboundSchema: z.ZodType< + ListMarketingautomationListsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationListsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationListsResponse$Outbound = { + Result: ListMarketingautomationListsResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationListsResponse$outboundSchema: z.ZodType< + ListMarketingautomationListsResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationListsResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationListsResponseBody$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 ListMarketingautomationListsResponse$ { + /** @deprecated use `ListMarketingautomationListsResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationListsResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationListsResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationListsResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationListsResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationListsResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationmessages.ts b/src/models/operations/listmarketingautomationmessages.ts index bf75b663..263bc3d8 100644 --- a/src/models/operations/listmarketingautomationmessages.ts +++ b/src/models/operations/listmarketingautomationmessages.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationMessagesResponseBody = { data: Array; }; +export type ListMarketingautomationMessagesResponse = { + result: ListMarketingautomationMessagesResponseBody; +}; + /** @internal */ export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< ListMarketingautomationMessagesRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationMessagesResponseBody$ { /** @deprecated use `ListMarketingautomationMessagesResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationMessagesResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationMessagesResponse$inboundSchema: z.ZodType< + ListMarketingautomationMessagesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationMessagesResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationMessagesResponse$Outbound = { + Result: ListMarketingautomationMessagesResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationMessagesResponse$outboundSchema: z.ZodType< + ListMarketingautomationMessagesResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationMessagesResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationMessagesResponseBody$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 ListMarketingautomationMessagesResponse$ { + /** @deprecated use `ListMarketingautomationMessagesResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationMessagesResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationMessagesResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationMessagesResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationMessagesResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationtemplates.ts b/src/models/operations/listmarketingautomationtemplates.ts index 54852589..08248de7 100644 --- a/src/models/operations/listmarketingautomationtemplates.ts +++ b/src/models/operations/listmarketingautomationtemplates.ts @@ -31,6 +31,10 @@ export type ListMarketingautomationTemplatesResponseBody = { data: Array; }; +export type ListMarketingautomationTemplatesResponse = { + result: ListMarketingautomationTemplatesResponseBody; +}; + /** @internal */ export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< ListMarketingautomationTemplatesRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingautomationTemplatesResponseBody$ { /** @deprecated use `ListMarketingautomationTemplatesResponseBody$Outbound` instead. */ export type Outbound = ListMarketingautomationTemplatesResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingautomationTemplatesResponse$inboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingautomationTemplatesResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingautomationTemplatesResponse$Outbound = { + Result: ListMarketingautomationTemplatesResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingautomationTemplatesResponse$outboundSchema: z.ZodType< + ListMarketingautomationTemplatesResponse$Outbound, + z.ZodTypeDef, + ListMarketingautomationTemplatesResponse +> = z + .object({ + result: z.lazy(() => ListMarketingautomationTemplatesResponseBody$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 ListMarketingautomationTemplatesResponse$ { + /** @deprecated use `ListMarketingautomationTemplatesResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingautomationTemplatesResponse$inboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingautomationTemplatesResponse$outboundSchema; + /** @deprecated use `ListMarketingautomationTemplatesResponse$Outbound` instead. */ + export type Outbound = ListMarketingautomationTemplatesResponse$Outbound; +} diff --git a/src/models/operations/listmarketingautomationusers.ts b/src/models/operations/listmarketingautomationusers.ts index eee8823a..a585f7c1 100644 --- a/src/models/operations/listmarketingautomationusers.ts +++ b/src/models/operations/listmarketingautomationusers.ts @@ -31,6 +31,10 @@ export type ListMarketingAutomationUsersResponseBody = { data: Array; }; +export type ListMarketingAutomationUsersResponse = { + result: ListMarketingAutomationUsersResponseBody; +}; + /** @internal */ export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< ListMarketingAutomationUsersRequest, @@ -145,3 +149,51 @@ export namespace ListMarketingAutomationUsersResponseBody$ { /** @deprecated use `ListMarketingAutomationUsersResponseBody$Outbound` instead. */ export type Outbound = ListMarketingAutomationUsersResponseBody$Outbound; } + +/** @internal */ +export const ListMarketingAutomationUsersResponse$inboundSchema: z.ZodType< + ListMarketingAutomationUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListMarketingAutomationUsersResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListMarketingAutomationUsersResponse$Outbound = { + Result: ListMarketingAutomationUsersResponseBody$Outbound; +}; + +/** @internal */ +export const ListMarketingAutomationUsersResponse$outboundSchema: z.ZodType< + ListMarketingAutomationUsersResponse$Outbound, + z.ZodTypeDef, + ListMarketingAutomationUsersResponse +> = z + .object({ + result: z.lazy(() => ListMarketingAutomationUsersResponseBody$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 ListMarketingAutomationUsersResponse$ { + /** @deprecated use `ListMarketingAutomationUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListMarketingAutomationUsersResponse$inboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListMarketingAutomationUsersResponse$outboundSchema; + /** @deprecated use `ListMarketingAutomationUsersResponse$Outbound` instead. */ + export type Outbound = ListMarketingAutomationUsersResponse$Outbound; +} diff --git a/src/models/operations/listticketingaccount.ts b/src/models/operations/listticketingaccount.ts index cff8ffc7..09afd57c 100644 --- a/src/models/operations/listticketingaccount.ts +++ b/src/models/operations/listticketingaccount.ts @@ -31,6 +31,10 @@ export type ListTicketingAccountResponseBody = { data: Array; }; +export type ListTicketingAccountResponse = { + result: ListTicketingAccountResponseBody; +}; + /** @internal */ export const ListTicketingAccountRequest$inboundSchema: z.ZodType< ListTicketingAccountRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingAccountResponseBody$ { /** @deprecated use `ListTicketingAccountResponseBody$Outbound` instead. */ export type Outbound = ListTicketingAccountResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingAccountResponse$inboundSchema: z.ZodType< + ListTicketingAccountResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingAccountResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingAccountResponse$Outbound = { + Result: ListTicketingAccountResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingAccountResponse$outboundSchema: z.ZodType< + ListTicketingAccountResponse$Outbound, + z.ZodTypeDef, + ListTicketingAccountResponse +> = z + .object({ + result: z.lazy(() => ListTicketingAccountResponseBody$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 ListTicketingAccountResponse$ { + /** @deprecated use `ListTicketingAccountResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAccountResponse$inboundSchema; + /** @deprecated use `ListTicketingAccountResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAccountResponse$outboundSchema; + /** @deprecated use `ListTicketingAccountResponse$Outbound` instead. */ + export type Outbound = ListTicketingAccountResponse$Outbound; +} diff --git a/src/models/operations/listticketingattachments.ts b/src/models/operations/listticketingattachments.ts index 1cc96d43..2089e404 100644 --- a/src/models/operations/listticketingattachments.ts +++ b/src/models/operations/listticketingattachments.ts @@ -31,6 +31,10 @@ export type ListTicketingAttachmentsResponseBody = { data: Array; }; +export type ListTicketingAttachmentsResponse = { + result: ListTicketingAttachmentsResponseBody; +}; + /** @internal */ export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< ListTicketingAttachmentsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingAttachmentsResponseBody$ { /** @deprecated use `ListTicketingAttachmentsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingAttachmentsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingAttachmentsResponse$inboundSchema: z.ZodType< + ListTicketingAttachmentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingAttachmentsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingAttachmentsResponse$Outbound = { + Result: ListTicketingAttachmentsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingAttachmentsResponse$outboundSchema: z.ZodType< + ListTicketingAttachmentsResponse$Outbound, + z.ZodTypeDef, + ListTicketingAttachmentsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingAttachmentsResponseBody$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 ListTicketingAttachmentsResponse$ { + /** @deprecated use `ListTicketingAttachmentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingAttachmentsResponse$inboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingAttachmentsResponse$outboundSchema; + /** @deprecated use `ListTicketingAttachmentsResponse$Outbound` instead. */ + export type Outbound = ListTicketingAttachmentsResponse$Outbound; +} diff --git a/src/models/operations/listticketingcollections.ts b/src/models/operations/listticketingcollections.ts index 73452638..a1d462a8 100644 --- a/src/models/operations/listticketingcollections.ts +++ b/src/models/operations/listticketingcollections.ts @@ -31,6 +31,10 @@ export type ListTicketingCollectionsResponseBody = { data: Array; }; +export type ListTicketingCollectionsResponse = { + result: ListTicketingCollectionsResponseBody; +}; + /** @internal */ export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< ListTicketingCollectionsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingCollectionsResponseBody$ { /** @deprecated use `ListTicketingCollectionsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingCollectionsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingCollectionsResponse$inboundSchema: z.ZodType< + ListTicketingCollectionsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingCollectionsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingCollectionsResponse$Outbound = { + Result: ListTicketingCollectionsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingCollectionsResponse$outboundSchema: z.ZodType< + ListTicketingCollectionsResponse$Outbound, + z.ZodTypeDef, + ListTicketingCollectionsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingCollectionsResponseBody$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 ListTicketingCollectionsResponse$ { + /** @deprecated use `ListTicketingCollectionsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCollectionsResponse$inboundSchema; + /** @deprecated use `ListTicketingCollectionsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCollectionsResponse$outboundSchema; + /** @deprecated use `ListTicketingCollectionsResponse$Outbound` instead. */ + export type Outbound = ListTicketingCollectionsResponse$Outbound; +} diff --git a/src/models/operations/listticketingcomments.ts b/src/models/operations/listticketingcomments.ts index 4e6b6fc3..28b2feae 100644 --- a/src/models/operations/listticketingcomments.ts +++ b/src/models/operations/listticketingcomments.ts @@ -31,6 +31,10 @@ export type ListTicketingCommentsResponseBody = { data: Array; }; +export type ListTicketingCommentsResponse = { + result: ListTicketingCommentsResponseBody; +}; + /** @internal */ export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< ListTicketingCommentsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingCommentsResponseBody$ { /** @deprecated use `ListTicketingCommentsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingCommentsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingCommentsResponse$inboundSchema: z.ZodType< + ListTicketingCommentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingCommentsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingCommentsResponse$Outbound = { + Result: ListTicketingCommentsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingCommentsResponse$outboundSchema: z.ZodType< + ListTicketingCommentsResponse$Outbound, + z.ZodTypeDef, + ListTicketingCommentsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingCommentsResponseBody$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 ListTicketingCommentsResponse$ { + /** @deprecated use `ListTicketingCommentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingCommentsResponse$inboundSchema; + /** @deprecated use `ListTicketingCommentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingCommentsResponse$outboundSchema; + /** @deprecated use `ListTicketingCommentsResponse$Outbound` instead. */ + export type Outbound = ListTicketingCommentsResponse$Outbound; +} diff --git a/src/models/operations/listticketingcontacts.ts b/src/models/operations/listticketingcontacts.ts index 0173bbf4..5fc03709 100644 --- a/src/models/operations/listticketingcontacts.ts +++ b/src/models/operations/listticketingcontacts.ts @@ -31,6 +31,10 @@ export type ListTicketingContactsResponseBody = { data: Array; }; +export type ListTicketingContactsResponse = { + result: ListTicketingContactsResponseBody; +}; + /** @internal */ export const ListTicketingContactsRequest$inboundSchema: z.ZodType< ListTicketingContactsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingContactsResponseBody$ { /** @deprecated use `ListTicketingContactsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingContactsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingContactsResponse$inboundSchema: z.ZodType< + ListTicketingContactsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingContactsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingContactsResponse$Outbound = { + Result: ListTicketingContactsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingContactsResponse$outboundSchema: z.ZodType< + ListTicketingContactsResponse$Outbound, + z.ZodTypeDef, + ListTicketingContactsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingContactsResponseBody$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 ListTicketingContactsResponse$ { + /** @deprecated use `ListTicketingContactsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingContactsResponse$inboundSchema; + /** @deprecated use `ListTicketingContactsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingContactsResponse$outboundSchema; + /** @deprecated use `ListTicketingContactsResponse$Outbound` instead. */ + export type Outbound = ListTicketingContactsResponse$Outbound; +} diff --git a/src/models/operations/listticketingtags.ts b/src/models/operations/listticketingtags.ts index 51a529f3..31ead65d 100644 --- a/src/models/operations/listticketingtags.ts +++ b/src/models/operations/listticketingtags.ts @@ -31,6 +31,10 @@ export type ListTicketingTagsResponseBody = { data: Array; }; +export type ListTicketingTagsResponse = { + result: ListTicketingTagsResponseBody; +}; + /** @internal */ export const ListTicketingTagsRequest$inboundSchema: z.ZodType< ListTicketingTagsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingTagsResponseBody$ { /** @deprecated use `ListTicketingTagsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingTagsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingTagsResponse$inboundSchema: z.ZodType< + ListTicketingTagsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingTagsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingTagsResponse$Outbound = { + Result: ListTicketingTagsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingTagsResponse$outboundSchema: z.ZodType< + ListTicketingTagsResponse$Outbound, + z.ZodTypeDef, + ListTicketingTagsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingTagsResponseBody$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 ListTicketingTagsResponse$ { + /** @deprecated use `ListTicketingTagsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTagsResponse$inboundSchema; + /** @deprecated use `ListTicketingTagsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTagsResponse$outboundSchema; + /** @deprecated use `ListTicketingTagsResponse$Outbound` instead. */ + export type Outbound = ListTicketingTagsResponse$Outbound; +} diff --git a/src/models/operations/listticketingteams.ts b/src/models/operations/listticketingteams.ts index bada3dc8..f85d9dee 100644 --- a/src/models/operations/listticketingteams.ts +++ b/src/models/operations/listticketingteams.ts @@ -31,6 +31,10 @@ export type ListTicketingTeamsResponseBody = { data: Array; }; +export type ListTicketingTeamsResponse = { + result: ListTicketingTeamsResponseBody; +}; + /** @internal */ export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< ListTicketingTeamsRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingTeamsResponseBody$ { /** @deprecated use `ListTicketingTeamsResponseBody$Outbound` instead. */ export type Outbound = ListTicketingTeamsResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingTeamsResponse$inboundSchema: z.ZodType< + ListTicketingTeamsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingTeamsResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingTeamsResponse$Outbound = { + Result: ListTicketingTeamsResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingTeamsResponse$outboundSchema: z.ZodType< + ListTicketingTeamsResponse$Outbound, + z.ZodTypeDef, + ListTicketingTeamsResponse +> = z + .object({ + result: z.lazy(() => ListTicketingTeamsResponseBody$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 ListTicketingTeamsResponse$ { + /** @deprecated use `ListTicketingTeamsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingTeamsResponse$inboundSchema; + /** @deprecated use `ListTicketingTeamsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingTeamsResponse$outboundSchema; + /** @deprecated use `ListTicketingTeamsResponse$Outbound` instead. */ + export type Outbound = ListTicketingTeamsResponse$Outbound; +} diff --git a/src/models/operations/listticketingusers.ts b/src/models/operations/listticketingusers.ts index 47430bf5..488f7ac4 100644 --- a/src/models/operations/listticketingusers.ts +++ b/src/models/operations/listticketingusers.ts @@ -31,6 +31,10 @@ export type ListTicketingUsersResponseBody = { data: Array; }; +export type ListTicketingUsersResponse = { + result: ListTicketingUsersResponseBody; +}; + /** @internal */ export const ListTicketingUsersRequest$inboundSchema: z.ZodType< ListTicketingUsersRequest, @@ -145,3 +149,51 @@ export namespace ListTicketingUsersResponseBody$ { /** @deprecated use `ListTicketingUsersResponseBody$Outbound` instead. */ export type Outbound = ListTicketingUsersResponseBody$Outbound; } + +/** @internal */ +export const ListTicketingUsersResponse$inboundSchema: z.ZodType< + ListTicketingUsersResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + Result: z.lazy(() => ListTicketingUsersResponseBody$inboundSchema), + }) + .transform((v) => { + return remap$(v, { + Result: "result", + }); + }); + +/** @internal */ +export type ListTicketingUsersResponse$Outbound = { + Result: ListTicketingUsersResponseBody$Outbound; +}; + +/** @internal */ +export const ListTicketingUsersResponse$outboundSchema: z.ZodType< + ListTicketingUsersResponse$Outbound, + z.ZodTypeDef, + ListTicketingUsersResponse +> = z + .object({ + result: z.lazy(() => ListTicketingUsersResponseBody$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 ListTicketingUsersResponse$ { + /** @deprecated use `ListTicketingUsersResponse$inboundSchema` instead. */ + export const inboundSchema = ListTicketingUsersResponse$inboundSchema; + /** @deprecated use `ListTicketingUsersResponse$outboundSchema` instead. */ + export const outboundSchema = ListTicketingUsersResponse$outboundSchema; + /** @deprecated use `ListTicketingUsersResponse$Outbound` instead. */ + export type Outbound = ListTicketingUsersResponse$Outbound; +} diff --git a/src/sdk/accounts.ts b/src/sdk/accounts.ts index c1aa5d24..21e213db 100644 --- a/src/sdk/accounts.ts +++ b/src/sdk/accounts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Accounts extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Accounts extends ClientSDK { async list( request: operations.ListTicketingAccountRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Accounts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingAccountResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingAccountResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingAccountResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingAccountResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/actions.ts b/src/sdk/actions.ts index 70811504..7b94c300 100644 --- a/src/sdk/actions.ts +++ b/src/sdk/actions.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Actions extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Actions extends ClientSDK { async list( request: operations.ListMarketingautomationActionRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -86,15 +88,41 @@ export class Actions extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationActionResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationActionResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationActionResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationActionResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/activities.ts b/src/sdk/activities.ts index 697f4a23..78f33e61 100644 --- a/src/sdk/activities.ts +++ b/src/sdk/activities.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Activities extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Activities extends ClientSDK { async list( request: operations.ListAtsActivityRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class Activities extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsActivityResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsActivityResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsActivityResponseBody$inboundSchema), + m$.json(200, operations.ListAtsActivityResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/addresses.ts b/src/sdk/addresses.ts index f9158cba..1d4cb56f 100644 --- a/src/sdk/addresses.ts +++ b/src/sdk/addresses.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Addresses extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Addresses extends ClientSDK { async list( request: operations.ListAccountingAddressRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Addresses extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingAddressResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingAddressResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingAddressResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingAddressResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/applications.ts b/src/sdk/applications.ts index abc1db66..0a8bae26 100644 --- a/src/sdk/applications.ts +++ b/src/sdk/applications.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Applications extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Applications extends ClientSDK { async list( request: operations.ListAtsApplicationRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Applications extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsApplicationResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsApplicationResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsApplicationResponseBody$inboundSchema), + m$.json(200, operations.ListAtsApplicationResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/attachments.ts b/src/sdk/attachments.ts index 90be31a6..600c14c7 100644 --- a/src/sdk/attachments.ts +++ b/src/sdk/attachments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Attachments extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Attachments extends ClientSDK { async list( request: operations.ListAtsAttachmentRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Attachments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsAttachmentResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsAttachmentResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsAttachmentResponseBody$inboundSchema), + m$.json(200, operations.ListAtsAttachmentResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/automations.ts b/src/sdk/automations.ts index 86d75eaf..20acd4ef 100644 --- a/src/sdk/automations.ts +++ b/src/sdk/automations.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Automations extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Automations extends ClientSDK { async list( request: operations.ListMarketingautomationAutomationsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -86,15 +88,41 @@ export class Automations extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationAutomationsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationAutomationsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationAutomationsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationAutomationsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/balancesheets.ts b/src/sdk/balancesheets.ts index b7e6e6d1..59453244 100644 --- a/src/sdk/balancesheets.ts +++ b/src/sdk/balancesheets.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Balancesheets extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Balancesheets extends ClientSDK { async list( request: operations.ListAccountingBalanceSheetsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Balancesheets extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingBalanceSheetsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingBalanceSheetsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingBalanceSheetsResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingBalanceSheetsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/bankinfos.ts b/src/sdk/bankinfos.ts index 721aae0f..684e15a8 100644 --- a/src/sdk/bankinfos.ts +++ b/src/sdk/bankinfos.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Bankinfos extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Bankinfos extends ClientSDK { async list( request: operations.ListHrisBankInfoRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Bankinfos extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisBankInfoResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisBankInfoResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisBankInfoResponseBody$inboundSchema), + m$.json(200, operations.ListHrisBankInfoResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/benefits.ts b/src/sdk/benefits.ts index 62a31b6f..aa1fbf36 100644 --- a/src/sdk/benefits.ts +++ b/src/sdk/benefits.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Benefits extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Benefits extends ClientSDK { async list( request: operations.ListHrisBenefitsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Benefits extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisBenefitsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisBenefitsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisBenefitsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisBenefitsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/campaigns.ts b/src/sdk/campaigns.ts index e1639508..acf81505 100644 --- a/src/sdk/campaigns.ts +++ b/src/sdk/campaigns.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Campaigns extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Campaigns extends ClientSDK { async list( request: operations.ListMarketingautomationCampaignsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -86,15 +88,41 @@ export class Campaigns extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationCampaignsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationCampaignsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationCampaignsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationCampaignsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/candidates.ts b/src/sdk/candidates.ts index eb71a62e..fa52cc0a 100644 --- a/src/sdk/candidates.ts +++ b/src/sdk/candidates.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Candidates extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Candidates extends ClientSDK { async list( request: operations.ListAtsCandidateRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Candidates extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsCandidateResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsCandidateResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsCandidateResponseBody$inboundSchema), + m$.json(200, operations.ListAtsCandidateResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/cashflowstatements.ts b/src/sdk/cashflowstatements.ts index f0d770e6..8be9e0d6 100644 --- a/src/sdk/cashflowstatements.ts +++ b/src/sdk/cashflowstatements.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Cashflowstatements extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Cashflowstatements extends ClientSDK { async list( request: operations.ListAccountingCashflowStatementRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Cashflowstatements extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingCashflowStatementResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingCashflowStatementResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingCashflowStatementResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingCashflowStatementResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/collections.ts b/src/sdk/collections.ts index 8bfc8c0e..d879d8b5 100644 --- a/src/sdk/collections.ts +++ b/src/sdk/collections.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Collections extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Collections extends ClientSDK { async list( request: operations.ListTicketingCollectionsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Collections extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingCollectionsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingCollectionsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingCollectionsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingCollectionsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/comments.ts b/src/sdk/comments.ts index 21df4aa2..b86dbbd5 100644 --- a/src/sdk/comments.ts +++ b/src/sdk/comments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Comments extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Comments extends ClientSDK { async list( request: operations.ListTicketingCommentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Comments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingCommentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingCommentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingCommentsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingCommentsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/companies.ts b/src/sdk/companies.ts index 1ff19fcc..b0df3895 100644 --- a/src/sdk/companies.ts +++ b/src/sdk/companies.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Companies extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Companies extends ClientSDK { async list( request: operations.ListCrmCompanyRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class Companies extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmCompanyResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmCompanyResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmCompanyResponseBody$inboundSchema), + m$.json(200, operations.ListCrmCompanyResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/companyinfos.ts b/src/sdk/companyinfos.ts index 8bb8e211..d5532741 100644 --- a/src/sdk/companyinfos.ts +++ b/src/sdk/companyinfos.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Companyinfos extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Companyinfos extends ClientSDK { async list( request: operations.ListAccountingCompanyInfosRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Companyinfos extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingCompanyInfosResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingCompanyInfosResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingCompanyInfosResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingCompanyInfosResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/contacts.ts b/src/sdk/contacts.ts index f5ba3bfd..233549fe 100644 --- a/src/sdk/contacts.ts +++ b/src/sdk/contacts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -15,6 +16,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Contacts extends ClientSDK { /** @@ -23,7 +25,7 @@ export class Contacts extends ClientSDK { async list( request: operations.ListTicketingContactsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -83,15 +85,39 @@ export class Contacts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingContactsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingContactsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingContactsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingContactsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/creditnotes.ts b/src/sdk/creditnotes.ts index 801d520a..588560ad 100644 --- a/src/sdk/creditnotes.ts +++ b/src/sdk/creditnotes.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Creditnotes extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Creditnotes extends ClientSDK { async list( request: operations.ListAccountingCreditNoteRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Creditnotes extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingCreditNoteResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingCreditNoteResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingCreditNoteResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingCreditNoteResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/deals.ts b/src/sdk/deals.ts index d4a3de62..2fe93031 100644 --- a/src/sdk/deals.ts +++ b/src/sdk/deals.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Deals extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Deals extends ClientSDK { async list( request: operations.ListCrmDealsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class Deals extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmDealsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmDealsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmDealsResponseBody$inboundSchema), + m$.json(200, operations.ListCrmDealsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/departments.ts b/src/sdk/departments.ts index 0bcf4451..19781da4 100644 --- a/src/sdk/departments.ts +++ b/src/sdk/departments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Departments extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Departments extends ClientSDK { async list( request: operations.ListAtsDepartmentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Departments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsDepartmentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsDepartmentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsDepartmentsResponseBody$inboundSchema), + m$.json(200, operations.ListAtsDepartmentsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/dependents.ts b/src/sdk/dependents.ts index 3d6534bb..8ac32118 100644 --- a/src/sdk/dependents.ts +++ b/src/sdk/dependents.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Dependents extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Dependents extends ClientSDK { async list( request: operations.ListHrisDependentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Dependents extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisDependentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisDependentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisDependentsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisDependentsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/drives.ts b/src/sdk/drives.ts index 08fc78f8..33d4e054 100644 --- a/src/sdk/drives.ts +++ b/src/sdk/drives.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Drives extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Drives extends ClientSDK { async list( request: operations.ListFilestorageDrivesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Drives extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListFilestorageDrivesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListFilestorageDrivesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListFilestorageDrivesResponseBody$inboundSchema), + m$.json(200, operations.ListFilestorageDrivesResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/eeocs.ts b/src/sdk/eeocs.ts index 538edc00..31aeaf1f 100644 --- a/src/sdk/eeocs.ts +++ b/src/sdk/eeocs.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Eeocs extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Eeocs extends ClientSDK { async list( request: operations.ListAtsEeocsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Eeocs extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsEeocsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsEeocsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsEeocsResponseBody$inboundSchema), + m$.json(200, operations.ListAtsEeocsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/emails.ts b/src/sdk/emails.ts index 17a9b5eb..cd1103f3 100644 --- a/src/sdk/emails.ts +++ b/src/sdk/emails.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Emails extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Emails extends ClientSDK { async list( request: operations.ListMarketingautomationEmailsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Emails extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationEmailsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationEmailsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationEmailsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationEmailsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/employeepayrollruns.ts b/src/sdk/employeepayrollruns.ts index bd08a2f2..941c025a 100644 --- a/src/sdk/employeepayrollruns.ts +++ b/src/sdk/employeepayrollruns.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Employeepayrollruns extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Employeepayrollruns extends ClientSDK { async list( request: operations.ListHrisEmployeePayrollRunRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Employeepayrollruns extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisEmployeePayrollRunResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisEmployeePayrollRunResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisEmployeePayrollRunResponseBody$inboundSchema), + m$.json(200, operations.ListHrisEmployeePayrollRunResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/employees.ts b/src/sdk/employees.ts index 22397234..3f556d73 100644 --- a/src/sdk/employees.ts +++ b/src/sdk/employees.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Employees extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Employees extends ClientSDK { async list( request: operations.ListHrisEmployeesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Employees extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisEmployeesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisEmployeesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisEmployeesResponseBody$inboundSchema), + m$.json(200, operations.ListHrisEmployeesResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/employerbenefits.ts b/src/sdk/employerbenefits.ts index 5aeb0e35..f78e5098 100644 --- a/src/sdk/employerbenefits.ts +++ b/src/sdk/employerbenefits.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Employerbenefits extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Employerbenefits extends ClientSDK { async list( request: operations.ListHrisEmployerBenefitsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Employerbenefits extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisEmployerBenefitsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisEmployerBenefitsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisEmployerBenefitsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisEmployerBenefitsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/employments.ts b/src/sdk/employments.ts index ef4a4eec..3e040199 100644 --- a/src/sdk/employments.ts +++ b/src/sdk/employments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Employments extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Employments extends ClientSDK { async list( request: operations.ListHrisEmploymentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Employments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisEmploymentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisEmploymentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisEmploymentsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisEmploymentsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/engagements.ts b/src/sdk/engagements.ts index 47f46c74..e7c998dd 100644 --- a/src/sdk/engagements.ts +++ b/src/sdk/engagements.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Engagements extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Engagements extends ClientSDK { async list( request: operations.ListCrmEngagementsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Engagements extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmEngagementsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmEngagementsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmEngagementsResponseBody$inboundSchema), + m$.json(200, operations.ListCrmEngagementsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/expenses.ts b/src/sdk/expenses.ts index 51b5fd40..7eb13788 100644 --- a/src/sdk/expenses.ts +++ b/src/sdk/expenses.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Expenses extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Expenses extends ClientSDK { async list( request: operations.ListAccountingExpenseRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Expenses extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingExpenseResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingExpenseResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingExpenseResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingExpenseResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/files.ts b/src/sdk/files.ts index 19b7929e..99bcfe54 100644 --- a/src/sdk/files.ts +++ b/src/sdk/files.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Files extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Files extends ClientSDK { async list( request: operations.ListFilestorageFileRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Files extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListFilestorageFileResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListFilestorageFileResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListFilestorageFileResponseBody$inboundSchema), + m$.json(200, operations.ListFilestorageFileResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/folders.ts b/src/sdk/folders.ts index 1511c0ad..8d4b26bc 100644 --- a/src/sdk/folders.ts +++ b/src/sdk/folders.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Folders extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Folders extends ClientSDK { async list( request: operations.ListFilestorageFolderRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Folders extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListFilestorageFolderResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListFilestorageFolderResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListFilestorageFolderResponseBody$inboundSchema), + m$.json(200, operations.ListFilestorageFolderResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/groups.ts b/src/sdk/groups.ts index 7516aac1..c79b09ee 100644 --- a/src/sdk/groups.ts +++ b/src/sdk/groups.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Groups extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Groups extends ClientSDK { async list( request: operations.ListHrisGroupsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Groups extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisGroupsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisGroupsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisGroupsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisGroupsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/incomestatements.ts b/src/sdk/incomestatements.ts index 5aac8aa7..c7f6f85a 100644 --- a/src/sdk/incomestatements.ts +++ b/src/sdk/incomestatements.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Incomestatements extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Incomestatements extends ClientSDK { async list( request: operations.ListAccountingIncomeStatementRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Incomestatements extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingIncomeStatementResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingIncomeStatementResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingIncomeStatementResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingIncomeStatementResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/interviews.ts b/src/sdk/interviews.ts index 3360418b..2bdbcd0c 100644 --- a/src/sdk/interviews.ts +++ b/src/sdk/interviews.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Interviews extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Interviews extends ClientSDK { async list( request: operations.ListAtsInterviewRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Interviews extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsInterviewResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsInterviewResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsInterviewResponseBody$inboundSchema), + m$.json(200, operations.ListAtsInterviewResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/invoices.ts b/src/sdk/invoices.ts index 8d288dcf..ed900a9d 100644 --- a/src/sdk/invoices.ts +++ b/src/sdk/invoices.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Invoices extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Invoices extends ClientSDK { async list( request: operations.ListAccountingInvoiceRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Invoices extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingInvoiceResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingInvoiceResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingInvoiceResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingInvoiceResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/items.ts b/src/sdk/items.ts index 779cac9b..4d3be26d 100644 --- a/src/sdk/items.ts +++ b/src/sdk/items.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Items extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Items extends ClientSDK { async list( request: operations.ListAccountingItemRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Items extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingItemResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingItemResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingItemResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingItemResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/jobinterviewstages.ts b/src/sdk/jobinterviewstages.ts index f5853ae5..5748c93b 100644 --- a/src/sdk/jobinterviewstages.ts +++ b/src/sdk/jobinterviewstages.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Jobinterviewstages extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Jobinterviewstages extends ClientSDK { async list( request: operations.ListAtsJobInterviewStageRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Jobinterviewstages extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsJobInterviewStageResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsJobInterviewStageResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsJobInterviewStageResponseBody$inboundSchema), + m$.json(200, operations.ListAtsJobInterviewStageResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/jobs.ts b/src/sdk/jobs.ts index 8dca7c80..c10ee1f9 100644 --- a/src/sdk/jobs.ts +++ b/src/sdk/jobs.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Jobs extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Jobs extends ClientSDK { async list( request: operations.ListAtsJobRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Jobs extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsJobResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsJobResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsJobResponseBody$inboundSchema), + m$.json(200, operations.ListAtsJobResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/journalentries.ts b/src/sdk/journalentries.ts index b2b43f0d..a011ff72 100644 --- a/src/sdk/journalentries.ts +++ b/src/sdk/journalentries.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Journalentries extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Journalentries extends ClientSDK { async list( request: operations.ListAccountingJournalEntryRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Journalentries extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingJournalEntryResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingJournalEntryResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingJournalEntryResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingJournalEntryResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/lists.ts b/src/sdk/lists.ts index 2318a20b..6eddb211 100644 --- a/src/sdk/lists.ts +++ b/src/sdk/lists.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Lists extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Lists extends ClientSDK { async list( request: operations.ListMarketingautomationListsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Lists extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationListsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationListsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationListsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationListsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/locations.ts b/src/sdk/locations.ts index c8e38cd1..b0dfad0d 100644 --- a/src/sdk/locations.ts +++ b/src/sdk/locations.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Locations extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Locations extends ClientSDK { async list( request: operations.ListHrisLocationsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Locations extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisLocationsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisLocationsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisLocationsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisLocationsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/messages.ts b/src/sdk/messages.ts index dff09ba3..12266f56 100644 --- a/src/sdk/messages.ts +++ b/src/sdk/messages.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Messages extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Messages extends ClientSDK { async list( request: operations.ListMarketingautomationMessagesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Messages extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationMessagesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationMessagesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationMessagesResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationMessagesResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/notes.ts b/src/sdk/notes.ts index 5dc6f139..d23a9d83 100644 --- a/src/sdk/notes.ts +++ b/src/sdk/notes.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Notes extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Notes extends ClientSDK { async list( request: operations.ListCrmNoteRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class Notes extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmNoteResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmNoteResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmNoteResponseBody$inboundSchema), + m$.json(200, operations.ListCrmNoteResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/offers.ts b/src/sdk/offers.ts index 92d07b6a..16ce0b92 100644 --- a/src/sdk/offers.ts +++ b/src/sdk/offers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Offers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Offers extends ClientSDK { async list( request: operations.ListAtsOfferRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Offers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsOfferResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsOfferResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsOfferResponseBody$inboundSchema), + m$.json(200, operations.ListAtsOfferResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/offices.ts b/src/sdk/offices.ts index b5c045d1..7430414a 100644 --- a/src/sdk/offices.ts +++ b/src/sdk/offices.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Offices extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Offices extends ClientSDK { async list( request: operations.ListAtsOfficeRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Offices extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsOfficeResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsOfficeResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsOfficeResponseBody$inboundSchema), + m$.json(200, operations.ListAtsOfficeResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraaccountingcontacts.ts b/src/sdk/panoraaccountingcontacts.ts index f1579f4f..9254764b 100644 --- a/src/sdk/panoraaccountingcontacts.ts +++ b/src/sdk/panoraaccountingcontacts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraAccountingContacts extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraAccountingContacts extends ClientSDK { async list( request: operations.ListAccountingContactsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class PanoraAccountingContacts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingContactsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingContactsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingContactsResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingContactsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraaccounts.ts b/src/sdk/panoraaccounts.ts index 6d6935e3..092a06d8 100644 --- a/src/sdk/panoraaccounts.ts +++ b/src/sdk/panoraaccounts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraAccounts extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraAccounts extends ClientSDK { async list( request: operations.ListAccountingAccountsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class PanoraAccounts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingAccountsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingAccountsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingAccountsResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingAccountsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraatsusers.ts b/src/sdk/panoraatsusers.ts index 78fb35ec..a93a5bcd 100644 --- a/src/sdk/panoraatsusers.ts +++ b/src/sdk/panoraatsusers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraAtsUsers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraAtsUsers extends ClientSDK { async list( request: operations.ListAtsUsersRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class PanoraAtsUsers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsUsersResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsUsersResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsUsersResponseBody$inboundSchema), + m$.json(200, operations.ListAtsUsersResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraattachments.ts b/src/sdk/panoraattachments.ts index 7f34f2cb..80337656 100644 --- a/src/sdk/panoraattachments.ts +++ b/src/sdk/panoraattachments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraAttachments extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraAttachments extends ClientSDK { async list( request: operations.ListAccountingAttachmentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class PanoraAttachments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingAttachmentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingAttachmentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingAttachmentsResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingAttachmentsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoracompanies.ts b/src/sdk/panoracompanies.ts index 03b735e3..3d6ca2ce 100644 --- a/src/sdk/panoracompanies.ts +++ b/src/sdk/panoracompanies.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraCompanies extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraCompanies extends ClientSDK { async list( request: operations.ListHrisCompaniesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class PanoraCompanies extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisCompaniesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisCompaniesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisCompaniesResponseBody$inboundSchema), + m$.json(200, operations.ListHrisCompaniesResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoracontacts.ts b/src/sdk/panoracontacts.ts index 4acb7a54..0b80fdd1 100644 --- a/src/sdk/panoracontacts.ts +++ b/src/sdk/panoracontacts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraContacts extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraContacts extends ClientSDK { async list( request: operations.ListCrmContactsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class PanoraContacts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmContactsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmContactsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmContactsResponseBody$inboundSchema), + m$.json(200, operations.ListCrmContactsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraevents.ts b/src/sdk/panoraevents.ts index f5c24bff..8b8d1bb1 100644 --- a/src/sdk/panoraevents.ts +++ b/src/sdk/panoraevents.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraEvents extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraEvents extends ClientSDK { async list( request: operations.ListMarketingAutomationEventsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class PanoraEvents extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingAutomationEventsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingAutomationEventsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingAutomationEventsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingAutomationEventsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panorafilestorageusers.ts b/src/sdk/panorafilestorageusers.ts index 8b7fa9c6..3ba3d4d5 100644 --- a/src/sdk/panorafilestorageusers.ts +++ b/src/sdk/panorafilestorageusers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraFilestorageUsers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraFilestorageUsers extends ClientSDK { async list( request: operations.ListFilestorageUsersRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class PanoraFilestorageUsers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListFilestorageUsersResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListFilestorageUsersResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListFilestorageUsersResponseBody$inboundSchema), + m$.json(200, operations.ListFilestorageUsersResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoragroups.ts b/src/sdk/panoragroups.ts index 04f15a69..8e2b04a5 100644 --- a/src/sdk/panoragroups.ts +++ b/src/sdk/panoragroups.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraGroups extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraGroups extends ClientSDK { async list( request: operations.ListFilestorageGroupRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class PanoraGroups extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListFilestorageGroupResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListFilestorageGroupResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListFilestorageGroupResponseBody$inboundSchema), + m$.json(200, operations.ListFilestorageGroupResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoramarketingautomationcontacts.ts b/src/sdk/panoramarketingautomationcontacts.ts index 690a1906..e743f317 100644 --- a/src/sdk/panoramarketingautomationcontacts.ts +++ b/src/sdk/panoramarketingautomationcontacts.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraMarketingautomationContacts extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraMarketingautomationContacts extends ClientSDK { async list( request: operations.ListMarketingAutomationContactsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -86,15 +88,41 @@ export class PanoraMarketingautomationContacts extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingAutomationContactsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingAutomationContactsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingAutomationContactsResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingAutomationContactsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoramarketingautomationusers.ts b/src/sdk/panoramarketingautomationusers.ts index a880fbf8..ed751437 100644 --- a/src/sdk/panoramarketingautomationusers.ts +++ b/src/sdk/panoramarketingautomationusers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraMarketingautomationUsers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraMarketingautomationUsers extends ClientSDK { async list( request: operations.ListMarketingAutomationUsersRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class PanoraMarketingautomationUsers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingAutomationUsersResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingAutomationUsersResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingAutomationUsersResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingAutomationUsersResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoratags.ts b/src/sdk/panoratags.ts index 82fdf0cc..a427ff78 100644 --- a/src/sdk/panoratags.ts +++ b/src/sdk/panoratags.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraTags extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraTags extends ClientSDK { async list( request: operations.ListAtsTagsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class PanoraTags extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsTagsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsTagsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsTagsResponseBody$inboundSchema), + m$.json(200, operations.ListAtsTagsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panoraticketingattachments.ts b/src/sdk/panoraticketingattachments.ts index 42f23139..f660faf1 100644 --- a/src/sdk/panoraticketingattachments.ts +++ b/src/sdk/panoraticketingattachments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraTicketingAttachments extends ClientSDK { /** @@ -25,7 +27,7 @@ export class PanoraTicketingAttachments extends ClientSDK { async list( request: operations.ListTicketingAttachmentsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class PanoraTicketingAttachments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingAttachmentsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingAttachmentsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingAttachmentsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingAttachmentsResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/panorausers.ts b/src/sdk/panorausers.ts index ca605054..0373b08b 100644 --- a/src/sdk/panorausers.ts +++ b/src/sdk/panorausers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class PanoraUsers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class PanoraUsers extends ClientSDK { async list( request: operations.ListCrmUsersRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class PanoraUsers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmUsersResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmUsersResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmUsersResponseBody$inboundSchema), + m$.json(200, operations.ListCrmUsersResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/paygroups.ts b/src/sdk/paygroups.ts index a7ed565d..303ca93f 100644 --- a/src/sdk/paygroups.ts +++ b/src/sdk/paygroups.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Paygroups extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Paygroups extends ClientSDK { async list( request: operations.ListHrisPaygroupsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Paygroups extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisPaygroupsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisPaygroupsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisPaygroupsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisPaygroupsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/payments.ts b/src/sdk/payments.ts index 376b4431..772f3ae1 100644 --- a/src/sdk/payments.ts +++ b/src/sdk/payments.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Payments extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Payments extends ClientSDK { async list( request: operations.ListAccountingPaymentRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Payments extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingPaymentResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingPaymentResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingPaymentResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingPaymentResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/payrollruns.ts b/src/sdk/payrollruns.ts index 80d73ef1..b03436ca 100644 --- a/src/sdk/payrollruns.ts +++ b/src/sdk/payrollruns.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Payrollruns extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Payrollruns extends ClientSDK { async list( request: operations.ListHrisPayrollRunsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Payrollruns extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisPayrollRunsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisPayrollRunsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisPayrollRunsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisPayrollRunsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/phonenumbers.ts b/src/sdk/phonenumbers.ts index 9a0904b2..c4a58beb 100644 --- a/src/sdk/phonenumbers.ts +++ b/src/sdk/phonenumbers.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Phonenumbers extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Phonenumbers extends ClientSDK { async list( request: operations.ListAccountingPhonenumberRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Phonenumbers extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingPhonenumberResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingPhonenumberResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingPhonenumberResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingPhonenumberResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/purchaseorders.ts b/src/sdk/purchaseorders.ts index 2b362411..bad7ec7f 100644 --- a/src/sdk/purchaseorders.ts +++ b/src/sdk/purchaseorders.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Purchaseorders extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Purchaseorders extends ClientSDK { async list( request: operations.ListAccountingPurchaseOrderRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Purchaseorders extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingPurchaseOrderResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingPurchaseOrderResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingPurchaseOrderResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingPurchaseOrderResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/rejectreasons.ts b/src/sdk/rejectreasons.ts index 6958f517..3d9fb5c1 100644 --- a/src/sdk/rejectreasons.ts +++ b/src/sdk/rejectreasons.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Rejectreasons extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Rejectreasons extends ClientSDK { async list( request: operations.ListAtsRejectReasonsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Rejectreasons extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsRejectReasonsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsRejectReasonsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsRejectReasonsResponseBody$inboundSchema), + m$.json(200, operations.ListAtsRejectReasonsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/scorecards.ts b/src/sdk/scorecards.ts index 7ed23787..54ae5164 100644 --- a/src/sdk/scorecards.ts +++ b/src/sdk/scorecards.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Scorecards extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Scorecards extends ClientSDK { async list( request: operations.ListAtsScorecardRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Scorecards extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAtsScorecardResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAtsScorecardResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAtsScorecardResponseBody$inboundSchema), + m$.json(200, operations.ListAtsScorecardResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/stages.ts b/src/sdk/stages.ts index 80091c35..01d04769 100644 --- a/src/sdk/stages.ts +++ b/src/sdk/stages.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Stages extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Stages extends ClientSDK { async list( request: operations.ListCrmStagesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,37 @@ export class Stages extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmStagesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmStagesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmStagesResponseBody$inboundSchema), + m$.json(200, operations.ListCrmStagesResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index 16b2815c..001fdb0d 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Tags extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Tags extends ClientSDK { async list( request: operations.ListTicketingTagsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Tags extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingTagsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingTagsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingTagsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingTagsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/tasks.ts b/src/sdk/tasks.ts index c0afb7a1..223964ef 100644 --- a/src/sdk/tasks.ts +++ b/src/sdk/tasks.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Tasks extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Tasks extends ClientSDK { async list( request: operations.ListCrmTaskRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,37 @@ export class Tasks extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListCrmTaskResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListCrmTaskResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListCrmTaskResponseBody$inboundSchema), + m$.json(200, operations.ListCrmTaskResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = (responseData: unknown): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/taxrates.ts b/src/sdk/taxrates.ts index b334a658..0f7fdb22 100644 --- a/src/sdk/taxrates.ts +++ b/src/sdk/taxrates.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Taxrates extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Taxrates extends ClientSDK { async list( request: operations.ListAccountingTaxRateRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Taxrates extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingTaxRateResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingTaxRateResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingTaxRateResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingTaxRateResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/teams.ts b/src/sdk/teams.ts index 6565cd01..369a243a 100644 --- a/src/sdk/teams.ts +++ b/src/sdk/teams.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Teams extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Teams extends ClientSDK { async list( request: operations.ListTicketingTeamsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Teams extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingTeamsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingTeamsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingTeamsResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingTeamsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/templates.ts b/src/sdk/templates.ts index 1301b82f..04eec924 100644 --- a/src/sdk/templates.ts +++ b/src/sdk/templates.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Templates extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Templates extends ClientSDK { async list( request: operations.ListMarketingautomationTemplatesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -86,15 +88,41 @@ export class Templates extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListMarketingautomationTemplatesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListMarketingautomationTemplatesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListMarketingautomationTemplatesResponseBody$inboundSchema), + m$.json(200, operations.ListMarketingautomationTemplatesResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/timeoffbalances.ts b/src/sdk/timeoffbalances.ts index efe7b3a3..4a12c434 100644 --- a/src/sdk/timeoffbalances.ts +++ b/src/sdk/timeoffbalances.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Timeoffbalances extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Timeoffbalances extends ClientSDK { async list( request: operations.ListHrisTimeoffbalancesRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Timeoffbalances extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisTimeoffbalancesResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisTimeoffbalancesResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisTimeoffbalancesResponseBody$inboundSchema), + m$.json(200, operations.ListHrisTimeoffbalancesResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/timeoffs.ts b/src/sdk/timeoffs.ts index b5c9d2f1..0024afb3 100644 --- a/src/sdk/timeoffs.ts +++ b/src/sdk/timeoffs.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$, @@ -17,6 +18,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Timeoffs extends ClientSDK { /** @@ -25,7 +27,7 @@ export class Timeoffs extends ClientSDK { async list( request: operations.ListHrisTimeoffsRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,39 @@ export class Timeoffs extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListHrisTimeoffsResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListHrisTimeoffsResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListHrisTimeoffsResponseBody$inboundSchema), + m$.json(200, operations.ListHrisTimeoffsResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/trackingcategories.ts b/src/sdk/trackingcategories.ts index 0ba19c6c..2cbb7305 100644 --- a/src/sdk/trackingcategories.ts +++ b/src/sdk/trackingcategories.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Trackingcategories extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Trackingcategories extends ClientSDK { async list( request: operations.ListAccountingTrackingCategorysRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -85,15 +87,41 @@ export class Trackingcategories extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingTrackingCategorysResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingTrackingCategorysResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingTrackingCategorysResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingTrackingCategorysResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/transactions.ts b/src/sdk/transactions.ts index e0a79d02..b96bd610 100644 --- a/src/sdk/transactions.ts +++ b/src/sdk/transactions.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Transactions extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Transactions extends ClientSDK { async list( request: operations.ListAccountingTransactionRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Transactions extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingTransactionResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingTransactionResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingTransactionResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingTransactionResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/users.ts b/src/sdk/users.ts index 21ade90a..a0b22cf9 100644 --- a/src/sdk/users.ts +++ b/src/sdk/users.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Users extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Users extends ClientSDK { async list( request: operations.ListTicketingUsersRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,39 @@ export class Users extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListTicketingUsersResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListTicketingUsersResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListTicketingUsersResponseBody$inboundSchema), + m$.json(200, operations.ListTicketingUsersResponse$inboundSchema, { key: "Result" }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /** diff --git a/src/sdk/vendorcredits.ts b/src/sdk/vendorcredits.ts index 4d75eff2..cdd6b9de 100644 --- a/src/sdk/vendorcredits.ts +++ b/src/sdk/vendorcredits.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { dlv } from "../lib/dlv.js"; import { encodeFormQuery as encodeFormQuery$, encodeSimple as encodeSimple$, @@ -16,6 +17,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { unwrap as unwrap$ } from "../types/fp.js"; +import { createPageIterator, PageIterator, Paginator } from "../types/operations.js"; export class Vendorcredits extends ClientSDK { /** @@ -24,7 +26,7 @@ export class Vendorcredits extends ClientSDK { async list( request: operations.ListAccountingVendorCreditRequest, options?: RequestOptions - ): Promise { + ): Promise> { const input$ = request; const parsed$ = schemas$.safeParse( @@ -84,15 +86,41 @@ export class Vendorcredits extends ClientSDK { }); const response = unwrap$(doResult); - const [result$] = await m$.match< - operations.ListAccountingVendorCreditResponseBody, + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$, raw$] = await m$.match< + operations.ListAccountingVendorCreditResponse, SDKError | SDKValidationError >( - m$.json(200, operations.ListAccountingVendorCreditResponseBody$inboundSchema), + m$.json(200, operations.ListAccountingVendorCreditResponse$inboundSchema, { + key: "Result", + }), m$.fail(["4XX", "5XX"]) - )(response); + )(response, { extraFields: responseFields$ }); + + const nextFunc = ( + responseData: unknown + ): Paginator => { + const nextCursor = dlv(responseData, "next_cursor"); + + if (nextCursor == null) { + return () => null; + } + + return () => + this.list( + { + ...input$, + cursor: nextCursor, + }, + options + ); + }; - return unwrap$(result$); + const page$ = { ...unwrap$(result$), next: nextFunc(raw$) }; + return { ...page$, ...createPageIterator(page$, !result$.ok) }; } /**