@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/accounting.js
CHANGED
|
@@ -101,10 +101,10 @@ var Accounting = /** @class */ (function () {
|
|
|
101
101
|
/**
|
|
102
102
|
* Create an account
|
|
103
103
|
*/
|
|
104
|
-
Accounting.prototype.createAccountingAccount = function (req,
|
|
104
|
+
Accounting.prototype.createAccountingAccount = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
165
172
|
/**
|
|
166
173
|
* Create a contact
|
|
167
174
|
*/
|
|
168
|
-
Accounting.prototype.createAccountingContact = function (req,
|
|
175
|
+
Accounting.prototype.createAccountingContact = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
229
243
|
/**
|
|
230
244
|
* Create a invoice
|
|
231
245
|
*/
|
|
232
|
-
Accounting.prototype.createAccountingInvoice = function (req,
|
|
246
|
+
Accounting.prototype.createAccountingInvoice = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
293
314
|
/**
|
|
294
315
|
* Create a payment
|
|
295
316
|
*/
|
|
296
|
-
Accounting.prototype.createAccountingPayment = function (req,
|
|
317
|
+
Accounting.prototype.createAccountingPayment = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
357
385
|
/**
|
|
358
386
|
* Create a taxrate
|
|
359
387
|
*/
|
|
360
|
-
Accounting.prototype.createAccountingTaxrate = function (req,
|
|
388
|
+
Accounting.prototype.createAccountingTaxrate = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
421
456
|
/**
|
|
422
457
|
* Create a transaction
|
|
423
458
|
*/
|
|
424
|
-
Accounting.prototype.createAccountingTransaction = function (req,
|
|
459
|
+
Accounting.prototype.createAccountingTransaction = 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 Accounting = /** @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 Accounting = /** @class */ (function () {
|
|
|
485
527
|
/**
|
|
486
528
|
* Retrieve an account
|
|
487
529
|
*/
|
|
488
|
-
Accounting.prototype.getAccountingAccount = function (req,
|
|
530
|
+
Accounting.prototype.getAccountingAccount = function (req, config) {
|
|
489
531
|
var _a, _b;
|
|
490
532
|
return __awaiter(this, void 0, void 0, function () {
|
|
491
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
533
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
492
534
|
return __generator(this, function (_c) {
|
|
493
535
|
switch (_c.label) {
|
|
494
536
|
case 0:
|
|
@@ -498,16 +540,23 @@ var Accounting = /** @class */ (function () {
|
|
|
498
540
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
499
541
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
500
542
|
client = this.sdkConfiguration.defaultClient;
|
|
501
|
-
|
|
502
|
-
|
|
543
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
544
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
545
|
+
return [4 /*yield*/, globalSecurity()];
|
|
546
|
+
case 1:
|
|
547
|
+
globalSecurity = _c.sent();
|
|
548
|
+
_c.label = 2;
|
|
549
|
+
case 2:
|
|
550
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
551
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
503
552
|
}
|
|
504
|
-
properties = utils.parseSecurityProperties(
|
|
553
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
505
554
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
506
555
|
queryParams = utils.serializeQueryParams(req);
|
|
507
556
|
headers["Accept"] = "application/json";
|
|
508
557
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
509
558
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
510
|
-
case
|
|
559
|
+
case 3:
|
|
511
560
|
httpRes = _c.sent();
|
|
512
561
|
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 : "";
|
|
513
562
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -540,10 +589,10 @@ var Accounting = /** @class */ (function () {
|
|
|
540
589
|
/**
|
|
541
590
|
* Retrieve a contact
|
|
542
591
|
*/
|
|
543
|
-
Accounting.prototype.getAccountingContact = function (req,
|
|
592
|
+
Accounting.prototype.getAccountingContact = function (req, config) {
|
|
544
593
|
var _a, _b;
|
|
545
594
|
return __awaiter(this, void 0, void 0, function () {
|
|
546
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
595
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
547
596
|
return __generator(this, function (_c) {
|
|
548
597
|
switch (_c.label) {
|
|
549
598
|
case 0:
|
|
@@ -553,16 +602,23 @@ var Accounting = /** @class */ (function () {
|
|
|
553
602
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
554
603
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
555
604
|
client = this.sdkConfiguration.defaultClient;
|
|
556
|
-
|
|
557
|
-
|
|
605
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
606
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
607
|
+
return [4 /*yield*/, globalSecurity()];
|
|
608
|
+
case 1:
|
|
609
|
+
globalSecurity = _c.sent();
|
|
610
|
+
_c.label = 2;
|
|
611
|
+
case 2:
|
|
612
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
613
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
558
614
|
}
|
|
559
|
-
properties = utils.parseSecurityProperties(
|
|
615
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
560
616
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
561
617
|
queryParams = utils.serializeQueryParams(req);
|
|
562
618
|
headers["Accept"] = "application/json";
|
|
563
619
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
564
620
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
565
|
-
case
|
|
621
|
+
case 3:
|
|
566
622
|
httpRes = _c.sent();
|
|
567
623
|
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 : "";
|
|
568
624
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -595,10 +651,10 @@ var Accounting = /** @class */ (function () {
|
|
|
595
651
|
/**
|
|
596
652
|
* Retrieve a invoice
|
|
597
653
|
*/
|
|
598
|
-
Accounting.prototype.getAccountingInvoice = function (req,
|
|
654
|
+
Accounting.prototype.getAccountingInvoice = function (req, config) {
|
|
599
655
|
var _a, _b;
|
|
600
656
|
return __awaiter(this, void 0, void 0, function () {
|
|
601
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
657
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
602
658
|
return __generator(this, function (_c) {
|
|
603
659
|
switch (_c.label) {
|
|
604
660
|
case 0:
|
|
@@ -608,16 +664,23 @@ var Accounting = /** @class */ (function () {
|
|
|
608
664
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
609
665
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
610
666
|
client = this.sdkConfiguration.defaultClient;
|
|
611
|
-
|
|
612
|
-
|
|
667
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
668
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
669
|
+
return [4 /*yield*/, globalSecurity()];
|
|
670
|
+
case 1:
|
|
671
|
+
globalSecurity = _c.sent();
|
|
672
|
+
_c.label = 2;
|
|
673
|
+
case 2:
|
|
674
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
675
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
613
676
|
}
|
|
614
|
-
properties = utils.parseSecurityProperties(
|
|
677
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
615
678
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
616
679
|
queryParams = utils.serializeQueryParams(req);
|
|
617
680
|
headers["Accept"] = "application/json";
|
|
618
681
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
619
682
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
620
|
-
case
|
|
683
|
+
case 3:
|
|
621
684
|
httpRes = _c.sent();
|
|
622
685
|
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 : "";
|
|
623
686
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -650,10 +713,10 @@ var Accounting = /** @class */ (function () {
|
|
|
650
713
|
/**
|
|
651
714
|
* Retrieve an organization
|
|
652
715
|
*/
|
|
653
|
-
Accounting.prototype.getAccountingOrganization = function (req,
|
|
716
|
+
Accounting.prototype.getAccountingOrganization = function (req, config) {
|
|
654
717
|
var _a, _b;
|
|
655
718
|
return __awaiter(this, void 0, void 0, function () {
|
|
656
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
719
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
657
720
|
return __generator(this, function (_c) {
|
|
658
721
|
switch (_c.label) {
|
|
659
722
|
case 0:
|
|
@@ -663,16 +726,23 @@ var Accounting = /** @class */ (function () {
|
|
|
663
726
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
664
727
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/organization/{id}", req);
|
|
665
728
|
client = this.sdkConfiguration.defaultClient;
|
|
666
|
-
|
|
667
|
-
|
|
729
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
730
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
731
|
+
return [4 /*yield*/, globalSecurity()];
|
|
732
|
+
case 1:
|
|
733
|
+
globalSecurity = _c.sent();
|
|
734
|
+
_c.label = 2;
|
|
735
|
+
case 2:
|
|
736
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
737
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
668
738
|
}
|
|
669
|
-
properties = utils.parseSecurityProperties(
|
|
739
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
670
740
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
671
741
|
queryParams = utils.serializeQueryParams(req);
|
|
672
742
|
headers["Accept"] = "application/json";
|
|
673
743
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
674
744
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
675
|
-
case
|
|
745
|
+
case 3:
|
|
676
746
|
httpRes = _c.sent();
|
|
677
747
|
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 : "";
|
|
678
748
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -705,10 +775,10 @@ var Accounting = /** @class */ (function () {
|
|
|
705
775
|
/**
|
|
706
776
|
* Retrieve a payment
|
|
707
777
|
*/
|
|
708
|
-
Accounting.prototype.getAccountingPayment = function (req,
|
|
778
|
+
Accounting.prototype.getAccountingPayment = function (req, config) {
|
|
709
779
|
var _a, _b;
|
|
710
780
|
return __awaiter(this, void 0, void 0, function () {
|
|
711
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
781
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
712
782
|
return __generator(this, function (_c) {
|
|
713
783
|
switch (_c.label) {
|
|
714
784
|
case 0:
|
|
@@ -718,16 +788,23 @@ var Accounting = /** @class */ (function () {
|
|
|
718
788
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
719
789
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
720
790
|
client = this.sdkConfiguration.defaultClient;
|
|
721
|
-
|
|
722
|
-
|
|
791
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
792
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
793
|
+
return [4 /*yield*/, globalSecurity()];
|
|
794
|
+
case 1:
|
|
795
|
+
globalSecurity = _c.sent();
|
|
796
|
+
_c.label = 2;
|
|
797
|
+
case 2:
|
|
798
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
799
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
723
800
|
}
|
|
724
|
-
properties = utils.parseSecurityProperties(
|
|
801
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
725
802
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
726
803
|
queryParams = utils.serializeQueryParams(req);
|
|
727
804
|
headers["Accept"] = "application/json";
|
|
728
805
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
729
806
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
730
|
-
case
|
|
807
|
+
case 3:
|
|
731
808
|
httpRes = _c.sent();
|
|
732
809
|
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 : "";
|
|
733
810
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -760,10 +837,10 @@ var Accounting = /** @class */ (function () {
|
|
|
760
837
|
/**
|
|
761
838
|
* Retrieve a payout
|
|
762
839
|
*/
|
|
763
|
-
Accounting.prototype.getAccountingPayout = function (req,
|
|
840
|
+
Accounting.prototype.getAccountingPayout = function (req, config) {
|
|
764
841
|
var _a, _b;
|
|
765
842
|
return __awaiter(this, void 0, void 0, function () {
|
|
766
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
843
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
767
844
|
return __generator(this, function (_c) {
|
|
768
845
|
switch (_c.label) {
|
|
769
846
|
case 0:
|
|
@@ -773,16 +850,23 @@ var Accounting = /** @class */ (function () {
|
|
|
773
850
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
774
851
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payout/{id}", req);
|
|
775
852
|
client = this.sdkConfiguration.defaultClient;
|
|
776
|
-
|
|
777
|
-
|
|
853
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
854
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
855
|
+
return [4 /*yield*/, globalSecurity()];
|
|
856
|
+
case 1:
|
|
857
|
+
globalSecurity = _c.sent();
|
|
858
|
+
_c.label = 2;
|
|
859
|
+
case 2:
|
|
860
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
861
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
778
862
|
}
|
|
779
|
-
properties = utils.parseSecurityProperties(
|
|
863
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
780
864
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
781
865
|
queryParams = utils.serializeQueryParams(req);
|
|
782
866
|
headers["Accept"] = "application/json";
|
|
783
867
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
784
868
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
785
|
-
case
|
|
869
|
+
case 3:
|
|
786
870
|
httpRes = _c.sent();
|
|
787
871
|
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 : "";
|
|
788
872
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -815,10 +899,10 @@ var Accounting = /** @class */ (function () {
|
|
|
815
899
|
/**
|
|
816
900
|
* Retrieve a refund
|
|
817
901
|
*/
|
|
818
|
-
Accounting.prototype.getAccountingRefund = function (req,
|
|
902
|
+
Accounting.prototype.getAccountingRefund = function (req, config) {
|
|
819
903
|
var _a, _b;
|
|
820
904
|
return __awaiter(this, void 0, void 0, function () {
|
|
821
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
905
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
822
906
|
return __generator(this, function (_c) {
|
|
823
907
|
switch (_c.label) {
|
|
824
908
|
case 0:
|
|
@@ -828,16 +912,23 @@ var Accounting = /** @class */ (function () {
|
|
|
828
912
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
829
913
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/refund/{id}", req);
|
|
830
914
|
client = this.sdkConfiguration.defaultClient;
|
|
831
|
-
|
|
832
|
-
|
|
915
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
916
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
917
|
+
return [4 /*yield*/, globalSecurity()];
|
|
918
|
+
case 1:
|
|
919
|
+
globalSecurity = _c.sent();
|
|
920
|
+
_c.label = 2;
|
|
921
|
+
case 2:
|
|
922
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
923
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
833
924
|
}
|
|
834
|
-
properties = utils.parseSecurityProperties(
|
|
925
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
835
926
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
836
927
|
queryParams = utils.serializeQueryParams(req);
|
|
837
928
|
headers["Accept"] = "application/json";
|
|
838
929
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
839
930
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
840
|
-
case
|
|
931
|
+
case 3:
|
|
841
932
|
httpRes = _c.sent();
|
|
842
933
|
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 : "";
|
|
843
934
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -870,10 +961,10 @@ var Accounting = /** @class */ (function () {
|
|
|
870
961
|
/**
|
|
871
962
|
* Retrieve a taxrate
|
|
872
963
|
*/
|
|
873
|
-
Accounting.prototype.getAccountingTaxrate = function (req,
|
|
964
|
+
Accounting.prototype.getAccountingTaxrate = function (req, config) {
|
|
874
965
|
var _a, _b;
|
|
875
966
|
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
967
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
877
968
|
return __generator(this, function (_c) {
|
|
878
969
|
switch (_c.label) {
|
|
879
970
|
case 0:
|
|
@@ -883,16 +974,23 @@ var Accounting = /** @class */ (function () {
|
|
|
883
974
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
884
975
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
885
976
|
client = this.sdkConfiguration.defaultClient;
|
|
886
|
-
|
|
887
|
-
|
|
977
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
978
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
979
|
+
return [4 /*yield*/, globalSecurity()];
|
|
980
|
+
case 1:
|
|
981
|
+
globalSecurity = _c.sent();
|
|
982
|
+
_c.label = 2;
|
|
983
|
+
case 2:
|
|
984
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
985
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
888
986
|
}
|
|
889
|
-
properties = utils.parseSecurityProperties(
|
|
987
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
890
988
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
891
989
|
queryParams = utils.serializeQueryParams(req);
|
|
892
990
|
headers["Accept"] = "application/json";
|
|
893
991
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
894
992
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
895
|
-
case
|
|
993
|
+
case 3:
|
|
896
994
|
httpRes = _c.sent();
|
|
897
995
|
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 : "";
|
|
898
996
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -925,10 +1023,10 @@ var Accounting = /** @class */ (function () {
|
|
|
925
1023
|
/**
|
|
926
1024
|
* Retrieve a transaction
|
|
927
1025
|
*/
|
|
928
|
-
Accounting.prototype.getAccountingTransaction = function (req,
|
|
1026
|
+
Accounting.prototype.getAccountingTransaction = function (req, config) {
|
|
929
1027
|
var _a, _b;
|
|
930
1028
|
return __awaiter(this, void 0, void 0, function () {
|
|
931
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
1029
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
932
1030
|
return __generator(this, function (_c) {
|
|
933
1031
|
switch (_c.label) {
|
|
934
1032
|
case 0:
|
|
@@ -938,16 +1036,23 @@ var Accounting = /** @class */ (function () {
|
|
|
938
1036
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
939
1037
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
940
1038
|
client = this.sdkConfiguration.defaultClient;
|
|
941
|
-
|
|
942
|
-
|
|
1039
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1040
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1041
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1042
|
+
case 1:
|
|
1043
|
+
globalSecurity = _c.sent();
|
|
1044
|
+
_c.label = 2;
|
|
1045
|
+
case 2:
|
|
1046
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1047
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
943
1048
|
}
|
|
944
|
-
properties = utils.parseSecurityProperties(
|
|
1049
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
945
1050
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
946
1051
|
queryParams = utils.serializeQueryParams(req);
|
|
947
1052
|
headers["Accept"] = "application/json";
|
|
948
1053
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
949
1054
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
950
|
-
case
|
|
1055
|
+
case 3:
|
|
951
1056
|
httpRes = _c.sent();
|
|
952
1057
|
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 : "";
|
|
953
1058
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -980,10 +1085,10 @@ var Accounting = /** @class */ (function () {
|
|
|
980
1085
|
/**
|
|
981
1086
|
* List all accounts
|
|
982
1087
|
*/
|
|
983
|
-
Accounting.prototype.listAccountingAccounts = function (req,
|
|
1088
|
+
Accounting.prototype.listAccountingAccounts = function (req, config) {
|
|
984
1089
|
var _a, _b;
|
|
985
1090
|
return __awaiter(this, void 0, void 0, function () {
|
|
986
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1091
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
987
1092
|
return __generator(this, function (_c) {
|
|
988
1093
|
switch (_c.label) {
|
|
989
1094
|
case 0:
|
|
@@ -993,16 +1098,23 @@ var Accounting = /** @class */ (function () {
|
|
|
993
1098
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
994
1099
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account", req);
|
|
995
1100
|
client = this.sdkConfiguration.defaultClient;
|
|
996
|
-
|
|
997
|
-
|
|
1101
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1102
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1103
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1104
|
+
case 1:
|
|
1105
|
+
globalSecurity = _c.sent();
|
|
1106
|
+
_c.label = 2;
|
|
1107
|
+
case 2:
|
|
1108
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1109
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
998
1110
|
}
|
|
999
|
-
properties = utils.parseSecurityProperties(
|
|
1111
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1000
1112
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1001
1113
|
queryParams = utils.serializeQueryParams(req);
|
|
1002
1114
|
headers["Accept"] = "application/json";
|
|
1003
1115
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1004
1116
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1005
|
-
case
|
|
1117
|
+
case 3:
|
|
1006
1118
|
httpRes = _c.sent();
|
|
1007
1119
|
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 : "";
|
|
1008
1120
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1037,10 +1149,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1037
1149
|
/**
|
|
1038
1150
|
* List all contacts
|
|
1039
1151
|
*/
|
|
1040
|
-
Accounting.prototype.listAccountingContacts = function (req,
|
|
1152
|
+
Accounting.prototype.listAccountingContacts = function (req, config) {
|
|
1041
1153
|
var _a, _b;
|
|
1042
1154
|
return __awaiter(this, void 0, void 0, function () {
|
|
1043
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1155
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1044
1156
|
return __generator(this, function (_c) {
|
|
1045
1157
|
switch (_c.label) {
|
|
1046
1158
|
case 0:
|
|
@@ -1050,16 +1162,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1050
1162
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1051
1163
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact", req);
|
|
1052
1164
|
client = this.sdkConfiguration.defaultClient;
|
|
1053
|
-
|
|
1054
|
-
|
|
1165
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1166
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1167
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1168
|
+
case 1:
|
|
1169
|
+
globalSecurity = _c.sent();
|
|
1170
|
+
_c.label = 2;
|
|
1171
|
+
case 2:
|
|
1172
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1173
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1055
1174
|
}
|
|
1056
|
-
properties = utils.parseSecurityProperties(
|
|
1175
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1057
1176
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1058
1177
|
queryParams = utils.serializeQueryParams(req);
|
|
1059
1178
|
headers["Accept"] = "application/json";
|
|
1060
1179
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1061
1180
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1062
|
-
case
|
|
1181
|
+
case 3:
|
|
1063
1182
|
httpRes = _c.sent();
|
|
1064
1183
|
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 : "";
|
|
1065
1184
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1094,10 +1213,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1094
1213
|
/**
|
|
1095
1214
|
* List all invoices
|
|
1096
1215
|
*/
|
|
1097
|
-
Accounting.prototype.listAccountingInvoices = function (req,
|
|
1216
|
+
Accounting.prototype.listAccountingInvoices = function (req, config) {
|
|
1098
1217
|
var _a, _b;
|
|
1099
1218
|
return __awaiter(this, void 0, void 0, function () {
|
|
1100
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1219
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1101
1220
|
return __generator(this, function (_c) {
|
|
1102
1221
|
switch (_c.label) {
|
|
1103
1222
|
case 0:
|
|
@@ -1107,16 +1226,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1107
1226
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1108
1227
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice", req);
|
|
1109
1228
|
client = this.sdkConfiguration.defaultClient;
|
|
1110
|
-
|
|
1111
|
-
|
|
1229
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1230
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1231
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1232
|
+
case 1:
|
|
1233
|
+
globalSecurity = _c.sent();
|
|
1234
|
+
_c.label = 2;
|
|
1235
|
+
case 2:
|
|
1236
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1237
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1112
1238
|
}
|
|
1113
|
-
properties = utils.parseSecurityProperties(
|
|
1239
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1114
1240
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1115
1241
|
queryParams = utils.serializeQueryParams(req);
|
|
1116
1242
|
headers["Accept"] = "application/json";
|
|
1117
1243
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1118
1244
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1119
|
-
case
|
|
1245
|
+
case 3:
|
|
1120
1246
|
httpRes = _c.sent();
|
|
1121
1247
|
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 : "";
|
|
1122
1248
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1151,10 +1277,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1151
1277
|
/**
|
|
1152
1278
|
* List all organizations
|
|
1153
1279
|
*/
|
|
1154
|
-
Accounting.prototype.listAccountingOrganizations = function (req,
|
|
1280
|
+
Accounting.prototype.listAccountingOrganizations = function (req, config) {
|
|
1155
1281
|
var _a, _b;
|
|
1156
1282
|
return __awaiter(this, void 0, void 0, function () {
|
|
1157
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1283
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1158
1284
|
return __generator(this, function (_c) {
|
|
1159
1285
|
switch (_c.label) {
|
|
1160
1286
|
case 0:
|
|
@@ -1164,16 +1290,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1164
1290
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1165
1291
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/organization", req);
|
|
1166
1292
|
client = this.sdkConfiguration.defaultClient;
|
|
1167
|
-
|
|
1168
|
-
|
|
1293
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1294
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1295
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1296
|
+
case 1:
|
|
1297
|
+
globalSecurity = _c.sent();
|
|
1298
|
+
_c.label = 2;
|
|
1299
|
+
case 2:
|
|
1300
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1301
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1169
1302
|
}
|
|
1170
|
-
properties = utils.parseSecurityProperties(
|
|
1303
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1171
1304
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1172
1305
|
queryParams = utils.serializeQueryParams(req);
|
|
1173
1306
|
headers["Accept"] = "application/json";
|
|
1174
1307
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1175
1308
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1176
|
-
case
|
|
1309
|
+
case 3:
|
|
1177
1310
|
httpRes = _c.sent();
|
|
1178
1311
|
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 : "";
|
|
1179
1312
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1208,10 +1341,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1208
1341
|
/**
|
|
1209
1342
|
* List all payments
|
|
1210
1343
|
*/
|
|
1211
|
-
Accounting.prototype.listAccountingPayments = function (req,
|
|
1344
|
+
Accounting.prototype.listAccountingPayments = function (req, config) {
|
|
1212
1345
|
var _a, _b;
|
|
1213
1346
|
return __awaiter(this, void 0, void 0, function () {
|
|
1214
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1347
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1215
1348
|
return __generator(this, function (_c) {
|
|
1216
1349
|
switch (_c.label) {
|
|
1217
1350
|
case 0:
|
|
@@ -1221,16 +1354,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1221
1354
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1222
1355
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment", req);
|
|
1223
1356
|
client = this.sdkConfiguration.defaultClient;
|
|
1224
|
-
|
|
1225
|
-
|
|
1357
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1358
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1359
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1360
|
+
case 1:
|
|
1361
|
+
globalSecurity = _c.sent();
|
|
1362
|
+
_c.label = 2;
|
|
1363
|
+
case 2:
|
|
1364
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1365
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1226
1366
|
}
|
|
1227
|
-
properties = utils.parseSecurityProperties(
|
|
1367
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1228
1368
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1229
1369
|
queryParams = utils.serializeQueryParams(req);
|
|
1230
1370
|
headers["Accept"] = "application/json";
|
|
1231
1371
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1232
1372
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1233
|
-
case
|
|
1373
|
+
case 3:
|
|
1234
1374
|
httpRes = _c.sent();
|
|
1235
1375
|
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 : "";
|
|
1236
1376
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1265,10 +1405,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1265
1405
|
/**
|
|
1266
1406
|
* List all payouts
|
|
1267
1407
|
*/
|
|
1268
|
-
Accounting.prototype.listAccountingPayouts = function (req,
|
|
1408
|
+
Accounting.prototype.listAccountingPayouts = function (req, config) {
|
|
1269
1409
|
var _a, _b;
|
|
1270
1410
|
return __awaiter(this, void 0, void 0, function () {
|
|
1271
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1411
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1272
1412
|
return __generator(this, function (_c) {
|
|
1273
1413
|
switch (_c.label) {
|
|
1274
1414
|
case 0:
|
|
@@ -1278,16 +1418,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1278
1418
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1279
1419
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payout", req);
|
|
1280
1420
|
client = this.sdkConfiguration.defaultClient;
|
|
1281
|
-
|
|
1282
|
-
|
|
1421
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1422
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1423
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1424
|
+
case 1:
|
|
1425
|
+
globalSecurity = _c.sent();
|
|
1426
|
+
_c.label = 2;
|
|
1427
|
+
case 2:
|
|
1428
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1429
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1283
1430
|
}
|
|
1284
|
-
properties = utils.parseSecurityProperties(
|
|
1431
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1285
1432
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1286
1433
|
queryParams = utils.serializeQueryParams(req);
|
|
1287
1434
|
headers["Accept"] = "application/json";
|
|
1288
1435
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1289
1436
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1290
|
-
case
|
|
1437
|
+
case 3:
|
|
1291
1438
|
httpRes = _c.sent();
|
|
1292
1439
|
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 : "";
|
|
1293
1440
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1322,10 +1469,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1322
1469
|
/**
|
|
1323
1470
|
* List all refunds
|
|
1324
1471
|
*/
|
|
1325
|
-
Accounting.prototype.listAccountingRefunds = function (req,
|
|
1472
|
+
Accounting.prototype.listAccountingRefunds = function (req, config) {
|
|
1326
1473
|
var _a, _b;
|
|
1327
1474
|
return __awaiter(this, void 0, void 0, function () {
|
|
1328
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1475
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1329
1476
|
return __generator(this, function (_c) {
|
|
1330
1477
|
switch (_c.label) {
|
|
1331
1478
|
case 0:
|
|
@@ -1335,16 +1482,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1335
1482
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1336
1483
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/refund", req);
|
|
1337
1484
|
client = this.sdkConfiguration.defaultClient;
|
|
1338
|
-
|
|
1339
|
-
|
|
1485
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1486
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1487
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1488
|
+
case 1:
|
|
1489
|
+
globalSecurity = _c.sent();
|
|
1490
|
+
_c.label = 2;
|
|
1491
|
+
case 2:
|
|
1492
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1493
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1340
1494
|
}
|
|
1341
|
-
properties = utils.parseSecurityProperties(
|
|
1495
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1342
1496
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1343
1497
|
queryParams = utils.serializeQueryParams(req);
|
|
1344
1498
|
headers["Accept"] = "application/json";
|
|
1345
1499
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1346
1500
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1347
|
-
case
|
|
1501
|
+
case 3:
|
|
1348
1502
|
httpRes = _c.sent();
|
|
1349
1503
|
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 : "";
|
|
1350
1504
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1379,10 +1533,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1379
1533
|
/**
|
|
1380
1534
|
* List all taxrates
|
|
1381
1535
|
*/
|
|
1382
|
-
Accounting.prototype.listAccountingTaxrates = function (req,
|
|
1536
|
+
Accounting.prototype.listAccountingTaxrates = function (req, config) {
|
|
1383
1537
|
var _a, _b;
|
|
1384
1538
|
return __awaiter(this, void 0, void 0, function () {
|
|
1385
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1539
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1386
1540
|
return __generator(this, function (_c) {
|
|
1387
1541
|
switch (_c.label) {
|
|
1388
1542
|
case 0:
|
|
@@ -1392,16 +1546,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1392
1546
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1393
1547
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate", req);
|
|
1394
1548
|
client = this.sdkConfiguration.defaultClient;
|
|
1395
|
-
|
|
1396
|
-
|
|
1549
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1550
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1551
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1552
|
+
case 1:
|
|
1553
|
+
globalSecurity = _c.sent();
|
|
1554
|
+
_c.label = 2;
|
|
1555
|
+
case 2:
|
|
1556
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1557
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1397
1558
|
}
|
|
1398
|
-
properties = utils.parseSecurityProperties(
|
|
1559
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1399
1560
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1400
1561
|
queryParams = utils.serializeQueryParams(req);
|
|
1401
1562
|
headers["Accept"] = "application/json";
|
|
1402
1563
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1403
1564
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1404
|
-
case
|
|
1565
|
+
case 3:
|
|
1405
1566
|
httpRes = _c.sent();
|
|
1406
1567
|
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 : "";
|
|
1407
1568
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1436,10 +1597,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1436
1597
|
/**
|
|
1437
1598
|
* List all transactions
|
|
1438
1599
|
*/
|
|
1439
|
-
Accounting.prototype.listAccountingTransactions = function (req,
|
|
1600
|
+
Accounting.prototype.listAccountingTransactions = function (req, config) {
|
|
1440
1601
|
var _a, _b;
|
|
1441
1602
|
return __awaiter(this, void 0, void 0, function () {
|
|
1442
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1603
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1443
1604
|
return __generator(this, function (_c) {
|
|
1444
1605
|
switch (_c.label) {
|
|
1445
1606
|
case 0:
|
|
@@ -1449,16 +1610,23 @@ var Accounting = /** @class */ (function () {
|
|
|
1449
1610
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1450
1611
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction", req);
|
|
1451
1612
|
client = this.sdkConfiguration.defaultClient;
|
|
1452
|
-
|
|
1453
|
-
|
|
1613
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1614
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1615
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1616
|
+
case 1:
|
|
1617
|
+
globalSecurity = _c.sent();
|
|
1618
|
+
_c.label = 2;
|
|
1619
|
+
case 2:
|
|
1620
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1621
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1454
1622
|
}
|
|
1455
|
-
properties = utils.parseSecurityProperties(
|
|
1623
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1456
1624
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1457
1625
|
queryParams = utils.serializeQueryParams(req);
|
|
1458
1626
|
headers["Accept"] = "application/json";
|
|
1459
1627
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1460
1628
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1461
|
-
case
|
|
1629
|
+
case 3:
|
|
1462
1630
|
httpRes = _c.sent();
|
|
1463
1631
|
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 : "";
|
|
1464
1632
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1493,10 +1661,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1493
1661
|
/**
|
|
1494
1662
|
* Update an account
|
|
1495
1663
|
*/
|
|
1496
|
-
Accounting.prototype.patchAccountingAccount = function (req,
|
|
1664
|
+
Accounting.prototype.patchAccountingAccount = function (req, config) {
|
|
1497
1665
|
var _a, _b;
|
|
1498
1666
|
return __awaiter(this, void 0, void 0, function () {
|
|
1499
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1667
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1500
1668
|
var _d;
|
|
1501
1669
|
return __generator(this, function (_e) {
|
|
1502
1670
|
switch (_e.label) {
|
|
@@ -1516,15 +1684,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1516
1684
|
}
|
|
1517
1685
|
}
|
|
1518
1686
|
client = this.sdkConfiguration.defaultClient;
|
|
1519
|
-
|
|
1520
|
-
|
|
1687
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1688
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1689
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1690
|
+
case 1:
|
|
1691
|
+
globalSecurity = _e.sent();
|
|
1692
|
+
_e.label = 2;
|
|
1693
|
+
case 2:
|
|
1694
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1695
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1521
1696
|
}
|
|
1522
|
-
properties = utils.parseSecurityProperties(
|
|
1697
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1523
1698
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1524
1699
|
headers["Accept"] = "application/json";
|
|
1525
1700
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1526
1701
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1527
|
-
case
|
|
1702
|
+
case 3:
|
|
1528
1703
|
httpRes = _e.sent();
|
|
1529
1704
|
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 : "";
|
|
1530
1705
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1557,10 +1732,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1557
1732
|
/**
|
|
1558
1733
|
* Update a contact
|
|
1559
1734
|
*/
|
|
1560
|
-
Accounting.prototype.patchAccountingContact = function (req,
|
|
1735
|
+
Accounting.prototype.patchAccountingContact = function (req, config) {
|
|
1561
1736
|
var _a, _b;
|
|
1562
1737
|
return __awaiter(this, void 0, void 0, function () {
|
|
1563
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1738
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1564
1739
|
var _d;
|
|
1565
1740
|
return __generator(this, function (_e) {
|
|
1566
1741
|
switch (_e.label) {
|
|
@@ -1580,15 +1755,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1580
1755
|
}
|
|
1581
1756
|
}
|
|
1582
1757
|
client = this.sdkConfiguration.defaultClient;
|
|
1583
|
-
|
|
1584
|
-
|
|
1758
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1759
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1760
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1761
|
+
case 1:
|
|
1762
|
+
globalSecurity = _e.sent();
|
|
1763
|
+
_e.label = 2;
|
|
1764
|
+
case 2:
|
|
1765
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1766
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1585
1767
|
}
|
|
1586
|
-
properties = utils.parseSecurityProperties(
|
|
1768
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1587
1769
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1588
1770
|
headers["Accept"] = "application/json";
|
|
1589
1771
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1590
1772
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1591
|
-
case
|
|
1773
|
+
case 3:
|
|
1592
1774
|
httpRes = _e.sent();
|
|
1593
1775
|
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 : "";
|
|
1594
1776
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1621,10 +1803,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1621
1803
|
/**
|
|
1622
1804
|
* Update a invoice
|
|
1623
1805
|
*/
|
|
1624
|
-
Accounting.prototype.patchAccountingInvoice = function (req,
|
|
1806
|
+
Accounting.prototype.patchAccountingInvoice = function (req, config) {
|
|
1625
1807
|
var _a, _b;
|
|
1626
1808
|
return __awaiter(this, void 0, void 0, function () {
|
|
1627
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1809
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1628
1810
|
var _d;
|
|
1629
1811
|
return __generator(this, function (_e) {
|
|
1630
1812
|
switch (_e.label) {
|
|
@@ -1644,15 +1826,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1644
1826
|
}
|
|
1645
1827
|
}
|
|
1646
1828
|
client = this.sdkConfiguration.defaultClient;
|
|
1647
|
-
|
|
1648
|
-
|
|
1829
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1830
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1831
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1832
|
+
case 1:
|
|
1833
|
+
globalSecurity = _e.sent();
|
|
1834
|
+
_e.label = 2;
|
|
1835
|
+
case 2:
|
|
1836
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1837
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1649
1838
|
}
|
|
1650
|
-
properties = utils.parseSecurityProperties(
|
|
1839
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1651
1840
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1652
1841
|
headers["Accept"] = "application/json";
|
|
1653
1842
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1654
1843
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1655
|
-
case
|
|
1844
|
+
case 3:
|
|
1656
1845
|
httpRes = _e.sent();
|
|
1657
1846
|
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 : "";
|
|
1658
1847
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1685,10 +1874,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1685
1874
|
/**
|
|
1686
1875
|
* Update a payment
|
|
1687
1876
|
*/
|
|
1688
|
-
Accounting.prototype.patchAccountingPayment = function (req,
|
|
1877
|
+
Accounting.prototype.patchAccountingPayment = function (req, config) {
|
|
1689
1878
|
var _a, _b;
|
|
1690
1879
|
return __awaiter(this, void 0, void 0, function () {
|
|
1691
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1880
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1692
1881
|
var _d;
|
|
1693
1882
|
return __generator(this, function (_e) {
|
|
1694
1883
|
switch (_e.label) {
|
|
@@ -1708,15 +1897,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1708
1897
|
}
|
|
1709
1898
|
}
|
|
1710
1899
|
client = this.sdkConfiguration.defaultClient;
|
|
1711
|
-
|
|
1712
|
-
|
|
1900
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1901
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1902
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1903
|
+
case 1:
|
|
1904
|
+
globalSecurity = _e.sent();
|
|
1905
|
+
_e.label = 2;
|
|
1906
|
+
case 2:
|
|
1907
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1908
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1713
1909
|
}
|
|
1714
|
-
properties = utils.parseSecurityProperties(
|
|
1910
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1715
1911
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1716
1912
|
headers["Accept"] = "application/json";
|
|
1717
1913
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1718
1914
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1719
|
-
case
|
|
1915
|
+
case 3:
|
|
1720
1916
|
httpRes = _e.sent();
|
|
1721
1917
|
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 : "";
|
|
1722
1918
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1749,10 +1945,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1749
1945
|
/**
|
|
1750
1946
|
* Update a taxrate
|
|
1751
1947
|
*/
|
|
1752
|
-
Accounting.prototype.patchAccountingTaxrate = function (req,
|
|
1948
|
+
Accounting.prototype.patchAccountingTaxrate = function (req, config) {
|
|
1753
1949
|
var _a, _b;
|
|
1754
1950
|
return __awaiter(this, void 0, void 0, function () {
|
|
1755
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1951
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1756
1952
|
var _d;
|
|
1757
1953
|
return __generator(this, function (_e) {
|
|
1758
1954
|
switch (_e.label) {
|
|
@@ -1772,15 +1968,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1772
1968
|
}
|
|
1773
1969
|
}
|
|
1774
1970
|
client = this.sdkConfiguration.defaultClient;
|
|
1775
|
-
|
|
1776
|
-
|
|
1971
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1972
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1973
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1974
|
+
case 1:
|
|
1975
|
+
globalSecurity = _e.sent();
|
|
1976
|
+
_e.label = 2;
|
|
1977
|
+
case 2:
|
|
1978
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1979
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1777
1980
|
}
|
|
1778
|
-
properties = utils.parseSecurityProperties(
|
|
1981
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1779
1982
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1780
1983
|
headers["Accept"] = "application/json";
|
|
1781
1984
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1782
1985
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1783
|
-
case
|
|
1986
|
+
case 3:
|
|
1784
1987
|
httpRes = _e.sent();
|
|
1785
1988
|
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 : "";
|
|
1786
1989
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1813,10 +2016,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1813
2016
|
/**
|
|
1814
2017
|
* Update a transaction
|
|
1815
2018
|
*/
|
|
1816
|
-
Accounting.prototype.patchAccountingTransaction = function (req,
|
|
2019
|
+
Accounting.prototype.patchAccountingTransaction = function (req, config) {
|
|
1817
2020
|
var _a, _b;
|
|
1818
2021
|
return __awaiter(this, void 0, void 0, function () {
|
|
1819
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2022
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1820
2023
|
var _d;
|
|
1821
2024
|
return __generator(this, function (_e) {
|
|
1822
2025
|
switch (_e.label) {
|
|
@@ -1836,15 +2039,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1836
2039
|
}
|
|
1837
2040
|
}
|
|
1838
2041
|
client = this.sdkConfiguration.defaultClient;
|
|
1839
|
-
|
|
1840
|
-
|
|
2042
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2043
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2044
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2045
|
+
case 1:
|
|
2046
|
+
globalSecurity = _e.sent();
|
|
2047
|
+
_e.label = 2;
|
|
2048
|
+
case 2:
|
|
2049
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2050
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1841
2051
|
}
|
|
1842
|
-
properties = utils.parseSecurityProperties(
|
|
2052
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1843
2053
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1844
2054
|
headers["Accept"] = "application/json";
|
|
1845
2055
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1846
2056
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1847
|
-
case
|
|
2057
|
+
case 3:
|
|
1848
2058
|
httpRes = _e.sent();
|
|
1849
2059
|
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 : "";
|
|
1850
2060
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1877,10 +2087,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1877
2087
|
/**
|
|
1878
2088
|
* Remove an account
|
|
1879
2089
|
*/
|
|
1880
|
-
Accounting.prototype.removeAccountingAccount = function (req,
|
|
2090
|
+
Accounting.prototype.removeAccountingAccount = function (req, config) {
|
|
1881
2091
|
var _a, _b;
|
|
1882
2092
|
return __awaiter(this, void 0, void 0, function () {
|
|
1883
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2093
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1884
2094
|
return __generator(this, function (_c) {
|
|
1885
2095
|
switch (_c.label) {
|
|
1886
2096
|
case 0:
|
|
@@ -1890,15 +2100,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1890
2100
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1891
2101
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
1892
2102
|
client = this.sdkConfiguration.defaultClient;
|
|
1893
|
-
|
|
1894
|
-
|
|
2103
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2104
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2105
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2106
|
+
case 1:
|
|
2107
|
+
globalSecurity = _c.sent();
|
|
2108
|
+
_c.label = 2;
|
|
2109
|
+
case 2:
|
|
2110
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2111
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1895
2112
|
}
|
|
1896
|
-
properties = utils.parseSecurityProperties(
|
|
2113
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1897
2114
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1898
2115
|
headers["Accept"] = "application/json";
|
|
1899
2116
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1900
2117
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1901
|
-
case
|
|
2118
|
+
case 3:
|
|
1902
2119
|
httpRes = _c.sent();
|
|
1903
2120
|
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 : "";
|
|
1904
2121
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1931,10 +2148,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1931
2148
|
/**
|
|
1932
2149
|
* Remove a contact
|
|
1933
2150
|
*/
|
|
1934
|
-
Accounting.prototype.removeAccountingContact = function (req,
|
|
2151
|
+
Accounting.prototype.removeAccountingContact = function (req, config) {
|
|
1935
2152
|
var _a, _b;
|
|
1936
2153
|
return __awaiter(this, void 0, void 0, function () {
|
|
1937
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2154
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1938
2155
|
return __generator(this, function (_c) {
|
|
1939
2156
|
switch (_c.label) {
|
|
1940
2157
|
case 0:
|
|
@@ -1944,15 +2161,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1944
2161
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1945
2162
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
1946
2163
|
client = this.sdkConfiguration.defaultClient;
|
|
1947
|
-
|
|
1948
|
-
|
|
2164
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2165
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2166
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2167
|
+
case 1:
|
|
2168
|
+
globalSecurity = _c.sent();
|
|
2169
|
+
_c.label = 2;
|
|
2170
|
+
case 2:
|
|
2171
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2172
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1949
2173
|
}
|
|
1950
|
-
properties = utils.parseSecurityProperties(
|
|
2174
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1951
2175
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1952
2176
|
headers["Accept"] = "application/json";
|
|
1953
2177
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1954
2178
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1955
|
-
case
|
|
2179
|
+
case 3:
|
|
1956
2180
|
httpRes = _c.sent();
|
|
1957
2181
|
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 : "";
|
|
1958
2182
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1985,10 +2209,10 @@ var Accounting = /** @class */ (function () {
|
|
|
1985
2209
|
/**
|
|
1986
2210
|
* Remove a invoice
|
|
1987
2211
|
*/
|
|
1988
|
-
Accounting.prototype.removeAccountingInvoice = function (req,
|
|
2212
|
+
Accounting.prototype.removeAccountingInvoice = function (req, config) {
|
|
1989
2213
|
var _a, _b;
|
|
1990
2214
|
return __awaiter(this, void 0, void 0, function () {
|
|
1991
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2215
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1992
2216
|
return __generator(this, function (_c) {
|
|
1993
2217
|
switch (_c.label) {
|
|
1994
2218
|
case 0:
|
|
@@ -1998,15 +2222,22 @@ var Accounting = /** @class */ (function () {
|
|
|
1998
2222
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1999
2223
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
2000
2224
|
client = this.sdkConfiguration.defaultClient;
|
|
2001
|
-
|
|
2002
|
-
|
|
2225
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2226
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2227
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2228
|
+
case 1:
|
|
2229
|
+
globalSecurity = _c.sent();
|
|
2230
|
+
_c.label = 2;
|
|
2231
|
+
case 2:
|
|
2232
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2233
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2003
2234
|
}
|
|
2004
|
-
properties = utils.parseSecurityProperties(
|
|
2235
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2005
2236
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2006
2237
|
headers["Accept"] = "application/json";
|
|
2007
2238
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2008
2239
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2009
|
-
case
|
|
2240
|
+
case 3:
|
|
2010
2241
|
httpRes = _c.sent();
|
|
2011
2242
|
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 : "";
|
|
2012
2243
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2039,10 +2270,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2039
2270
|
/**
|
|
2040
2271
|
* Remove a payment
|
|
2041
2272
|
*/
|
|
2042
|
-
Accounting.prototype.removeAccountingPayment = function (req,
|
|
2273
|
+
Accounting.prototype.removeAccountingPayment = function (req, config) {
|
|
2043
2274
|
var _a, _b;
|
|
2044
2275
|
return __awaiter(this, void 0, void 0, function () {
|
|
2045
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2276
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2046
2277
|
return __generator(this, function (_c) {
|
|
2047
2278
|
switch (_c.label) {
|
|
2048
2279
|
case 0:
|
|
@@ -2052,15 +2283,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2052
2283
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2053
2284
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
2054
2285
|
client = this.sdkConfiguration.defaultClient;
|
|
2055
|
-
|
|
2056
|
-
|
|
2286
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2287
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2288
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2289
|
+
case 1:
|
|
2290
|
+
globalSecurity = _c.sent();
|
|
2291
|
+
_c.label = 2;
|
|
2292
|
+
case 2:
|
|
2293
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2294
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2057
2295
|
}
|
|
2058
|
-
properties = utils.parseSecurityProperties(
|
|
2296
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2059
2297
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2060
2298
|
headers["Accept"] = "application/json";
|
|
2061
2299
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2062
2300
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2063
|
-
case
|
|
2301
|
+
case 3:
|
|
2064
2302
|
httpRes = _c.sent();
|
|
2065
2303
|
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 : "";
|
|
2066
2304
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2093,10 +2331,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2093
2331
|
/**
|
|
2094
2332
|
* Remove a taxrate
|
|
2095
2333
|
*/
|
|
2096
|
-
Accounting.prototype.removeAccountingTaxrate = function (req,
|
|
2334
|
+
Accounting.prototype.removeAccountingTaxrate = function (req, config) {
|
|
2097
2335
|
var _a, _b;
|
|
2098
2336
|
return __awaiter(this, void 0, void 0, function () {
|
|
2099
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2337
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2100
2338
|
return __generator(this, function (_c) {
|
|
2101
2339
|
switch (_c.label) {
|
|
2102
2340
|
case 0:
|
|
@@ -2106,15 +2344,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2106
2344
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2107
2345
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
2108
2346
|
client = this.sdkConfiguration.defaultClient;
|
|
2109
|
-
|
|
2110
|
-
|
|
2347
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2348
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2349
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2350
|
+
case 1:
|
|
2351
|
+
globalSecurity = _c.sent();
|
|
2352
|
+
_c.label = 2;
|
|
2353
|
+
case 2:
|
|
2354
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2355
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2111
2356
|
}
|
|
2112
|
-
properties = utils.parseSecurityProperties(
|
|
2357
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2113
2358
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2114
2359
|
headers["Accept"] = "application/json";
|
|
2115
2360
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2116
2361
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2117
|
-
case
|
|
2362
|
+
case 3:
|
|
2118
2363
|
httpRes = _c.sent();
|
|
2119
2364
|
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 : "";
|
|
2120
2365
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2147,10 +2392,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2147
2392
|
/**
|
|
2148
2393
|
* Remove a transaction
|
|
2149
2394
|
*/
|
|
2150
|
-
Accounting.prototype.removeAccountingTransaction = function (req,
|
|
2395
|
+
Accounting.prototype.removeAccountingTransaction = function (req, config) {
|
|
2151
2396
|
var _a, _b;
|
|
2152
2397
|
return __awaiter(this, void 0, void 0, function () {
|
|
2153
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2398
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2154
2399
|
return __generator(this, function (_c) {
|
|
2155
2400
|
switch (_c.label) {
|
|
2156
2401
|
case 0:
|
|
@@ -2160,15 +2405,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2160
2405
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2161
2406
|
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
2162
2407
|
client = this.sdkConfiguration.defaultClient;
|
|
2163
|
-
|
|
2164
|
-
|
|
2408
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2409
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2410
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2411
|
+
case 1:
|
|
2412
|
+
globalSecurity = _c.sent();
|
|
2413
|
+
_c.label = 2;
|
|
2414
|
+
case 2:
|
|
2415
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2416
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2165
2417
|
}
|
|
2166
|
-
properties = utils.parseSecurityProperties(
|
|
2418
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2167
2419
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2168
2420
|
headers["Accept"] = "application/json";
|
|
2169
2421
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2170
2422
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2171
|
-
case
|
|
2423
|
+
case 3:
|
|
2172
2424
|
httpRes = _c.sent();
|
|
2173
2425
|
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 : "";
|
|
2174
2426
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2201,10 +2453,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2201
2453
|
/**
|
|
2202
2454
|
* Update an account
|
|
2203
2455
|
*/
|
|
2204
|
-
Accounting.prototype.updateAccountingAccount = function (req,
|
|
2456
|
+
Accounting.prototype.updateAccountingAccount = function (req, config) {
|
|
2205
2457
|
var _a, _b;
|
|
2206
2458
|
return __awaiter(this, void 0, void 0, function () {
|
|
2207
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2459
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2208
2460
|
var _d;
|
|
2209
2461
|
return __generator(this, function (_e) {
|
|
2210
2462
|
switch (_e.label) {
|
|
@@ -2224,15 +2476,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2224
2476
|
}
|
|
2225
2477
|
}
|
|
2226
2478
|
client = this.sdkConfiguration.defaultClient;
|
|
2227
|
-
|
|
2228
|
-
|
|
2479
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2480
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2481
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2482
|
+
case 1:
|
|
2483
|
+
globalSecurity = _e.sent();
|
|
2484
|
+
_e.label = 2;
|
|
2485
|
+
case 2:
|
|
2486
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2487
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2229
2488
|
}
|
|
2230
|
-
properties = utils.parseSecurityProperties(
|
|
2489
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2231
2490
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2232
2491
|
headers["Accept"] = "application/json";
|
|
2233
2492
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2234
2493
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2235
|
-
case
|
|
2494
|
+
case 3:
|
|
2236
2495
|
httpRes = _e.sent();
|
|
2237
2496
|
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 : "";
|
|
2238
2497
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2265,10 +2524,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2265
2524
|
/**
|
|
2266
2525
|
* Update a contact
|
|
2267
2526
|
*/
|
|
2268
|
-
Accounting.prototype.updateAccountingContact = function (req,
|
|
2527
|
+
Accounting.prototype.updateAccountingContact = function (req, config) {
|
|
2269
2528
|
var _a, _b;
|
|
2270
2529
|
return __awaiter(this, void 0, void 0, function () {
|
|
2271
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2530
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2272
2531
|
var _d;
|
|
2273
2532
|
return __generator(this, function (_e) {
|
|
2274
2533
|
switch (_e.label) {
|
|
@@ -2288,15 +2547,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2288
2547
|
}
|
|
2289
2548
|
}
|
|
2290
2549
|
client = this.sdkConfiguration.defaultClient;
|
|
2291
|
-
|
|
2292
|
-
|
|
2550
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2551
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2552
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2553
|
+
case 1:
|
|
2554
|
+
globalSecurity = _e.sent();
|
|
2555
|
+
_e.label = 2;
|
|
2556
|
+
case 2:
|
|
2557
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2558
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2293
2559
|
}
|
|
2294
|
-
properties = utils.parseSecurityProperties(
|
|
2560
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2295
2561
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2296
2562
|
headers["Accept"] = "application/json";
|
|
2297
2563
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2298
2564
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2299
|
-
case
|
|
2565
|
+
case 3:
|
|
2300
2566
|
httpRes = _e.sent();
|
|
2301
2567
|
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 : "";
|
|
2302
2568
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2329,10 +2595,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2329
2595
|
/**
|
|
2330
2596
|
* Update a invoice
|
|
2331
2597
|
*/
|
|
2332
|
-
Accounting.prototype.updateAccountingInvoice = function (req,
|
|
2598
|
+
Accounting.prototype.updateAccountingInvoice = function (req, config) {
|
|
2333
2599
|
var _a, _b;
|
|
2334
2600
|
return __awaiter(this, void 0, void 0, function () {
|
|
2335
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2601
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2336
2602
|
var _d;
|
|
2337
2603
|
return __generator(this, function (_e) {
|
|
2338
2604
|
switch (_e.label) {
|
|
@@ -2352,15 +2618,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2352
2618
|
}
|
|
2353
2619
|
}
|
|
2354
2620
|
client = this.sdkConfiguration.defaultClient;
|
|
2355
|
-
|
|
2356
|
-
|
|
2621
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2622
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2623
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2624
|
+
case 1:
|
|
2625
|
+
globalSecurity = _e.sent();
|
|
2626
|
+
_e.label = 2;
|
|
2627
|
+
case 2:
|
|
2628
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2629
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2357
2630
|
}
|
|
2358
|
-
properties = utils.parseSecurityProperties(
|
|
2631
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2359
2632
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2360
2633
|
headers["Accept"] = "application/json";
|
|
2361
2634
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2362
2635
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2363
|
-
case
|
|
2636
|
+
case 3:
|
|
2364
2637
|
httpRes = _e.sent();
|
|
2365
2638
|
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 : "";
|
|
2366
2639
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2393,10 +2666,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2393
2666
|
/**
|
|
2394
2667
|
* Update a payment
|
|
2395
2668
|
*/
|
|
2396
|
-
Accounting.prototype.updateAccountingPayment = function (req,
|
|
2669
|
+
Accounting.prototype.updateAccountingPayment = function (req, config) {
|
|
2397
2670
|
var _a, _b;
|
|
2398
2671
|
return __awaiter(this, void 0, void 0, function () {
|
|
2399
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2672
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2400
2673
|
var _d;
|
|
2401
2674
|
return __generator(this, function (_e) {
|
|
2402
2675
|
switch (_e.label) {
|
|
@@ -2416,15 +2689,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2416
2689
|
}
|
|
2417
2690
|
}
|
|
2418
2691
|
client = this.sdkConfiguration.defaultClient;
|
|
2419
|
-
|
|
2420
|
-
|
|
2692
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2693
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2694
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2695
|
+
case 1:
|
|
2696
|
+
globalSecurity = _e.sent();
|
|
2697
|
+
_e.label = 2;
|
|
2698
|
+
case 2:
|
|
2699
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2700
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2421
2701
|
}
|
|
2422
|
-
properties = utils.parseSecurityProperties(
|
|
2702
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2423
2703
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2424
2704
|
headers["Accept"] = "application/json";
|
|
2425
2705
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2426
2706
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2427
|
-
case
|
|
2707
|
+
case 3:
|
|
2428
2708
|
httpRes = _e.sent();
|
|
2429
2709
|
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 : "";
|
|
2430
2710
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2457,10 +2737,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2457
2737
|
/**
|
|
2458
2738
|
* Update a taxrate
|
|
2459
2739
|
*/
|
|
2460
|
-
Accounting.prototype.updateAccountingTaxrate = function (req,
|
|
2740
|
+
Accounting.prototype.updateAccountingTaxrate = function (req, config) {
|
|
2461
2741
|
var _a, _b;
|
|
2462
2742
|
return __awaiter(this, void 0, void 0, function () {
|
|
2463
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2743
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2464
2744
|
var _d;
|
|
2465
2745
|
return __generator(this, function (_e) {
|
|
2466
2746
|
switch (_e.label) {
|
|
@@ -2480,15 +2760,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2480
2760
|
}
|
|
2481
2761
|
}
|
|
2482
2762
|
client = this.sdkConfiguration.defaultClient;
|
|
2483
|
-
|
|
2484
|
-
|
|
2763
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2764
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2765
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2766
|
+
case 1:
|
|
2767
|
+
globalSecurity = _e.sent();
|
|
2768
|
+
_e.label = 2;
|
|
2769
|
+
case 2:
|
|
2770
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2771
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2485
2772
|
}
|
|
2486
|
-
properties = utils.parseSecurityProperties(
|
|
2773
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2487
2774
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2488
2775
|
headers["Accept"] = "application/json";
|
|
2489
2776
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2490
2777
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2491
|
-
case
|
|
2778
|
+
case 3:
|
|
2492
2779
|
httpRes = _e.sent();
|
|
2493
2780
|
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 : "";
|
|
2494
2781
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2521,10 +2808,10 @@ var Accounting = /** @class */ (function () {
|
|
|
2521
2808
|
/**
|
|
2522
2809
|
* Update a transaction
|
|
2523
2810
|
*/
|
|
2524
|
-
Accounting.prototype.updateAccountingTransaction = function (req,
|
|
2811
|
+
Accounting.prototype.updateAccountingTransaction = function (req, config) {
|
|
2525
2812
|
var _a, _b;
|
|
2526
2813
|
return __awaiter(this, void 0, void 0, function () {
|
|
2527
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2814
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2528
2815
|
var _d;
|
|
2529
2816
|
return __generator(this, function (_e) {
|
|
2530
2817
|
switch (_e.label) {
|
|
@@ -2544,15 +2831,22 @@ var Accounting = /** @class */ (function () {
|
|
|
2544
2831
|
}
|
|
2545
2832
|
}
|
|
2546
2833
|
client = this.sdkConfiguration.defaultClient;
|
|
2547
|
-
|
|
2548
|
-
|
|
2834
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2835
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2836
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2837
|
+
case 1:
|
|
2838
|
+
globalSecurity = _e.sent();
|
|
2839
|
+
_e.label = 2;
|
|
2840
|
+
case 2:
|
|
2841
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2842
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2549
2843
|
}
|
|
2550
|
-
properties = utils.parseSecurityProperties(
|
|
2844
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2551
2845
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2552
2846
|
headers["Accept"] = "application/json";
|
|
2553
2847
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2554
2848
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2555
|
-
case
|
|
2849
|
+
case 3:
|
|
2556
2850
|
httpRes = _e.sent();
|
|
2557
2851
|
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 : "";
|
|
2558
2852
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|