@unified-api/typescript-sdk 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -58
- package/dist/sdk/account.d.ts +6 -6
- package/dist/sdk/account.js +78 -36
- package/dist/sdk/accounting.d.ts +42 -42
- package/dist/sdk/accounting.js +546 -252
- package/dist/sdk/activity.d.ts +6 -6
- package/dist/sdk/activity.js +78 -36
- package/dist/sdk/apicall.d.ts +2 -2
- package/dist/sdk/apicall.js +26 -12
- package/dist/sdk/application.d.ts +6 -6
- package/dist/sdk/application.js +78 -36
- package/dist/sdk/applicationstatus.d.ts +1 -1
- package/dist/sdk/applicationstatus.js +13 -6
- package/dist/sdk/ats.d.ts +45 -45
- package/dist/sdk/ats.js +585 -270
- package/dist/sdk/auth.js +29 -6
- package/dist/sdk/call.d.ts +1 -1
- package/dist/sdk/call.js +13 -6
- package/dist/sdk/candidate.d.ts +6 -6
- package/dist/sdk/candidate.js +78 -36
- package/dist/sdk/collection.d.ts +6 -6
- package/dist/sdk/collection.js +78 -36
- package/dist/sdk/commerce.d.ts +24 -24
- package/dist/sdk/commerce.js +312 -144
- package/dist/sdk/company.d.ts +9 -9
- package/dist/sdk/company.js +117 -54
- package/dist/sdk/connection.d.ts +6 -6
- package/dist/sdk/connection.js +78 -36
- package/dist/sdk/contact.d.ts +18 -18
- package/dist/sdk/contact.js +234 -108
- package/dist/sdk/crm.d.ts +36 -36
- package/dist/sdk/crm.js +468 -216
- package/dist/sdk/customer.d.ts +6 -6
- package/dist/sdk/customer.js +78 -36
- package/dist/sdk/deal.d.ts +6 -6
- package/dist/sdk/deal.js +78 -36
- package/dist/sdk/document.d.ts +6 -6
- package/dist/sdk/document.js +78 -36
- package/dist/sdk/employee.d.ts +6 -6
- package/dist/sdk/employee.js +78 -36
- package/dist/sdk/enrich.d.ts +2 -2
- package/dist/sdk/enrich.js +26 -12
- package/dist/sdk/event.d.ts +6 -6
- package/dist/sdk/event.js +78 -36
- package/dist/sdk/file.d.ts +6 -6
- package/dist/sdk/file.js +78 -36
- package/dist/sdk/group.d.ts +6 -6
- package/dist/sdk/group.js +78 -36
- package/dist/sdk/hris.d.ts +12 -12
- package/dist/sdk/hris.js +156 -72
- package/dist/sdk/integration.d.ts +1 -1
- package/dist/sdk/integration.js +41 -12
- package/dist/sdk/interview.d.ts +6 -6
- package/dist/sdk/interview.js +78 -36
- package/dist/sdk/inventory.d.ts +6 -6
- package/dist/sdk/inventory.js +78 -36
- package/dist/sdk/invoice.d.ts +6 -6
- package/dist/sdk/invoice.js +78 -36
- package/dist/sdk/issue.d.ts +1 -1
- package/dist/sdk/issue.js +13 -6
- package/dist/sdk/item.d.ts +6 -6
- package/dist/sdk/item.js +78 -36
- package/dist/sdk/job.d.ts +6 -6
- package/dist/sdk/job.js +78 -36
- package/dist/sdk/lead.d.ts +6 -6
- package/dist/sdk/lead.js +78 -36
- package/dist/sdk/list.d.ts +6 -6
- package/dist/sdk/list.js +78 -36
- package/dist/sdk/location.d.ts +6 -6
- package/dist/sdk/location.js +78 -36
- package/dist/sdk/login.js +15 -3
- package/dist/sdk/martech.d.ts +12 -12
- package/dist/sdk/martech.js +156 -72
- package/dist/sdk/member.d.ts +6 -6
- package/dist/sdk/member.js +78 -36
- package/dist/sdk/models/operations/createaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/createaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/createaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/createaccountingpayment.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingpayment.js +1 -15
- package/dist/sdk/models/operations/createaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/createaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/createatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/createatsactivity.js +1 -15
- package/dist/sdk/models/operations/createatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/createatsapplication.js +1 -15
- package/dist/sdk/models/operations/createatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/createatscandidate.js +1 -15
- package/dist/sdk/models/operations/createatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/createatsdocument.js +1 -15
- package/dist/sdk/models/operations/createatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/createatsinterview.js +1 -15
- package/dist/sdk/models/operations/createatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/createatsjob.js +1 -15
- package/dist/sdk/models/operations/createatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/createatsscorecard.js +1 -15
- package/dist/sdk/models/operations/createcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/createcommercecollection.js +1 -15
- package/dist/sdk/models/operations/createcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/createcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/createcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/createcommerceitem.js +1 -15
- package/dist/sdk/models/operations/createcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/createcommercelocation.js +1 -15
- package/dist/sdk/models/operations/createcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmcompany.js +1 -15
- package/dist/sdk/models/operations/createcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmcontact.js +1 -15
- package/dist/sdk/models/operations/createcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmdeal.js +1 -15
- package/dist/sdk/models/operations/createcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmevent.js +1 -15
- package/dist/sdk/models/operations/createcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmlead.js +1 -15
- package/dist/sdk/models/operations/createcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/createhrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/createhrisemployee.js +1 -15
- package/dist/sdk/models/operations/createhrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/createhrisgroup.js +1 -15
- package/dist/sdk/models/operations/createmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/createmartechlist.js +1 -15
- package/dist/sdk/models/operations/createmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/createmartechmember.js +1 -15
- package/dist/sdk/models/operations/createpassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/createpassthrough.js +1 -15
- package/dist/sdk/models/operations/createstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/createstoragefile.js +1 -15
- package/dist/sdk/models/operations/createticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/createticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingnote.js +1 -15
- package/dist/sdk/models/operations/createticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingticket.js +1 -15
- package/dist/sdk/models/operations/createuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/createuccontact.js +1 -15
- package/dist/sdk/models/operations/createunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/createunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/createunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/createunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/getaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/getaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/getaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/getaccountingorganization.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingorganization.js +1 -15
- package/dist/sdk/models/operations/getaccountingpayment.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingpayment.js +1 -15
- package/dist/sdk/models/operations/getaccountingpayout.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingpayout.js +1 -15
- package/dist/sdk/models/operations/getaccountingrefund.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingrefund.js +1 -15
- package/dist/sdk/models/operations/getaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/getaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/getatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/getatsactivity.js +1 -15
- package/dist/sdk/models/operations/getatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/getatsapplication.js +1 -15
- package/dist/sdk/models/operations/getatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/getatscandidate.js +1 -15
- package/dist/sdk/models/operations/getatscompany.d.ts +0 -3
- package/dist/sdk/models/operations/getatscompany.js +1 -15
- package/dist/sdk/models/operations/getatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/getatsdocument.js +1 -15
- package/dist/sdk/models/operations/getatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/getatsinterview.js +1 -15
- package/dist/sdk/models/operations/getatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/getatsjob.js +1 -15
- package/dist/sdk/models/operations/getatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/getatsscorecard.js +1 -15
- package/dist/sdk/models/operations/getcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/getcommercecollection.js +1 -15
- package/dist/sdk/models/operations/getcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/getcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/getcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/getcommerceitem.js +1 -15
- package/dist/sdk/models/operations/getcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/getcommercelocation.js +1 -15
- package/dist/sdk/models/operations/getcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmcompany.js +1 -15
- package/dist/sdk/models/operations/getcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmcontact.js +1 -15
- package/dist/sdk/models/operations/getcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmdeal.js +1 -15
- package/dist/sdk/models/operations/getcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmevent.js +1 -15
- package/dist/sdk/models/operations/getcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmlead.js +1 -15
- package/dist/sdk/models/operations/getcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/gethrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/gethrisemployee.js +1 -15
- package/dist/sdk/models/operations/gethrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/gethrisgroup.js +1 -15
- package/dist/sdk/models/operations/getmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/getmartechlist.js +1 -15
- package/dist/sdk/models/operations/getmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/getmartechmember.js +1 -15
- package/dist/sdk/models/operations/getstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/getstoragefile.js +1 -15
- package/dist/sdk/models/operations/getticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/getticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingnote.js +1 -15
- package/dist/sdk/models/operations/getticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingticket.js +1 -15
- package/dist/sdk/models/operations/getuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/getuccontact.js +1 -15
- package/dist/sdk/models/operations/getunifiedapicall.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedapicall.js +1 -15
- package/dist/sdk/models/operations/getunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/getunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/listaccountingaccounts.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingaccounts.js +1 -15
- package/dist/sdk/models/operations/listaccountingcontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingcontacts.js +1 -15
- package/dist/sdk/models/operations/listaccountinginvoices.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountinginvoices.js +1 -15
- package/dist/sdk/models/operations/listaccountingorganizations.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingorganizations.js +1 -15
- package/dist/sdk/models/operations/listaccountingpayments.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingpayments.js +1 -15
- package/dist/sdk/models/operations/listaccountingpayouts.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingpayouts.js +1 -15
- package/dist/sdk/models/operations/listaccountingrefunds.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingrefunds.js +1 -15
- package/dist/sdk/models/operations/listaccountingtaxrates.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingtaxrates.js +1 -15
- package/dist/sdk/models/operations/listaccountingtransactions.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingtransactions.js +1 -15
- package/dist/sdk/models/operations/listatsactivities.d.ts +0 -3
- package/dist/sdk/models/operations/listatsactivities.js +1 -15
- package/dist/sdk/models/operations/listatsapplications.d.ts +0 -3
- package/dist/sdk/models/operations/listatsapplications.js +1 -15
- package/dist/sdk/models/operations/listatsapplicationstatuses.d.ts +0 -3
- package/dist/sdk/models/operations/listatsapplicationstatuses.js +1 -15
- package/dist/sdk/models/operations/listatscandidates.d.ts +0 -3
- package/dist/sdk/models/operations/listatscandidates.js +1 -15
- package/dist/sdk/models/operations/listatscompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listatscompanies.js +1 -15
- package/dist/sdk/models/operations/listatsdocuments.d.ts +0 -3
- package/dist/sdk/models/operations/listatsdocuments.js +1 -15
- package/dist/sdk/models/operations/listatsinterviews.d.ts +0 -3
- package/dist/sdk/models/operations/listatsinterviews.js +1 -15
- package/dist/sdk/models/operations/listatsjobs.d.ts +0 -3
- package/dist/sdk/models/operations/listatsjobs.js +1 -15
- package/dist/sdk/models/operations/listatsscorecards.d.ts +0 -3
- package/dist/sdk/models/operations/listatsscorecards.js +1 -15
- package/dist/sdk/models/operations/listcommercecollections.d.ts +0 -3
- package/dist/sdk/models/operations/listcommercecollections.js +1 -15
- package/dist/sdk/models/operations/listcommerceinventories.d.ts +0 -3
- package/dist/sdk/models/operations/listcommerceinventories.js +1 -15
- package/dist/sdk/models/operations/listcommerceitems.d.ts +0 -3
- package/dist/sdk/models/operations/listcommerceitems.js +1 -15
- package/dist/sdk/models/operations/listcommercelocations.d.ts +0 -3
- package/dist/sdk/models/operations/listcommercelocations.js +1 -15
- package/dist/sdk/models/operations/listcrmcompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmcompanies.js +1 -15
- package/dist/sdk/models/operations/listcrmcontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmcontacts.js +1 -15
- package/dist/sdk/models/operations/listcrmdeals.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmdeals.js +1 -15
- package/dist/sdk/models/operations/listcrmevents.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmevents.js +1 -15
- package/dist/sdk/models/operations/listcrmleads.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmleads.js +1 -15
- package/dist/sdk/models/operations/listcrmpipelines.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmpipelines.js +1 -15
- package/dist/sdk/models/operations/listenrichcompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listenrichcompanies.js +1 -15
- package/dist/sdk/models/operations/listenrichpeople.d.ts +0 -3
- package/dist/sdk/models/operations/listenrichpeople.js +1 -15
- package/dist/sdk/models/operations/listhrisemployees.d.ts +0 -3
- package/dist/sdk/models/operations/listhrisemployees.js +1 -15
- package/dist/sdk/models/operations/listhrisgroups.d.ts +0 -3
- package/dist/sdk/models/operations/listhrisgroups.js +1 -15
- package/dist/sdk/models/operations/listmartechlists.d.ts +0 -3
- package/dist/sdk/models/operations/listmartechlists.js +1 -15
- package/dist/sdk/models/operations/listmartechmembers.d.ts +0 -3
- package/dist/sdk/models/operations/listmartechmembers.js +1 -15
- package/dist/sdk/models/operations/listpassthroughs.d.ts +0 -3
- package/dist/sdk/models/operations/listpassthroughs.js +1 -15
- package/dist/sdk/models/operations/liststoragefiles.d.ts +0 -3
- package/dist/sdk/models/operations/liststoragefiles.js +1 -15
- package/dist/sdk/models/operations/listticketingcustomers.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingcustomers.js +1 -15
- package/dist/sdk/models/operations/listticketingnotes.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingnotes.js +1 -15
- package/dist/sdk/models/operations/listticketingtickets.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingtickets.js +1 -15
- package/dist/sdk/models/operations/listuccalls.d.ts +0 -3
- package/dist/sdk/models/operations/listuccalls.js +1 -15
- package/dist/sdk/models/operations/listuccontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listuccontacts.js +1 -15
- package/dist/sdk/models/operations/listunifiedapicalls.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedapicalls.js +1 -15
- package/dist/sdk/models/operations/listunifiedconnections.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedconnections.js +1 -15
- package/dist/sdk/models/operations/listunifiedintegrations.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedintegrations.js +1 -15
- package/dist/sdk/models/operations/listunifiedissues.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedissues.js +1 -15
- package/dist/sdk/models/operations/listunifiedwebhooks.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedwebhooks.js +1 -15
- package/dist/sdk/models/operations/patchaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/patchaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/patchaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/patchaccountingpayment.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingpayment.js +1 -15
- package/dist/sdk/models/operations/patchaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/patchatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsactivity.js +1 -15
- package/dist/sdk/models/operations/patchatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsapplication.js +1 -15
- package/dist/sdk/models/operations/patchatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/patchatscandidate.js +1 -15
- package/dist/sdk/models/operations/patchatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsdocument.js +1 -15
- package/dist/sdk/models/operations/patchatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsinterview.js +1 -15
- package/dist/sdk/models/operations/patchatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsjob.js +1 -15
- package/dist/sdk/models/operations/patchatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsscorecard.js +1 -15
- package/dist/sdk/models/operations/patchcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommercecollection.js +1 -15
- package/dist/sdk/models/operations/patchcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/patchcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommerceitem.js +1 -15
- package/dist/sdk/models/operations/patchcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommercelocation.js +1 -15
- package/dist/sdk/models/operations/patchcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmcompany.js +1 -15
- package/dist/sdk/models/operations/patchcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmcontact.js +1 -15
- package/dist/sdk/models/operations/patchcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmdeal.js +1 -15
- package/dist/sdk/models/operations/patchcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmevent.js +1 -15
- package/dist/sdk/models/operations/patchcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmlead.js +1 -15
- package/dist/sdk/models/operations/patchcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/patchhrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/patchhrisemployee.js +1 -15
- package/dist/sdk/models/operations/patchhrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/patchhrisgroup.js +1 -15
- package/dist/sdk/models/operations/patchmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/patchmartechlist.js +1 -15
- package/dist/sdk/models/operations/patchmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/patchmartechmember.js +1 -15
- package/dist/sdk/models/operations/patchpassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/patchpassthrough.js +1 -15
- package/dist/sdk/models/operations/patchstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/patchstoragefile.js +1 -15
- package/dist/sdk/models/operations/patchticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/patchticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingnote.js +1 -15
- package/dist/sdk/models/operations/patchticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingticket.js +1 -15
- package/dist/sdk/models/operations/patchuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchuccontact.js +1 -15
- package/dist/sdk/models/operations/patchunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/patchunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +0 -3
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -15
- package/dist/sdk/models/operations/removeaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/removeaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/removeaccountingpayment.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingpayment.js +1 -15
- package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/removeatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsactivity.js +1 -15
- package/dist/sdk/models/operations/removeatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsapplication.js +1 -15
- package/dist/sdk/models/operations/removeatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/removeatscandidate.js +1 -15
- package/dist/sdk/models/operations/removeatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsdocument.js +1 -15
- package/dist/sdk/models/operations/removeatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsinterview.js +1 -15
- package/dist/sdk/models/operations/removeatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsjob.js +1 -15
- package/dist/sdk/models/operations/removeatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsscorecard.js +1 -15
- package/dist/sdk/models/operations/removecommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/removecommercecollection.js +1 -15
- package/dist/sdk/models/operations/removecommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/removecommerceinventory.js +1 -15
- package/dist/sdk/models/operations/removecommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/removecommerceitem.js +1 -15
- package/dist/sdk/models/operations/removecommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/removecommercelocation.js +1 -15
- package/dist/sdk/models/operations/removecrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmcompany.js +1 -15
- package/dist/sdk/models/operations/removecrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmcontact.js +1 -15
- package/dist/sdk/models/operations/removecrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmdeal.js +1 -15
- package/dist/sdk/models/operations/removecrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmevent.js +1 -15
- package/dist/sdk/models/operations/removecrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmlead.js +1 -15
- package/dist/sdk/models/operations/removecrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmpipeline.js +1 -15
- package/dist/sdk/models/operations/removehrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/removehrisemployee.js +1 -15
- package/dist/sdk/models/operations/removehrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/removehrisgroup.js +1 -15
- package/dist/sdk/models/operations/removemartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/removemartechlist.js +1 -15
- package/dist/sdk/models/operations/removemartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/removemartechmember.js +1 -15
- package/dist/sdk/models/operations/removepassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/removepassthrough.js +1 -15
- package/dist/sdk/models/operations/removestoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/removestoragefile.js +1 -15
- package/dist/sdk/models/operations/removeticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/removeticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingnote.js +1 -15
- package/dist/sdk/models/operations/removeticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingticket.js +1 -15
- package/dist/sdk/models/operations/removeuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/removeuccontact.js +1 -15
- package/dist/sdk/models/operations/removeunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/removeunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/removeunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/updateaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/updateaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/updateaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/updateaccountingpayment.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingpayment.js +1 -15
- package/dist/sdk/models/operations/updateaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/updateatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsactivity.js +1 -15
- package/dist/sdk/models/operations/updateatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsapplication.js +1 -15
- package/dist/sdk/models/operations/updateatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/updateatscandidate.js +1 -15
- package/dist/sdk/models/operations/updateatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsdocument.js +1 -15
- package/dist/sdk/models/operations/updateatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsinterview.js +1 -15
- package/dist/sdk/models/operations/updateatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsjob.js +1 -15
- package/dist/sdk/models/operations/updateatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsscorecard.js +1 -15
- package/dist/sdk/models/operations/updatecommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommercecollection.js +1 -15
- package/dist/sdk/models/operations/updatecommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommerceinventory.js +1 -15
- package/dist/sdk/models/operations/updatecommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommerceitem.js +1 -15
- package/dist/sdk/models/operations/updatecommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommercelocation.js +1 -15
- package/dist/sdk/models/operations/updatecrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmcompany.js +1 -15
- package/dist/sdk/models/operations/updatecrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmcontact.js +1 -15
- package/dist/sdk/models/operations/updatecrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmdeal.js +1 -15
- package/dist/sdk/models/operations/updatecrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmevent.js +1 -15
- package/dist/sdk/models/operations/updatecrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmlead.js +1 -15
- package/dist/sdk/models/operations/updatecrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmpipeline.js +1 -15
- package/dist/sdk/models/operations/updatehrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/updatehrisemployee.js +1 -15
- package/dist/sdk/models/operations/updatehrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/updatehrisgroup.js +1 -15
- package/dist/sdk/models/operations/updatemartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/updatemartechlist.js +1 -15
- package/dist/sdk/models/operations/updatemartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/updatemartechmember.js +1 -15
- package/dist/sdk/models/operations/updatepassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/updatepassthrough.js +1 -15
- package/dist/sdk/models/operations/updatestoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/updatestoragefile.js +1 -15
- package/dist/sdk/models/operations/updateticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/updateticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingnote.js +1 -15
- package/dist/sdk/models/operations/updateticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingticket.js +1 -15
- package/dist/sdk/models/operations/updateuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/updateuccontact.js +1 -15
- package/dist/sdk/models/operations/updateunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/updateunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +0 -3
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -15
- package/dist/sdk/models/shared/index.d.ts +1 -0
- package/dist/sdk/models/shared/index.js +1 -0
- package/dist/sdk/models/shared/security.d.ts +4 -0
- package/dist/sdk/models/shared/security.js +45 -0
- package/dist/sdk/note.d.ts +6 -6
- package/dist/sdk/note.js +78 -36
- package/dist/sdk/organization.d.ts +2 -2
- package/dist/sdk/organization.js +26 -12
- package/dist/sdk/passthrough.d.ts +5 -5
- package/dist/sdk/passthrough.js +66 -30
- package/dist/sdk/payment.d.ts +6 -6
- package/dist/sdk/payment.js +78 -36
- package/dist/sdk/payout.d.ts +2 -2
- package/dist/sdk/payout.js +26 -12
- package/dist/sdk/person.d.ts +1 -1
- package/dist/sdk/person.js +13 -6
- package/dist/sdk/pipeline.d.ts +6 -6
- package/dist/sdk/pipeline.js +78 -36
- package/dist/sdk/refund.d.ts +2 -2
- package/dist/sdk/refund.js +26 -12
- package/dist/sdk/scorecard.d.ts +6 -6
- package/dist/sdk/scorecard.js +78 -36
- package/dist/sdk/sdk.d.ts +6 -0
- package/dist/sdk/sdk.js +4 -3
- package/dist/sdk/storage.d.ts +6 -6
- package/dist/sdk/storage.js +78 -36
- package/dist/sdk/taxrate.d.ts +6 -6
- package/dist/sdk/taxrate.js +78 -36
- package/dist/sdk/ticket.d.ts +6 -6
- package/dist/sdk/ticket.js +78 -36
- package/dist/sdk/ticketing.d.ts +18 -18
- package/dist/sdk/ticketing.js +234 -108
- package/dist/sdk/transaction.d.ts +6 -6
- package/dist/sdk/transaction.js +78 -36
- package/dist/sdk/uc.d.ts +7 -7
- package/dist/sdk/uc.js +91 -42
- package/dist/sdk/unified.d.ts +16 -16
- package/dist/sdk/unified.js +236 -102
- package/dist/sdk/webhook.d.ts +6 -6
- package/dist/sdk/webhook.js +78 -36
- package/docs/sdk/models/{operations/getatsjobsecurity.md → shared/security.md} +2 -2
- package/docs/sdks/account/README.md +60 -66
- package/docs/sdks/accounting/README.md +420 -462
- package/docs/sdks/activity/README.md +60 -66
- package/docs/sdks/apicall/README.md +20 -22
- package/docs/sdks/application/README.md +60 -66
- package/docs/sdks/applicationstatus/README.md +10 -11
- package/docs/sdks/ats/README.md +450 -495
- package/docs/sdks/auth/README.md +10 -2
- package/docs/sdks/call/README.md +10 -11
- package/docs/sdks/candidate/README.md +60 -66
- package/docs/sdks/collection/README.md +60 -66
- package/docs/sdks/commerce/README.md +240 -264
- package/docs/sdks/company/README.md +90 -99
- package/docs/sdks/connection/README.md +61 -66
- package/docs/sdks/contact/README.md +180 -198
- package/docs/sdks/crm/README.md +360 -396
- package/docs/sdks/customer/README.md +60 -66
- package/docs/sdks/deal/README.md +60 -66
- package/docs/sdks/document/README.md +60 -66
- package/docs/sdks/employee/README.md +60 -66
- package/docs/sdks/enrich/README.md +20 -22
- package/docs/sdks/event/README.md +60 -66
- package/docs/sdks/file/README.md +60 -66
- package/docs/sdks/group/README.md +60 -66
- package/docs/sdks/hris/README.md +120 -132
- package/docs/sdks/integration/README.md +21 -13
- package/docs/sdks/interview/README.md +60 -66
- package/docs/sdks/inventory/README.md +60 -66
- package/docs/sdks/invoice/README.md +60 -66
- package/docs/sdks/issue/README.md +10 -11
- package/docs/sdks/item/README.md +60 -66
- package/docs/sdks/job/README.md +60 -66
- package/docs/sdks/lead/README.md +60 -66
- package/docs/sdks/list/README.md +60 -66
- package/docs/sdks/location/README.md +60 -66
- package/docs/sdks/login/README.md +5 -1
- package/docs/sdks/martech/README.md +120 -132
- package/docs/sdks/member/README.md +60 -66
- package/docs/sdks/note/README.md +60 -66
- package/docs/sdks/organization/README.md +20 -22
- package/docs/sdks/passthrough/README.md +50 -55
- package/docs/sdks/payment/README.md +60 -66
- package/docs/sdks/payout/README.md +20 -22
- package/docs/sdks/person/README.md +10 -11
- package/docs/sdks/pipeline/README.md +60 -66
- package/docs/sdks/refund/README.md +20 -22
- package/docs/sdks/scorecard/README.md +60 -66
- package/docs/sdks/storage/README.md +60 -66
- package/docs/sdks/taxrate/README.md +60 -66
- package/docs/sdks/ticket/README.md +60 -66
- package/docs/sdks/ticketing/README.md +180 -198
- package/docs/sdks/transaction/README.md +60 -66
- package/docs/sdks/uc/README.md +70 -77
- package/docs/sdks/unified/README.md +172 -178
- package/docs/sdks/webhook/README.md +60 -66
- package/package.json +1 -1
- package/docs/sdk/models/operations/createaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/createatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/createatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/createatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/createcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/createhrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/createhrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/createmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/createmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/createpassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/createstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/createuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/createunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingorganizationsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingrefundsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/getatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/getatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/getatscompanysecurity.md +0 -8
- package/docs/sdk/models/operations/getatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/getcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/gethrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/gethrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/getmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/getmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/getstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/getuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedapicallsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingaccountssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingcontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountinginvoicessecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingorganizationssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingrefundssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingtaxratessecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingtransactionssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsactivitiessecurity.md +0 -8
- package/docs/sdk/models/operations/listatsapplicationssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsapplicationstatusessecurity.md +0 -8
- package/docs/sdk/models/operations/listatscandidatessecurity.md +0 -8
- package/docs/sdk/models/operations/listatscompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listatsdocumentssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsinterviewssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsjobssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsscorecardssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommercecollectionssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommerceinventoriessecurity.md +0 -8
- package/docs/sdk/models/operations/listcommerceitemssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommercelocationssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmcompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmcontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmdealssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmeventssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmleadssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmpipelinessecurity.md +0 -8
- package/docs/sdk/models/operations/listenrichcompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listenrichpeoplesecurity.md +0 -8
- package/docs/sdk/models/operations/listhrisemployeessecurity.md +0 -8
- package/docs/sdk/models/operations/listhrisgroupssecurity.md +0 -8
- package/docs/sdk/models/operations/listmartechlistssecurity.md +0 -8
- package/docs/sdk/models/operations/listmartechmemberssecurity.md +0 -8
- package/docs/sdk/models/operations/listpassthroughssecurity.md +0 -8
- package/docs/sdk/models/operations/liststoragefilessecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingcustomerssecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingnotessecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingticketssecurity.md +0 -8
- package/docs/sdk/models/operations/listuccallssecurity.md +0 -8
- package/docs/sdk/models/operations/listuccontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedapicallssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedconnectionssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedintegrationssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedissuessecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedwebhookssecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/patchhrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/patchhrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/patchmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/patchmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/patchpassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/patchstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/patchuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchunifiedwebhooktriggersecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/removecommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/removehrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/removehrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/removemartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/removemartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/removepassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/removestoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/removeuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removeunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/removeunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/updatehrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/updatehrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/updatemartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/updatemartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/updatepassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/updatestoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/updateuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updateunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/updateunifiedwebhooktriggersecurity.md +0 -8
package/dist/sdk/ats.js
CHANGED
|
@@ -101,10 +101,10 @@ var Ats = /** @class */ (function () {
|
|
|
101
101
|
/**
|
|
102
102
|
* Create an activity
|
|
103
103
|
*/
|
|
104
|
-
Ats.prototype.createAtsActivity = function (req,
|
|
104
|
+
Ats.prototype.createAtsActivity = function (req, config) {
|
|
105
105
|
var _a, _b;
|
|
106
106
|
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
107
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
108
108
|
var _d;
|
|
109
109
|
return __generator(this, function (_e) {
|
|
110
110
|
switch (_e.label) {
|
|
@@ -124,15 +124,22 @@ var Ats = /** @class */ (function () {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
client = this.sdkConfiguration.defaultClient;
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
128
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
129
|
+
return [4 /*yield*/, globalSecurity()];
|
|
130
|
+
case 1:
|
|
131
|
+
globalSecurity = _e.sent();
|
|
132
|
+
_e.label = 2;
|
|
133
|
+
case 2:
|
|
134
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
135
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
129
136
|
}
|
|
130
|
-
properties = utils.parseSecurityProperties(
|
|
137
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
131
138
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
132
139
|
headers["Accept"] = "application/json";
|
|
133
140
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
134
141
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
135
|
-
case
|
|
142
|
+
case 3:
|
|
136
143
|
httpRes = _e.sent();
|
|
137
144
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
138
145
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -165,10 +172,10 @@ var Ats = /** @class */ (function () {
|
|
|
165
172
|
/**
|
|
166
173
|
* Create an application
|
|
167
174
|
*/
|
|
168
|
-
Ats.prototype.createAtsApplication = function (req,
|
|
175
|
+
Ats.prototype.createAtsApplication = function (req, config) {
|
|
169
176
|
var _a, _b;
|
|
170
177
|
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
178
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
172
179
|
var _d;
|
|
173
180
|
return __generator(this, function (_e) {
|
|
174
181
|
switch (_e.label) {
|
|
@@ -188,15 +195,22 @@ var Ats = /** @class */ (function () {
|
|
|
188
195
|
}
|
|
189
196
|
}
|
|
190
197
|
client = this.sdkConfiguration.defaultClient;
|
|
191
|
-
|
|
192
|
-
|
|
198
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
199
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
200
|
+
return [4 /*yield*/, globalSecurity()];
|
|
201
|
+
case 1:
|
|
202
|
+
globalSecurity = _e.sent();
|
|
203
|
+
_e.label = 2;
|
|
204
|
+
case 2:
|
|
205
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
206
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
193
207
|
}
|
|
194
|
-
properties = utils.parseSecurityProperties(
|
|
208
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
195
209
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
196
210
|
headers["Accept"] = "application/json";
|
|
197
211
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
198
212
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
199
|
-
case
|
|
213
|
+
case 3:
|
|
200
214
|
httpRes = _e.sent();
|
|
201
215
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
202
216
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -229,10 +243,10 @@ var Ats = /** @class */ (function () {
|
|
|
229
243
|
/**
|
|
230
244
|
* Create a candidate
|
|
231
245
|
*/
|
|
232
|
-
Ats.prototype.createAtsCandidate = function (req,
|
|
246
|
+
Ats.prototype.createAtsCandidate = function (req, config) {
|
|
233
247
|
var _a, _b;
|
|
234
248
|
return __awaiter(this, void 0, void 0, function () {
|
|
235
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
249
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
236
250
|
var _d;
|
|
237
251
|
return __generator(this, function (_e) {
|
|
238
252
|
switch (_e.label) {
|
|
@@ -252,15 +266,22 @@ var Ats = /** @class */ (function () {
|
|
|
252
266
|
}
|
|
253
267
|
}
|
|
254
268
|
client = this.sdkConfiguration.defaultClient;
|
|
255
|
-
|
|
256
|
-
|
|
269
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
270
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
271
|
+
return [4 /*yield*/, globalSecurity()];
|
|
272
|
+
case 1:
|
|
273
|
+
globalSecurity = _e.sent();
|
|
274
|
+
_e.label = 2;
|
|
275
|
+
case 2:
|
|
276
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
277
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
257
278
|
}
|
|
258
|
-
properties = utils.parseSecurityProperties(
|
|
279
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
259
280
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
260
281
|
headers["Accept"] = "application/json";
|
|
261
282
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
262
283
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
263
|
-
case
|
|
284
|
+
case 3:
|
|
264
285
|
httpRes = _e.sent();
|
|
265
286
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
266
287
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -293,10 +314,10 @@ var Ats = /** @class */ (function () {
|
|
|
293
314
|
/**
|
|
294
315
|
* Create a document
|
|
295
316
|
*/
|
|
296
|
-
Ats.prototype.createAtsDocument = function (req,
|
|
317
|
+
Ats.prototype.createAtsDocument = function (req, config) {
|
|
297
318
|
var _a, _b;
|
|
298
319
|
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
320
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
300
321
|
var _d;
|
|
301
322
|
return __generator(this, function (_e) {
|
|
302
323
|
switch (_e.label) {
|
|
@@ -316,15 +337,22 @@ var Ats = /** @class */ (function () {
|
|
|
316
337
|
}
|
|
317
338
|
}
|
|
318
339
|
client = this.sdkConfiguration.defaultClient;
|
|
319
|
-
|
|
320
|
-
|
|
340
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
341
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
342
|
+
return [4 /*yield*/, globalSecurity()];
|
|
343
|
+
case 1:
|
|
344
|
+
globalSecurity = _e.sent();
|
|
345
|
+
_e.label = 2;
|
|
346
|
+
case 2:
|
|
347
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
348
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
321
349
|
}
|
|
322
|
-
properties = utils.parseSecurityProperties(
|
|
350
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
323
351
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
324
352
|
headers["Accept"] = "application/json";
|
|
325
353
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
326
354
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
327
|
-
case
|
|
355
|
+
case 3:
|
|
328
356
|
httpRes = _e.sent();
|
|
329
357
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
330
358
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -357,10 +385,10 @@ var Ats = /** @class */ (function () {
|
|
|
357
385
|
/**
|
|
358
386
|
* Create a interview
|
|
359
387
|
*/
|
|
360
|
-
Ats.prototype.createAtsInterview = function (req,
|
|
388
|
+
Ats.prototype.createAtsInterview = function (req, config) {
|
|
361
389
|
var _a, _b;
|
|
362
390
|
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
391
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
364
392
|
var _d;
|
|
365
393
|
return __generator(this, function (_e) {
|
|
366
394
|
switch (_e.label) {
|
|
@@ -380,15 +408,22 @@ var Ats = /** @class */ (function () {
|
|
|
380
408
|
}
|
|
381
409
|
}
|
|
382
410
|
client = this.sdkConfiguration.defaultClient;
|
|
383
|
-
|
|
384
|
-
|
|
411
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
412
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
413
|
+
return [4 /*yield*/, globalSecurity()];
|
|
414
|
+
case 1:
|
|
415
|
+
globalSecurity = _e.sent();
|
|
416
|
+
_e.label = 2;
|
|
417
|
+
case 2:
|
|
418
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
419
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
385
420
|
}
|
|
386
|
-
properties = utils.parseSecurityProperties(
|
|
421
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
387
422
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
388
423
|
headers["Accept"] = "application/json";
|
|
389
424
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
390
425
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
391
|
-
case
|
|
426
|
+
case 3:
|
|
392
427
|
httpRes = _e.sent();
|
|
393
428
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
394
429
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -421,10 +456,10 @@ var Ats = /** @class */ (function () {
|
|
|
421
456
|
/**
|
|
422
457
|
* Create a job
|
|
423
458
|
*/
|
|
424
|
-
Ats.prototype.createAtsJob = function (req,
|
|
459
|
+
Ats.prototype.createAtsJob = function (req, config) {
|
|
425
460
|
var _a, _b;
|
|
426
461
|
return __awaiter(this, void 0, void 0, function () {
|
|
427
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
462
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
428
463
|
var _d;
|
|
429
464
|
return __generator(this, function (_e) {
|
|
430
465
|
switch (_e.label) {
|
|
@@ -444,15 +479,22 @@ var Ats = /** @class */ (function () {
|
|
|
444
479
|
}
|
|
445
480
|
}
|
|
446
481
|
client = this.sdkConfiguration.defaultClient;
|
|
447
|
-
|
|
448
|
-
|
|
482
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
483
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
484
|
+
return [4 /*yield*/, globalSecurity()];
|
|
485
|
+
case 1:
|
|
486
|
+
globalSecurity = _e.sent();
|
|
487
|
+
_e.label = 2;
|
|
488
|
+
case 2:
|
|
489
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
490
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
449
491
|
}
|
|
450
|
-
properties = utils.parseSecurityProperties(
|
|
492
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
451
493
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
452
494
|
headers["Accept"] = "application/json";
|
|
453
495
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
454
496
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
455
|
-
case
|
|
497
|
+
case 3:
|
|
456
498
|
httpRes = _e.sent();
|
|
457
499
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
458
500
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -485,10 +527,10 @@ var Ats = /** @class */ (function () {
|
|
|
485
527
|
/**
|
|
486
528
|
* Create a scorecard
|
|
487
529
|
*/
|
|
488
|
-
Ats.prototype.createAtsScorecard = function (req,
|
|
530
|
+
Ats.prototype.createAtsScorecard = function (req, config) {
|
|
489
531
|
var _a, _b;
|
|
490
532
|
return __awaiter(this, void 0, void 0, function () {
|
|
491
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
533
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
492
534
|
var _d;
|
|
493
535
|
return __generator(this, function (_e) {
|
|
494
536
|
switch (_e.label) {
|
|
@@ -508,15 +550,22 @@ var Ats = /** @class */ (function () {
|
|
|
508
550
|
}
|
|
509
551
|
}
|
|
510
552
|
client = this.sdkConfiguration.defaultClient;
|
|
511
|
-
|
|
512
|
-
|
|
553
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
554
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
555
|
+
return [4 /*yield*/, globalSecurity()];
|
|
556
|
+
case 1:
|
|
557
|
+
globalSecurity = _e.sent();
|
|
558
|
+
_e.label = 2;
|
|
559
|
+
case 2:
|
|
560
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
561
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
513
562
|
}
|
|
514
|
-
properties = utils.parseSecurityProperties(
|
|
563
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
515
564
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
516
565
|
headers["Accept"] = "application/json";
|
|
517
566
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
518
567
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
519
|
-
case
|
|
568
|
+
case 3:
|
|
520
569
|
httpRes = _e.sent();
|
|
521
570
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
522
571
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -549,10 +598,10 @@ var Ats = /** @class */ (function () {
|
|
|
549
598
|
/**
|
|
550
599
|
* Retrieve an activity
|
|
551
600
|
*/
|
|
552
|
-
Ats.prototype.getAtsActivity = function (req,
|
|
601
|
+
Ats.prototype.getAtsActivity = function (req, config) {
|
|
553
602
|
var _a, _b;
|
|
554
603
|
return __awaiter(this, void 0, void 0, function () {
|
|
555
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
604
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
556
605
|
return __generator(this, function (_c) {
|
|
557
606
|
switch (_c.label) {
|
|
558
607
|
case 0:
|
|
@@ -562,16 +611,23 @@ var Ats = /** @class */ (function () {
|
|
|
562
611
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
563
612
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
|
|
564
613
|
client = this.sdkConfiguration.defaultClient;
|
|
565
|
-
|
|
566
|
-
|
|
614
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
615
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
616
|
+
return [4 /*yield*/, globalSecurity()];
|
|
617
|
+
case 1:
|
|
618
|
+
globalSecurity = _c.sent();
|
|
619
|
+
_c.label = 2;
|
|
620
|
+
case 2:
|
|
621
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
622
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
567
623
|
}
|
|
568
|
-
properties = utils.parseSecurityProperties(
|
|
624
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
569
625
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
570
626
|
queryParams = utils.serializeQueryParams(req);
|
|
571
627
|
headers["Accept"] = "application/json";
|
|
572
628
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
573
629
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
574
|
-
case
|
|
630
|
+
case 3:
|
|
575
631
|
httpRes = _c.sent();
|
|
576
632
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
577
633
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -604,10 +660,10 @@ var Ats = /** @class */ (function () {
|
|
|
604
660
|
/**
|
|
605
661
|
* Retrieve an application
|
|
606
662
|
*/
|
|
607
|
-
Ats.prototype.getAtsApplication = function (req,
|
|
663
|
+
Ats.prototype.getAtsApplication = function (req, config) {
|
|
608
664
|
var _a, _b;
|
|
609
665
|
return __awaiter(this, void 0, void 0, function () {
|
|
610
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
666
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
611
667
|
return __generator(this, function (_c) {
|
|
612
668
|
switch (_c.label) {
|
|
613
669
|
case 0:
|
|
@@ -617,16 +673,23 @@ var Ats = /** @class */ (function () {
|
|
|
617
673
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
618
674
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
|
|
619
675
|
client = this.sdkConfiguration.defaultClient;
|
|
620
|
-
|
|
621
|
-
|
|
676
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
677
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
678
|
+
return [4 /*yield*/, globalSecurity()];
|
|
679
|
+
case 1:
|
|
680
|
+
globalSecurity = _c.sent();
|
|
681
|
+
_c.label = 2;
|
|
682
|
+
case 2:
|
|
683
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
684
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
622
685
|
}
|
|
623
|
-
properties = utils.parseSecurityProperties(
|
|
686
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
624
687
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
625
688
|
queryParams = utils.serializeQueryParams(req);
|
|
626
689
|
headers["Accept"] = "application/json";
|
|
627
690
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
628
691
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
629
|
-
case
|
|
692
|
+
case 3:
|
|
630
693
|
httpRes = _c.sent();
|
|
631
694
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
632
695
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -659,10 +722,10 @@ var Ats = /** @class */ (function () {
|
|
|
659
722
|
/**
|
|
660
723
|
* Retrieve a candidate
|
|
661
724
|
*/
|
|
662
|
-
Ats.prototype.getAtsCandidate = function (req,
|
|
725
|
+
Ats.prototype.getAtsCandidate = function (req, config) {
|
|
663
726
|
var _a, _b;
|
|
664
727
|
return __awaiter(this, void 0, void 0, function () {
|
|
665
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
728
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
666
729
|
return __generator(this, function (_c) {
|
|
667
730
|
switch (_c.label) {
|
|
668
731
|
case 0:
|
|
@@ -672,16 +735,23 @@ var Ats = /** @class */ (function () {
|
|
|
672
735
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
673
736
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
|
|
674
737
|
client = this.sdkConfiguration.defaultClient;
|
|
675
|
-
|
|
676
|
-
|
|
738
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
739
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
740
|
+
return [4 /*yield*/, globalSecurity()];
|
|
741
|
+
case 1:
|
|
742
|
+
globalSecurity = _c.sent();
|
|
743
|
+
_c.label = 2;
|
|
744
|
+
case 2:
|
|
745
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
746
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
677
747
|
}
|
|
678
|
-
properties = utils.parseSecurityProperties(
|
|
748
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
679
749
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
680
750
|
queryParams = utils.serializeQueryParams(req);
|
|
681
751
|
headers["Accept"] = "application/json";
|
|
682
752
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
683
753
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
684
|
-
case
|
|
754
|
+
case 3:
|
|
685
755
|
httpRes = _c.sent();
|
|
686
756
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
687
757
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -714,10 +784,10 @@ var Ats = /** @class */ (function () {
|
|
|
714
784
|
/**
|
|
715
785
|
* Retrieve a company
|
|
716
786
|
*/
|
|
717
|
-
Ats.prototype.getAtsCompany = function (req,
|
|
787
|
+
Ats.prototype.getAtsCompany = function (req, config) {
|
|
718
788
|
var _a, _b;
|
|
719
789
|
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
790
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
721
791
|
return __generator(this, function (_c) {
|
|
722
792
|
switch (_c.label) {
|
|
723
793
|
case 0:
|
|
@@ -727,16 +797,23 @@ var Ats = /** @class */ (function () {
|
|
|
727
797
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
728
798
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company/{id}", req);
|
|
729
799
|
client = this.sdkConfiguration.defaultClient;
|
|
730
|
-
|
|
731
|
-
|
|
800
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
801
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
802
|
+
return [4 /*yield*/, globalSecurity()];
|
|
803
|
+
case 1:
|
|
804
|
+
globalSecurity = _c.sent();
|
|
805
|
+
_c.label = 2;
|
|
806
|
+
case 2:
|
|
807
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
808
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
732
809
|
}
|
|
733
|
-
properties = utils.parseSecurityProperties(
|
|
810
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
734
811
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
735
812
|
queryParams = utils.serializeQueryParams(req);
|
|
736
813
|
headers["Accept"] = "application/json";
|
|
737
814
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
738
815
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
739
|
-
case
|
|
816
|
+
case 3:
|
|
740
817
|
httpRes = _c.sent();
|
|
741
818
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
742
819
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -769,10 +846,10 @@ var Ats = /** @class */ (function () {
|
|
|
769
846
|
/**
|
|
770
847
|
* Retrieve a document
|
|
771
848
|
*/
|
|
772
|
-
Ats.prototype.getAtsDocument = function (req,
|
|
849
|
+
Ats.prototype.getAtsDocument = function (req, config) {
|
|
773
850
|
var _a, _b;
|
|
774
851
|
return __awaiter(this, void 0, void 0, function () {
|
|
775
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
852
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
776
853
|
return __generator(this, function (_c) {
|
|
777
854
|
switch (_c.label) {
|
|
778
855
|
case 0:
|
|
@@ -782,16 +859,23 @@ var Ats = /** @class */ (function () {
|
|
|
782
859
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
783
860
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
|
|
784
861
|
client = this.sdkConfiguration.defaultClient;
|
|
785
|
-
|
|
786
|
-
|
|
862
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
863
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
864
|
+
return [4 /*yield*/, globalSecurity()];
|
|
865
|
+
case 1:
|
|
866
|
+
globalSecurity = _c.sent();
|
|
867
|
+
_c.label = 2;
|
|
868
|
+
case 2:
|
|
869
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
870
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
787
871
|
}
|
|
788
|
-
properties = utils.parseSecurityProperties(
|
|
872
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
789
873
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
790
874
|
queryParams = utils.serializeQueryParams(req);
|
|
791
875
|
headers["Accept"] = "application/json";
|
|
792
876
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
793
877
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
794
|
-
case
|
|
878
|
+
case 3:
|
|
795
879
|
httpRes = _c.sent();
|
|
796
880
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
797
881
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -824,10 +908,10 @@ var Ats = /** @class */ (function () {
|
|
|
824
908
|
/**
|
|
825
909
|
* Retrieve a interview
|
|
826
910
|
*/
|
|
827
|
-
Ats.prototype.getAtsInterview = function (req,
|
|
911
|
+
Ats.prototype.getAtsInterview = function (req, config) {
|
|
828
912
|
var _a, _b;
|
|
829
913
|
return __awaiter(this, void 0, void 0, function () {
|
|
830
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
914
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
831
915
|
return __generator(this, function (_c) {
|
|
832
916
|
switch (_c.label) {
|
|
833
917
|
case 0:
|
|
@@ -837,16 +921,23 @@ var Ats = /** @class */ (function () {
|
|
|
837
921
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
838
922
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
|
|
839
923
|
client = this.sdkConfiguration.defaultClient;
|
|
840
|
-
|
|
841
|
-
|
|
924
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
925
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
926
|
+
return [4 /*yield*/, globalSecurity()];
|
|
927
|
+
case 1:
|
|
928
|
+
globalSecurity = _c.sent();
|
|
929
|
+
_c.label = 2;
|
|
930
|
+
case 2:
|
|
931
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
932
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
842
933
|
}
|
|
843
|
-
properties = utils.parseSecurityProperties(
|
|
934
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
844
935
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
845
936
|
queryParams = utils.serializeQueryParams(req);
|
|
846
937
|
headers["Accept"] = "application/json";
|
|
847
938
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
848
939
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
849
|
-
case
|
|
940
|
+
case 3:
|
|
850
941
|
httpRes = _c.sent();
|
|
851
942
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
852
943
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -879,10 +970,10 @@ var Ats = /** @class */ (function () {
|
|
|
879
970
|
/**
|
|
880
971
|
* Retrieve a job
|
|
881
972
|
*/
|
|
882
|
-
Ats.prototype.getAtsJob = function (req,
|
|
973
|
+
Ats.prototype.getAtsJob = function (req, config) {
|
|
883
974
|
var _a, _b;
|
|
884
975
|
return __awaiter(this, void 0, void 0, function () {
|
|
885
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
976
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
886
977
|
return __generator(this, function (_c) {
|
|
887
978
|
switch (_c.label) {
|
|
888
979
|
case 0:
|
|
@@ -892,16 +983,23 @@ var Ats = /** @class */ (function () {
|
|
|
892
983
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
893
984
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
|
|
894
985
|
client = this.sdkConfiguration.defaultClient;
|
|
895
|
-
|
|
896
|
-
|
|
986
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
987
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
988
|
+
return [4 /*yield*/, globalSecurity()];
|
|
989
|
+
case 1:
|
|
990
|
+
globalSecurity = _c.sent();
|
|
991
|
+
_c.label = 2;
|
|
992
|
+
case 2:
|
|
993
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
994
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
897
995
|
}
|
|
898
|
-
properties = utils.parseSecurityProperties(
|
|
996
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
899
997
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
900
998
|
queryParams = utils.serializeQueryParams(req);
|
|
901
999
|
headers["Accept"] = "application/json";
|
|
902
1000
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
903
1001
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
904
|
-
case
|
|
1002
|
+
case 3:
|
|
905
1003
|
httpRes = _c.sent();
|
|
906
1004
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
907
1005
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -934,10 +1032,10 @@ var Ats = /** @class */ (function () {
|
|
|
934
1032
|
/**
|
|
935
1033
|
* Retrieve a scorecard
|
|
936
1034
|
*/
|
|
937
|
-
Ats.prototype.getAtsScorecard = function (req,
|
|
1035
|
+
Ats.prototype.getAtsScorecard = function (req, config) {
|
|
938
1036
|
var _a, _b;
|
|
939
1037
|
return __awaiter(this, void 0, void 0, function () {
|
|
940
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
1038
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
941
1039
|
return __generator(this, function (_c) {
|
|
942
1040
|
switch (_c.label) {
|
|
943
1041
|
case 0:
|
|
@@ -947,16 +1045,23 @@ var Ats = /** @class */ (function () {
|
|
|
947
1045
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
948
1046
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
|
|
949
1047
|
client = this.sdkConfiguration.defaultClient;
|
|
950
|
-
|
|
951
|
-
|
|
1048
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1049
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1050
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1051
|
+
case 1:
|
|
1052
|
+
globalSecurity = _c.sent();
|
|
1053
|
+
_c.label = 2;
|
|
1054
|
+
case 2:
|
|
1055
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1056
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
952
1057
|
}
|
|
953
|
-
properties = utils.parseSecurityProperties(
|
|
1058
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
954
1059
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
955
1060
|
queryParams = utils.serializeQueryParams(req);
|
|
956
1061
|
headers["Accept"] = "application/json";
|
|
957
1062
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
958
1063
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
959
|
-
case
|
|
1064
|
+
case 3:
|
|
960
1065
|
httpRes = _c.sent();
|
|
961
1066
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
962
1067
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -989,10 +1094,10 @@ var Ats = /** @class */ (function () {
|
|
|
989
1094
|
/**
|
|
990
1095
|
* List all activities
|
|
991
1096
|
*/
|
|
992
|
-
Ats.prototype.listAtsActivities = function (req,
|
|
1097
|
+
Ats.prototype.listAtsActivities = function (req, config) {
|
|
993
1098
|
var _a, _b;
|
|
994
1099
|
return __awaiter(this, void 0, void 0, function () {
|
|
995
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1100
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
996
1101
|
return __generator(this, function (_c) {
|
|
997
1102
|
switch (_c.label) {
|
|
998
1103
|
case 0:
|
|
@@ -1002,16 +1107,23 @@ var Ats = /** @class */ (function () {
|
|
|
1002
1107
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1003
1108
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity", req);
|
|
1004
1109
|
client = this.sdkConfiguration.defaultClient;
|
|
1005
|
-
|
|
1006
|
-
|
|
1110
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1111
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1112
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1113
|
+
case 1:
|
|
1114
|
+
globalSecurity = _c.sent();
|
|
1115
|
+
_c.label = 2;
|
|
1116
|
+
case 2:
|
|
1117
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1118
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1007
1119
|
}
|
|
1008
|
-
properties = utils.parseSecurityProperties(
|
|
1120
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1009
1121
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1010
1122
|
queryParams = utils.serializeQueryParams(req);
|
|
1011
1123
|
headers["Accept"] = "application/json";
|
|
1012
1124
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1013
1125
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1014
|
-
case
|
|
1126
|
+
case 3:
|
|
1015
1127
|
httpRes = _c.sent();
|
|
1016
1128
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1017
1129
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1046,10 +1158,10 @@ var Ats = /** @class */ (function () {
|
|
|
1046
1158
|
/**
|
|
1047
1159
|
* List all applications
|
|
1048
1160
|
*/
|
|
1049
|
-
Ats.prototype.listAtsApplications = function (req,
|
|
1161
|
+
Ats.prototype.listAtsApplications = function (req, config) {
|
|
1050
1162
|
var _a, _b;
|
|
1051
1163
|
return __awaiter(this, void 0, void 0, function () {
|
|
1052
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1164
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1053
1165
|
return __generator(this, function (_c) {
|
|
1054
1166
|
switch (_c.label) {
|
|
1055
1167
|
case 0:
|
|
@@ -1059,16 +1171,23 @@ var Ats = /** @class */ (function () {
|
|
|
1059
1171
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1060
1172
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application", req);
|
|
1061
1173
|
client = this.sdkConfiguration.defaultClient;
|
|
1062
|
-
|
|
1063
|
-
|
|
1174
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1175
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1176
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1177
|
+
case 1:
|
|
1178
|
+
globalSecurity = _c.sent();
|
|
1179
|
+
_c.label = 2;
|
|
1180
|
+
case 2:
|
|
1181
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1182
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1064
1183
|
}
|
|
1065
|
-
properties = utils.parseSecurityProperties(
|
|
1184
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1066
1185
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1067
1186
|
queryParams = utils.serializeQueryParams(req);
|
|
1068
1187
|
headers["Accept"] = "application/json";
|
|
1069
1188
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1070
1189
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1071
|
-
case
|
|
1190
|
+
case 3:
|
|
1072
1191
|
httpRes = _c.sent();
|
|
1073
1192
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1074
1193
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1103,10 +1222,10 @@ var Ats = /** @class */ (function () {
|
|
|
1103
1222
|
/**
|
|
1104
1223
|
* List all application statuses
|
|
1105
1224
|
*/
|
|
1106
|
-
Ats.prototype.listAtsApplicationstatuses = function (req,
|
|
1225
|
+
Ats.prototype.listAtsApplicationstatuses = function (req, config) {
|
|
1107
1226
|
var _a, _b;
|
|
1108
1227
|
return __awaiter(this, void 0, void 0, function () {
|
|
1109
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1228
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1110
1229
|
return __generator(this, function (_c) {
|
|
1111
1230
|
switch (_c.label) {
|
|
1112
1231
|
case 0:
|
|
@@ -1116,16 +1235,23 @@ var Ats = /** @class */ (function () {
|
|
|
1116
1235
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1117
1236
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/applicationstatus", req);
|
|
1118
1237
|
client = this.sdkConfiguration.defaultClient;
|
|
1119
|
-
|
|
1120
|
-
|
|
1238
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1239
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1240
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1241
|
+
case 1:
|
|
1242
|
+
globalSecurity = _c.sent();
|
|
1243
|
+
_c.label = 2;
|
|
1244
|
+
case 2:
|
|
1245
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1246
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1121
1247
|
}
|
|
1122
|
-
properties = utils.parseSecurityProperties(
|
|
1248
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1123
1249
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1124
1250
|
queryParams = utils.serializeQueryParams(req);
|
|
1125
1251
|
headers["Accept"] = "application/json";
|
|
1126
1252
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1127
1253
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1128
|
-
case
|
|
1254
|
+
case 3:
|
|
1129
1255
|
httpRes = _c.sent();
|
|
1130
1256
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1131
1257
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1160,10 +1286,10 @@ var Ats = /** @class */ (function () {
|
|
|
1160
1286
|
/**
|
|
1161
1287
|
* List all candidates
|
|
1162
1288
|
*/
|
|
1163
|
-
Ats.prototype.listAtsCandidates = function (req,
|
|
1289
|
+
Ats.prototype.listAtsCandidates = function (req, config) {
|
|
1164
1290
|
var _a, _b;
|
|
1165
1291
|
return __awaiter(this, void 0, void 0, function () {
|
|
1166
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1292
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1167
1293
|
return __generator(this, function (_c) {
|
|
1168
1294
|
switch (_c.label) {
|
|
1169
1295
|
case 0:
|
|
@@ -1173,16 +1299,23 @@ var Ats = /** @class */ (function () {
|
|
|
1173
1299
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1174
1300
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate", req);
|
|
1175
1301
|
client = this.sdkConfiguration.defaultClient;
|
|
1176
|
-
|
|
1177
|
-
|
|
1302
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1303
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1304
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1305
|
+
case 1:
|
|
1306
|
+
globalSecurity = _c.sent();
|
|
1307
|
+
_c.label = 2;
|
|
1308
|
+
case 2:
|
|
1309
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1310
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1178
1311
|
}
|
|
1179
|
-
properties = utils.parseSecurityProperties(
|
|
1312
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1180
1313
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1181
1314
|
queryParams = utils.serializeQueryParams(req);
|
|
1182
1315
|
headers["Accept"] = "application/json";
|
|
1183
1316
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1184
1317
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1185
|
-
case
|
|
1318
|
+
case 3:
|
|
1186
1319
|
httpRes = _c.sent();
|
|
1187
1320
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1188
1321
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1217,10 +1350,10 @@ var Ats = /** @class */ (function () {
|
|
|
1217
1350
|
/**
|
|
1218
1351
|
* List all companies
|
|
1219
1352
|
*/
|
|
1220
|
-
Ats.prototype.listAtsCompanies = function (req,
|
|
1353
|
+
Ats.prototype.listAtsCompanies = function (req, config) {
|
|
1221
1354
|
var _a, _b;
|
|
1222
1355
|
return __awaiter(this, void 0, void 0, function () {
|
|
1223
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1356
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1224
1357
|
return __generator(this, function (_c) {
|
|
1225
1358
|
switch (_c.label) {
|
|
1226
1359
|
case 0:
|
|
@@ -1230,16 +1363,23 @@ var Ats = /** @class */ (function () {
|
|
|
1230
1363
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1231
1364
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company", req);
|
|
1232
1365
|
client = this.sdkConfiguration.defaultClient;
|
|
1233
|
-
|
|
1234
|
-
|
|
1366
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1367
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1368
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1369
|
+
case 1:
|
|
1370
|
+
globalSecurity = _c.sent();
|
|
1371
|
+
_c.label = 2;
|
|
1372
|
+
case 2:
|
|
1373
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1374
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1235
1375
|
}
|
|
1236
|
-
properties = utils.parseSecurityProperties(
|
|
1376
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1237
1377
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1238
1378
|
queryParams = utils.serializeQueryParams(req);
|
|
1239
1379
|
headers["Accept"] = "application/json";
|
|
1240
1380
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1241
1381
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1242
|
-
case
|
|
1382
|
+
case 3:
|
|
1243
1383
|
httpRes = _c.sent();
|
|
1244
1384
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1245
1385
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1274,10 +1414,10 @@ var Ats = /** @class */ (function () {
|
|
|
1274
1414
|
/**
|
|
1275
1415
|
* List all documents
|
|
1276
1416
|
*/
|
|
1277
|
-
Ats.prototype.listAtsDocuments = function (req,
|
|
1417
|
+
Ats.prototype.listAtsDocuments = function (req, config) {
|
|
1278
1418
|
var _a, _b;
|
|
1279
1419
|
return __awaiter(this, void 0, void 0, function () {
|
|
1280
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1420
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1281
1421
|
return __generator(this, function (_c) {
|
|
1282
1422
|
switch (_c.label) {
|
|
1283
1423
|
case 0:
|
|
@@ -1287,16 +1427,23 @@ var Ats = /** @class */ (function () {
|
|
|
1287
1427
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1288
1428
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document", req);
|
|
1289
1429
|
client = this.sdkConfiguration.defaultClient;
|
|
1290
|
-
|
|
1291
|
-
|
|
1430
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1431
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1432
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1433
|
+
case 1:
|
|
1434
|
+
globalSecurity = _c.sent();
|
|
1435
|
+
_c.label = 2;
|
|
1436
|
+
case 2:
|
|
1437
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1438
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1292
1439
|
}
|
|
1293
|
-
properties = utils.parseSecurityProperties(
|
|
1440
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1294
1441
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1295
1442
|
queryParams = utils.serializeQueryParams(req);
|
|
1296
1443
|
headers["Accept"] = "application/json";
|
|
1297
1444
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1298
1445
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1299
|
-
case
|
|
1446
|
+
case 3:
|
|
1300
1447
|
httpRes = _c.sent();
|
|
1301
1448
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1302
1449
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1331,10 +1478,10 @@ var Ats = /** @class */ (function () {
|
|
|
1331
1478
|
/**
|
|
1332
1479
|
* List all interviews
|
|
1333
1480
|
*/
|
|
1334
|
-
Ats.prototype.listAtsInterviews = function (req,
|
|
1481
|
+
Ats.prototype.listAtsInterviews = function (req, config) {
|
|
1335
1482
|
var _a, _b;
|
|
1336
1483
|
return __awaiter(this, void 0, void 0, function () {
|
|
1337
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1484
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1338
1485
|
return __generator(this, function (_c) {
|
|
1339
1486
|
switch (_c.label) {
|
|
1340
1487
|
case 0:
|
|
@@ -1344,16 +1491,23 @@ var Ats = /** @class */ (function () {
|
|
|
1344
1491
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1345
1492
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview", req);
|
|
1346
1493
|
client = this.sdkConfiguration.defaultClient;
|
|
1347
|
-
|
|
1348
|
-
|
|
1494
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1495
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1496
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1497
|
+
case 1:
|
|
1498
|
+
globalSecurity = _c.sent();
|
|
1499
|
+
_c.label = 2;
|
|
1500
|
+
case 2:
|
|
1501
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1502
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1349
1503
|
}
|
|
1350
|
-
properties = utils.parseSecurityProperties(
|
|
1504
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1351
1505
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1352
1506
|
queryParams = utils.serializeQueryParams(req);
|
|
1353
1507
|
headers["Accept"] = "application/json";
|
|
1354
1508
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1355
1509
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1356
|
-
case
|
|
1510
|
+
case 3:
|
|
1357
1511
|
httpRes = _c.sent();
|
|
1358
1512
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1359
1513
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1388,10 +1542,10 @@ var Ats = /** @class */ (function () {
|
|
|
1388
1542
|
/**
|
|
1389
1543
|
* List all jobs
|
|
1390
1544
|
*/
|
|
1391
|
-
Ats.prototype.listAtsJobs = function (req,
|
|
1545
|
+
Ats.prototype.listAtsJobs = function (req, config) {
|
|
1392
1546
|
var _a, _b;
|
|
1393
1547
|
return __awaiter(this, void 0, void 0, function () {
|
|
1394
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1548
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1395
1549
|
return __generator(this, function (_c) {
|
|
1396
1550
|
switch (_c.label) {
|
|
1397
1551
|
case 0:
|
|
@@ -1401,16 +1555,23 @@ var Ats = /** @class */ (function () {
|
|
|
1401
1555
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1402
1556
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job", req);
|
|
1403
1557
|
client = this.sdkConfiguration.defaultClient;
|
|
1404
|
-
|
|
1405
|
-
|
|
1558
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1559
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1560
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1561
|
+
case 1:
|
|
1562
|
+
globalSecurity = _c.sent();
|
|
1563
|
+
_c.label = 2;
|
|
1564
|
+
case 2:
|
|
1565
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1566
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1406
1567
|
}
|
|
1407
|
-
properties = utils.parseSecurityProperties(
|
|
1568
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1408
1569
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1409
1570
|
queryParams = utils.serializeQueryParams(req);
|
|
1410
1571
|
headers["Accept"] = "application/json";
|
|
1411
1572
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1412
1573
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1413
|
-
case
|
|
1574
|
+
case 3:
|
|
1414
1575
|
httpRes = _c.sent();
|
|
1415
1576
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1416
1577
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1445,10 +1606,10 @@ var Ats = /** @class */ (function () {
|
|
|
1445
1606
|
/**
|
|
1446
1607
|
* List all scorecards
|
|
1447
1608
|
*/
|
|
1448
|
-
Ats.prototype.listAtsScorecards = function (req,
|
|
1609
|
+
Ats.prototype.listAtsScorecards = function (req, config) {
|
|
1449
1610
|
var _a, _b;
|
|
1450
1611
|
return __awaiter(this, void 0, void 0, function () {
|
|
1451
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1612
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1452
1613
|
return __generator(this, function (_c) {
|
|
1453
1614
|
switch (_c.label) {
|
|
1454
1615
|
case 0:
|
|
@@ -1458,16 +1619,23 @@ var Ats = /** @class */ (function () {
|
|
|
1458
1619
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1459
1620
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard", req);
|
|
1460
1621
|
client = this.sdkConfiguration.defaultClient;
|
|
1461
|
-
|
|
1462
|
-
|
|
1622
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1623
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1624
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1625
|
+
case 1:
|
|
1626
|
+
globalSecurity = _c.sent();
|
|
1627
|
+
_c.label = 2;
|
|
1628
|
+
case 2:
|
|
1629
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1630
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1463
1631
|
}
|
|
1464
|
-
properties = utils.parseSecurityProperties(
|
|
1632
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1465
1633
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1466
1634
|
queryParams = utils.serializeQueryParams(req);
|
|
1467
1635
|
headers["Accept"] = "application/json";
|
|
1468
1636
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1469
1637
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1470
|
-
case
|
|
1638
|
+
case 3:
|
|
1471
1639
|
httpRes = _c.sent();
|
|
1472
1640
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1473
1641
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1502,10 +1670,10 @@ var Ats = /** @class */ (function () {
|
|
|
1502
1670
|
/**
|
|
1503
1671
|
* Update an activity
|
|
1504
1672
|
*/
|
|
1505
|
-
Ats.prototype.patchAtsActivity = function (req,
|
|
1673
|
+
Ats.prototype.patchAtsActivity = function (req, config) {
|
|
1506
1674
|
var _a, _b;
|
|
1507
1675
|
return __awaiter(this, void 0, void 0, function () {
|
|
1508
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1676
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1509
1677
|
var _d;
|
|
1510
1678
|
return __generator(this, function (_e) {
|
|
1511
1679
|
switch (_e.label) {
|
|
@@ -1525,15 +1693,22 @@ var Ats = /** @class */ (function () {
|
|
|
1525
1693
|
}
|
|
1526
1694
|
}
|
|
1527
1695
|
client = this.sdkConfiguration.defaultClient;
|
|
1528
|
-
|
|
1529
|
-
|
|
1696
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1697
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1698
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1699
|
+
case 1:
|
|
1700
|
+
globalSecurity = _e.sent();
|
|
1701
|
+
_e.label = 2;
|
|
1702
|
+
case 2:
|
|
1703
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1704
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1530
1705
|
}
|
|
1531
|
-
properties = utils.parseSecurityProperties(
|
|
1706
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1532
1707
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1533
1708
|
headers["Accept"] = "application/json";
|
|
1534
1709
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1535
1710
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1536
|
-
case
|
|
1711
|
+
case 3:
|
|
1537
1712
|
httpRes = _e.sent();
|
|
1538
1713
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1539
1714
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1566,10 +1741,10 @@ var Ats = /** @class */ (function () {
|
|
|
1566
1741
|
/**
|
|
1567
1742
|
* Update an application
|
|
1568
1743
|
*/
|
|
1569
|
-
Ats.prototype.patchAtsApplication = function (req,
|
|
1744
|
+
Ats.prototype.patchAtsApplication = function (req, config) {
|
|
1570
1745
|
var _a, _b;
|
|
1571
1746
|
return __awaiter(this, void 0, void 0, function () {
|
|
1572
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1747
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1573
1748
|
var _d;
|
|
1574
1749
|
return __generator(this, function (_e) {
|
|
1575
1750
|
switch (_e.label) {
|
|
@@ -1589,15 +1764,22 @@ var Ats = /** @class */ (function () {
|
|
|
1589
1764
|
}
|
|
1590
1765
|
}
|
|
1591
1766
|
client = this.sdkConfiguration.defaultClient;
|
|
1592
|
-
|
|
1593
|
-
|
|
1767
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1768
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1769
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1770
|
+
case 1:
|
|
1771
|
+
globalSecurity = _e.sent();
|
|
1772
|
+
_e.label = 2;
|
|
1773
|
+
case 2:
|
|
1774
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1775
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1594
1776
|
}
|
|
1595
|
-
properties = utils.parseSecurityProperties(
|
|
1777
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1596
1778
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1597
1779
|
headers["Accept"] = "application/json";
|
|
1598
1780
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1599
1781
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1600
|
-
case
|
|
1782
|
+
case 3:
|
|
1601
1783
|
httpRes = _e.sent();
|
|
1602
1784
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1603
1785
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1630,10 +1812,10 @@ var Ats = /** @class */ (function () {
|
|
|
1630
1812
|
/**
|
|
1631
1813
|
* Update a candidate
|
|
1632
1814
|
*/
|
|
1633
|
-
Ats.prototype.patchAtsCandidate = function (req,
|
|
1815
|
+
Ats.prototype.patchAtsCandidate = function (req, config) {
|
|
1634
1816
|
var _a, _b;
|
|
1635
1817
|
return __awaiter(this, void 0, void 0, function () {
|
|
1636
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1818
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1637
1819
|
var _d;
|
|
1638
1820
|
return __generator(this, function (_e) {
|
|
1639
1821
|
switch (_e.label) {
|
|
@@ -1653,15 +1835,22 @@ var Ats = /** @class */ (function () {
|
|
|
1653
1835
|
}
|
|
1654
1836
|
}
|
|
1655
1837
|
client = this.sdkConfiguration.defaultClient;
|
|
1656
|
-
|
|
1657
|
-
|
|
1838
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1839
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1840
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1841
|
+
case 1:
|
|
1842
|
+
globalSecurity = _e.sent();
|
|
1843
|
+
_e.label = 2;
|
|
1844
|
+
case 2:
|
|
1845
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1846
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1658
1847
|
}
|
|
1659
|
-
properties = utils.parseSecurityProperties(
|
|
1848
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1660
1849
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1661
1850
|
headers["Accept"] = "application/json";
|
|
1662
1851
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1663
1852
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1664
|
-
case
|
|
1853
|
+
case 3:
|
|
1665
1854
|
httpRes = _e.sent();
|
|
1666
1855
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1667
1856
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1694,10 +1883,10 @@ var Ats = /** @class */ (function () {
|
|
|
1694
1883
|
/**
|
|
1695
1884
|
* Update a document
|
|
1696
1885
|
*/
|
|
1697
|
-
Ats.prototype.patchAtsDocument = function (req,
|
|
1886
|
+
Ats.prototype.patchAtsDocument = function (req, config) {
|
|
1698
1887
|
var _a, _b;
|
|
1699
1888
|
return __awaiter(this, void 0, void 0, function () {
|
|
1700
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1889
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1701
1890
|
var _d;
|
|
1702
1891
|
return __generator(this, function (_e) {
|
|
1703
1892
|
switch (_e.label) {
|
|
@@ -1717,15 +1906,22 @@ var Ats = /** @class */ (function () {
|
|
|
1717
1906
|
}
|
|
1718
1907
|
}
|
|
1719
1908
|
client = this.sdkConfiguration.defaultClient;
|
|
1720
|
-
|
|
1721
|
-
|
|
1909
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1910
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1911
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1912
|
+
case 1:
|
|
1913
|
+
globalSecurity = _e.sent();
|
|
1914
|
+
_e.label = 2;
|
|
1915
|
+
case 2:
|
|
1916
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1917
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1722
1918
|
}
|
|
1723
|
-
properties = utils.parseSecurityProperties(
|
|
1919
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1724
1920
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1725
1921
|
headers["Accept"] = "application/json";
|
|
1726
1922
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1727
1923
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1728
|
-
case
|
|
1924
|
+
case 3:
|
|
1729
1925
|
httpRes = _e.sent();
|
|
1730
1926
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1731
1927
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1758,10 +1954,10 @@ var Ats = /** @class */ (function () {
|
|
|
1758
1954
|
/**
|
|
1759
1955
|
* Update a interview
|
|
1760
1956
|
*/
|
|
1761
|
-
Ats.prototype.patchAtsInterview = function (req,
|
|
1957
|
+
Ats.prototype.patchAtsInterview = function (req, config) {
|
|
1762
1958
|
var _a, _b;
|
|
1763
1959
|
return __awaiter(this, void 0, void 0, function () {
|
|
1764
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1960
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1765
1961
|
var _d;
|
|
1766
1962
|
return __generator(this, function (_e) {
|
|
1767
1963
|
switch (_e.label) {
|
|
@@ -1781,15 +1977,22 @@ var Ats = /** @class */ (function () {
|
|
|
1781
1977
|
}
|
|
1782
1978
|
}
|
|
1783
1979
|
client = this.sdkConfiguration.defaultClient;
|
|
1784
|
-
|
|
1785
|
-
|
|
1980
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1981
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1982
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1983
|
+
case 1:
|
|
1984
|
+
globalSecurity = _e.sent();
|
|
1985
|
+
_e.label = 2;
|
|
1986
|
+
case 2:
|
|
1987
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1988
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1786
1989
|
}
|
|
1787
|
-
properties = utils.parseSecurityProperties(
|
|
1990
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1788
1991
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1789
1992
|
headers["Accept"] = "application/json";
|
|
1790
1993
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1791
1994
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1792
|
-
case
|
|
1995
|
+
case 3:
|
|
1793
1996
|
httpRes = _e.sent();
|
|
1794
1997
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1795
1998
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1822,10 +2025,10 @@ var Ats = /** @class */ (function () {
|
|
|
1822
2025
|
/**
|
|
1823
2026
|
* Update a job
|
|
1824
2027
|
*/
|
|
1825
|
-
Ats.prototype.patchAtsJob = function (req,
|
|
2028
|
+
Ats.prototype.patchAtsJob = function (req, config) {
|
|
1826
2029
|
var _a, _b;
|
|
1827
2030
|
return __awaiter(this, void 0, void 0, function () {
|
|
1828
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2031
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1829
2032
|
var _d;
|
|
1830
2033
|
return __generator(this, function (_e) {
|
|
1831
2034
|
switch (_e.label) {
|
|
@@ -1845,15 +2048,22 @@ var Ats = /** @class */ (function () {
|
|
|
1845
2048
|
}
|
|
1846
2049
|
}
|
|
1847
2050
|
client = this.sdkConfiguration.defaultClient;
|
|
1848
|
-
|
|
1849
|
-
|
|
2051
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2052
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2053
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2054
|
+
case 1:
|
|
2055
|
+
globalSecurity = _e.sent();
|
|
2056
|
+
_e.label = 2;
|
|
2057
|
+
case 2:
|
|
2058
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2059
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1850
2060
|
}
|
|
1851
|
-
properties = utils.parseSecurityProperties(
|
|
2061
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1852
2062
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1853
2063
|
headers["Accept"] = "application/json";
|
|
1854
2064
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1855
2065
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1856
|
-
case
|
|
2066
|
+
case 3:
|
|
1857
2067
|
httpRes = _e.sent();
|
|
1858
2068
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1859
2069
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1886,10 +2096,10 @@ var Ats = /** @class */ (function () {
|
|
|
1886
2096
|
/**
|
|
1887
2097
|
* Update a scorecard
|
|
1888
2098
|
*/
|
|
1889
|
-
Ats.prototype.patchAtsScorecard = function (req,
|
|
2099
|
+
Ats.prototype.patchAtsScorecard = function (req, config) {
|
|
1890
2100
|
var _a, _b;
|
|
1891
2101
|
return __awaiter(this, void 0, void 0, function () {
|
|
1892
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2102
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1893
2103
|
var _d;
|
|
1894
2104
|
return __generator(this, function (_e) {
|
|
1895
2105
|
switch (_e.label) {
|
|
@@ -1909,15 +2119,22 @@ var Ats = /** @class */ (function () {
|
|
|
1909
2119
|
}
|
|
1910
2120
|
}
|
|
1911
2121
|
client = this.sdkConfiguration.defaultClient;
|
|
1912
|
-
|
|
1913
|
-
|
|
2122
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2123
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2124
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2125
|
+
case 1:
|
|
2126
|
+
globalSecurity = _e.sent();
|
|
2127
|
+
_e.label = 2;
|
|
2128
|
+
case 2:
|
|
2129
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2130
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1914
2131
|
}
|
|
1915
|
-
properties = utils.parseSecurityProperties(
|
|
2132
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1916
2133
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1917
2134
|
headers["Accept"] = "application/json";
|
|
1918
2135
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1919
2136
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1920
|
-
case
|
|
2137
|
+
case 3:
|
|
1921
2138
|
httpRes = _e.sent();
|
|
1922
2139
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1923
2140
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1950,10 +2167,10 @@ var Ats = /** @class */ (function () {
|
|
|
1950
2167
|
/**
|
|
1951
2168
|
* Remove an activity
|
|
1952
2169
|
*/
|
|
1953
|
-
Ats.prototype.removeAtsActivity = function (req,
|
|
2170
|
+
Ats.prototype.removeAtsActivity = function (req, config) {
|
|
1954
2171
|
var _a, _b;
|
|
1955
2172
|
return __awaiter(this, void 0, void 0, function () {
|
|
1956
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2173
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1957
2174
|
return __generator(this, function (_c) {
|
|
1958
2175
|
switch (_c.label) {
|
|
1959
2176
|
case 0:
|
|
@@ -1963,15 +2180,22 @@ var Ats = /** @class */ (function () {
|
|
|
1963
2180
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1964
2181
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
|
|
1965
2182
|
client = this.sdkConfiguration.defaultClient;
|
|
1966
|
-
|
|
1967
|
-
|
|
2183
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2184
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2185
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2186
|
+
case 1:
|
|
2187
|
+
globalSecurity = _c.sent();
|
|
2188
|
+
_c.label = 2;
|
|
2189
|
+
case 2:
|
|
2190
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2191
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1968
2192
|
}
|
|
1969
|
-
properties = utils.parseSecurityProperties(
|
|
2193
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1970
2194
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1971
2195
|
headers["Accept"] = "application/json";
|
|
1972
2196
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1973
2197
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1974
|
-
case
|
|
2198
|
+
case 3:
|
|
1975
2199
|
httpRes = _c.sent();
|
|
1976
2200
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1977
2201
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2004,10 +2228,10 @@ var Ats = /** @class */ (function () {
|
|
|
2004
2228
|
/**
|
|
2005
2229
|
* Remove an application
|
|
2006
2230
|
*/
|
|
2007
|
-
Ats.prototype.removeAtsApplication = function (req,
|
|
2231
|
+
Ats.prototype.removeAtsApplication = function (req, config) {
|
|
2008
2232
|
var _a, _b;
|
|
2009
2233
|
return __awaiter(this, void 0, void 0, function () {
|
|
2010
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2234
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2011
2235
|
return __generator(this, function (_c) {
|
|
2012
2236
|
switch (_c.label) {
|
|
2013
2237
|
case 0:
|
|
@@ -2017,15 +2241,22 @@ var Ats = /** @class */ (function () {
|
|
|
2017
2241
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2018
2242
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
|
|
2019
2243
|
client = this.sdkConfiguration.defaultClient;
|
|
2020
|
-
|
|
2021
|
-
|
|
2244
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2245
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2246
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2247
|
+
case 1:
|
|
2248
|
+
globalSecurity = _c.sent();
|
|
2249
|
+
_c.label = 2;
|
|
2250
|
+
case 2:
|
|
2251
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2252
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2022
2253
|
}
|
|
2023
|
-
properties = utils.parseSecurityProperties(
|
|
2254
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2024
2255
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2025
2256
|
headers["Accept"] = "application/json";
|
|
2026
2257
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2027
2258
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2028
|
-
case
|
|
2259
|
+
case 3:
|
|
2029
2260
|
httpRes = _c.sent();
|
|
2030
2261
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2031
2262
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2058,10 +2289,10 @@ var Ats = /** @class */ (function () {
|
|
|
2058
2289
|
/**
|
|
2059
2290
|
* Remove a candidate
|
|
2060
2291
|
*/
|
|
2061
|
-
Ats.prototype.removeAtsCandidate = function (req,
|
|
2292
|
+
Ats.prototype.removeAtsCandidate = function (req, config) {
|
|
2062
2293
|
var _a, _b;
|
|
2063
2294
|
return __awaiter(this, void 0, void 0, function () {
|
|
2064
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2295
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2065
2296
|
return __generator(this, function (_c) {
|
|
2066
2297
|
switch (_c.label) {
|
|
2067
2298
|
case 0:
|
|
@@ -2071,15 +2302,22 @@ var Ats = /** @class */ (function () {
|
|
|
2071
2302
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2072
2303
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
|
|
2073
2304
|
client = this.sdkConfiguration.defaultClient;
|
|
2074
|
-
|
|
2075
|
-
|
|
2305
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2306
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2307
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2308
|
+
case 1:
|
|
2309
|
+
globalSecurity = _c.sent();
|
|
2310
|
+
_c.label = 2;
|
|
2311
|
+
case 2:
|
|
2312
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2313
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2076
2314
|
}
|
|
2077
|
-
properties = utils.parseSecurityProperties(
|
|
2315
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2078
2316
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2079
2317
|
headers["Accept"] = "application/json";
|
|
2080
2318
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2081
2319
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2082
|
-
case
|
|
2320
|
+
case 3:
|
|
2083
2321
|
httpRes = _c.sent();
|
|
2084
2322
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2085
2323
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2112,10 +2350,10 @@ var Ats = /** @class */ (function () {
|
|
|
2112
2350
|
/**
|
|
2113
2351
|
* Remove a document
|
|
2114
2352
|
*/
|
|
2115
|
-
Ats.prototype.removeAtsDocument = function (req,
|
|
2353
|
+
Ats.prototype.removeAtsDocument = function (req, config) {
|
|
2116
2354
|
var _a, _b;
|
|
2117
2355
|
return __awaiter(this, void 0, void 0, function () {
|
|
2118
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2356
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2119
2357
|
return __generator(this, function (_c) {
|
|
2120
2358
|
switch (_c.label) {
|
|
2121
2359
|
case 0:
|
|
@@ -2125,15 +2363,22 @@ var Ats = /** @class */ (function () {
|
|
|
2125
2363
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2126
2364
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
|
|
2127
2365
|
client = this.sdkConfiguration.defaultClient;
|
|
2128
|
-
|
|
2129
|
-
|
|
2366
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2367
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2368
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2369
|
+
case 1:
|
|
2370
|
+
globalSecurity = _c.sent();
|
|
2371
|
+
_c.label = 2;
|
|
2372
|
+
case 2:
|
|
2373
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2374
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2130
2375
|
}
|
|
2131
|
-
properties = utils.parseSecurityProperties(
|
|
2376
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2132
2377
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2133
2378
|
headers["Accept"] = "application/json";
|
|
2134
2379
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2135
2380
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2136
|
-
case
|
|
2381
|
+
case 3:
|
|
2137
2382
|
httpRes = _c.sent();
|
|
2138
2383
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2139
2384
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2166,10 +2411,10 @@ var Ats = /** @class */ (function () {
|
|
|
2166
2411
|
/**
|
|
2167
2412
|
* Remove a interview
|
|
2168
2413
|
*/
|
|
2169
|
-
Ats.prototype.removeAtsInterview = function (req,
|
|
2414
|
+
Ats.prototype.removeAtsInterview = function (req, config) {
|
|
2170
2415
|
var _a, _b;
|
|
2171
2416
|
return __awaiter(this, void 0, void 0, function () {
|
|
2172
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2417
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2173
2418
|
return __generator(this, function (_c) {
|
|
2174
2419
|
switch (_c.label) {
|
|
2175
2420
|
case 0:
|
|
@@ -2179,15 +2424,22 @@ var Ats = /** @class */ (function () {
|
|
|
2179
2424
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2180
2425
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
|
|
2181
2426
|
client = this.sdkConfiguration.defaultClient;
|
|
2182
|
-
|
|
2183
|
-
|
|
2427
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2428
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2429
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2430
|
+
case 1:
|
|
2431
|
+
globalSecurity = _c.sent();
|
|
2432
|
+
_c.label = 2;
|
|
2433
|
+
case 2:
|
|
2434
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2435
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2184
2436
|
}
|
|
2185
|
-
properties = utils.parseSecurityProperties(
|
|
2437
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2186
2438
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2187
2439
|
headers["Accept"] = "application/json";
|
|
2188
2440
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2189
2441
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2190
|
-
case
|
|
2442
|
+
case 3:
|
|
2191
2443
|
httpRes = _c.sent();
|
|
2192
2444
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2193
2445
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2220,10 +2472,10 @@ var Ats = /** @class */ (function () {
|
|
|
2220
2472
|
/**
|
|
2221
2473
|
* Remove a job
|
|
2222
2474
|
*/
|
|
2223
|
-
Ats.prototype.removeAtsJob = function (req,
|
|
2475
|
+
Ats.prototype.removeAtsJob = function (req, config) {
|
|
2224
2476
|
var _a, _b;
|
|
2225
2477
|
return __awaiter(this, void 0, void 0, function () {
|
|
2226
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2478
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2227
2479
|
return __generator(this, function (_c) {
|
|
2228
2480
|
switch (_c.label) {
|
|
2229
2481
|
case 0:
|
|
@@ -2233,15 +2485,22 @@ var Ats = /** @class */ (function () {
|
|
|
2233
2485
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2234
2486
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
|
|
2235
2487
|
client = this.sdkConfiguration.defaultClient;
|
|
2236
|
-
|
|
2237
|
-
|
|
2488
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2489
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2490
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2491
|
+
case 1:
|
|
2492
|
+
globalSecurity = _c.sent();
|
|
2493
|
+
_c.label = 2;
|
|
2494
|
+
case 2:
|
|
2495
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2496
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2238
2497
|
}
|
|
2239
|
-
properties = utils.parseSecurityProperties(
|
|
2498
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2240
2499
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2241
2500
|
headers["Accept"] = "application/json";
|
|
2242
2501
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2243
2502
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2244
|
-
case
|
|
2503
|
+
case 3:
|
|
2245
2504
|
httpRes = _c.sent();
|
|
2246
2505
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2247
2506
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2274,10 +2533,10 @@ var Ats = /** @class */ (function () {
|
|
|
2274
2533
|
/**
|
|
2275
2534
|
* Remove a scorecard
|
|
2276
2535
|
*/
|
|
2277
|
-
Ats.prototype.removeAtsScorecard = function (req,
|
|
2536
|
+
Ats.prototype.removeAtsScorecard = function (req, config) {
|
|
2278
2537
|
var _a, _b;
|
|
2279
2538
|
return __awaiter(this, void 0, void 0, function () {
|
|
2280
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2539
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2281
2540
|
return __generator(this, function (_c) {
|
|
2282
2541
|
switch (_c.label) {
|
|
2283
2542
|
case 0:
|
|
@@ -2287,15 +2546,22 @@ var Ats = /** @class */ (function () {
|
|
|
2287
2546
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2288
2547
|
operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
|
|
2289
2548
|
client = this.sdkConfiguration.defaultClient;
|
|
2290
|
-
|
|
2291
|
-
|
|
2549
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2550
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2551
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2552
|
+
case 1:
|
|
2553
|
+
globalSecurity = _c.sent();
|
|
2554
|
+
_c.label = 2;
|
|
2555
|
+
case 2:
|
|
2556
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2557
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2292
2558
|
}
|
|
2293
|
-
properties = utils.parseSecurityProperties(
|
|
2559
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2294
2560
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2295
2561
|
headers["Accept"] = "application/json";
|
|
2296
2562
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2297
2563
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2298
|
-
case
|
|
2564
|
+
case 3:
|
|
2299
2565
|
httpRes = _c.sent();
|
|
2300
2566
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2301
2567
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2328,10 +2594,10 @@ var Ats = /** @class */ (function () {
|
|
|
2328
2594
|
/**
|
|
2329
2595
|
* Update an activity
|
|
2330
2596
|
*/
|
|
2331
|
-
Ats.prototype.updateAtsActivity = function (req,
|
|
2597
|
+
Ats.prototype.updateAtsActivity = function (req, config) {
|
|
2332
2598
|
var _a, _b;
|
|
2333
2599
|
return __awaiter(this, void 0, void 0, function () {
|
|
2334
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2600
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2335
2601
|
var _d;
|
|
2336
2602
|
return __generator(this, function (_e) {
|
|
2337
2603
|
switch (_e.label) {
|
|
@@ -2351,15 +2617,22 @@ var Ats = /** @class */ (function () {
|
|
|
2351
2617
|
}
|
|
2352
2618
|
}
|
|
2353
2619
|
client = this.sdkConfiguration.defaultClient;
|
|
2354
|
-
|
|
2355
|
-
|
|
2620
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2621
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2622
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2623
|
+
case 1:
|
|
2624
|
+
globalSecurity = _e.sent();
|
|
2625
|
+
_e.label = 2;
|
|
2626
|
+
case 2:
|
|
2627
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2628
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2356
2629
|
}
|
|
2357
|
-
properties = utils.parseSecurityProperties(
|
|
2630
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2358
2631
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2359
2632
|
headers["Accept"] = "application/json";
|
|
2360
2633
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2361
2634
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2362
|
-
case
|
|
2635
|
+
case 3:
|
|
2363
2636
|
httpRes = _e.sent();
|
|
2364
2637
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2365
2638
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2392,10 +2665,10 @@ var Ats = /** @class */ (function () {
|
|
|
2392
2665
|
/**
|
|
2393
2666
|
* Update an application
|
|
2394
2667
|
*/
|
|
2395
|
-
Ats.prototype.updateAtsApplication = function (req,
|
|
2668
|
+
Ats.prototype.updateAtsApplication = function (req, config) {
|
|
2396
2669
|
var _a, _b;
|
|
2397
2670
|
return __awaiter(this, void 0, void 0, function () {
|
|
2398
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2671
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2399
2672
|
var _d;
|
|
2400
2673
|
return __generator(this, function (_e) {
|
|
2401
2674
|
switch (_e.label) {
|
|
@@ -2415,15 +2688,22 @@ var Ats = /** @class */ (function () {
|
|
|
2415
2688
|
}
|
|
2416
2689
|
}
|
|
2417
2690
|
client = this.sdkConfiguration.defaultClient;
|
|
2418
|
-
|
|
2419
|
-
|
|
2691
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2692
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2693
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2694
|
+
case 1:
|
|
2695
|
+
globalSecurity = _e.sent();
|
|
2696
|
+
_e.label = 2;
|
|
2697
|
+
case 2:
|
|
2698
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2699
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2420
2700
|
}
|
|
2421
|
-
properties = utils.parseSecurityProperties(
|
|
2701
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2422
2702
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2423
2703
|
headers["Accept"] = "application/json";
|
|
2424
2704
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2425
2705
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2426
|
-
case
|
|
2706
|
+
case 3:
|
|
2427
2707
|
httpRes = _e.sent();
|
|
2428
2708
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2429
2709
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2456,10 +2736,10 @@ var Ats = /** @class */ (function () {
|
|
|
2456
2736
|
/**
|
|
2457
2737
|
* Update a candidate
|
|
2458
2738
|
*/
|
|
2459
|
-
Ats.prototype.updateAtsCandidate = function (req,
|
|
2739
|
+
Ats.prototype.updateAtsCandidate = function (req, config) {
|
|
2460
2740
|
var _a, _b;
|
|
2461
2741
|
return __awaiter(this, void 0, void 0, function () {
|
|
2462
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2742
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2463
2743
|
var _d;
|
|
2464
2744
|
return __generator(this, function (_e) {
|
|
2465
2745
|
switch (_e.label) {
|
|
@@ -2479,15 +2759,22 @@ var Ats = /** @class */ (function () {
|
|
|
2479
2759
|
}
|
|
2480
2760
|
}
|
|
2481
2761
|
client = this.sdkConfiguration.defaultClient;
|
|
2482
|
-
|
|
2483
|
-
|
|
2762
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2763
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2764
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2765
|
+
case 1:
|
|
2766
|
+
globalSecurity = _e.sent();
|
|
2767
|
+
_e.label = 2;
|
|
2768
|
+
case 2:
|
|
2769
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2770
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2484
2771
|
}
|
|
2485
|
-
properties = utils.parseSecurityProperties(
|
|
2772
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2486
2773
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2487
2774
|
headers["Accept"] = "application/json";
|
|
2488
2775
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2489
2776
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2490
|
-
case
|
|
2777
|
+
case 3:
|
|
2491
2778
|
httpRes = _e.sent();
|
|
2492
2779
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2493
2780
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2520,10 +2807,10 @@ var Ats = /** @class */ (function () {
|
|
|
2520
2807
|
/**
|
|
2521
2808
|
* Update a document
|
|
2522
2809
|
*/
|
|
2523
|
-
Ats.prototype.updateAtsDocument = function (req,
|
|
2810
|
+
Ats.prototype.updateAtsDocument = function (req, config) {
|
|
2524
2811
|
var _a, _b;
|
|
2525
2812
|
return __awaiter(this, void 0, void 0, function () {
|
|
2526
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2813
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2527
2814
|
var _d;
|
|
2528
2815
|
return __generator(this, function (_e) {
|
|
2529
2816
|
switch (_e.label) {
|
|
@@ -2543,15 +2830,22 @@ var Ats = /** @class */ (function () {
|
|
|
2543
2830
|
}
|
|
2544
2831
|
}
|
|
2545
2832
|
client = this.sdkConfiguration.defaultClient;
|
|
2546
|
-
|
|
2547
|
-
|
|
2833
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2834
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2835
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2836
|
+
case 1:
|
|
2837
|
+
globalSecurity = _e.sent();
|
|
2838
|
+
_e.label = 2;
|
|
2839
|
+
case 2:
|
|
2840
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2841
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2548
2842
|
}
|
|
2549
|
-
properties = utils.parseSecurityProperties(
|
|
2843
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2550
2844
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2551
2845
|
headers["Accept"] = "application/json";
|
|
2552
2846
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2553
2847
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2554
|
-
case
|
|
2848
|
+
case 3:
|
|
2555
2849
|
httpRes = _e.sent();
|
|
2556
2850
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2557
2851
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2584,10 +2878,10 @@ var Ats = /** @class */ (function () {
|
|
|
2584
2878
|
/**
|
|
2585
2879
|
* Update a interview
|
|
2586
2880
|
*/
|
|
2587
|
-
Ats.prototype.updateAtsInterview = function (req,
|
|
2881
|
+
Ats.prototype.updateAtsInterview = function (req, config) {
|
|
2588
2882
|
var _a, _b;
|
|
2589
2883
|
return __awaiter(this, void 0, void 0, function () {
|
|
2590
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2884
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2591
2885
|
var _d;
|
|
2592
2886
|
return __generator(this, function (_e) {
|
|
2593
2887
|
switch (_e.label) {
|
|
@@ -2607,15 +2901,22 @@ var Ats = /** @class */ (function () {
|
|
|
2607
2901
|
}
|
|
2608
2902
|
}
|
|
2609
2903
|
client = this.sdkConfiguration.defaultClient;
|
|
2610
|
-
|
|
2611
|
-
|
|
2904
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2905
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2906
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2907
|
+
case 1:
|
|
2908
|
+
globalSecurity = _e.sent();
|
|
2909
|
+
_e.label = 2;
|
|
2910
|
+
case 2:
|
|
2911
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2912
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2612
2913
|
}
|
|
2613
|
-
properties = utils.parseSecurityProperties(
|
|
2914
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2614
2915
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2615
2916
|
headers["Accept"] = "application/json";
|
|
2616
2917
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2617
2918
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2618
|
-
case
|
|
2919
|
+
case 3:
|
|
2619
2920
|
httpRes = _e.sent();
|
|
2620
2921
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2621
2922
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2648,10 +2949,10 @@ var Ats = /** @class */ (function () {
|
|
|
2648
2949
|
/**
|
|
2649
2950
|
* Update a job
|
|
2650
2951
|
*/
|
|
2651
|
-
Ats.prototype.updateAtsJob = function (req,
|
|
2952
|
+
Ats.prototype.updateAtsJob = function (req, config) {
|
|
2652
2953
|
var _a, _b;
|
|
2653
2954
|
return __awaiter(this, void 0, void 0, function () {
|
|
2654
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2955
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2655
2956
|
var _d;
|
|
2656
2957
|
return __generator(this, function (_e) {
|
|
2657
2958
|
switch (_e.label) {
|
|
@@ -2671,15 +2972,22 @@ var Ats = /** @class */ (function () {
|
|
|
2671
2972
|
}
|
|
2672
2973
|
}
|
|
2673
2974
|
client = this.sdkConfiguration.defaultClient;
|
|
2674
|
-
|
|
2675
|
-
|
|
2975
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2976
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2977
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2978
|
+
case 1:
|
|
2979
|
+
globalSecurity = _e.sent();
|
|
2980
|
+
_e.label = 2;
|
|
2981
|
+
case 2:
|
|
2982
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2983
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2676
2984
|
}
|
|
2677
|
-
properties = utils.parseSecurityProperties(
|
|
2985
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2678
2986
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2679
2987
|
headers["Accept"] = "application/json";
|
|
2680
2988
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2681
2989
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2682
|
-
case
|
|
2990
|
+
case 3:
|
|
2683
2991
|
httpRes = _e.sent();
|
|
2684
2992
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2685
2993
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2712,10 +3020,10 @@ var Ats = /** @class */ (function () {
|
|
|
2712
3020
|
/**
|
|
2713
3021
|
* Update a scorecard
|
|
2714
3022
|
*/
|
|
2715
|
-
Ats.prototype.updateAtsScorecard = function (req,
|
|
3023
|
+
Ats.prototype.updateAtsScorecard = function (req, config) {
|
|
2716
3024
|
var _a, _b;
|
|
2717
3025
|
return __awaiter(this, void 0, void 0, function () {
|
|
2718
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
3026
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2719
3027
|
var _d;
|
|
2720
3028
|
return __generator(this, function (_e) {
|
|
2721
3029
|
switch (_e.label) {
|
|
@@ -2735,15 +3043,22 @@ var Ats = /** @class */ (function () {
|
|
|
2735
3043
|
}
|
|
2736
3044
|
}
|
|
2737
3045
|
client = this.sdkConfiguration.defaultClient;
|
|
2738
|
-
|
|
2739
|
-
|
|
3046
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
3047
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
3048
|
+
return [4 /*yield*/, globalSecurity()];
|
|
3049
|
+
case 1:
|
|
3050
|
+
globalSecurity = _e.sent();
|
|
3051
|
+
_e.label = 2;
|
|
3052
|
+
case 2:
|
|
3053
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
3054
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2740
3055
|
}
|
|
2741
|
-
properties = utils.parseSecurityProperties(
|
|
3056
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2742
3057
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2743
3058
|
headers["Accept"] = "application/json";
|
|
2744
3059
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2745
3060
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2746
|
-
case
|
|
3061
|
+
case 3:
|
|
2747
3062
|
httpRes = _e.sent();
|
|
2748
3063
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2749
3064
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|