@unified-api/typescript-sdk 0.0.0 → 1.0.1
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 +124 -741
- package/dist/sdk/account.d.ts +6 -6
- package/dist/sdk/account.js +78 -36
- package/dist/sdk/accounting.d.ts +32 -72
- package/dist/sdk/accounting.js +451 -809
- 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/link.d.ts +31 -0
- package/dist/sdk/link.js +503 -0
- 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/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/{createaccountingpayment.d.ts → createpaymentlink.d.ts} +7 -10
- package/dist/sdk/models/operations/createpaymentlink.js +95 -0
- package/dist/sdk/models/operations/createpaymentpayment.d.ts +28 -0
- package/dist/sdk/models/operations/createpaymentpayment.js +95 -0
- 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/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/getpaymentlink.d.ts +35 -0
- package/dist/sdk/models/operations/getpaymentlink.js +99 -0
- package/dist/sdk/models/operations/{getaccountingpayment.d.ts → getpaymentpayment.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingpayment.js → getpaymentpayment.js} +20 -34
- package/dist/sdk/models/operations/{getaccountingpayout.d.ts → getpaymentpayout.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingpayout.js → getpaymentpayout.js} +20 -34
- package/dist/sdk/models/operations/{getaccountingrefund.d.ts → getpaymentrefund.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingrefund.js → getpaymentrefund.js} +20 -34
- 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/getunifiedintegrationauth.d.ts +6 -4
- package/dist/sdk/models/operations/getunifiedintegrationauth.js +6 -4
- package/dist/sdk/models/operations/getunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/index.d.ts +16 -10
- package/dist/sdk/models/operations/index.js +16 -10
- 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/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/{listaccountingrefunds.d.ts → listpaymentlinks.d.ts} +10 -9
- package/dist/sdk/models/operations/{listaccountingrefunds.js → listpaymentlinks.js} +30 -40
- package/dist/sdk/models/operations/{listaccountingpayments.d.ts → listpaymentpayments.d.ts} +6 -9
- package/dist/sdk/models/operations/{listaccountingpayments.js → listpaymentpayments.js} +28 -42
- package/dist/sdk/models/operations/{listaccountingpayouts.d.ts → listpaymentpayouts.d.ts} +6 -9
- package/dist/sdk/models/operations/listpaymentpayouts.js +119 -0
- package/dist/sdk/models/operations/listpaymentrefunds.d.ts +47 -0
- package/dist/sdk/models/operations/{listaccountingpayouts.js → listpaymentrefunds.js} +30 -40
- 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 +2 -4
- package/dist/sdk/models/operations/listunifiedconnections.js +2 -15
- package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -4
- package/dist/sdk/models/operations/listunifiedintegrations.js +2 -15
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- 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/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/patchpaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/{updateaccountingpayment.js → patchpaymentlink.js} +21 -35
- package/dist/sdk/models/operations/{patchaccountingpayment.d.ts → patchpaymentpayment.d.ts} +7 -10
- package/dist/sdk/models/operations/{patchaccountingpayment.js → patchpaymentpayment.js} +21 -35
- 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/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/removepaymentlink.d.ts +30 -0
- package/dist/sdk/models/operations/{removeaccountingpayment.js → removepaymentlink.js} +17 -31
- package/dist/sdk/models/operations/{removeaccountingpayment.d.ts → removepaymentpayment.d.ts} +2 -5
- package/dist/sdk/models/operations/removepaymentpayment.js +71 -0
- 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/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/updatepaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/updatepaymentlink.js +99 -0
- package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts} +7 -10
- package/dist/sdk/models/operations/{createaccountingpayment.js → updatepaymentpayment.js} +24 -34
- 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 +6 -3
- package/dist/sdk/models/shared/index.js +6 -3
- package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
- package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
- package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
- package/dist/sdk/models/shared/paymentlink.js +105 -0
- package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
- package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
- package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
- package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
- package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
- package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyintegrationcategories.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/models/shared/webhook.d.ts +4 -3
- package/dist/sdk/models/shared/webhook.js +4 -3
- 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 +46 -6
- package/dist/sdk/payment.js +755 -61
- package/dist/sdk/payout.d.ts +2 -2
- package/dist/sdk/payout.js +35 -21
- 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 +35 -21
- package/dist/sdk/scorecard.d.ts +6 -6
- package/dist/sdk/scorecard.js +78 -36
- package/dist/sdk/sdk.d.ts +11 -3
- package/dist/sdk/sdk.js +9 -6
- 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/categories.md +2 -1
- package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
- package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
- package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
- package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/queryparamcategories.md +2 -1
- package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
- package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
- package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/scopes.md +6 -4
- package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/shared/objecttype.md +4 -3
- package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
- package/docs/sdk/models/shared/paymentlink.md +18 -0
- package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
- package/docs/sdk/models/shared/paymentpayout.md +15 -0
- package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentpayoutstatus.md} +1 -1
- package/docs/sdk/models/shared/paymentrefund.md +17 -0
- package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentrefundstatus.md} +1 -1
- package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
- package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
- package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
- package/docs/sdk/models/{operations/getatsjobsecurity.md → shared/security.md} +2 -2
- 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/createaccountingpaymentrequest.md +0 -9
- package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
- 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/getaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
- 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/listaccountingpaymentsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
- 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/patchaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
- 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/updateaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
- 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/docs/sdk/models/shared/accountingpayout.md +0 -15
- package/docs/sdk/models/shared/accountingrefund.md +0 -17
- package/docs/sdks/account/README.md +0 -318
- package/docs/sdks/accounting/README.md +0 -2240
- package/docs/sdks/activity/README.md +0 -327
- package/docs/sdks/apicall/README.md +0 -97
- package/docs/sdks/application/README.md +0 -339
- package/docs/sdks/applicationstatus/README.md +0 -55
- package/docs/sdks/ats/README.md +0 -2533
- package/docs/sdks/auth/README.md +0 -95
- package/docs/sdks/call/README.md +0 -55
- package/docs/sdks/candidate/README.md +0 -375
- package/docs/sdks/collection/README.md +0 -354
- package/docs/sdks/commerce/README.md +0 -1395
- package/docs/sdks/company/README.md +0 -526
- package/docs/sdks/connection/README.md +0 -364
- package/docs/sdks/contact/README.md +0 -1046
- package/docs/sdks/crm/README.md +0 -2084
- package/docs/sdks/customer/README.md +0 -354
- package/docs/sdks/deal/README.md +0 -321
- package/docs/sdks/document/README.md +0 -315
- package/docs/sdks/employee/README.md +0 -369
- package/docs/sdks/enrich/README.md +0 -99
- package/docs/sdks/event/README.md +0 -396
- package/docs/sdks/file/README.md +0 -336
- package/docs/sdks/group/README.md +0 -333
- package/docs/sdks/hris/README.md +0 -697
- package/docs/sdks/integration/README.md +0 -147
- package/docs/sdks/interview/README.md +0 -324
- package/docs/sdks/inventory/README.md +0 -315
- package/docs/sdks/invoice/README.md +0 -330
- package/docs/sdks/issue/README.md +0 -50
- package/docs/sdks/item/README.md +0 -423
- package/docs/sdks/job/README.md +0 -402
- package/docs/sdks/lead/README.md +0 -342
- package/docs/sdks/list/README.md +0 -312
- package/docs/sdks/location/README.md +0 -318
- package/docs/sdks/login/README.md +0 -48
- package/docs/sdks/martech/README.md +0 -655
- package/docs/sdks/member/README.md +0 -348
- package/docs/sdks/note/README.md +0 -312
- package/docs/sdks/organization/README.md +0 -106
- package/docs/sdks/passthrough/README.md +0 -254
- package/docs/sdks/payment/README.md +0 -312
- package/docs/sdks/payout/README.md +0 -106
- package/docs/sdks/person/README.md +0 -52
- package/docs/sdks/pipeline/README.md +0 -312
- package/docs/sdks/refund/README.md +0 -106
- package/docs/sdks/scorecard/README.md +0 -330
- package/docs/sdks/storage/README.md +0 -336
- package/docs/sdks/taxrate/README.md +0 -318
- package/docs/sdks/ticket/README.md +0 -324
- package/docs/sdks/ticketing/README.md +0 -980
- package/docs/sdks/transaction/README.md +0 -333
- package/docs/sdks/uc/README.md +0 -395
- package/docs/sdks/unified/README.md +0 -935
- package/docs/sdks/unifiedto/README.md +0 -9
- package/docs/sdks/webhook/README.md +0 -297
package/dist/sdk/crm.js
CHANGED
|
@@ -101,10 +101,10 @@ var Crm = /** @class */ (function () {
|
|
|
101
101
|
/**
|
|
102
102
|
* Create a company
|
|
103
103
|
*/
|
|
104
|
-
Crm.prototype.createCrmCompany = function (req,
|
|
104
|
+
Crm.prototype.createCrmCompany = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
165
172
|
/**
|
|
166
173
|
* Create a contact
|
|
167
174
|
*/
|
|
168
|
-
Crm.prototype.createCrmContact = function (req,
|
|
175
|
+
Crm.prototype.createCrmContact = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
229
243
|
/**
|
|
230
244
|
* Create a deal
|
|
231
245
|
*/
|
|
232
|
-
Crm.prototype.createCrmDeal = function (req,
|
|
246
|
+
Crm.prototype.createCrmDeal = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
293
314
|
/**
|
|
294
315
|
* Create a event
|
|
295
316
|
*/
|
|
296
|
-
Crm.prototype.createCrmEvent = function (req,
|
|
317
|
+
Crm.prototype.createCrmEvent = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
357
385
|
/**
|
|
358
386
|
* Create a lead
|
|
359
387
|
*/
|
|
360
|
-
Crm.prototype.createCrmLead = function (req,
|
|
388
|
+
Crm.prototype.createCrmLead = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
421
456
|
/**
|
|
422
457
|
* Create a pipeline
|
|
423
458
|
*/
|
|
424
|
-
Crm.prototype.createCrmPipeline = function (req,
|
|
459
|
+
Crm.prototype.createCrmPipeline = 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 Crm = /** @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 Crm = /** @class */ (function () {
|
|
|
485
527
|
/**
|
|
486
528
|
* Retrieve a company
|
|
487
529
|
*/
|
|
488
|
-
Crm.prototype.getCrmCompany = function (req,
|
|
530
|
+
Crm.prototype.getCrmCompany = 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 Crm = /** @class */ (function () {
|
|
|
498
540
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
499
541
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/company/{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 Crm = /** @class */ (function () {
|
|
|
540
589
|
/**
|
|
541
590
|
* Retrieve a contact
|
|
542
591
|
*/
|
|
543
|
-
Crm.prototype.getCrmContact = function (req,
|
|
592
|
+
Crm.prototype.getCrmContact = 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 Crm = /** @class */ (function () {
|
|
|
553
602
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
554
603
|
operationUrl = utils.generateURL(baseURL, "/crm/{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 Crm = /** @class */ (function () {
|
|
|
595
651
|
/**
|
|
596
652
|
* Retrieve a deal
|
|
597
653
|
*/
|
|
598
|
-
Crm.prototype.getCrmDeal = function (req,
|
|
654
|
+
Crm.prototype.getCrmDeal = 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 Crm = /** @class */ (function () {
|
|
|
608
664
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
609
665
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/deal/{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 Crm = /** @class */ (function () {
|
|
|
650
713
|
/**
|
|
651
714
|
* Retrieve a event
|
|
652
715
|
*/
|
|
653
|
-
Crm.prototype.getCrmEvent = function (req,
|
|
716
|
+
Crm.prototype.getCrmEvent = 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 Crm = /** @class */ (function () {
|
|
|
663
726
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
664
727
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/event/{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 Crm = /** @class */ (function () {
|
|
|
705
775
|
/**
|
|
706
776
|
* Retrieve a lead
|
|
707
777
|
*/
|
|
708
|
-
Crm.prototype.getCrmLead = function (req,
|
|
778
|
+
Crm.prototype.getCrmLead = 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 Crm = /** @class */ (function () {
|
|
|
718
788
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
719
789
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/lead/{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 Crm = /** @class */ (function () {
|
|
|
760
837
|
/**
|
|
761
838
|
* Retrieve a pipeline
|
|
762
839
|
*/
|
|
763
|
-
Crm.prototype.getCrmPipeline = function (req,
|
|
840
|
+
Crm.prototype.getCrmPipeline = 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 Crm = /** @class */ (function () {
|
|
|
773
850
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
774
851
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/pipeline/{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 Crm = /** @class */ (function () {
|
|
|
815
899
|
/**
|
|
816
900
|
* List all companies
|
|
817
901
|
*/
|
|
818
|
-
Crm.prototype.listCrmCompanies = function (req,
|
|
902
|
+
Crm.prototype.listCrmCompanies = 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, resFieldDepth;
|
|
905
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
822
906
|
return __generator(this, function (_c) {
|
|
823
907
|
switch (_c.label) {
|
|
824
908
|
case 0:
|
|
@@ -828,16 +912,23 @@ var Crm = /** @class */ (function () {
|
|
|
828
912
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
829
913
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/company", 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) {
|
|
@@ -872,10 +963,10 @@ var Crm = /** @class */ (function () {
|
|
|
872
963
|
/**
|
|
873
964
|
* List all contacts
|
|
874
965
|
*/
|
|
875
|
-
Crm.prototype.listCrmContacts = function (req,
|
|
966
|
+
Crm.prototype.listCrmContacts = function (req, config) {
|
|
876
967
|
var _a, _b;
|
|
877
968
|
return __awaiter(this, void 0, void 0, function () {
|
|
878
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
969
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
879
970
|
return __generator(this, function (_c) {
|
|
880
971
|
switch (_c.label) {
|
|
881
972
|
case 0:
|
|
@@ -885,16 +976,23 @@ var Crm = /** @class */ (function () {
|
|
|
885
976
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
886
977
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/contact", req);
|
|
887
978
|
client = this.sdkConfiguration.defaultClient;
|
|
888
|
-
|
|
889
|
-
|
|
979
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
980
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
981
|
+
return [4 /*yield*/, globalSecurity()];
|
|
982
|
+
case 1:
|
|
983
|
+
globalSecurity = _c.sent();
|
|
984
|
+
_c.label = 2;
|
|
985
|
+
case 2:
|
|
986
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
987
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
890
988
|
}
|
|
891
|
-
properties = utils.parseSecurityProperties(
|
|
989
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
892
990
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
893
991
|
queryParams = utils.serializeQueryParams(req);
|
|
894
992
|
headers["Accept"] = "application/json";
|
|
895
993
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
896
994
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
897
|
-
case
|
|
995
|
+
case 3:
|
|
898
996
|
httpRes = _c.sent();
|
|
899
997
|
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 : "";
|
|
900
998
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -929,10 +1027,10 @@ var Crm = /** @class */ (function () {
|
|
|
929
1027
|
/**
|
|
930
1028
|
* List all deals
|
|
931
1029
|
*/
|
|
932
|
-
Crm.prototype.listCrmDeals = function (req,
|
|
1030
|
+
Crm.prototype.listCrmDeals = function (req, config) {
|
|
933
1031
|
var _a, _b;
|
|
934
1032
|
return __awaiter(this, void 0, void 0, function () {
|
|
935
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1033
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
936
1034
|
return __generator(this, function (_c) {
|
|
937
1035
|
switch (_c.label) {
|
|
938
1036
|
case 0:
|
|
@@ -942,16 +1040,23 @@ var Crm = /** @class */ (function () {
|
|
|
942
1040
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
943
1041
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/deal", req);
|
|
944
1042
|
client = this.sdkConfiguration.defaultClient;
|
|
945
|
-
|
|
946
|
-
|
|
1043
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1044
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1045
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1046
|
+
case 1:
|
|
1047
|
+
globalSecurity = _c.sent();
|
|
1048
|
+
_c.label = 2;
|
|
1049
|
+
case 2:
|
|
1050
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1051
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
947
1052
|
}
|
|
948
|
-
properties = utils.parseSecurityProperties(
|
|
1053
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
949
1054
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
950
1055
|
queryParams = utils.serializeQueryParams(req);
|
|
951
1056
|
headers["Accept"] = "application/json";
|
|
952
1057
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
953
1058
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
954
|
-
case
|
|
1059
|
+
case 3:
|
|
955
1060
|
httpRes = _c.sent();
|
|
956
1061
|
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 : "";
|
|
957
1062
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -986,10 +1091,10 @@ var Crm = /** @class */ (function () {
|
|
|
986
1091
|
/**
|
|
987
1092
|
* List all events
|
|
988
1093
|
*/
|
|
989
|
-
Crm.prototype.listCrmEvents = function (req,
|
|
1094
|
+
Crm.prototype.listCrmEvents = function (req, config) {
|
|
990
1095
|
var _a, _b;
|
|
991
1096
|
return __awaiter(this, void 0, void 0, function () {
|
|
992
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1097
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
993
1098
|
return __generator(this, function (_c) {
|
|
994
1099
|
switch (_c.label) {
|
|
995
1100
|
case 0:
|
|
@@ -999,16 +1104,23 @@ var Crm = /** @class */ (function () {
|
|
|
999
1104
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1000
1105
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/event", req);
|
|
1001
1106
|
client = this.sdkConfiguration.defaultClient;
|
|
1002
|
-
|
|
1003
|
-
|
|
1107
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1108
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1109
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1110
|
+
case 1:
|
|
1111
|
+
globalSecurity = _c.sent();
|
|
1112
|
+
_c.label = 2;
|
|
1113
|
+
case 2:
|
|
1114
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1115
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1004
1116
|
}
|
|
1005
|
-
properties = utils.parseSecurityProperties(
|
|
1117
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1006
1118
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1007
1119
|
queryParams = utils.serializeQueryParams(req);
|
|
1008
1120
|
headers["Accept"] = "application/json";
|
|
1009
1121
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1010
1122
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1011
|
-
case
|
|
1123
|
+
case 3:
|
|
1012
1124
|
httpRes = _c.sent();
|
|
1013
1125
|
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 : "";
|
|
1014
1126
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1043,10 +1155,10 @@ var Crm = /** @class */ (function () {
|
|
|
1043
1155
|
/**
|
|
1044
1156
|
* List all leads
|
|
1045
1157
|
*/
|
|
1046
|
-
Crm.prototype.listCrmLeads = function (req,
|
|
1158
|
+
Crm.prototype.listCrmLeads = function (req, config) {
|
|
1047
1159
|
var _a, _b;
|
|
1048
1160
|
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1161
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1050
1162
|
return __generator(this, function (_c) {
|
|
1051
1163
|
switch (_c.label) {
|
|
1052
1164
|
case 0:
|
|
@@ -1056,16 +1168,23 @@ var Crm = /** @class */ (function () {
|
|
|
1056
1168
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1057
1169
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/lead", req);
|
|
1058
1170
|
client = this.sdkConfiguration.defaultClient;
|
|
1059
|
-
|
|
1060
|
-
|
|
1171
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1172
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1173
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1174
|
+
case 1:
|
|
1175
|
+
globalSecurity = _c.sent();
|
|
1176
|
+
_c.label = 2;
|
|
1177
|
+
case 2:
|
|
1178
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1179
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1061
1180
|
}
|
|
1062
|
-
properties = utils.parseSecurityProperties(
|
|
1181
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1063
1182
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1064
1183
|
queryParams = utils.serializeQueryParams(req);
|
|
1065
1184
|
headers["Accept"] = "application/json";
|
|
1066
1185
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1067
1186
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1068
|
-
case
|
|
1187
|
+
case 3:
|
|
1069
1188
|
httpRes = _c.sent();
|
|
1070
1189
|
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 : "";
|
|
1071
1190
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1100,10 +1219,10 @@ var Crm = /** @class */ (function () {
|
|
|
1100
1219
|
/**
|
|
1101
1220
|
* List all pipelines
|
|
1102
1221
|
*/
|
|
1103
|
-
Crm.prototype.listCrmPipelines = function (req,
|
|
1222
|
+
Crm.prototype.listCrmPipelines = function (req, config) {
|
|
1104
1223
|
var _a, _b;
|
|
1105
1224
|
return __awaiter(this, void 0, void 0, function () {
|
|
1106
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1225
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1107
1226
|
return __generator(this, function (_c) {
|
|
1108
1227
|
switch (_c.label) {
|
|
1109
1228
|
case 0:
|
|
@@ -1113,16 +1232,23 @@ var Crm = /** @class */ (function () {
|
|
|
1113
1232
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1114
1233
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/pipeline", req);
|
|
1115
1234
|
client = this.sdkConfiguration.defaultClient;
|
|
1116
|
-
|
|
1117
|
-
|
|
1235
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1236
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1237
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1238
|
+
case 1:
|
|
1239
|
+
globalSecurity = _c.sent();
|
|
1240
|
+
_c.label = 2;
|
|
1241
|
+
case 2:
|
|
1242
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1243
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1118
1244
|
}
|
|
1119
|
-
properties = utils.parseSecurityProperties(
|
|
1245
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1120
1246
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1121
1247
|
queryParams = utils.serializeQueryParams(req);
|
|
1122
1248
|
headers["Accept"] = "application/json";
|
|
1123
1249
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1124
1250
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1125
|
-
case
|
|
1251
|
+
case 3:
|
|
1126
1252
|
httpRes = _c.sent();
|
|
1127
1253
|
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 : "";
|
|
1128
1254
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1157,10 +1283,10 @@ var Crm = /** @class */ (function () {
|
|
|
1157
1283
|
/**
|
|
1158
1284
|
* Update a company
|
|
1159
1285
|
*/
|
|
1160
|
-
Crm.prototype.patchCrmCompany = function (req,
|
|
1286
|
+
Crm.prototype.patchCrmCompany = function (req, config) {
|
|
1161
1287
|
var _a, _b;
|
|
1162
1288
|
return __awaiter(this, void 0, void 0, function () {
|
|
1163
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1289
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1164
1290
|
var _d;
|
|
1165
1291
|
return __generator(this, function (_e) {
|
|
1166
1292
|
switch (_e.label) {
|
|
@@ -1180,15 +1306,22 @@ var Crm = /** @class */ (function () {
|
|
|
1180
1306
|
}
|
|
1181
1307
|
}
|
|
1182
1308
|
client = this.sdkConfiguration.defaultClient;
|
|
1183
|
-
|
|
1184
|
-
|
|
1309
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1310
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1311
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1312
|
+
case 1:
|
|
1313
|
+
globalSecurity = _e.sent();
|
|
1314
|
+
_e.label = 2;
|
|
1315
|
+
case 2:
|
|
1316
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1317
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1185
1318
|
}
|
|
1186
|
-
properties = utils.parseSecurityProperties(
|
|
1319
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1187
1320
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1188
1321
|
headers["Accept"] = "application/json";
|
|
1189
1322
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1190
1323
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1191
|
-
case
|
|
1324
|
+
case 3:
|
|
1192
1325
|
httpRes = _e.sent();
|
|
1193
1326
|
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 : "";
|
|
1194
1327
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1221,10 +1354,10 @@ var Crm = /** @class */ (function () {
|
|
|
1221
1354
|
/**
|
|
1222
1355
|
* Update a contact
|
|
1223
1356
|
*/
|
|
1224
|
-
Crm.prototype.patchCrmContact = function (req,
|
|
1357
|
+
Crm.prototype.patchCrmContact = function (req, config) {
|
|
1225
1358
|
var _a, _b;
|
|
1226
1359
|
return __awaiter(this, void 0, void 0, function () {
|
|
1227
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1360
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1228
1361
|
var _d;
|
|
1229
1362
|
return __generator(this, function (_e) {
|
|
1230
1363
|
switch (_e.label) {
|
|
@@ -1244,15 +1377,22 @@ var Crm = /** @class */ (function () {
|
|
|
1244
1377
|
}
|
|
1245
1378
|
}
|
|
1246
1379
|
client = this.sdkConfiguration.defaultClient;
|
|
1247
|
-
|
|
1248
|
-
|
|
1380
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1381
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1382
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1383
|
+
case 1:
|
|
1384
|
+
globalSecurity = _e.sent();
|
|
1385
|
+
_e.label = 2;
|
|
1386
|
+
case 2:
|
|
1387
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1388
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1249
1389
|
}
|
|
1250
|
-
properties = utils.parseSecurityProperties(
|
|
1390
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1251
1391
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1252
1392
|
headers["Accept"] = "application/json";
|
|
1253
1393
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1254
1394
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1255
|
-
case
|
|
1395
|
+
case 3:
|
|
1256
1396
|
httpRes = _e.sent();
|
|
1257
1397
|
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 : "";
|
|
1258
1398
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1285,10 +1425,10 @@ var Crm = /** @class */ (function () {
|
|
|
1285
1425
|
/**
|
|
1286
1426
|
* Update a deal
|
|
1287
1427
|
*/
|
|
1288
|
-
Crm.prototype.patchCrmDeal = function (req,
|
|
1428
|
+
Crm.prototype.patchCrmDeal = function (req, config) {
|
|
1289
1429
|
var _a, _b;
|
|
1290
1430
|
return __awaiter(this, void 0, void 0, function () {
|
|
1291
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1431
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1292
1432
|
var _d;
|
|
1293
1433
|
return __generator(this, function (_e) {
|
|
1294
1434
|
switch (_e.label) {
|
|
@@ -1308,15 +1448,22 @@ var Crm = /** @class */ (function () {
|
|
|
1308
1448
|
}
|
|
1309
1449
|
}
|
|
1310
1450
|
client = this.sdkConfiguration.defaultClient;
|
|
1311
|
-
|
|
1312
|
-
|
|
1451
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1452
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1453
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1454
|
+
case 1:
|
|
1455
|
+
globalSecurity = _e.sent();
|
|
1456
|
+
_e.label = 2;
|
|
1457
|
+
case 2:
|
|
1458
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1459
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1313
1460
|
}
|
|
1314
|
-
properties = utils.parseSecurityProperties(
|
|
1461
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1315
1462
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1316
1463
|
headers["Accept"] = "application/json";
|
|
1317
1464
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1318
1465
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1319
|
-
case
|
|
1466
|
+
case 3:
|
|
1320
1467
|
httpRes = _e.sent();
|
|
1321
1468
|
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 : "";
|
|
1322
1469
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1349,10 +1496,10 @@ var Crm = /** @class */ (function () {
|
|
|
1349
1496
|
/**
|
|
1350
1497
|
* Update a event
|
|
1351
1498
|
*/
|
|
1352
|
-
Crm.prototype.patchCrmEvent = function (req,
|
|
1499
|
+
Crm.prototype.patchCrmEvent = function (req, config) {
|
|
1353
1500
|
var _a, _b;
|
|
1354
1501
|
return __awaiter(this, void 0, void 0, function () {
|
|
1355
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1502
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1356
1503
|
var _d;
|
|
1357
1504
|
return __generator(this, function (_e) {
|
|
1358
1505
|
switch (_e.label) {
|
|
@@ -1372,15 +1519,22 @@ var Crm = /** @class */ (function () {
|
|
|
1372
1519
|
}
|
|
1373
1520
|
}
|
|
1374
1521
|
client = this.sdkConfiguration.defaultClient;
|
|
1375
|
-
|
|
1376
|
-
|
|
1522
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1523
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1524
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1525
|
+
case 1:
|
|
1526
|
+
globalSecurity = _e.sent();
|
|
1527
|
+
_e.label = 2;
|
|
1528
|
+
case 2:
|
|
1529
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1530
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1377
1531
|
}
|
|
1378
|
-
properties = utils.parseSecurityProperties(
|
|
1532
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1379
1533
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1380
1534
|
headers["Accept"] = "application/json";
|
|
1381
1535
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1382
1536
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1383
|
-
case
|
|
1537
|
+
case 3:
|
|
1384
1538
|
httpRes = _e.sent();
|
|
1385
1539
|
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 : "";
|
|
1386
1540
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1413,10 +1567,10 @@ var Crm = /** @class */ (function () {
|
|
|
1413
1567
|
/**
|
|
1414
1568
|
* Update a lead
|
|
1415
1569
|
*/
|
|
1416
|
-
Crm.prototype.patchCrmLead = function (req,
|
|
1570
|
+
Crm.prototype.patchCrmLead = function (req, config) {
|
|
1417
1571
|
var _a, _b;
|
|
1418
1572
|
return __awaiter(this, void 0, void 0, function () {
|
|
1419
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1573
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1420
1574
|
var _d;
|
|
1421
1575
|
return __generator(this, function (_e) {
|
|
1422
1576
|
switch (_e.label) {
|
|
@@ -1436,15 +1590,22 @@ var Crm = /** @class */ (function () {
|
|
|
1436
1590
|
}
|
|
1437
1591
|
}
|
|
1438
1592
|
client = this.sdkConfiguration.defaultClient;
|
|
1439
|
-
|
|
1440
|
-
|
|
1593
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1594
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1595
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1596
|
+
case 1:
|
|
1597
|
+
globalSecurity = _e.sent();
|
|
1598
|
+
_e.label = 2;
|
|
1599
|
+
case 2:
|
|
1600
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1601
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1441
1602
|
}
|
|
1442
|
-
properties = utils.parseSecurityProperties(
|
|
1603
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1443
1604
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1444
1605
|
headers["Accept"] = "application/json";
|
|
1445
1606
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1446
1607
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1447
|
-
case
|
|
1608
|
+
case 3:
|
|
1448
1609
|
httpRes = _e.sent();
|
|
1449
1610
|
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 : "";
|
|
1450
1611
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1477,10 +1638,10 @@ var Crm = /** @class */ (function () {
|
|
|
1477
1638
|
/**
|
|
1478
1639
|
* Update a pipeline
|
|
1479
1640
|
*/
|
|
1480
|
-
Crm.prototype.patchCrmPipeline = function (req,
|
|
1641
|
+
Crm.prototype.patchCrmPipeline = function (req, config) {
|
|
1481
1642
|
var _a, _b;
|
|
1482
1643
|
return __awaiter(this, void 0, void 0, function () {
|
|
1483
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1644
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1484
1645
|
var _d;
|
|
1485
1646
|
return __generator(this, function (_e) {
|
|
1486
1647
|
switch (_e.label) {
|
|
@@ -1500,15 +1661,22 @@ var Crm = /** @class */ (function () {
|
|
|
1500
1661
|
}
|
|
1501
1662
|
}
|
|
1502
1663
|
client = this.sdkConfiguration.defaultClient;
|
|
1503
|
-
|
|
1504
|
-
|
|
1664
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1665
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1666
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1667
|
+
case 1:
|
|
1668
|
+
globalSecurity = _e.sent();
|
|
1669
|
+
_e.label = 2;
|
|
1670
|
+
case 2:
|
|
1671
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1672
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1505
1673
|
}
|
|
1506
|
-
properties = utils.parseSecurityProperties(
|
|
1674
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1507
1675
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1508
1676
|
headers["Accept"] = "application/json";
|
|
1509
1677
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1510
1678
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1511
|
-
case
|
|
1679
|
+
case 3:
|
|
1512
1680
|
httpRes = _e.sent();
|
|
1513
1681
|
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 : "";
|
|
1514
1682
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1541,10 +1709,10 @@ var Crm = /** @class */ (function () {
|
|
|
1541
1709
|
/**
|
|
1542
1710
|
* Remove a company
|
|
1543
1711
|
*/
|
|
1544
|
-
Crm.prototype.removeCrmCompany = function (req,
|
|
1712
|
+
Crm.prototype.removeCrmCompany = function (req, config) {
|
|
1545
1713
|
var _a, _b;
|
|
1546
1714
|
return __awaiter(this, void 0, void 0, function () {
|
|
1547
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1715
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1548
1716
|
return __generator(this, function (_c) {
|
|
1549
1717
|
switch (_c.label) {
|
|
1550
1718
|
case 0:
|
|
@@ -1554,15 +1722,22 @@ var Crm = /** @class */ (function () {
|
|
|
1554
1722
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1555
1723
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/company/{id}", req);
|
|
1556
1724
|
client = this.sdkConfiguration.defaultClient;
|
|
1557
|
-
|
|
1558
|
-
|
|
1725
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1726
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1727
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1728
|
+
case 1:
|
|
1729
|
+
globalSecurity = _c.sent();
|
|
1730
|
+
_c.label = 2;
|
|
1731
|
+
case 2:
|
|
1732
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1733
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1559
1734
|
}
|
|
1560
|
-
properties = utils.parseSecurityProperties(
|
|
1735
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1561
1736
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1562
1737
|
headers["Accept"] = "application/json";
|
|
1563
1738
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1564
1739
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1565
|
-
case
|
|
1740
|
+
case 3:
|
|
1566
1741
|
httpRes = _c.sent();
|
|
1567
1742
|
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 : "";
|
|
1568
1743
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1595,10 +1770,10 @@ var Crm = /** @class */ (function () {
|
|
|
1595
1770
|
/**
|
|
1596
1771
|
* Remove a contact
|
|
1597
1772
|
*/
|
|
1598
|
-
Crm.prototype.removeCrmContact = function (req,
|
|
1773
|
+
Crm.prototype.removeCrmContact = function (req, config) {
|
|
1599
1774
|
var _a, _b;
|
|
1600
1775
|
return __awaiter(this, void 0, void 0, function () {
|
|
1601
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1776
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1602
1777
|
return __generator(this, function (_c) {
|
|
1603
1778
|
switch (_c.label) {
|
|
1604
1779
|
case 0:
|
|
@@ -1608,15 +1783,22 @@ var Crm = /** @class */ (function () {
|
|
|
1608
1783
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1609
1784
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/contact/{id}", req);
|
|
1610
1785
|
client = this.sdkConfiguration.defaultClient;
|
|
1611
|
-
|
|
1612
|
-
|
|
1786
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1787
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1788
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1789
|
+
case 1:
|
|
1790
|
+
globalSecurity = _c.sent();
|
|
1791
|
+
_c.label = 2;
|
|
1792
|
+
case 2:
|
|
1793
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1794
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1613
1795
|
}
|
|
1614
|
-
properties = utils.parseSecurityProperties(
|
|
1796
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1615
1797
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1616
1798
|
headers["Accept"] = "application/json";
|
|
1617
1799
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1618
1800
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1619
|
-
case
|
|
1801
|
+
case 3:
|
|
1620
1802
|
httpRes = _c.sent();
|
|
1621
1803
|
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 : "";
|
|
1622
1804
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1649,10 +1831,10 @@ var Crm = /** @class */ (function () {
|
|
|
1649
1831
|
/**
|
|
1650
1832
|
* Remove a deal
|
|
1651
1833
|
*/
|
|
1652
|
-
Crm.prototype.removeCrmDeal = function (req,
|
|
1834
|
+
Crm.prototype.removeCrmDeal = function (req, config) {
|
|
1653
1835
|
var _a, _b;
|
|
1654
1836
|
return __awaiter(this, void 0, void 0, function () {
|
|
1655
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1837
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1656
1838
|
return __generator(this, function (_c) {
|
|
1657
1839
|
switch (_c.label) {
|
|
1658
1840
|
case 0:
|
|
@@ -1662,15 +1844,22 @@ var Crm = /** @class */ (function () {
|
|
|
1662
1844
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1663
1845
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/deal/{id}", req);
|
|
1664
1846
|
client = this.sdkConfiguration.defaultClient;
|
|
1665
|
-
|
|
1666
|
-
|
|
1847
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1848
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1849
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1850
|
+
case 1:
|
|
1851
|
+
globalSecurity = _c.sent();
|
|
1852
|
+
_c.label = 2;
|
|
1853
|
+
case 2:
|
|
1854
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1855
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1667
1856
|
}
|
|
1668
|
-
properties = utils.parseSecurityProperties(
|
|
1857
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1669
1858
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1670
1859
|
headers["Accept"] = "application/json";
|
|
1671
1860
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1672
1861
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1673
|
-
case
|
|
1862
|
+
case 3:
|
|
1674
1863
|
httpRes = _c.sent();
|
|
1675
1864
|
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 : "";
|
|
1676
1865
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1703,10 +1892,10 @@ var Crm = /** @class */ (function () {
|
|
|
1703
1892
|
/**
|
|
1704
1893
|
* Remove a event
|
|
1705
1894
|
*/
|
|
1706
|
-
Crm.prototype.removeCrmEvent = function (req,
|
|
1895
|
+
Crm.prototype.removeCrmEvent = function (req, config) {
|
|
1707
1896
|
var _a, _b;
|
|
1708
1897
|
return __awaiter(this, void 0, void 0, function () {
|
|
1709
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1898
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1710
1899
|
return __generator(this, function (_c) {
|
|
1711
1900
|
switch (_c.label) {
|
|
1712
1901
|
case 0:
|
|
@@ -1716,15 +1905,22 @@ var Crm = /** @class */ (function () {
|
|
|
1716
1905
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1717
1906
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/event/{id}", req);
|
|
1718
1907
|
client = this.sdkConfiguration.defaultClient;
|
|
1719
|
-
|
|
1720
|
-
|
|
1908
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1909
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1910
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1911
|
+
case 1:
|
|
1912
|
+
globalSecurity = _c.sent();
|
|
1913
|
+
_c.label = 2;
|
|
1914
|
+
case 2:
|
|
1915
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1916
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1721
1917
|
}
|
|
1722
|
-
properties = utils.parseSecurityProperties(
|
|
1918
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1723
1919
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1724
1920
|
headers["Accept"] = "application/json";
|
|
1725
1921
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1726
1922
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1727
|
-
case
|
|
1923
|
+
case 3:
|
|
1728
1924
|
httpRes = _c.sent();
|
|
1729
1925
|
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 : "";
|
|
1730
1926
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1757,10 +1953,10 @@ var Crm = /** @class */ (function () {
|
|
|
1757
1953
|
/**
|
|
1758
1954
|
* Remove a lead
|
|
1759
1955
|
*/
|
|
1760
|
-
Crm.prototype.removeCrmLead = function (req,
|
|
1956
|
+
Crm.prototype.removeCrmLead = function (req, config) {
|
|
1761
1957
|
var _a, _b;
|
|
1762
1958
|
return __awaiter(this, void 0, void 0, function () {
|
|
1763
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1959
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1764
1960
|
return __generator(this, function (_c) {
|
|
1765
1961
|
switch (_c.label) {
|
|
1766
1962
|
case 0:
|
|
@@ -1770,15 +1966,22 @@ var Crm = /** @class */ (function () {
|
|
|
1770
1966
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1771
1967
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/lead/{id}", req);
|
|
1772
1968
|
client = this.sdkConfiguration.defaultClient;
|
|
1773
|
-
|
|
1774
|
-
|
|
1969
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1970
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1971
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1972
|
+
case 1:
|
|
1973
|
+
globalSecurity = _c.sent();
|
|
1974
|
+
_c.label = 2;
|
|
1975
|
+
case 2:
|
|
1976
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1977
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1775
1978
|
}
|
|
1776
|
-
properties = utils.parseSecurityProperties(
|
|
1979
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1777
1980
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1778
1981
|
headers["Accept"] = "application/json";
|
|
1779
1982
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1780
1983
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1781
|
-
case
|
|
1984
|
+
case 3:
|
|
1782
1985
|
httpRes = _c.sent();
|
|
1783
1986
|
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 : "";
|
|
1784
1987
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1811,10 +2014,10 @@ var Crm = /** @class */ (function () {
|
|
|
1811
2014
|
/**
|
|
1812
2015
|
* Remove a pipeline
|
|
1813
2016
|
*/
|
|
1814
|
-
Crm.prototype.removeCrmPipeline = function (req,
|
|
2017
|
+
Crm.prototype.removeCrmPipeline = function (req, config) {
|
|
1815
2018
|
var _a, _b;
|
|
1816
2019
|
return __awaiter(this, void 0, void 0, function () {
|
|
1817
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2020
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1818
2021
|
return __generator(this, function (_c) {
|
|
1819
2022
|
switch (_c.label) {
|
|
1820
2023
|
case 0:
|
|
@@ -1824,15 +2027,22 @@ var Crm = /** @class */ (function () {
|
|
|
1824
2027
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1825
2028
|
operationUrl = utils.generateURL(baseURL, "/crm/{connection_id}/pipeline/{id}", req);
|
|
1826
2029
|
client = this.sdkConfiguration.defaultClient;
|
|
1827
|
-
|
|
1828
|
-
|
|
2030
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2031
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2032
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2033
|
+
case 1:
|
|
2034
|
+
globalSecurity = _c.sent();
|
|
2035
|
+
_c.label = 2;
|
|
2036
|
+
case 2:
|
|
2037
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2038
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1829
2039
|
}
|
|
1830
|
-
properties = utils.parseSecurityProperties(
|
|
2040
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1831
2041
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1832
2042
|
headers["Accept"] = "application/json";
|
|
1833
2043
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1834
2044
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1835
|
-
case
|
|
2045
|
+
case 3:
|
|
1836
2046
|
httpRes = _c.sent();
|
|
1837
2047
|
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 : "";
|
|
1838
2048
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1865,10 +2075,10 @@ var Crm = /** @class */ (function () {
|
|
|
1865
2075
|
/**
|
|
1866
2076
|
* Update a company
|
|
1867
2077
|
*/
|
|
1868
|
-
Crm.prototype.updateCrmCompany = function (req,
|
|
2078
|
+
Crm.prototype.updateCrmCompany = function (req, config) {
|
|
1869
2079
|
var _a, _b;
|
|
1870
2080
|
return __awaiter(this, void 0, void 0, function () {
|
|
1871
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2081
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1872
2082
|
var _d;
|
|
1873
2083
|
return __generator(this, function (_e) {
|
|
1874
2084
|
switch (_e.label) {
|
|
@@ -1888,15 +2098,22 @@ var Crm = /** @class */ (function () {
|
|
|
1888
2098
|
}
|
|
1889
2099
|
}
|
|
1890
2100
|
client = this.sdkConfiguration.defaultClient;
|
|
1891
|
-
|
|
1892
|
-
|
|
2101
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2102
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2103
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2104
|
+
case 1:
|
|
2105
|
+
globalSecurity = _e.sent();
|
|
2106
|
+
_e.label = 2;
|
|
2107
|
+
case 2:
|
|
2108
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2109
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1893
2110
|
}
|
|
1894
|
-
properties = utils.parseSecurityProperties(
|
|
2111
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1895
2112
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1896
2113
|
headers["Accept"] = "application/json";
|
|
1897
2114
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1898
2115
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1899
|
-
case
|
|
2116
|
+
case 3:
|
|
1900
2117
|
httpRes = _e.sent();
|
|
1901
2118
|
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 : "";
|
|
1902
2119
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1929,10 +2146,10 @@ var Crm = /** @class */ (function () {
|
|
|
1929
2146
|
/**
|
|
1930
2147
|
* Update a contact
|
|
1931
2148
|
*/
|
|
1932
|
-
Crm.prototype.updateCrmContact = function (req,
|
|
2149
|
+
Crm.prototype.updateCrmContact = function (req, config) {
|
|
1933
2150
|
var _a, _b;
|
|
1934
2151
|
return __awaiter(this, void 0, void 0, function () {
|
|
1935
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2152
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1936
2153
|
var _d;
|
|
1937
2154
|
return __generator(this, function (_e) {
|
|
1938
2155
|
switch (_e.label) {
|
|
@@ -1952,15 +2169,22 @@ var Crm = /** @class */ (function () {
|
|
|
1952
2169
|
}
|
|
1953
2170
|
}
|
|
1954
2171
|
client = this.sdkConfiguration.defaultClient;
|
|
1955
|
-
|
|
1956
|
-
|
|
2172
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2173
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2174
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2175
|
+
case 1:
|
|
2176
|
+
globalSecurity = _e.sent();
|
|
2177
|
+
_e.label = 2;
|
|
2178
|
+
case 2:
|
|
2179
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2180
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1957
2181
|
}
|
|
1958
|
-
properties = utils.parseSecurityProperties(
|
|
2182
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1959
2183
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1960
2184
|
headers["Accept"] = "application/json";
|
|
1961
2185
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1962
2186
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1963
|
-
case
|
|
2187
|
+
case 3:
|
|
1964
2188
|
httpRes = _e.sent();
|
|
1965
2189
|
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 : "";
|
|
1966
2190
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -1993,10 +2217,10 @@ var Crm = /** @class */ (function () {
|
|
|
1993
2217
|
/**
|
|
1994
2218
|
* Update a deal
|
|
1995
2219
|
*/
|
|
1996
|
-
Crm.prototype.updateCrmDeal = function (req,
|
|
2220
|
+
Crm.prototype.updateCrmDeal = function (req, config) {
|
|
1997
2221
|
var _a, _b;
|
|
1998
2222
|
return __awaiter(this, void 0, void 0, function () {
|
|
1999
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2223
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2000
2224
|
var _d;
|
|
2001
2225
|
return __generator(this, function (_e) {
|
|
2002
2226
|
switch (_e.label) {
|
|
@@ -2016,15 +2240,22 @@ var Crm = /** @class */ (function () {
|
|
|
2016
2240
|
}
|
|
2017
2241
|
}
|
|
2018
2242
|
client = this.sdkConfiguration.defaultClient;
|
|
2019
|
-
|
|
2020
|
-
|
|
2243
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2244
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2245
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2246
|
+
case 1:
|
|
2247
|
+
globalSecurity = _e.sent();
|
|
2248
|
+
_e.label = 2;
|
|
2249
|
+
case 2:
|
|
2250
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2251
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2021
2252
|
}
|
|
2022
|
-
properties = utils.parseSecurityProperties(
|
|
2253
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2023
2254
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2024
2255
|
headers["Accept"] = "application/json";
|
|
2025
2256
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2026
2257
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2027
|
-
case
|
|
2258
|
+
case 3:
|
|
2028
2259
|
httpRes = _e.sent();
|
|
2029
2260
|
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 : "";
|
|
2030
2261
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2057,10 +2288,10 @@ var Crm = /** @class */ (function () {
|
|
|
2057
2288
|
/**
|
|
2058
2289
|
* Update a event
|
|
2059
2290
|
*/
|
|
2060
|
-
Crm.prototype.updateCrmEvent = function (req,
|
|
2291
|
+
Crm.prototype.updateCrmEvent = function (req, config) {
|
|
2061
2292
|
var _a, _b;
|
|
2062
2293
|
return __awaiter(this, void 0, void 0, function () {
|
|
2063
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2294
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2064
2295
|
var _d;
|
|
2065
2296
|
return __generator(this, function (_e) {
|
|
2066
2297
|
switch (_e.label) {
|
|
@@ -2080,15 +2311,22 @@ var Crm = /** @class */ (function () {
|
|
|
2080
2311
|
}
|
|
2081
2312
|
}
|
|
2082
2313
|
client = this.sdkConfiguration.defaultClient;
|
|
2083
|
-
|
|
2084
|
-
|
|
2314
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2315
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2316
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2317
|
+
case 1:
|
|
2318
|
+
globalSecurity = _e.sent();
|
|
2319
|
+
_e.label = 2;
|
|
2320
|
+
case 2:
|
|
2321
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2322
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2085
2323
|
}
|
|
2086
|
-
properties = utils.parseSecurityProperties(
|
|
2324
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2087
2325
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2088
2326
|
headers["Accept"] = "application/json";
|
|
2089
2327
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2090
2328
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2091
|
-
case
|
|
2329
|
+
case 3:
|
|
2092
2330
|
httpRes = _e.sent();
|
|
2093
2331
|
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 : "";
|
|
2094
2332
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2121,10 +2359,10 @@ var Crm = /** @class */ (function () {
|
|
|
2121
2359
|
/**
|
|
2122
2360
|
* Update a lead
|
|
2123
2361
|
*/
|
|
2124
|
-
Crm.prototype.updateCrmLead = function (req,
|
|
2362
|
+
Crm.prototype.updateCrmLead = function (req, config) {
|
|
2125
2363
|
var _a, _b;
|
|
2126
2364
|
return __awaiter(this, void 0, void 0, function () {
|
|
2127
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2365
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2128
2366
|
var _d;
|
|
2129
2367
|
return __generator(this, function (_e) {
|
|
2130
2368
|
switch (_e.label) {
|
|
@@ -2144,15 +2382,22 @@ var Crm = /** @class */ (function () {
|
|
|
2144
2382
|
}
|
|
2145
2383
|
}
|
|
2146
2384
|
client = this.sdkConfiguration.defaultClient;
|
|
2147
|
-
|
|
2148
|
-
|
|
2385
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2386
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2387
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2388
|
+
case 1:
|
|
2389
|
+
globalSecurity = _e.sent();
|
|
2390
|
+
_e.label = 2;
|
|
2391
|
+
case 2:
|
|
2392
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2393
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2149
2394
|
}
|
|
2150
|
-
properties = utils.parseSecurityProperties(
|
|
2395
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2151
2396
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2152
2397
|
headers["Accept"] = "application/json";
|
|
2153
2398
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2154
2399
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2155
|
-
case
|
|
2400
|
+
case 3:
|
|
2156
2401
|
httpRes = _e.sent();
|
|
2157
2402
|
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 : "";
|
|
2158
2403
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -2185,10 +2430,10 @@ var Crm = /** @class */ (function () {
|
|
|
2185
2430
|
/**
|
|
2186
2431
|
* Update a pipeline
|
|
2187
2432
|
*/
|
|
2188
|
-
Crm.prototype.updateCrmPipeline = function (req,
|
|
2433
|
+
Crm.prototype.updateCrmPipeline = function (req, config) {
|
|
2189
2434
|
var _a, _b;
|
|
2190
2435
|
return __awaiter(this, void 0, void 0, function () {
|
|
2191
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2436
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2192
2437
|
var _d;
|
|
2193
2438
|
return __generator(this, function (_e) {
|
|
2194
2439
|
switch (_e.label) {
|
|
@@ -2208,15 +2453,22 @@ var Crm = /** @class */ (function () {
|
|
|
2208
2453
|
}
|
|
2209
2454
|
}
|
|
2210
2455
|
client = this.sdkConfiguration.defaultClient;
|
|
2211
|
-
|
|
2212
|
-
|
|
2456
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
2457
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
2458
|
+
return [4 /*yield*/, globalSecurity()];
|
|
2459
|
+
case 1:
|
|
2460
|
+
globalSecurity = _e.sent();
|
|
2461
|
+
_e.label = 2;
|
|
2462
|
+
case 2:
|
|
2463
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
2464
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
2213
2465
|
}
|
|
2214
|
-
properties = utils.parseSecurityProperties(
|
|
2466
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
2215
2467
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2216
2468
|
headers["Accept"] = "application/json";
|
|
2217
2469
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2218
2470
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2219
|
-
case
|
|
2471
|
+
case 3:
|
|
2220
2472
|
httpRes = _e.sent();
|
|
2221
2473
|
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 : "";
|
|
2222
2474
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|