@unified-api/typescript-sdk 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +869 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -0
- package/dist/internal/utils/contenttype.d.ts +1 -0
- package/dist/internal/utils/contenttype.js +33 -0
- package/dist/internal/utils/headers.d.ts +4 -0
- package/dist/internal/utils/headers.js +92 -0
- package/dist/internal/utils/index.d.ts +8 -0
- package/dist/internal/utils/index.js +27 -0
- package/dist/internal/utils/pathparams.d.ts +2 -0
- package/dist/internal/utils/pathparams.js +53 -0
- package/dist/internal/utils/queryparams.d.ts +2 -0
- package/dist/internal/utils/queryparams.js +182 -0
- package/dist/internal/utils/requestbody.d.ts +2 -0
- package/dist/internal/utils/requestbody.js +328 -0
- package/dist/internal/utils/retries.d.ts +20 -0
- package/dist/internal/utils/retries.js +250 -0
- package/dist/internal/utils/security.d.ts +5 -0
- package/dist/internal/utils/security.js +196 -0
- package/dist/internal/utils/utils.d.ts +37 -0
- package/dist/internal/utils/utils.js +368 -0
- package/dist/sdk/account.d.ts +31 -0
- package/dist/sdk/account.js +461 -0
- package/dist/sdk/accounting.d.ts +175 -0
- package/dist/sdk/accounting.js +2587 -0
- package/dist/sdk/activity.d.ts +31 -0
- package/dist/sdk/activity.js +461 -0
- package/dist/sdk/apicall.d.ts +15 -0
- package/dist/sdk/apicall.js +198 -0
- package/dist/sdk/application.d.ts +31 -0
- package/dist/sdk/application.js +461 -0
- package/dist/sdk/applicationstatus.d.ts +11 -0
- package/dist/sdk/applicationstatus.js +144 -0
- package/dist/sdk/ats.d.ts +187 -0
- package/dist/sdk/ats.js +2778 -0
- package/dist/sdk/auth.d.ts +21 -0
- package/dist/sdk/auth.js +194 -0
- package/dist/sdk/call.d.ts +11 -0
- package/dist/sdk/call.js +144 -0
- package/dist/sdk/candidate.d.ts +31 -0
- package/dist/sdk/candidate.js +461 -0
- package/dist/sdk/collection.d.ts +31 -0
- package/dist/sdk/collection.js +461 -0
- package/dist/sdk/commerce.d.ts +103 -0
- package/dist/sdk/commerce.js +1535 -0
- package/dist/sdk/company.d.ts +43 -0
- package/dist/sdk/company.js +628 -0
- package/dist/sdk/connection.d.ts +32 -0
- package/dist/sdk/connection.js +460 -0
- package/dist/sdk/contact.d.ts +79 -0
- package/dist/sdk/contact.js +1177 -0
- package/dist/sdk/crm.d.ts +151 -0
- package/dist/sdk/crm.js +2251 -0
- package/dist/sdk/customer.d.ts +31 -0
- package/dist/sdk/customer.js +461 -0
- package/dist/sdk/deal.d.ts +31 -0
- package/dist/sdk/deal.js +461 -0
- package/dist/sdk/document.d.ts +31 -0
- package/dist/sdk/document.js +461 -0
- package/dist/sdk/employee.d.ts +31 -0
- package/dist/sdk/employee.js +461 -0
- package/dist/sdk/enrich.d.ts +15 -0
- package/dist/sdk/enrich.js +197 -0
- package/dist/sdk/event.d.ts +31 -0
- package/dist/sdk/event.js +461 -0
- package/dist/sdk/file.d.ts +31 -0
- package/dist/sdk/file.js +461 -0
- package/dist/sdk/group.d.ts +31 -0
- package/dist/sdk/group.js +461 -0
- package/dist/sdk/hris.d.ts +55 -0
- package/dist/sdk/hris.js +819 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +20 -0
- package/dist/sdk/integration.d.ts +25 -0
- package/dist/sdk/integration.js +254 -0
- package/dist/sdk/interview.d.ts +31 -0
- package/dist/sdk/interview.js +461 -0
- package/dist/sdk/inventory.d.ts +31 -0
- package/dist/sdk/inventory.js +461 -0
- package/dist/sdk/invoice.d.ts +31 -0
- package/dist/sdk/invoice.js +461 -0
- package/dist/sdk/issue.d.ts +11 -0
- package/dist/sdk/issue.js +144 -0
- package/dist/sdk/item.d.ts +31 -0
- package/dist/sdk/item.js +461 -0
- package/dist/sdk/job.d.ts +31 -0
- package/dist/sdk/job.js +461 -0
- package/dist/sdk/lead.d.ts +31 -0
- package/dist/sdk/lead.js +461 -0
- package/dist/sdk/list.d.ts +31 -0
- package/dist/sdk/list.js +461 -0
- package/dist/sdk/location.d.ts +31 -0
- package/dist/sdk/location.js +461 -0
- package/dist/sdk/login.d.ts +14 -0
- package/dist/sdk/login.js +140 -0
- package/dist/sdk/martech.d.ts +55 -0
- package/dist/sdk/martech.js +819 -0
- package/dist/sdk/member.d.ts +31 -0
- package/dist/sdk/member.js +461 -0
- package/dist/sdk/models/errors/index.d.ts +1 -0
- package/dist/sdk/models/errors/index.js +20 -0
- package/dist/sdk/models/errors/sdkerror.d.ts +7 -0
- package/dist/sdk/models/errors/sdkerror.js +40 -0
- package/dist/sdk/models/operations/createaccountingaccount.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountingaccount.js +109 -0
- package/dist/sdk/models/operations/createaccountingcontact.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountingcontact.js +109 -0
- package/dist/sdk/models/operations/createaccountinginvoice.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountinginvoice.js +109 -0
- package/dist/sdk/models/operations/createaccountingpayment.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountingpayment.js +109 -0
- package/dist/sdk/models/operations/createaccountingtaxrate.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountingtaxrate.js +109 -0
- package/dist/sdk/models/operations/createaccountingtransaction.d.ts +31 -0
- package/dist/sdk/models/operations/createaccountingtransaction.js +109 -0
- package/dist/sdk/models/operations/createatsactivity.d.ts +31 -0
- package/dist/sdk/models/operations/createatsactivity.js +109 -0
- package/dist/sdk/models/operations/createatsapplication.d.ts +31 -0
- package/dist/sdk/models/operations/createatsapplication.js +109 -0
- package/dist/sdk/models/operations/createatscandidate.d.ts +31 -0
- package/dist/sdk/models/operations/createatscandidate.js +109 -0
- package/dist/sdk/models/operations/createatsdocument.d.ts +31 -0
- package/dist/sdk/models/operations/createatsdocument.js +109 -0
- package/dist/sdk/models/operations/createatsinterview.d.ts +31 -0
- package/dist/sdk/models/operations/createatsinterview.js +109 -0
- package/dist/sdk/models/operations/createatsjob.d.ts +31 -0
- package/dist/sdk/models/operations/createatsjob.js +109 -0
- package/dist/sdk/models/operations/createatsscorecard.d.ts +31 -0
- package/dist/sdk/models/operations/createatsscorecard.js +109 -0
- package/dist/sdk/models/operations/createcommercecollection.d.ts +34 -0
- package/dist/sdk/models/operations/createcommercecollection.js +109 -0
- package/dist/sdk/models/operations/createcommerceinventory.d.ts +31 -0
- package/dist/sdk/models/operations/createcommerceinventory.js +109 -0
- package/dist/sdk/models/operations/createcommerceitem.d.ts +31 -0
- package/dist/sdk/models/operations/createcommerceitem.js +109 -0
- package/dist/sdk/models/operations/createcommercelocation.d.ts +31 -0
- package/dist/sdk/models/operations/createcommercelocation.js +109 -0
- package/dist/sdk/models/operations/createcrmcompany.d.ts +34 -0
- package/dist/sdk/models/operations/createcrmcompany.js +109 -0
- package/dist/sdk/models/operations/createcrmcontact.d.ts +34 -0
- package/dist/sdk/models/operations/createcrmcontact.js +109 -0
- package/dist/sdk/models/operations/createcrmdeal.d.ts +34 -0
- package/dist/sdk/models/operations/createcrmdeal.js +109 -0
- package/dist/sdk/models/operations/createcrmevent.d.ts +34 -0
- package/dist/sdk/models/operations/createcrmevent.js +109 -0
- package/dist/sdk/models/operations/createcrmlead.d.ts +31 -0
- package/dist/sdk/models/operations/createcrmlead.js +109 -0
- package/dist/sdk/models/operations/createcrmpipeline.d.ts +31 -0
- package/dist/sdk/models/operations/createcrmpipeline.js +109 -0
- package/dist/sdk/models/operations/createhrisemployee.d.ts +31 -0
- package/dist/sdk/models/operations/createhrisemployee.js +109 -0
- package/dist/sdk/models/operations/createhrisgroup.d.ts +31 -0
- package/dist/sdk/models/operations/createhrisgroup.js +109 -0
- package/dist/sdk/models/operations/createmartechlist.d.ts +34 -0
- package/dist/sdk/models/operations/createmartechlist.js +109 -0
- package/dist/sdk/models/operations/createmartechmember.d.ts +34 -0
- package/dist/sdk/models/operations/createmartechmember.js +109 -0
- package/dist/sdk/models/operations/createpassthrough.d.ts +34 -0
- package/dist/sdk/models/operations/createpassthrough.js +89 -0
- package/dist/sdk/models/operations/createstoragefile.d.ts +31 -0
- package/dist/sdk/models/operations/createstoragefile.js +109 -0
- package/dist/sdk/models/operations/createticketingcustomer.d.ts +31 -0
- package/dist/sdk/models/operations/createticketingcustomer.js +109 -0
- package/dist/sdk/models/operations/createticketingnote.d.ts +31 -0
- package/dist/sdk/models/operations/createticketingnote.js +109 -0
- package/dist/sdk/models/operations/createticketingticket.d.ts +31 -0
- package/dist/sdk/models/operations/createticketingticket.js +109 -0
- package/dist/sdk/models/operations/createuccontact.d.ts +34 -0
- package/dist/sdk/models/operations/createuccontact.js +109 -0
- package/dist/sdk/models/operations/createunifiedconnection.d.ts +24 -0
- package/dist/sdk/models/operations/createunifiedconnection.js +93 -0
- package/dist/sdk/models/operations/createunifiedwebhook.d.ts +31 -0
- package/dist/sdk/models/operations/createunifiedwebhook.js +109 -0
- package/dist/sdk/models/operations/getaccountingaccount.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingaccount.js +113 -0
- package/dist/sdk/models/operations/getaccountingcontact.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingcontact.js +113 -0
- package/dist/sdk/models/operations/getaccountinginvoice.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountinginvoice.js +113 -0
- package/dist/sdk/models/operations/getaccountingorganization.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingorganization.js +113 -0
- package/dist/sdk/models/operations/getaccountingpayment.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingpayment.js +113 -0
- package/dist/sdk/models/operations/getaccountingpayout.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingpayout.js +113 -0
- package/dist/sdk/models/operations/getaccountingrefund.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingrefund.js +113 -0
- package/dist/sdk/models/operations/getaccountingtaxrate.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingtaxrate.js +113 -0
- package/dist/sdk/models/operations/getaccountingtransaction.d.ts +38 -0
- package/dist/sdk/models/operations/getaccountingtransaction.js +113 -0
- package/dist/sdk/models/operations/getatsactivity.d.ts +38 -0
- package/dist/sdk/models/operations/getatsactivity.js +113 -0
- package/dist/sdk/models/operations/getatsapplication.d.ts +38 -0
- package/dist/sdk/models/operations/getatsapplication.js +113 -0
- package/dist/sdk/models/operations/getatscandidate.d.ts +38 -0
- package/dist/sdk/models/operations/getatscandidate.js +113 -0
- package/dist/sdk/models/operations/getatscompany.d.ts +38 -0
- package/dist/sdk/models/operations/getatscompany.js +113 -0
- package/dist/sdk/models/operations/getatsdocument.d.ts +38 -0
- package/dist/sdk/models/operations/getatsdocument.js +113 -0
- package/dist/sdk/models/operations/getatsinterview.d.ts +38 -0
- package/dist/sdk/models/operations/getatsinterview.js +113 -0
- package/dist/sdk/models/operations/getatsjob.d.ts +38 -0
- package/dist/sdk/models/operations/getatsjob.js +113 -0
- package/dist/sdk/models/operations/getatsscorecard.d.ts +38 -0
- package/dist/sdk/models/operations/getatsscorecard.js +113 -0
- package/dist/sdk/models/operations/getcommercecollection.d.ts +38 -0
- package/dist/sdk/models/operations/getcommercecollection.js +113 -0
- package/dist/sdk/models/operations/getcommerceinventory.d.ts +38 -0
- package/dist/sdk/models/operations/getcommerceinventory.js +113 -0
- package/dist/sdk/models/operations/getcommerceitem.d.ts +38 -0
- package/dist/sdk/models/operations/getcommerceitem.js +113 -0
- package/dist/sdk/models/operations/getcommercelocation.d.ts +38 -0
- package/dist/sdk/models/operations/getcommercelocation.js +113 -0
- package/dist/sdk/models/operations/getcrmcompany.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmcompany.js +113 -0
- package/dist/sdk/models/operations/getcrmcontact.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmcontact.js +113 -0
- package/dist/sdk/models/operations/getcrmdeal.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmdeal.js +113 -0
- package/dist/sdk/models/operations/getcrmevent.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmevent.js +113 -0
- package/dist/sdk/models/operations/getcrmlead.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmlead.js +113 -0
- package/dist/sdk/models/operations/getcrmpipeline.d.ts +38 -0
- package/dist/sdk/models/operations/getcrmpipeline.js +113 -0
- package/dist/sdk/models/operations/gethrisemployee.d.ts +38 -0
- package/dist/sdk/models/operations/gethrisemployee.js +113 -0
- package/dist/sdk/models/operations/gethrisgroup.d.ts +38 -0
- package/dist/sdk/models/operations/gethrisgroup.js +113 -0
- package/dist/sdk/models/operations/getmartechlist.d.ts +38 -0
- package/dist/sdk/models/operations/getmartechlist.js +113 -0
- package/dist/sdk/models/operations/getmartechmember.d.ts +38 -0
- package/dist/sdk/models/operations/getmartechmember.js +113 -0
- package/dist/sdk/models/operations/getstoragefile.d.ts +38 -0
- package/dist/sdk/models/operations/getstoragefile.js +113 -0
- package/dist/sdk/models/operations/getticketingcustomer.d.ts +38 -0
- package/dist/sdk/models/operations/getticketingcustomer.js +113 -0
- package/dist/sdk/models/operations/getticketingnote.d.ts +38 -0
- package/dist/sdk/models/operations/getticketingnote.js +113 -0
- package/dist/sdk/models/operations/getticketingticket.d.ts +38 -0
- package/dist/sdk/models/operations/getticketingticket.js +113 -0
- package/dist/sdk/models/operations/getuccontact.d.ts +38 -0
- package/dist/sdk/models/operations/getuccontact.js +113 -0
- package/dist/sdk/models/operations/getunifiedapicall.d.ts +30 -0
- package/dist/sdk/models/operations/getunifiedapicall.js +105 -0
- package/dist/sdk/models/operations/getunifiedconnection.d.ts +30 -0
- package/dist/sdk/models/operations/getunifiedconnection.js +105 -0
- package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +126 -0
- package/dist/sdk/models/operations/getunifiedintegrationauth.js +180 -0
- package/dist/sdk/models/operations/getunifiedintegrationlogin.d.ts +44 -0
- package/dist/sdk/models/operations/getunifiedintegrationlogin.js +91 -0
- package/dist/sdk/models/operations/getunifiedwebhook.d.ts +30 -0
- package/dist/sdk/models/operations/getunifiedwebhook.js +105 -0
- package/dist/sdk/models/operations/index.d.ts +228 -0
- package/dist/sdk/models/operations/index.js +247 -0
- package/dist/sdk/models/operations/listaccountingaccounts.d.ts +46 -0
- package/dist/sdk/models/operations/listaccountingaccounts.js +133 -0
- package/dist/sdk/models/operations/listaccountingcontacts.d.ts +50 -0
- package/dist/sdk/models/operations/listaccountingcontacts.js +137 -0
- package/dist/sdk/models/operations/listaccountinginvoices.d.ts +50 -0
- package/dist/sdk/models/operations/listaccountinginvoices.js +137 -0
- package/dist/sdk/models/operations/listaccountingorganizations.d.ts +46 -0
- package/dist/sdk/models/operations/listaccountingorganizations.js +133 -0
- package/dist/sdk/models/operations/listaccountingpayments.d.ts +54 -0
- package/dist/sdk/models/operations/listaccountingpayments.js +141 -0
- package/dist/sdk/models/operations/listaccountingpayouts.d.ts +46 -0
- package/dist/sdk/models/operations/listaccountingpayouts.js +133 -0
- package/dist/sdk/models/operations/listaccountingrefunds.d.ts +50 -0
- package/dist/sdk/models/operations/listaccountingrefunds.js +137 -0
- package/dist/sdk/models/operations/listaccountingtaxrates.d.ts +46 -0
- package/dist/sdk/models/operations/listaccountingtaxrates.js +133 -0
- package/dist/sdk/models/operations/listaccountingtransactions.d.ts +46 -0
- package/dist/sdk/models/operations/listaccountingtransactions.js +133 -0
- package/dist/sdk/models/operations/listatsactivities.d.ts +70 -0
- package/dist/sdk/models/operations/listatsactivities.js +157 -0
- package/dist/sdk/models/operations/listatsapplications.d.ts +54 -0
- package/dist/sdk/models/operations/listatsapplications.js +141 -0
- package/dist/sdk/models/operations/listatsapplicationstatuses.d.ts +46 -0
- package/dist/sdk/models/operations/listatsapplicationstatuses.js +133 -0
- package/dist/sdk/models/operations/listatscandidates.d.ts +46 -0
- package/dist/sdk/models/operations/listatscandidates.js +133 -0
- package/dist/sdk/models/operations/listatscompanies.d.ts +46 -0
- package/dist/sdk/models/operations/listatscompanies.js +133 -0
- package/dist/sdk/models/operations/listatsdocuments.d.ts +50 -0
- package/dist/sdk/models/operations/listatsdocuments.js +137 -0
- package/dist/sdk/models/operations/listatsinterviews.d.ts +50 -0
- package/dist/sdk/models/operations/listatsinterviews.js +137 -0
- package/dist/sdk/models/operations/listatsjobs.d.ts +46 -0
- package/dist/sdk/models/operations/listatsjobs.js +133 -0
- package/dist/sdk/models/operations/listatsscorecards.d.ts +62 -0
- package/dist/sdk/models/operations/listatsscorecards.js +149 -0
- package/dist/sdk/models/operations/listcommercecollections.d.ts +46 -0
- package/dist/sdk/models/operations/listcommercecollections.js +133 -0
- package/dist/sdk/models/operations/listcommerceinventories.d.ts +54 -0
- package/dist/sdk/models/operations/listcommerceinventories.js +141 -0
- package/dist/sdk/models/operations/listcommerceitems.d.ts +46 -0
- package/dist/sdk/models/operations/listcommerceitems.js +133 -0
- package/dist/sdk/models/operations/listcommercelocations.d.ts +46 -0
- package/dist/sdk/models/operations/listcommercelocations.js +133 -0
- package/dist/sdk/models/operations/listcrmcompanies.d.ts +58 -0
- package/dist/sdk/models/operations/listcrmcompanies.js +145 -0
- package/dist/sdk/models/operations/listcrmcontacts.d.ts +58 -0
- package/dist/sdk/models/operations/listcrmcontacts.js +145 -0
- package/dist/sdk/models/operations/listcrmdeals.d.ts +58 -0
- package/dist/sdk/models/operations/listcrmdeals.js +145 -0
- package/dist/sdk/models/operations/listcrmevents.d.ts +63 -0
- package/dist/sdk/models/operations/listcrmevents.js +153 -0
- package/dist/sdk/models/operations/listcrmleads.d.ts +58 -0
- package/dist/sdk/models/operations/listcrmleads.js +145 -0
- package/dist/sdk/models/operations/listcrmpipelines.d.ts +46 -0
- package/dist/sdk/models/operations/listcrmpipelines.js +133 -0
- package/dist/sdk/models/operations/listenrichcompanies.d.ts +38 -0
- package/dist/sdk/models/operations/listenrichcompanies.js +113 -0
- package/dist/sdk/models/operations/listenrichpeople.d.ts +46 -0
- package/dist/sdk/models/operations/listenrichpeople.js +121 -0
- package/dist/sdk/models/operations/listhrisemployees.d.ts +46 -0
- package/dist/sdk/models/operations/listhrisemployees.js +133 -0
- package/dist/sdk/models/operations/listhrisgroups.d.ts +46 -0
- package/dist/sdk/models/operations/listhrisgroups.js +133 -0
- package/dist/sdk/models/operations/listmartechlists.d.ts +46 -0
- package/dist/sdk/models/operations/listmartechlists.js +133 -0
- package/dist/sdk/models/operations/listmartechmembers.d.ts +50 -0
- package/dist/sdk/models/operations/listmartechmembers.js +137 -0
- package/dist/sdk/models/operations/listpassthroughs.d.ts +30 -0
- package/dist/sdk/models/operations/listpassthroughs.js +85 -0
- package/dist/sdk/models/operations/liststoragefiles.d.ts +47 -0
- package/dist/sdk/models/operations/liststoragefiles.js +137 -0
- package/dist/sdk/models/operations/listticketingcustomers.d.ts +46 -0
- package/dist/sdk/models/operations/listticketingcustomers.js +133 -0
- package/dist/sdk/models/operations/listticketingnotes.d.ts +50 -0
- package/dist/sdk/models/operations/listticketingnotes.js +137 -0
- package/dist/sdk/models/operations/listticketingtickets.d.ts +54 -0
- package/dist/sdk/models/operations/listticketingtickets.js +141 -0
- package/dist/sdk/models/operations/listuccalls.d.ts +48 -0
- package/dist/sdk/models/operations/listuccalls.js +141 -0
- package/dist/sdk/models/operations/listuccontacts.d.ts +47 -0
- package/dist/sdk/models/operations/listuccontacts.js +137 -0
- package/dist/sdk/models/operations/listunifiedapicalls.d.ts +55 -0
- package/dist/sdk/models/operations/listunifiedapicalls.js +145 -0
- package/dist/sdk/models/operations/listunifiedconnections.d.ts +57 -0
- package/dist/sdk/models/operations/listunifiedconnections.js +148 -0
- package/dist/sdk/models/operations/listunifiedintegrations.d.ts +59 -0
- package/dist/sdk/models/operations/listunifiedintegrations.js +156 -0
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +54 -0
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +134 -0
- package/dist/sdk/models/operations/listunifiedissues.d.ts +34 -0
- package/dist/sdk/models/operations/listunifiedissues.js +121 -0
- package/dist/sdk/models/operations/listunifiedwebhooks.d.ts +39 -0
- package/dist/sdk/models/operations/listunifiedwebhooks.js +129 -0
- package/dist/sdk/models/operations/patchaccountingaccount.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountingaccount.js +113 -0
- package/dist/sdk/models/operations/patchaccountingcontact.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountingcontact.js +113 -0
- package/dist/sdk/models/operations/patchaccountinginvoice.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountinginvoice.js +113 -0
- package/dist/sdk/models/operations/patchaccountingpayment.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountingpayment.js +113 -0
- package/dist/sdk/models/operations/patchaccountingtaxrate.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountingtaxrate.js +113 -0
- package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +35 -0
- package/dist/sdk/models/operations/patchaccountingtransaction.js +113 -0
- package/dist/sdk/models/operations/patchatsactivity.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsactivity.js +113 -0
- package/dist/sdk/models/operations/patchatsapplication.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsapplication.js +113 -0
- package/dist/sdk/models/operations/patchatscandidate.d.ts +35 -0
- package/dist/sdk/models/operations/patchatscandidate.js +113 -0
- package/dist/sdk/models/operations/patchatsdocument.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsdocument.js +113 -0
- package/dist/sdk/models/operations/patchatsinterview.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsinterview.js +113 -0
- package/dist/sdk/models/operations/patchatsjob.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsjob.js +113 -0
- package/dist/sdk/models/operations/patchatsscorecard.d.ts +35 -0
- package/dist/sdk/models/operations/patchatsscorecard.js +113 -0
- package/dist/sdk/models/operations/patchcommercecollection.d.ts +38 -0
- package/dist/sdk/models/operations/patchcommercecollection.js +113 -0
- package/dist/sdk/models/operations/patchcommerceinventory.d.ts +35 -0
- package/dist/sdk/models/operations/patchcommerceinventory.js +113 -0
- package/dist/sdk/models/operations/patchcommerceitem.d.ts +35 -0
- package/dist/sdk/models/operations/patchcommerceitem.js +113 -0
- package/dist/sdk/models/operations/patchcommercelocation.d.ts +35 -0
- package/dist/sdk/models/operations/patchcommercelocation.js +113 -0
- package/dist/sdk/models/operations/patchcrmcompany.d.ts +38 -0
- package/dist/sdk/models/operations/patchcrmcompany.js +113 -0
- package/dist/sdk/models/operations/patchcrmcontact.d.ts +38 -0
- package/dist/sdk/models/operations/patchcrmcontact.js +113 -0
- package/dist/sdk/models/operations/patchcrmdeal.d.ts +38 -0
- package/dist/sdk/models/operations/patchcrmdeal.js +113 -0
- package/dist/sdk/models/operations/patchcrmevent.d.ts +38 -0
- package/dist/sdk/models/operations/patchcrmevent.js +113 -0
- package/dist/sdk/models/operations/patchcrmlead.d.ts +35 -0
- package/dist/sdk/models/operations/patchcrmlead.js +113 -0
- package/dist/sdk/models/operations/patchcrmpipeline.d.ts +35 -0
- package/dist/sdk/models/operations/patchcrmpipeline.js +113 -0
- package/dist/sdk/models/operations/patchhrisemployee.d.ts +35 -0
- package/dist/sdk/models/operations/patchhrisemployee.js +113 -0
- package/dist/sdk/models/operations/patchhrisgroup.d.ts +35 -0
- package/dist/sdk/models/operations/patchhrisgroup.js +113 -0
- package/dist/sdk/models/operations/patchmartechlist.d.ts +38 -0
- package/dist/sdk/models/operations/patchmartechlist.js +113 -0
- package/dist/sdk/models/operations/patchmartechmember.d.ts +38 -0
- package/dist/sdk/models/operations/patchmartechmember.js +113 -0
- package/dist/sdk/models/operations/patchpassthrough.d.ts +34 -0
- package/dist/sdk/models/operations/patchpassthrough.js +89 -0
- package/dist/sdk/models/operations/patchstoragefile.d.ts +35 -0
- package/dist/sdk/models/operations/patchstoragefile.js +113 -0
- package/dist/sdk/models/operations/patchticketingcustomer.d.ts +35 -0
- package/dist/sdk/models/operations/patchticketingcustomer.js +113 -0
- package/dist/sdk/models/operations/patchticketingnote.d.ts +35 -0
- package/dist/sdk/models/operations/patchticketingnote.js +113 -0
- package/dist/sdk/models/operations/patchticketingticket.d.ts +35 -0
- package/dist/sdk/models/operations/patchticketingticket.js +113 -0
- package/dist/sdk/models/operations/patchuccontact.d.ts +38 -0
- package/dist/sdk/models/operations/patchuccontact.js +113 -0
- package/dist/sdk/models/operations/patchunifiedconnection.d.ts +34 -0
- package/dist/sdk/models/operations/patchunifiedconnection.js +109 -0
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +29 -0
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +81 -0
- package/dist/sdk/models/operations/removeaccountingaccount.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountingaccount.js +85 -0
- package/dist/sdk/models/operations/removeaccountingcontact.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountingcontact.js +85 -0
- package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountinginvoice.js +85 -0
- package/dist/sdk/models/operations/removeaccountingpayment.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountingpayment.js +85 -0
- package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountingtaxrate.js +85 -0
- package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +33 -0
- package/dist/sdk/models/operations/removeaccountingtransaction.js +85 -0
- package/dist/sdk/models/operations/removeatsactivity.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsactivity.js +85 -0
- package/dist/sdk/models/operations/removeatsapplication.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsapplication.js +85 -0
- package/dist/sdk/models/operations/removeatscandidate.d.ts +33 -0
- package/dist/sdk/models/operations/removeatscandidate.js +85 -0
- package/dist/sdk/models/operations/removeatsdocument.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsdocument.js +85 -0
- package/dist/sdk/models/operations/removeatsinterview.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsinterview.js +85 -0
- package/dist/sdk/models/operations/removeatsjob.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsjob.js +85 -0
- package/dist/sdk/models/operations/removeatsscorecard.d.ts +33 -0
- package/dist/sdk/models/operations/removeatsscorecard.js +85 -0
- package/dist/sdk/models/operations/removecommercecollection.d.ts +33 -0
- package/dist/sdk/models/operations/removecommercecollection.js +85 -0
- package/dist/sdk/models/operations/removecommerceinventory.d.ts +33 -0
- package/dist/sdk/models/operations/removecommerceinventory.js +85 -0
- package/dist/sdk/models/operations/removecommerceitem.d.ts +33 -0
- package/dist/sdk/models/operations/removecommerceitem.js +85 -0
- package/dist/sdk/models/operations/removecommercelocation.d.ts +33 -0
- package/dist/sdk/models/operations/removecommercelocation.js +85 -0
- package/dist/sdk/models/operations/removecrmcompany.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmcompany.js +85 -0
- package/dist/sdk/models/operations/removecrmcontact.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmcontact.js +85 -0
- package/dist/sdk/models/operations/removecrmdeal.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmdeal.js +85 -0
- package/dist/sdk/models/operations/removecrmevent.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmevent.js +85 -0
- package/dist/sdk/models/operations/removecrmlead.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmlead.js +85 -0
- package/dist/sdk/models/operations/removecrmpipeline.d.ts +33 -0
- package/dist/sdk/models/operations/removecrmpipeline.js +85 -0
- package/dist/sdk/models/operations/removehrisemployee.d.ts +33 -0
- package/dist/sdk/models/operations/removehrisemployee.js +85 -0
- package/dist/sdk/models/operations/removehrisgroup.d.ts +33 -0
- package/dist/sdk/models/operations/removehrisgroup.js +85 -0
- package/dist/sdk/models/operations/removemartechlist.d.ts +33 -0
- package/dist/sdk/models/operations/removemartechlist.js +85 -0
- package/dist/sdk/models/operations/removemartechmember.d.ts +33 -0
- package/dist/sdk/models/operations/removemartechmember.js +85 -0
- package/dist/sdk/models/operations/removepassthrough.d.ts +30 -0
- package/dist/sdk/models/operations/removepassthrough.js +85 -0
- package/dist/sdk/models/operations/removestoragefile.d.ts +33 -0
- package/dist/sdk/models/operations/removestoragefile.js +85 -0
- package/dist/sdk/models/operations/removeticketingcustomer.d.ts +33 -0
- package/dist/sdk/models/operations/removeticketingcustomer.js +85 -0
- package/dist/sdk/models/operations/removeticketingnote.d.ts +33 -0
- package/dist/sdk/models/operations/removeticketingnote.js +85 -0
- package/dist/sdk/models/operations/removeticketingticket.d.ts +33 -0
- package/dist/sdk/models/operations/removeticketingticket.js +85 -0
- package/dist/sdk/models/operations/removeuccontact.d.ts +33 -0
- package/dist/sdk/models/operations/removeuccontact.js +85 -0
- package/dist/sdk/models/operations/removeunifiedconnection.d.ts +29 -0
- package/dist/sdk/models/operations/removeunifiedconnection.js +81 -0
- package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +29 -0
- package/dist/sdk/models/operations/removeunifiedwebhook.js +81 -0
- package/dist/sdk/models/operations/updateaccountingaccount.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountingaccount.js +113 -0
- package/dist/sdk/models/operations/updateaccountingcontact.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountingcontact.js +113 -0
- package/dist/sdk/models/operations/updateaccountinginvoice.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountinginvoice.js +113 -0
- package/dist/sdk/models/operations/updateaccountingpayment.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountingpayment.js +113 -0
- package/dist/sdk/models/operations/updateaccountingtaxrate.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountingtaxrate.js +113 -0
- package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +35 -0
- package/dist/sdk/models/operations/updateaccountingtransaction.js +113 -0
- package/dist/sdk/models/operations/updateatsactivity.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsactivity.js +113 -0
- package/dist/sdk/models/operations/updateatsapplication.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsapplication.js +113 -0
- package/dist/sdk/models/operations/updateatscandidate.d.ts +35 -0
- package/dist/sdk/models/operations/updateatscandidate.js +113 -0
- package/dist/sdk/models/operations/updateatsdocument.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsdocument.js +113 -0
- package/dist/sdk/models/operations/updateatsinterview.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsinterview.js +113 -0
- package/dist/sdk/models/operations/updateatsjob.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsjob.js +113 -0
- package/dist/sdk/models/operations/updateatsscorecard.d.ts +35 -0
- package/dist/sdk/models/operations/updateatsscorecard.js +113 -0
- package/dist/sdk/models/operations/updatecommercecollection.d.ts +38 -0
- package/dist/sdk/models/operations/updatecommercecollection.js +113 -0
- package/dist/sdk/models/operations/updatecommerceinventory.d.ts +35 -0
- package/dist/sdk/models/operations/updatecommerceinventory.js +113 -0
- package/dist/sdk/models/operations/updatecommerceitem.d.ts +35 -0
- package/dist/sdk/models/operations/updatecommerceitem.js +113 -0
- package/dist/sdk/models/operations/updatecommercelocation.d.ts +35 -0
- package/dist/sdk/models/operations/updatecommercelocation.js +113 -0
- package/dist/sdk/models/operations/updatecrmcompany.d.ts +38 -0
- package/dist/sdk/models/operations/updatecrmcompany.js +113 -0
- package/dist/sdk/models/operations/updatecrmcontact.d.ts +38 -0
- package/dist/sdk/models/operations/updatecrmcontact.js +113 -0
- package/dist/sdk/models/operations/updatecrmdeal.d.ts +38 -0
- package/dist/sdk/models/operations/updatecrmdeal.js +113 -0
- package/dist/sdk/models/operations/updatecrmevent.d.ts +38 -0
- package/dist/sdk/models/operations/updatecrmevent.js +113 -0
- package/dist/sdk/models/operations/updatecrmlead.d.ts +35 -0
- package/dist/sdk/models/operations/updatecrmlead.js +113 -0
- package/dist/sdk/models/operations/updatecrmpipeline.d.ts +35 -0
- package/dist/sdk/models/operations/updatecrmpipeline.js +113 -0
- package/dist/sdk/models/operations/updatehrisemployee.d.ts +35 -0
- package/dist/sdk/models/operations/updatehrisemployee.js +113 -0
- package/dist/sdk/models/operations/updatehrisgroup.d.ts +35 -0
- package/dist/sdk/models/operations/updatehrisgroup.js +113 -0
- package/dist/sdk/models/operations/updatemartechlist.d.ts +38 -0
- package/dist/sdk/models/operations/updatemartechlist.js +113 -0
- package/dist/sdk/models/operations/updatemartechmember.d.ts +38 -0
- package/dist/sdk/models/operations/updatemartechmember.js +113 -0
- package/dist/sdk/models/operations/updatepassthrough.d.ts +34 -0
- package/dist/sdk/models/operations/updatepassthrough.js +89 -0
- package/dist/sdk/models/operations/updatestoragefile.d.ts +35 -0
- package/dist/sdk/models/operations/updatestoragefile.js +113 -0
- package/dist/sdk/models/operations/updateticketingcustomer.d.ts +35 -0
- package/dist/sdk/models/operations/updateticketingcustomer.js +113 -0
- package/dist/sdk/models/operations/updateticketingnote.d.ts +35 -0
- package/dist/sdk/models/operations/updateticketingnote.js +113 -0
- package/dist/sdk/models/operations/updateticketingticket.d.ts +35 -0
- package/dist/sdk/models/operations/updateticketingticket.js +113 -0
- package/dist/sdk/models/operations/updateuccontact.d.ts +38 -0
- package/dist/sdk/models/operations/updateuccontact.js +113 -0
- package/dist/sdk/models/operations/updateunifiedconnection.d.ts +34 -0
- package/dist/sdk/models/operations/updateunifiedconnection.js +109 -0
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +29 -0
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +81 -0
- package/dist/sdk/models/shared/accountingaccount.d.ts +31 -0
- package/dist/sdk/models/shared/accountingaccount.js +126 -0
- package/dist/sdk/models/shared/accountingcontact.d.ts +35 -0
- package/dist/sdk/models/shared/accountingcontact.js +145 -0
- package/dist/sdk/models/shared/accountingemail.d.ts +10 -0
- package/dist/sdk/models/shared/accountingemail.js +56 -0
- package/dist/sdk/models/shared/accountinginvoice.d.ts +30 -0
- package/dist/sdk/models/shared/accountinginvoice.js +177 -0
- package/dist/sdk/models/shared/accountinglineitem.d.ts +20 -0
- package/dist/sdk/models/shared/accountinglineitem.js +137 -0
- package/dist/sdk/models/shared/accountingorganization.d.ts +16 -0
- package/dist/sdk/models/shared/accountingorganization.js +110 -0
- package/dist/sdk/models/shared/accountingpayment.d.ts +15 -0
- package/dist/sdk/models/shared/accountingpayment.js +108 -0
- package/dist/sdk/models/shared/accountingpayout.d.ts +17 -0
- package/dist/sdk/models/shared/accountingpayout.js +87 -0
- package/dist/sdk/models/shared/accountingrefund.d.ts +19 -0
- package/dist/sdk/models/shared/accountingrefund.js +97 -0
- package/dist/sdk/models/shared/accountingtaxrate.d.ts +11 -0
- package/dist/sdk/models/shared/accountingtaxrate.js +88 -0
- package/dist/sdk/models/shared/accountingtelephone.d.ts +12 -0
- package/dist/sdk/models/shared/accountingtelephone.js +58 -0
- package/dist/sdk/models/shared/accountingtransaction.d.ts +17 -0
- package/dist/sdk/models/shared/accountingtransaction.js +92 -0
- package/dist/sdk/models/shared/accountingtransactionlineitem.d.ts +11 -0
- package/dist/sdk/models/shared/accountingtransactionlineitem.js +80 -0
- package/dist/sdk/models/shared/apicall.d.ts +23 -0
- package/dist/sdk/models/shared/apicall.js +125 -0
- package/dist/sdk/models/shared/atsactivity.d.ts +21 -0
- package/dist/sdk/models/shared/atsactivity.js +123 -0
- package/dist/sdk/models/shared/atsaddress.d.ts +11 -0
- package/dist/sdk/models/shared/atsaddress.js +80 -0
- package/dist/sdk/models/shared/atsapplication.d.ts +33 -0
- package/dist/sdk/models/shared/atsapplication.js +148 -0
- package/dist/sdk/models/shared/atsapplicationanswer.d.ts +5 -0
- package/dist/sdk/models/shared/atsapplicationanswer.js +50 -0
- package/dist/sdk/models/shared/atscandidate.d.ts +35 -0
- package/dist/sdk/models/shared/atscandidate.js +157 -0
- package/dist/sdk/models/shared/atscompany.d.ts +14 -0
- package/dist/sdk/models/shared/atscompany.js +100 -0
- package/dist/sdk/models/shared/atscompensation.d.ts +24 -0
- package/dist/sdk/models/shared/atscompensation.js +83 -0
- package/dist/sdk/models/shared/atsdocument.d.ts +23 -0
- package/dist/sdk/models/shared/atsdocument.js +117 -0
- package/dist/sdk/models/shared/atsemail.d.ts +10 -0
- package/dist/sdk/models/shared/atsemail.js +56 -0
- package/dist/sdk/models/shared/atsinterview.d.ts +23 -0
- package/dist/sdk/models/shared/atsinterview.js +129 -0
- package/dist/sdk/models/shared/atsjob.d.ts +45 -0
- package/dist/sdk/models/shared/atsjob.js +179 -0
- package/dist/sdk/models/shared/atsjobquestion.d.ts +24 -0
- package/dist/sdk/models/shared/atsjobquestion.js +90 -0
- package/dist/sdk/models/shared/atsscorecard.d.ts +22 -0
- package/dist/sdk/models/shared/atsscorecard.js +117 -0
- package/dist/sdk/models/shared/atsscorecardquestion.d.ts +6 -0
- package/dist/sdk/models/shared/atsscorecardquestion.js +55 -0
- package/dist/sdk/models/shared/atsstatus.d.ts +23 -0
- package/dist/sdk/models/shared/atsstatus.js +81 -0
- package/dist/sdk/models/shared/atstelephone.d.ts +12 -0
- package/dist/sdk/models/shared/atstelephone.js +58 -0
- package/dist/sdk/models/shared/commercecollection.d.ts +21 -0
- package/dist/sdk/models/shared/commercecollection.js +123 -0
- package/dist/sdk/models/shared/commerceinventory.d.ts +11 -0
- package/dist/sdk/models/shared/commerceinventory.js +84 -0
- package/dist/sdk/models/shared/commerceitem.d.ts +23 -0
- package/dist/sdk/models/shared/commerceitem.js +127 -0
- package/dist/sdk/models/shared/commerceitemmedia.d.ts +13 -0
- package/dist/sdk/models/shared/commerceitemmedia.js +75 -0
- package/dist/sdk/models/shared/commerceitemoption.d.ts +7 -0
- package/dist/sdk/models/shared/commerceitemoption.js +60 -0
- package/dist/sdk/models/shared/commerceitemprice.d.ts +6 -0
- package/dist/sdk/models/shared/commerceitemprice.js +55 -0
- package/dist/sdk/models/shared/commerceitemvariant.d.ts +39 -0
- package/dist/sdk/models/shared/commerceitemvariant.js +177 -0
- package/dist/sdk/models/shared/commercelocation.d.ts +11 -0
- package/dist/sdk/models/shared/commercelocation.js +85 -0
- package/dist/sdk/models/shared/connection.d.ts +30 -0
- package/dist/sdk/models/shared/connection.js +136 -0
- package/dist/sdk/models/shared/crmcompany.d.ts +33 -0
- package/dist/sdk/models/shared/crmcompany.js +147 -0
- package/dist/sdk/models/shared/crmcontact.d.ts +37 -0
- package/dist/sdk/models/shared/crmcontact.js +122 -0
- package/dist/sdk/models/shared/crmdeal.d.ts +25 -0
- package/dist/sdk/models/shared/crmdeal.js +135 -0
- package/dist/sdk/models/shared/crmemail.d.ts +10 -0
- package/dist/sdk/models/shared/crmemail.js +56 -0
- package/dist/sdk/models/shared/crmevent.d.ts +60 -0
- package/dist/sdk/models/shared/crmevent.js +144 -0
- package/dist/sdk/models/shared/crmlead.d.ts +22 -0
- package/dist/sdk/models/shared/crmlead.js +134 -0
- package/dist/sdk/models/shared/crmpipeline.d.ts +11 -0
- package/dist/sdk/models/shared/crmpipeline.js +88 -0
- package/dist/sdk/models/shared/crmtelephone.d.ts +12 -0
- package/dist/sdk/models/shared/crmtelephone.js +58 -0
- package/dist/sdk/models/shared/enrichcompany.d.ts +44 -0
- package/dist/sdk/models/shared/enrichcompany.js +190 -0
- package/dist/sdk/models/shared/enrichemail.d.ts +10 -0
- package/dist/sdk/models/shared/enrichemail.js +56 -0
- package/dist/sdk/models/shared/enrichperson.d.ts +50 -0
- package/dist/sdk/models/shared/enrichperson.js +184 -0
- package/dist/sdk/models/shared/enrichpersonworkhistory.d.ts +10 -0
- package/dist/sdk/models/shared/enrichpersonworkhistory.js +83 -0
- package/dist/sdk/models/shared/enrichtelephone.d.ts +12 -0
- package/dist/sdk/models/shared/enrichtelephone.js +58 -0
- package/dist/sdk/models/shared/hrisemail.d.ts +10 -0
- package/dist/sdk/models/shared/hrisemail.js +56 -0
- package/dist/sdk/models/shared/hrisemployee.d.ts +58 -0
- package/dist/sdk/models/shared/hrisemployee.js +222 -0
- package/dist/sdk/models/shared/hrisgroup.d.ts +23 -0
- package/dist/sdk/models/shared/hrisgroup.js +113 -0
- package/dist/sdk/models/shared/hristelephone.d.ts +12 -0
- package/dist/sdk/models/shared/hristelephone.js +58 -0
- package/dist/sdk/models/shared/index.d.ts +98 -0
- package/dist/sdk/models/shared/index.js +117 -0
- package/dist/sdk/models/shared/integration.d.ts +36 -0
- package/dist/sdk/models/shared/integration.js +151 -0
- package/dist/sdk/models/shared/integrationsupport.d.ts +41 -0
- package/dist/sdk/models/shared/integrationsupport.js +206 -0
- package/dist/sdk/models/shared/issue.d.ts +25 -0
- package/dist/sdk/models/shared/issue.js +100 -0
- package/dist/sdk/models/shared/marketingemail.d.ts +10 -0
- package/dist/sdk/models/shared/marketingemail.js +56 -0
- package/dist/sdk/models/shared/marketinglist.d.ts +14 -0
- package/dist/sdk/models/shared/marketinglist.js +72 -0
- package/dist/sdk/models/shared/marketingmember.d.ts +27 -0
- package/dist/sdk/models/shared/marketingmember.js +93 -0
- package/dist/sdk/models/shared/propertyaccountingcontactbillingaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyaccountingcontactbillingaddress.js +80 -0
- package/dist/sdk/models/shared/propertyaccountingcontactshippingaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyaccountingcontactshippingaddress.js +80 -0
- package/dist/sdk/models/shared/propertyaccountingorganizationaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyaccountingorganizationaddress.js +80 -0
- package/dist/sdk/models/shared/propertyatscandidateaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyatscandidateaddress.js +80 -0
- package/dist/sdk/models/shared/propertyatscompanyaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyatscompanyaddress.js +80 -0
- package/dist/sdk/models/shared/propertycommercelocationaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertycommercelocationaddress.js +80 -0
- package/dist/sdk/models/shared/propertyconnectionauth.d.ts +32 -0
- package/dist/sdk/models/shared/propertyconnectionauth.js +166 -0
- package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +14 -0
- package/dist/sdk/models/shared/propertyconnectioncategories.js +21 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +72 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.js +79 -0
- package/dist/sdk/models/shared/propertycrmcompanyaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertycrmcompanyaddress.js +80 -0
- package/dist/sdk/models/shared/propertycrmcontactaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertycrmcontactaddress.js +80 -0
- package/dist/sdk/models/shared/propertycrmeventcall.d.ts +9 -0
- package/dist/sdk/models/shared/propertycrmeventcall.js +62 -0
- package/dist/sdk/models/shared/propertycrmeventemail.d.ts +18 -0
- package/dist/sdk/models/shared/propertycrmeventemail.js +73 -0
- package/dist/sdk/models/shared/propertycrmeventmeeting.d.ts +10 -0
- package/dist/sdk/models/shared/propertycrmeventmeeting.js +71 -0
- package/dist/sdk/models/shared/propertycrmeventnote.d.ts +7 -0
- package/dist/sdk/models/shared/propertycrmeventnote.js +48 -0
- package/dist/sdk/models/shared/propertycrmeventtask.d.ts +16 -0
- package/dist/sdk/models/shared/propertycrmeventtask.js +74 -0
- package/dist/sdk/models/shared/propertycrmleadaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertycrmleadaddress.js +80 -0
- package/dist/sdk/models/shared/propertyenrichcompanyaddress.d.ts +14 -0
- package/dist/sdk/models/shared/propertyenrichcompanyaddress.js +83 -0
- package/dist/sdk/models/shared/propertyenrichpersonaddress.d.ts +14 -0
- package/dist/sdk/models/shared/propertyenrichpersonaddress.js +83 -0
- package/dist/sdk/models/shared/propertyhrisemployeeaddress.d.ts +11 -0
- package/dist/sdk/models/shared/propertyhrisemployeeaddress.js +80 -0
- package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +14 -0
- package/dist/sdk/models/shared/propertyintegrationcategories.js +21 -0
- package/dist/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +5 -0
- package/dist/sdk/models/shared/propertyintegrationsupportwebhookevents.js +12 -0
- package/dist/sdk/models/shared/propertystoragepermissionroles.d.ts +5 -0
- package/dist/sdk/models/shared/propertystoragepermissionroles.js +12 -0
- package/dist/sdk/models/shared/propertyuccalltelephone.d.ts +15 -0
- package/dist/sdk/models/shared/propertyuccalltelephone.js +61 -0
- package/dist/sdk/models/shared/storagefile.d.ts +22 -0
- package/dist/sdk/models/shared/storagefile.js +125 -0
- package/dist/sdk/models/shared/storagepermission.d.ts +7 -0
- package/dist/sdk/models/shared/storagepermission.js +55 -0
- package/dist/sdk/models/shared/ticketingcustomer.d.ts +13 -0
- package/dist/sdk/models/shared/ticketingcustomer.js +92 -0
- package/dist/sdk/models/shared/ticketingemail.d.ts +10 -0
- package/dist/sdk/models/shared/ticketingemail.js +56 -0
- package/dist/sdk/models/shared/ticketingnote.d.ts +11 -0
- package/dist/sdk/models/shared/ticketingnote.js +84 -0
- package/dist/sdk/models/shared/ticketingtelephone.d.ts +12 -0
- package/dist/sdk/models/shared/ticketingtelephone.js +58 -0
- package/dist/sdk/models/shared/ticketingticket.d.ts +22 -0
- package/dist/sdk/models/shared/ticketingticket.js +132 -0
- package/dist/sdk/models/shared/uccall.d.ts +19 -0
- package/dist/sdk/models/shared/uccall.js +103 -0
- package/dist/sdk/models/shared/uccontact.d.ts +26 -0
- package/dist/sdk/models/shared/uccontact.js +100 -0
- package/dist/sdk/models/shared/ucemail.d.ts +10 -0
- package/dist/sdk/models/shared/ucemail.js +56 -0
- package/dist/sdk/models/shared/uctelephone.d.ts +12 -0
- package/dist/sdk/models/shared/uctelephone.js +58 -0
- package/dist/sdk/models/shared/webhook.d.ts +80 -0
- package/dist/sdk/models/shared/webhook.js +201 -0
- package/dist/sdk/note.d.ts +31 -0
- package/dist/sdk/note.js +461 -0
- package/dist/sdk/organization.d.ts +15 -0
- package/dist/sdk/organization.js +199 -0
- package/dist/sdk/passthrough.d.ts +27 -0
- package/dist/sdk/passthrough.js +402 -0
- package/dist/sdk/payment.d.ts +31 -0
- package/dist/sdk/payment.js +461 -0
- package/dist/sdk/payout.d.ts +15 -0
- package/dist/sdk/payout.js +199 -0
- package/dist/sdk/person.d.ts +11 -0
- package/dist/sdk/person.js +142 -0
- package/dist/sdk/pipeline.d.ts +31 -0
- package/dist/sdk/pipeline.js +461 -0
- package/dist/sdk/refund.d.ts +15 -0
- package/dist/sdk/refund.js +199 -0
- package/dist/sdk/scorecard.d.ts +31 -0
- package/dist/sdk/scorecard.js +461 -0
- package/dist/sdk/sdk.d.ts +156 -0
- package/dist/sdk/sdk.js +166 -0
- package/dist/sdk/storage.d.ts +31 -0
- package/dist/sdk/storage.js +461 -0
- package/dist/sdk/taxrate.d.ts +31 -0
- package/dist/sdk/taxrate.js +461 -0
- package/dist/sdk/ticket.d.ts +31 -0
- package/dist/sdk/ticket.js +461 -0
- package/dist/sdk/ticketing.d.ts +79 -0
- package/dist/sdk/ticketing.js +1177 -0
- package/dist/sdk/transaction.d.ts +31 -0
- package/dist/sdk/transaction.js +461 -0
- package/dist/sdk/types/index.d.ts +1 -0
- package/dist/sdk/types/index.js +20 -0
- package/dist/sdk/types/rfcdate.d.ts +9 -0
- package/dist/sdk/types/rfcdate.js +59 -0
- package/dist/sdk/uc.d.ts +35 -0
- package/dist/sdk/uc.js +518 -0
- package/dist/sdk/unified.d.ts +89 -0
- package/dist/sdk/unified.js +1136 -0
- package/dist/sdk/webhook.d.ts +34 -0
- package/dist/sdk/webhook.js +444 -0
- package/docs/sdk/models/operations/categories.md +19 -0
- package/docs/sdk/models/operations/createaccountingaccountrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingaccountresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountingaccountsecurity.md +8 -0
- package/docs/sdk/models/operations/createaccountingcontactrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingcontactresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountingcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/createaccountinginvoicerequest.md +9 -0
- package/docs/sdk/models/operations/createaccountinginvoiceresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountinginvoicesecurity.md +8 -0
- package/docs/sdk/models/operations/createaccountingpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountingpaymentsecurity.md +8 -0
- package/docs/sdk/models/operations/createaccountingtaxraterequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingtaxrateresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountingtaxratesecurity.md +8 -0
- package/docs/sdk/models/operations/createaccountingtransactionrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/createaccountingtransactionsecurity.md +8 -0
- package/docs/sdk/models/operations/createatsactivityrequest.md +9 -0
- package/docs/sdk/models/operations/createatsactivityresponse.md +11 -0
- package/docs/sdk/models/operations/createatsactivitysecurity.md +8 -0
- package/docs/sdk/models/operations/createatsapplicationrequest.md +9 -0
- package/docs/sdk/models/operations/createatsapplicationresponse.md +11 -0
- package/docs/sdk/models/operations/createatsapplicationsecurity.md +8 -0
- package/docs/sdk/models/operations/createatscandidaterequest.md +9 -0
- package/docs/sdk/models/operations/createatscandidateresponse.md +11 -0
- package/docs/sdk/models/operations/createatscandidatesecurity.md +8 -0
- package/docs/sdk/models/operations/createatsdocumentrequest.md +9 -0
- package/docs/sdk/models/operations/createatsdocumentresponse.md +11 -0
- package/docs/sdk/models/operations/createatsdocumentsecurity.md +8 -0
- package/docs/sdk/models/operations/createatsinterviewrequest.md +9 -0
- package/docs/sdk/models/operations/createatsinterviewresponse.md +11 -0
- package/docs/sdk/models/operations/createatsinterviewsecurity.md +8 -0
- package/docs/sdk/models/operations/createatsjobrequest.md +9 -0
- package/docs/sdk/models/operations/createatsjobresponse.md +11 -0
- package/docs/sdk/models/operations/createatsjobsecurity.md +8 -0
- package/docs/sdk/models/operations/createatsscorecardrequest.md +9 -0
- package/docs/sdk/models/operations/createatsscorecardresponse.md +11 -0
- package/docs/sdk/models/operations/createatsscorecardsecurity.md +8 -0
- package/docs/sdk/models/operations/createcommercecollectionrequest.md +9 -0
- package/docs/sdk/models/operations/createcommercecollectionresponse.md +11 -0
- package/docs/sdk/models/operations/createcommercecollectionsecurity.md +8 -0
- package/docs/sdk/models/operations/createcommerceinventoryrequest.md +9 -0
- package/docs/sdk/models/operations/createcommerceinventoryresponse.md +11 -0
- package/docs/sdk/models/operations/createcommerceinventorysecurity.md +8 -0
- package/docs/sdk/models/operations/createcommerceitemrequest.md +9 -0
- package/docs/sdk/models/operations/createcommerceitemresponse.md +11 -0
- package/docs/sdk/models/operations/createcommerceitemsecurity.md +8 -0
- package/docs/sdk/models/operations/createcommercelocationrequest.md +9 -0
- package/docs/sdk/models/operations/createcommercelocationresponse.md +11 -0
- package/docs/sdk/models/operations/createcommercelocationsecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmcompanyrequest.md +9 -0
- package/docs/sdk/models/operations/createcrmcompanyresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmcompanysecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmcontactrequest.md +9 -0
- package/docs/sdk/models/operations/createcrmcontactresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmdealrequest.md +9 -0
- package/docs/sdk/models/operations/createcrmdealresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmdealsecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmeventrequest.md +9 -0
- package/docs/sdk/models/operations/createcrmeventresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmeventsecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmleadrequest.md +9 -0
- package/docs/sdk/models/operations/createcrmleadresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmleadsecurity.md +8 -0
- package/docs/sdk/models/operations/createcrmpipelinerequest.md +9 -0
- package/docs/sdk/models/operations/createcrmpipelineresponse.md +11 -0
- package/docs/sdk/models/operations/createcrmpipelinesecurity.md +8 -0
- package/docs/sdk/models/operations/createhrisemployeerequest.md +9 -0
- package/docs/sdk/models/operations/createhrisemployeeresponse.md +11 -0
- package/docs/sdk/models/operations/createhrisemployeesecurity.md +8 -0
- package/docs/sdk/models/operations/createhrisgrouprequest.md +9 -0
- package/docs/sdk/models/operations/createhrisgroupresponse.md +11 -0
- package/docs/sdk/models/operations/createhrisgroupsecurity.md +8 -0
- package/docs/sdk/models/operations/createmartechlistrequest.md +9 -0
- package/docs/sdk/models/operations/createmartechlistresponse.md +11 -0
- package/docs/sdk/models/operations/createmartechlistsecurity.md +8 -0
- package/docs/sdk/models/operations/createmartechmemberrequest.md +9 -0
- package/docs/sdk/models/operations/createmartechmemberresponse.md +11 -0
- package/docs/sdk/models/operations/createmartechmembersecurity.md +8 -0
- package/docs/sdk/models/operations/createpassthroughrequest.md +10 -0
- package/docs/sdk/models/operations/createpassthroughresponse.md +11 -0
- package/docs/sdk/models/operations/createpassthroughsecurity.md +8 -0
- package/docs/sdk/models/operations/createstoragefilerequest.md +9 -0
- package/docs/sdk/models/operations/createstoragefileresponse.md +11 -0
- package/docs/sdk/models/operations/createstoragefilesecurity.md +8 -0
- package/docs/sdk/models/operations/createticketingcustomerrequest.md +9 -0
- package/docs/sdk/models/operations/createticketingcustomerresponse.md +11 -0
- package/docs/sdk/models/operations/createticketingcustomersecurity.md +8 -0
- package/docs/sdk/models/operations/createticketingnoterequest.md +9 -0
- package/docs/sdk/models/operations/createticketingnoteresponse.md +11 -0
- package/docs/sdk/models/operations/createticketingnotesecurity.md +8 -0
- package/docs/sdk/models/operations/createticketingticketrequest.md +9 -0
- package/docs/sdk/models/operations/createticketingticketresponse.md +11 -0
- package/docs/sdk/models/operations/createticketingticketsecurity.md +8 -0
- package/docs/sdk/models/operations/createuccontactrequest.md +9 -0
- package/docs/sdk/models/operations/createuccontactresponse.md +11 -0
- package/docs/sdk/models/operations/createuccontactsecurity.md +8 -0
- package/docs/sdk/models/operations/createunifiedconnectionresponse.md +11 -0
- package/docs/sdk/models/operations/createunifiedconnectionsecurity.md +8 -0
- package/docs/sdk/models/operations/createunifiedwebhookrequest.md +9 -0
- package/docs/sdk/models/operations/createunifiedwebhookresponse.md +11 -0
- package/docs/sdk/models/operations/createunifiedwebhooksecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingaccountrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingaccountresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingaccountsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingcontactrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingcontactresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountinginvoicerequest.md +10 -0
- package/docs/sdk/models/operations/getaccountinginvoiceresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountinginvoicesecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingorganizationrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingorganizationresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingorganizationsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingpayoutrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingpayoutresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingrefundrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingrefundresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingrefundsecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingtaxraterequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingtaxrateresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingtaxratesecurity.md +8 -0
- package/docs/sdk/models/operations/getaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingtransactionsecurity.md +8 -0
- package/docs/sdk/models/operations/getatsactivityrequest.md +10 -0
- package/docs/sdk/models/operations/getatsactivityresponse.md +11 -0
- package/docs/sdk/models/operations/getatsactivitysecurity.md +8 -0
- package/docs/sdk/models/operations/getatsapplicationrequest.md +10 -0
- package/docs/sdk/models/operations/getatsapplicationresponse.md +11 -0
- package/docs/sdk/models/operations/getatsapplicationsecurity.md +8 -0
- package/docs/sdk/models/operations/getatscandidaterequest.md +10 -0
- package/docs/sdk/models/operations/getatscandidateresponse.md +11 -0
- package/docs/sdk/models/operations/getatscandidatesecurity.md +8 -0
- package/docs/sdk/models/operations/getatscompanyrequest.md +10 -0
- package/docs/sdk/models/operations/getatscompanyresponse.md +11 -0
- package/docs/sdk/models/operations/getatscompanysecurity.md +8 -0
- package/docs/sdk/models/operations/getatsdocumentrequest.md +10 -0
- package/docs/sdk/models/operations/getatsdocumentresponse.md +11 -0
- package/docs/sdk/models/operations/getatsdocumentsecurity.md +8 -0
- package/docs/sdk/models/operations/getatsinterviewrequest.md +10 -0
- package/docs/sdk/models/operations/getatsinterviewresponse.md +11 -0
- package/docs/sdk/models/operations/getatsinterviewsecurity.md +8 -0
- package/docs/sdk/models/operations/getatsjobrequest.md +10 -0
- package/docs/sdk/models/operations/getatsjobresponse.md +11 -0
- package/docs/sdk/models/operations/getatsjobsecurity.md +8 -0
- package/docs/sdk/models/operations/getatsscorecardrequest.md +10 -0
- package/docs/sdk/models/operations/getatsscorecardresponse.md +11 -0
- package/docs/sdk/models/operations/getatsscorecardsecurity.md +8 -0
- package/docs/sdk/models/operations/getcommercecollectionrequest.md +10 -0
- package/docs/sdk/models/operations/getcommercecollectionresponse.md +11 -0
- package/docs/sdk/models/operations/getcommercecollectionsecurity.md +8 -0
- package/docs/sdk/models/operations/getcommerceinventoryrequest.md +10 -0
- package/docs/sdk/models/operations/getcommerceinventoryresponse.md +11 -0
- package/docs/sdk/models/operations/getcommerceinventorysecurity.md +8 -0
- package/docs/sdk/models/operations/getcommerceitemrequest.md +10 -0
- package/docs/sdk/models/operations/getcommerceitemresponse.md +11 -0
- package/docs/sdk/models/operations/getcommerceitemsecurity.md +8 -0
- package/docs/sdk/models/operations/getcommercelocationrequest.md +10 -0
- package/docs/sdk/models/operations/getcommercelocationresponse.md +11 -0
- package/docs/sdk/models/operations/getcommercelocationsecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmcompanyrequest.md +10 -0
- package/docs/sdk/models/operations/getcrmcompanyresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmcompanysecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmcontactrequest.md +10 -0
- package/docs/sdk/models/operations/getcrmcontactresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmdealrequest.md +10 -0
- package/docs/sdk/models/operations/getcrmdealresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmdealsecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmeventrequest.md +10 -0
- package/docs/sdk/models/operations/getcrmeventresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmeventsecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmleadrequest.md +10 -0
- package/docs/sdk/models/operations/getcrmleadresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmleadsecurity.md +8 -0
- package/docs/sdk/models/operations/getcrmpipelinerequest.md +10 -0
- package/docs/sdk/models/operations/getcrmpipelineresponse.md +11 -0
- package/docs/sdk/models/operations/getcrmpipelinesecurity.md +8 -0
- package/docs/sdk/models/operations/gethrisemployeerequest.md +10 -0
- package/docs/sdk/models/operations/gethrisemployeeresponse.md +11 -0
- package/docs/sdk/models/operations/gethrisemployeesecurity.md +8 -0
- package/docs/sdk/models/operations/gethrisgrouprequest.md +10 -0
- package/docs/sdk/models/operations/gethrisgroupresponse.md +11 -0
- package/docs/sdk/models/operations/gethrisgroupsecurity.md +8 -0
- package/docs/sdk/models/operations/getmartechlistrequest.md +10 -0
- package/docs/sdk/models/operations/getmartechlistresponse.md +11 -0
- package/docs/sdk/models/operations/getmartechlistsecurity.md +8 -0
- package/docs/sdk/models/operations/getmartechmemberrequest.md +10 -0
- package/docs/sdk/models/operations/getmartechmemberresponse.md +11 -0
- package/docs/sdk/models/operations/getmartechmembersecurity.md +8 -0
- package/docs/sdk/models/operations/getstoragefilerequest.md +10 -0
- package/docs/sdk/models/operations/getstoragefileresponse.md +11 -0
- package/docs/sdk/models/operations/getstoragefilesecurity.md +8 -0
- package/docs/sdk/models/operations/getticketingcustomerrequest.md +10 -0
- package/docs/sdk/models/operations/getticketingcustomerresponse.md +11 -0
- package/docs/sdk/models/operations/getticketingcustomersecurity.md +8 -0
- package/docs/sdk/models/operations/getticketingnoterequest.md +10 -0
- package/docs/sdk/models/operations/getticketingnoteresponse.md +11 -0
- package/docs/sdk/models/operations/getticketingnotesecurity.md +8 -0
- package/docs/sdk/models/operations/getticketingticketrequest.md +10 -0
- package/docs/sdk/models/operations/getticketingticketresponse.md +11 -0
- package/docs/sdk/models/operations/getticketingticketsecurity.md +8 -0
- package/docs/sdk/models/operations/getuccontactrequest.md +10 -0
- package/docs/sdk/models/operations/getuccontactresponse.md +11 -0
- package/docs/sdk/models/operations/getuccontactsecurity.md +8 -0
- package/docs/sdk/models/operations/getunifiedapicallrequest.md +8 -0
- package/docs/sdk/models/operations/getunifiedapicallresponse.md +11 -0
- package/docs/sdk/models/operations/getunifiedapicallsecurity.md +8 -0
- package/docs/sdk/models/operations/getunifiedconnectionrequest.md +8 -0
- package/docs/sdk/models/operations/getunifiedconnectionresponse.md +11 -0
- package/docs/sdk/models/operations/getunifiedconnectionsecurity.md +8 -0
- package/docs/sdk/models/operations/getunifiedintegrationauthrequest.md +18 -0
- package/docs/sdk/models/operations/getunifiedintegrationauthresponse.md +11 -0
- package/docs/sdk/models/operations/getunifiedintegrationloginrequest.md +14 -0
- package/docs/sdk/models/operations/getunifiedintegrationloginresponse.md +11 -0
- package/docs/sdk/models/operations/getunifiedwebhookrequest.md +8 -0
- package/docs/sdk/models/operations/getunifiedwebhookresponse.md +11 -0
- package/docs/sdk/models/operations/getunifiedwebhooksecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingaccountsrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingaccountsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingaccountssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingcontactsrequest.md +16 -0
- package/docs/sdk/models/operations/listaccountingcontactsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingcontactssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountinginvoicesrequest.md +16 -0
- package/docs/sdk/models/operations/listaccountinginvoicesresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountinginvoicessecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingorganizationsrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingorganizationsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingorganizationssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingpaymentsrequest.md +17 -0
- package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingpayoutsrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingrefundsrequest.md +16 -0
- package/docs/sdk/models/operations/listaccountingrefundsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingrefundssecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingtaxratesrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingtaxratesresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingtaxratessecurity.md +8 -0
- package/docs/sdk/models/operations/listaccountingtransactionsrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingtransactionsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingtransactionssecurity.md +8 -0
- package/docs/sdk/models/operations/listatsactivitiesrequest.md +21 -0
- package/docs/sdk/models/operations/listatsactivitiesresponse.md +11 -0
- package/docs/sdk/models/operations/listatsactivitiessecurity.md +8 -0
- package/docs/sdk/models/operations/listatsapplicationsrequest.md +17 -0
- package/docs/sdk/models/operations/listatsapplicationsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsapplicationssecurity.md +8 -0
- package/docs/sdk/models/operations/listatsapplicationstatusesrequest.md +15 -0
- package/docs/sdk/models/operations/listatsapplicationstatusesresponse.md +11 -0
- package/docs/sdk/models/operations/listatsapplicationstatusessecurity.md +8 -0
- package/docs/sdk/models/operations/listatscandidatesrequest.md +15 -0
- package/docs/sdk/models/operations/listatscandidatesresponse.md +11 -0
- package/docs/sdk/models/operations/listatscandidatessecurity.md +8 -0
- package/docs/sdk/models/operations/listatscompaniesrequest.md +15 -0
- package/docs/sdk/models/operations/listatscompaniesresponse.md +11 -0
- package/docs/sdk/models/operations/listatscompaniessecurity.md +8 -0
- package/docs/sdk/models/operations/listatsdocumentsrequest.md +16 -0
- package/docs/sdk/models/operations/listatsdocumentsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsdocumentssecurity.md +8 -0
- package/docs/sdk/models/operations/listatsinterviewsrequest.md +16 -0
- package/docs/sdk/models/operations/listatsinterviewsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsinterviewssecurity.md +8 -0
- package/docs/sdk/models/operations/listatsjobsrequest.md +15 -0
- package/docs/sdk/models/operations/listatsjobsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsjobssecurity.md +8 -0
- package/docs/sdk/models/operations/listatsscorecardsrequest.md +19 -0
- package/docs/sdk/models/operations/listatsscorecardsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsscorecardssecurity.md +8 -0
- package/docs/sdk/models/operations/listcommercecollectionsrequest.md +15 -0
- package/docs/sdk/models/operations/listcommercecollectionsresponse.md +11 -0
- package/docs/sdk/models/operations/listcommercecollectionssecurity.md +8 -0
- package/docs/sdk/models/operations/listcommerceinventoriesrequest.md +17 -0
- package/docs/sdk/models/operations/listcommerceinventoriesresponse.md +11 -0
- package/docs/sdk/models/operations/listcommerceinventoriessecurity.md +8 -0
- package/docs/sdk/models/operations/listcommerceitemsrequest.md +15 -0
- package/docs/sdk/models/operations/listcommerceitemsresponse.md +11 -0
- package/docs/sdk/models/operations/listcommerceitemssecurity.md +8 -0
- package/docs/sdk/models/operations/listcommercelocationsrequest.md +15 -0
- package/docs/sdk/models/operations/listcommercelocationsresponse.md +11 -0
- package/docs/sdk/models/operations/listcommercelocationssecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmcompaniesrequest.md +18 -0
- package/docs/sdk/models/operations/listcrmcompaniesresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmcompaniessecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmcontactsrequest.md +18 -0
- package/docs/sdk/models/operations/listcrmcontactsresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmcontactssecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmdealsrequest.md +18 -0
- package/docs/sdk/models/operations/listcrmdealsresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmdealssecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmeventsrequest.md +20 -0
- package/docs/sdk/models/operations/listcrmeventsresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmeventssecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmleadsrequest.md +18 -0
- package/docs/sdk/models/operations/listcrmleadsresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmleadssecurity.md +8 -0
- package/docs/sdk/models/operations/listcrmpipelinesrequest.md +15 -0
- package/docs/sdk/models/operations/listcrmpipelinesresponse.md +11 -0
- package/docs/sdk/models/operations/listcrmpipelinessecurity.md +8 -0
- package/docs/sdk/models/operations/listenrichcompaniesrequest.md +10 -0
- package/docs/sdk/models/operations/listenrichcompaniesresponse.md +11 -0
- package/docs/sdk/models/operations/listenrichcompaniessecurity.md +8 -0
- package/docs/sdk/models/operations/listenrichpeoplerequest.md +12 -0
- package/docs/sdk/models/operations/listenrichpeopleresponse.md +11 -0
- package/docs/sdk/models/operations/listenrichpeoplesecurity.md +8 -0
- package/docs/sdk/models/operations/listhrisemployeesrequest.md +15 -0
- package/docs/sdk/models/operations/listhrisemployeesresponse.md +11 -0
- package/docs/sdk/models/operations/listhrisemployeessecurity.md +8 -0
- package/docs/sdk/models/operations/listhrisgroupsrequest.md +15 -0
- package/docs/sdk/models/operations/listhrisgroupsresponse.md +11 -0
- package/docs/sdk/models/operations/listhrisgroupssecurity.md +8 -0
- package/docs/sdk/models/operations/listmartechlistsrequest.md +15 -0
- package/docs/sdk/models/operations/listmartechlistsresponse.md +11 -0
- package/docs/sdk/models/operations/listmartechlistssecurity.md +8 -0
- package/docs/sdk/models/operations/listmartechmembersrequest.md +16 -0
- package/docs/sdk/models/operations/listmartechmembersresponse.md +11 -0
- package/docs/sdk/models/operations/listmartechmemberssecurity.md +8 -0
- package/docs/sdk/models/operations/listpassthroughsrequest.md +9 -0
- package/docs/sdk/models/operations/listpassthroughsresponse.md +11 -0
- package/docs/sdk/models/operations/listpassthroughssecurity.md +8 -0
- package/docs/sdk/models/operations/liststoragefilesrequest.md +16 -0
- package/docs/sdk/models/operations/liststoragefilesresponse.md +11 -0
- package/docs/sdk/models/operations/liststoragefilessecurity.md +8 -0
- package/docs/sdk/models/operations/listticketingcustomersrequest.md +15 -0
- package/docs/sdk/models/operations/listticketingcustomersresponse.md +11 -0
- package/docs/sdk/models/operations/listticketingcustomerssecurity.md +8 -0
- package/docs/sdk/models/operations/listticketingnotesrequest.md +16 -0
- package/docs/sdk/models/operations/listticketingnotesresponse.md +11 -0
- package/docs/sdk/models/operations/listticketingnotessecurity.md +8 -0
- package/docs/sdk/models/operations/listticketingticketsrequest.md +17 -0
- package/docs/sdk/models/operations/listticketingticketsresponse.md +11 -0
- package/docs/sdk/models/operations/listticketingticketssecurity.md +8 -0
- package/docs/sdk/models/operations/listuccallsrequest.md +17 -0
- package/docs/sdk/models/operations/listuccallsresponse.md +11 -0
- package/docs/sdk/models/operations/listuccallssecurity.md +8 -0
- package/docs/sdk/models/operations/listuccontactsrequest.md +16 -0
- package/docs/sdk/models/operations/listuccontactsresponse.md +11 -0
- package/docs/sdk/models/operations/listuccontactssecurity.md +8 -0
- package/docs/sdk/models/operations/listunifiedapicallsrequest.md +18 -0
- package/docs/sdk/models/operations/listunifiedapicallsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedapicallssecurity.md +8 -0
- package/docs/sdk/models/operations/listunifiedconnectionsrequest.md +15 -0
- package/docs/sdk/models/operations/listunifiedconnectionsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedconnectionssecurity.md +8 -0
- package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +19 -0
- package/docs/sdk/models/operations/listunifiedintegrationsrequest.md +17 -0
- package/docs/sdk/models/operations/listunifiedintegrationsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedintegrationssecurity.md +8 -0
- package/docs/sdk/models/operations/listunifiedintegrationworkspacesrequest.md +15 -0
- package/docs/sdk/models/operations/listunifiedintegrationworkspacesresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedissuesrequest.md +12 -0
- package/docs/sdk/models/operations/listunifiedissuesresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedissuessecurity.md +8 -0
- package/docs/sdk/models/operations/listunifiedwebhooksrequest.md +14 -0
- package/docs/sdk/models/operations/listunifiedwebhooksresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedwebhookssecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountingaccountrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingaccountresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountingaccountsecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountingcontactrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingcontactresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountingcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountinginvoicerequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountinginvoiceresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountinginvoicesecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountingpaymentsecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountingtaxraterequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingtaxrateresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountingtaxratesecurity.md +8 -0
- package/docs/sdk/models/operations/patchaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/patchaccountingtransactionsecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsactivityrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsactivityresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsactivitysecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsapplicationrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsapplicationresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsapplicationsecurity.md +8 -0
- package/docs/sdk/models/operations/patchatscandidaterequest.md +10 -0
- package/docs/sdk/models/operations/patchatscandidateresponse.md +11 -0
- package/docs/sdk/models/operations/patchatscandidatesecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsdocumentrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsdocumentresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsdocumentsecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsinterviewrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsinterviewresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsinterviewsecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsjobrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsjobresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsjobsecurity.md +8 -0
- package/docs/sdk/models/operations/patchatsscorecardrequest.md +10 -0
- package/docs/sdk/models/operations/patchatsscorecardresponse.md +11 -0
- package/docs/sdk/models/operations/patchatsscorecardsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcommercecollectionrequest.md +10 -0
- package/docs/sdk/models/operations/patchcommercecollectionresponse.md +11 -0
- package/docs/sdk/models/operations/patchcommercecollectionsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcommerceinventoryrequest.md +10 -0
- package/docs/sdk/models/operations/patchcommerceinventoryresponse.md +11 -0
- package/docs/sdk/models/operations/patchcommerceinventorysecurity.md +8 -0
- package/docs/sdk/models/operations/patchcommerceitemrequest.md +10 -0
- package/docs/sdk/models/operations/patchcommerceitemresponse.md +11 -0
- package/docs/sdk/models/operations/patchcommerceitemsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcommercelocationrequest.md +10 -0
- package/docs/sdk/models/operations/patchcommercelocationresponse.md +11 -0
- package/docs/sdk/models/operations/patchcommercelocationsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmcompanyrequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmcompanyresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmcompanysecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmcontactrequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmcontactresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmdealrequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmdealresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmdealsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmeventrequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmeventresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmeventsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmleadrequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmleadresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmleadsecurity.md +8 -0
- package/docs/sdk/models/operations/patchcrmpipelinerequest.md +10 -0
- package/docs/sdk/models/operations/patchcrmpipelineresponse.md +11 -0
- package/docs/sdk/models/operations/patchcrmpipelinesecurity.md +8 -0
- package/docs/sdk/models/operations/patchhrisemployeerequest.md +10 -0
- package/docs/sdk/models/operations/patchhrisemployeeresponse.md +11 -0
- package/docs/sdk/models/operations/patchhrisemployeesecurity.md +8 -0
- package/docs/sdk/models/operations/patchhrisgrouprequest.md +10 -0
- package/docs/sdk/models/operations/patchhrisgroupresponse.md +11 -0
- package/docs/sdk/models/operations/patchhrisgroupsecurity.md +8 -0
- package/docs/sdk/models/operations/patchmartechlistrequest.md +10 -0
- package/docs/sdk/models/operations/patchmartechlistresponse.md +11 -0
- package/docs/sdk/models/operations/patchmartechlistsecurity.md +8 -0
- package/docs/sdk/models/operations/patchmartechmemberrequest.md +10 -0
- package/docs/sdk/models/operations/patchmartechmemberresponse.md +11 -0
- package/docs/sdk/models/operations/patchmartechmembersecurity.md +8 -0
- package/docs/sdk/models/operations/patchpassthroughrequest.md +10 -0
- package/docs/sdk/models/operations/patchpassthroughresponse.md +11 -0
- package/docs/sdk/models/operations/patchpassthroughsecurity.md +8 -0
- package/docs/sdk/models/operations/patchstoragefilerequest.md +10 -0
- package/docs/sdk/models/operations/patchstoragefileresponse.md +11 -0
- package/docs/sdk/models/operations/patchstoragefilesecurity.md +8 -0
- package/docs/sdk/models/operations/patchticketingcustomerrequest.md +10 -0
- package/docs/sdk/models/operations/patchticketingcustomerresponse.md +11 -0
- package/docs/sdk/models/operations/patchticketingcustomersecurity.md +8 -0
- package/docs/sdk/models/operations/patchticketingnoterequest.md +10 -0
- package/docs/sdk/models/operations/patchticketingnoteresponse.md +11 -0
- package/docs/sdk/models/operations/patchticketingnotesecurity.md +8 -0
- package/docs/sdk/models/operations/patchticketingticketrequest.md +10 -0
- package/docs/sdk/models/operations/patchticketingticketresponse.md +11 -0
- package/docs/sdk/models/operations/patchticketingticketsecurity.md +8 -0
- package/docs/sdk/models/operations/patchuccontactrequest.md +10 -0
- package/docs/sdk/models/operations/patchuccontactresponse.md +11 -0
- package/docs/sdk/models/operations/patchuccontactsecurity.md +8 -0
- package/docs/sdk/models/operations/patchunifiedconnectionrequest.md +9 -0
- package/docs/sdk/models/operations/patchunifiedconnectionresponse.md +11 -0
- package/docs/sdk/models/operations/patchunifiedconnectionsecurity.md +8 -0
- package/docs/sdk/models/operations/patchunifiedwebhooktriggerrequest.md +8 -0
- package/docs/sdk/models/operations/patchunifiedwebhooktriggerresponse.md +11 -0
- package/docs/sdk/models/operations/patchunifiedwebhooktriggersecurity.md +8 -0
- package/docs/sdk/models/operations/queryparamcategories.md +19 -0
- package/docs/sdk/models/operations/removeaccountingaccountrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingaccountresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingaccountsecurity.md +8 -0
- package/docs/sdk/models/operations/removeaccountingcontactrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingcontactresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/removeaccountinginvoicerequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountinginvoiceresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountinginvoicesecurity.md +8 -0
- package/docs/sdk/models/operations/removeaccountingpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingpaymentsecurity.md +8 -0
- package/docs/sdk/models/operations/removeaccountingtaxraterequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingtaxrateresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingtaxratesecurity.md +8 -0
- package/docs/sdk/models/operations/removeaccountingtransactionrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingtransactionsecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsactivityrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsactivityresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsactivitysecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsapplicationrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsapplicationresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsapplicationsecurity.md +8 -0
- package/docs/sdk/models/operations/removeatscandidaterequest.md +9 -0
- package/docs/sdk/models/operations/removeatscandidateresponse.md +11 -0
- package/docs/sdk/models/operations/removeatscandidatesecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsdocumentrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsdocumentresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsdocumentsecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsinterviewrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsinterviewresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsinterviewsecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsjobrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsjobresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsjobsecurity.md +8 -0
- package/docs/sdk/models/operations/removeatsscorecardrequest.md +9 -0
- package/docs/sdk/models/operations/removeatsscorecardresponse.md +11 -0
- package/docs/sdk/models/operations/removeatsscorecardsecurity.md +8 -0
- package/docs/sdk/models/operations/removecommercecollectionrequest.md +9 -0
- package/docs/sdk/models/operations/removecommercecollectionresponse.md +11 -0
- package/docs/sdk/models/operations/removecommercecollectionsecurity.md +8 -0
- package/docs/sdk/models/operations/removecommerceinventoryrequest.md +9 -0
- package/docs/sdk/models/operations/removecommerceinventoryresponse.md +11 -0
- package/docs/sdk/models/operations/removecommerceinventorysecurity.md +8 -0
- package/docs/sdk/models/operations/removecommerceitemrequest.md +9 -0
- package/docs/sdk/models/operations/removecommerceitemresponse.md +11 -0
- package/docs/sdk/models/operations/removecommerceitemsecurity.md +8 -0
- package/docs/sdk/models/operations/removecommercelocationrequest.md +9 -0
- package/docs/sdk/models/operations/removecommercelocationresponse.md +11 -0
- package/docs/sdk/models/operations/removecommercelocationsecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmcompanyrequest.md +9 -0
- package/docs/sdk/models/operations/removecrmcompanyresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmcompanysecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmcontactrequest.md +9 -0
- package/docs/sdk/models/operations/removecrmcontactresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmdealrequest.md +9 -0
- package/docs/sdk/models/operations/removecrmdealresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmdealsecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmeventrequest.md +9 -0
- package/docs/sdk/models/operations/removecrmeventresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmeventsecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmleadrequest.md +9 -0
- package/docs/sdk/models/operations/removecrmleadresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmleadsecurity.md +8 -0
- package/docs/sdk/models/operations/removecrmpipelinerequest.md +9 -0
- package/docs/sdk/models/operations/removecrmpipelineresponse.md +11 -0
- package/docs/sdk/models/operations/removecrmpipelinesecurity.md +8 -0
- package/docs/sdk/models/operations/removehrisemployeerequest.md +9 -0
- package/docs/sdk/models/operations/removehrisemployeeresponse.md +11 -0
- package/docs/sdk/models/operations/removehrisemployeesecurity.md +8 -0
- package/docs/sdk/models/operations/removehrisgrouprequest.md +9 -0
- package/docs/sdk/models/operations/removehrisgroupresponse.md +11 -0
- package/docs/sdk/models/operations/removehrisgroupsecurity.md +8 -0
- package/docs/sdk/models/operations/removemartechlistrequest.md +9 -0
- package/docs/sdk/models/operations/removemartechlistresponse.md +11 -0
- package/docs/sdk/models/operations/removemartechlistsecurity.md +8 -0
- package/docs/sdk/models/operations/removemartechmemberrequest.md +9 -0
- package/docs/sdk/models/operations/removemartechmemberresponse.md +11 -0
- package/docs/sdk/models/operations/removemartechmembersecurity.md +8 -0
- package/docs/sdk/models/operations/removepassthroughrequest.md +9 -0
- package/docs/sdk/models/operations/removepassthroughresponse.md +11 -0
- package/docs/sdk/models/operations/removepassthroughsecurity.md +8 -0
- package/docs/sdk/models/operations/removestoragefilerequest.md +9 -0
- package/docs/sdk/models/operations/removestoragefileresponse.md +11 -0
- package/docs/sdk/models/operations/removestoragefilesecurity.md +8 -0
- package/docs/sdk/models/operations/removeticketingcustomerrequest.md +9 -0
- package/docs/sdk/models/operations/removeticketingcustomerresponse.md +11 -0
- package/docs/sdk/models/operations/removeticketingcustomersecurity.md +8 -0
- package/docs/sdk/models/operations/removeticketingnoterequest.md +9 -0
- package/docs/sdk/models/operations/removeticketingnoteresponse.md +11 -0
- package/docs/sdk/models/operations/removeticketingnotesecurity.md +8 -0
- package/docs/sdk/models/operations/removeticketingticketrequest.md +9 -0
- package/docs/sdk/models/operations/removeticketingticketresponse.md +11 -0
- package/docs/sdk/models/operations/removeticketingticketsecurity.md +8 -0
- package/docs/sdk/models/operations/removeuccontactrequest.md +9 -0
- package/docs/sdk/models/operations/removeuccontactresponse.md +11 -0
- package/docs/sdk/models/operations/removeuccontactsecurity.md +8 -0
- package/docs/sdk/models/operations/removeunifiedconnectionrequest.md +8 -0
- package/docs/sdk/models/operations/removeunifiedconnectionresponse.md +11 -0
- package/docs/sdk/models/operations/removeunifiedconnectionsecurity.md +8 -0
- package/docs/sdk/models/operations/removeunifiedwebhookrequest.md +8 -0
- package/docs/sdk/models/operations/removeunifiedwebhookresponse.md +11 -0
- package/docs/sdk/models/operations/removeunifiedwebhooksecurity.md +8 -0
- package/docs/sdk/models/operations/scopes.md +77 -0
- package/docs/sdk/models/operations/updateaccountingaccountrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingaccountresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingaccountsecurity.md +8 -0
- package/docs/sdk/models/operations/updateaccountingcontactrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingcontactresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/updateaccountinginvoicerequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountinginvoiceresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountinginvoicesecurity.md +8 -0
- package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingpaymentsecurity.md +8 -0
- package/docs/sdk/models/operations/updateaccountingtaxraterequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingtaxrateresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingtaxratesecurity.md +8 -0
- package/docs/sdk/models/operations/updateaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingtransactionsecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsactivityrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsactivityresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsactivitysecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsapplicationrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsapplicationresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsapplicationsecurity.md +8 -0
- package/docs/sdk/models/operations/updateatscandidaterequest.md +10 -0
- package/docs/sdk/models/operations/updateatscandidateresponse.md +11 -0
- package/docs/sdk/models/operations/updateatscandidatesecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsdocumentrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsdocumentresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsdocumentsecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsinterviewrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsinterviewresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsinterviewsecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsjobrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsjobresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsjobsecurity.md +8 -0
- package/docs/sdk/models/operations/updateatsscorecardrequest.md +10 -0
- package/docs/sdk/models/operations/updateatsscorecardresponse.md +11 -0
- package/docs/sdk/models/operations/updateatsscorecardsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecommercecollectionrequest.md +10 -0
- package/docs/sdk/models/operations/updatecommercecollectionresponse.md +11 -0
- package/docs/sdk/models/operations/updatecommercecollectionsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecommerceinventoryrequest.md +10 -0
- package/docs/sdk/models/operations/updatecommerceinventoryresponse.md +11 -0
- package/docs/sdk/models/operations/updatecommerceinventorysecurity.md +8 -0
- package/docs/sdk/models/operations/updatecommerceitemrequest.md +10 -0
- package/docs/sdk/models/operations/updatecommerceitemresponse.md +11 -0
- package/docs/sdk/models/operations/updatecommerceitemsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecommercelocationrequest.md +10 -0
- package/docs/sdk/models/operations/updatecommercelocationresponse.md +11 -0
- package/docs/sdk/models/operations/updatecommercelocationsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmcompanyrequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmcompanyresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmcompanysecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmcontactrequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmcontactresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmcontactsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmdealrequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmdealresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmdealsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmeventrequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmeventresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmeventsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmleadrequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmleadresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmleadsecurity.md +8 -0
- package/docs/sdk/models/operations/updatecrmpipelinerequest.md +10 -0
- package/docs/sdk/models/operations/updatecrmpipelineresponse.md +11 -0
- package/docs/sdk/models/operations/updatecrmpipelinesecurity.md +8 -0
- package/docs/sdk/models/operations/updatehrisemployeerequest.md +10 -0
- package/docs/sdk/models/operations/updatehrisemployeeresponse.md +11 -0
- package/docs/sdk/models/operations/updatehrisemployeesecurity.md +8 -0
- package/docs/sdk/models/operations/updatehrisgrouprequest.md +10 -0
- package/docs/sdk/models/operations/updatehrisgroupresponse.md +11 -0
- package/docs/sdk/models/operations/updatehrisgroupsecurity.md +8 -0
- package/docs/sdk/models/operations/updatemartechlistrequest.md +10 -0
- package/docs/sdk/models/operations/updatemartechlistresponse.md +11 -0
- package/docs/sdk/models/operations/updatemartechlistsecurity.md +8 -0
- package/docs/sdk/models/operations/updatemartechmemberrequest.md +10 -0
- package/docs/sdk/models/operations/updatemartechmemberresponse.md +11 -0
- package/docs/sdk/models/operations/updatemartechmembersecurity.md +8 -0
- package/docs/sdk/models/operations/updatepassthroughrequest.md +10 -0
- package/docs/sdk/models/operations/updatepassthroughresponse.md +11 -0
- package/docs/sdk/models/operations/updatepassthroughsecurity.md +8 -0
- package/docs/sdk/models/operations/updatestoragefilerequest.md +10 -0
- package/docs/sdk/models/operations/updatestoragefileresponse.md +11 -0
- package/docs/sdk/models/operations/updatestoragefilesecurity.md +8 -0
- package/docs/sdk/models/operations/updateticketingcustomerrequest.md +10 -0
- package/docs/sdk/models/operations/updateticketingcustomerresponse.md +11 -0
- package/docs/sdk/models/operations/updateticketingcustomersecurity.md +8 -0
- package/docs/sdk/models/operations/updateticketingnoterequest.md +10 -0
- package/docs/sdk/models/operations/updateticketingnoteresponse.md +11 -0
- package/docs/sdk/models/operations/updateticketingnotesecurity.md +8 -0
- package/docs/sdk/models/operations/updateticketingticketrequest.md +10 -0
- package/docs/sdk/models/operations/updateticketingticketresponse.md +11 -0
- package/docs/sdk/models/operations/updateticketingticketsecurity.md +8 -0
- package/docs/sdk/models/operations/updateuccontactrequest.md +10 -0
- package/docs/sdk/models/operations/updateuccontactresponse.md +11 -0
- package/docs/sdk/models/operations/updateuccontactsecurity.md +8 -0
- package/docs/sdk/models/operations/updateunifiedconnectionrequest.md +9 -0
- package/docs/sdk/models/operations/updateunifiedconnectionresponse.md +11 -0
- package/docs/sdk/models/operations/updateunifiedconnectionsecurity.md +8 -0
- package/docs/sdk/models/operations/updateunifiedwebhooktriggerrequest.md +8 -0
- package/docs/sdk/models/operations/updateunifiedwebhooktriggerresponse.md +11 -0
- package/docs/sdk/models/operations/updateunifiedwebhooktriggersecurity.md +8 -0
- package/docs/sdk/models/shared/accountingaccount.md +19 -0
- package/docs/sdk/models/shared/accountingcontact.md +22 -0
- package/docs/sdk/models/shared/accountingemail.md +9 -0
- package/docs/sdk/models/shared/accountingemailtype.md +10 -0
- package/docs/sdk/models/shared/accountinginvoice.md +28 -0
- package/docs/sdk/models/shared/accountinginvoicestatus.md +10 -0
- package/docs/sdk/models/shared/accountinglineitem.md +24 -0
- package/docs/sdk/models/shared/accountingorganization.md +19 -0
- package/docs/sdk/models/shared/accountingpayment.md +19 -0
- package/docs/sdk/models/shared/accountingpayout.md +15 -0
- package/docs/sdk/models/shared/accountingpayoutstatus.md +11 -0
- package/docs/sdk/models/shared/accountingrefund.md +17 -0
- package/docs/sdk/models/shared/accountingrefundstatus.md +11 -0
- package/docs/sdk/models/shared/accountingtaxrate.md +15 -0
- package/docs/sdk/models/shared/accountingtelephone.md +9 -0
- package/docs/sdk/models/shared/accountingtelephonetype.md +12 -0
- package/docs/sdk/models/shared/accountingtransaction.md +17 -0
- package/docs/sdk/models/shared/accountingtransactionlineitem.md +15 -0
- package/docs/sdk/models/shared/apicall.md +22 -0
- package/docs/sdk/models/shared/apicalltype.md +10 -0
- package/docs/sdk/models/shared/atsactivity.md +21 -0
- package/docs/sdk/models/shared/atsactivitytype.md +9 -0
- package/docs/sdk/models/shared/atsaddress.md +15 -0
- package/docs/sdk/models/shared/atsapplication.md +21 -0
- package/docs/sdk/models/shared/atsapplicationanswer.md +9 -0
- package/docs/sdk/models/shared/atsapplicationstatus.md +20 -0
- package/docs/sdk/models/shared/atscandidate.md +25 -0
- package/docs/sdk/models/shared/atscompany.md +17 -0
- package/docs/sdk/models/shared/atscompensation.md +12 -0
- package/docs/sdk/models/shared/atscompensationtype.md +12 -0
- package/docs/sdk/models/shared/atsdocument.md +19 -0
- package/docs/sdk/models/shared/atsdocumenttype.md +13 -0
- package/docs/sdk/models/shared/atsemail.md +9 -0
- package/docs/sdk/models/shared/atsemailtype.md +10 -0
- package/docs/sdk/models/shared/atsinterview.md +20 -0
- package/docs/sdk/models/shared/atsinterviewstatus.md +12 -0
- package/docs/sdk/models/shared/atsjob.md +27 -0
- package/docs/sdk/models/shared/atsjobquestion.md +14 -0
- package/docs/sdk/models/shared/atsjobquestiontype.md +19 -0
- package/docs/sdk/models/shared/atsjobstatus.md +12 -0
- package/docs/sdk/models/shared/atsscorecard.md +19 -0
- package/docs/sdk/models/shared/atsscorecardquestion.md +10 -0
- package/docs/sdk/models/shared/atsstatus.md +12 -0
- package/docs/sdk/models/shared/atsstatusstatus.md +20 -0
- package/docs/sdk/models/shared/atstelephone.md +9 -0
- package/docs/sdk/models/shared/atstelephonetype.md +12 -0
- package/docs/sdk/models/shared/commercecollection.md +23 -0
- package/docs/sdk/models/shared/commerceinventory.md +15 -0
- package/docs/sdk/models/shared/commerceitem.md +22 -0
- package/docs/sdk/models/shared/commerceitemmedia.md +13 -0
- package/docs/sdk/models/shared/commerceitemmediatype.md +9 -0
- package/docs/sdk/models/shared/commerceitemoption.md +11 -0
- package/docs/sdk/models/shared/commerceitemprice.md +10 -0
- package/docs/sdk/models/shared/commerceitemvariant.md +30 -0
- package/docs/sdk/models/shared/commercelocation.md +14 -0
- package/docs/sdk/models/shared/connection.md +24 -0
- package/docs/sdk/models/shared/crmcompany.md +27 -0
- package/docs/sdk/models/shared/crmcontact.md +22 -0
- package/docs/sdk/models/shared/crmdeal.md +25 -0
- package/docs/sdk/models/shared/crmemail.md +9 -0
- package/docs/sdk/models/shared/crmemailtype.md +10 -0
- package/docs/sdk/models/shared/crmevent.md +24 -0
- package/docs/sdk/models/shared/crmeventtype.md +12 -0
- package/docs/sdk/models/shared/crmlead.md +23 -0
- package/docs/sdk/models/shared/crmpipeline.md +15 -0
- package/docs/sdk/models/shared/crmtelephone.md +9 -0
- package/docs/sdk/models/shared/crmtelephonetype.md +12 -0
- package/docs/sdk/models/shared/employmentstatus.md +9 -0
- package/docs/sdk/models/shared/employmenttype.md +17 -0
- package/docs/sdk/models/shared/enrichcompany.md +36 -0
- package/docs/sdk/models/shared/enrichemail.md +9 -0
- package/docs/sdk/models/shared/enrichemailtype.md +10 -0
- package/docs/sdk/models/shared/enrichperson.md +33 -0
- package/docs/sdk/models/shared/enrichpersonworkhistory.md +14 -0
- package/docs/sdk/models/shared/enrichtelephone.md +9 -0
- package/docs/sdk/models/shared/enrichtelephonetype.md +12 -0
- package/docs/sdk/models/shared/event.md +10 -0
- package/docs/sdk/models/shared/frequency.md +14 -0
- package/docs/sdk/models/shared/gender.md +9 -0
- package/docs/sdk/models/shared/hrisemail.md +9 -0
- package/docs/sdk/models/shared/hrisemailtype.md +10 -0
- package/docs/sdk/models/shared/hrisemployee.md +32 -0
- package/docs/sdk/models/shared/hrisemployeeemploymenttype.md +17 -0
- package/docs/sdk/models/shared/hrisemployeegender.md +12 -0
- package/docs/sdk/models/shared/hrisgroup.md +18 -0
- package/docs/sdk/models/shared/hrisgrouptype.md +14 -0
- package/docs/sdk/models/shared/hristelephone.md +9 -0
- package/docs/sdk/models/shared/hristelephonetype.md +12 -0
- package/docs/sdk/models/shared/integration.md +28 -0
- package/docs/sdk/models/shared/integrationsupport.md +39 -0
- package/docs/sdk/models/shared/issue.md +16 -0
- package/docs/sdk/models/shared/issuestatus.md +13 -0
- package/docs/sdk/models/shared/issuetype.md +10 -0
- package/docs/sdk/models/shared/maritalstatus.md +9 -0
- package/docs/sdk/models/shared/marketingemail.md +9 -0
- package/docs/sdk/models/shared/marketingemailtype.md +10 -0
- package/docs/sdk/models/shared/marketinglist.md +14 -0
- package/docs/sdk/models/shared/marketingmember.md +17 -0
- package/docs/sdk/models/shared/objecttype.md +48 -0
- package/docs/sdk/models/shared/origin.md +13 -0
- package/docs/sdk/models/shared/propertyaccountingcontactbillingaddress.md +15 -0
- package/docs/sdk/models/shared/propertyaccountingcontactshippingaddress.md +15 -0
- package/docs/sdk/models/shared/propertyaccountingorganizationaddress.md +15 -0
- package/docs/sdk/models/shared/propertyatscandidateaddress.md +15 -0
- package/docs/sdk/models/shared/propertyatscompanyaddress.md +15 -0
- package/docs/sdk/models/shared/propertycommercelocationaddress.md +15 -0
- package/docs/sdk/models/shared/propertyconnectionauth.md +32 -0
- package/docs/sdk/models/shared/propertyconnectioncategories.md +19 -0
- package/docs/sdk/models/shared/propertyconnectionpermissions.md +77 -0
- package/docs/sdk/models/shared/propertycrmcompanyaddress.md +15 -0
- package/docs/sdk/models/shared/propertycrmcontactaddress.md +15 -0
- package/docs/sdk/models/shared/propertycrmeventcall.md +12 -0
- package/docs/sdk/models/shared/propertycrmeventemail.md +15 -0
- package/docs/sdk/models/shared/propertycrmeventmeeting.md +13 -0
- package/docs/sdk/models/shared/propertycrmeventnote.md +10 -0
- package/docs/sdk/models/shared/propertycrmeventtask.md +13 -0
- package/docs/sdk/models/shared/propertycrmeventtaskstatus.md +11 -0
- package/docs/sdk/models/shared/propertycrmleadaddress.md +15 -0
- package/docs/sdk/models/shared/propertyenrichcompanyaddress.md +17 -0
- package/docs/sdk/models/shared/propertyenrichpersonaddress.md +17 -0
- package/docs/sdk/models/shared/propertyhrisemployeeaddress.md +15 -0
- package/docs/sdk/models/shared/propertyintegrationcategories.md +19 -0
- package/docs/sdk/models/shared/propertyintegrationsupportwebhookevents.md +10 -0
- package/docs/sdk/models/shared/propertystoragepermissionroles.md +10 -0
- package/docs/sdk/models/shared/propertyuccalltelephone.md +11 -0
- package/docs/sdk/models/shared/propertyuccalltelephonetype.md +12 -0
- package/docs/sdk/models/shared/recommendation.md +11 -0
- package/docs/sdk/models/shared/sizeunit.md +9 -0
- package/docs/sdk/models/shared/status.md +9 -0
- package/docs/sdk/models/shared/storagefile.md +21 -0
- package/docs/sdk/models/shared/storagefiletype.md +9 -0
- package/docs/sdk/models/shared/storagepermission.md +10 -0
- package/docs/sdk/models/shared/taxexemption.md +18 -0
- package/docs/sdk/models/shared/ticketingcustomer.md +15 -0
- package/docs/sdk/models/shared/ticketingemail.md +9 -0
- package/docs/sdk/models/shared/ticketingemailtype.md +10 -0
- package/docs/sdk/models/shared/ticketingnote.md +15 -0
- package/docs/sdk/models/shared/ticketingtelephone.md +9 -0
- package/docs/sdk/models/shared/ticketingtelephonetype.md +12 -0
- package/docs/sdk/models/shared/ticketingticket.md +22 -0
- package/docs/sdk/models/shared/ticketingticketstatus.md +9 -0
- package/docs/sdk/models/shared/typet.md +17 -0
- package/docs/sdk/models/shared/uccall.md +16 -0
- package/docs/sdk/models/shared/uccontact.md +18 -0
- package/docs/sdk/models/shared/ucemail.md +9 -0
- package/docs/sdk/models/shared/ucemailtype.md +10 -0
- package/docs/sdk/models/shared/uctelephone.md +9 -0
- package/docs/sdk/models/shared/uctelephonetype.md +12 -0
- package/docs/sdk/models/shared/webhook.md +27 -0
- package/docs/sdk/models/shared/webhooktype.md +10 -0
- package/docs/sdk/models/shared/webhookwebhooktype.md +10 -0
- package/docs/sdk/models/shared/weightunit.md +11 -0
- package/docs/sdks/account/README.md +318 -0
- package/docs/sdks/accounting/README.md +2240 -0
- package/docs/sdks/activity/README.md +327 -0
- package/docs/sdks/apicall/README.md +97 -0
- package/docs/sdks/application/README.md +339 -0
- package/docs/sdks/applicationstatus/README.md +55 -0
- package/docs/sdks/ats/README.md +2533 -0
- package/docs/sdks/auth/README.md +95 -0
- package/docs/sdks/call/README.md +55 -0
- package/docs/sdks/candidate/README.md +375 -0
- package/docs/sdks/collection/README.md +354 -0
- package/docs/sdks/commerce/README.md +1395 -0
- package/docs/sdks/company/README.md +526 -0
- package/docs/sdks/connection/README.md +364 -0
- package/docs/sdks/contact/README.md +1046 -0
- package/docs/sdks/crm/README.md +2084 -0
- package/docs/sdks/customer/README.md +354 -0
- package/docs/sdks/deal/README.md +321 -0
- package/docs/sdks/document/README.md +315 -0
- package/docs/sdks/employee/README.md +369 -0
- package/docs/sdks/enrich/README.md +99 -0
- package/docs/sdks/event/README.md +396 -0
- package/docs/sdks/file/README.md +336 -0
- package/docs/sdks/group/README.md +333 -0
- package/docs/sdks/hris/README.md +697 -0
- package/docs/sdks/integration/README.md +147 -0
- package/docs/sdks/interview/README.md +324 -0
- package/docs/sdks/inventory/README.md +315 -0
- package/docs/sdks/invoice/README.md +330 -0
- package/docs/sdks/issue/README.md +50 -0
- package/docs/sdks/item/README.md +423 -0
- package/docs/sdks/job/README.md +402 -0
- package/docs/sdks/lead/README.md +342 -0
- package/docs/sdks/list/README.md +312 -0
- package/docs/sdks/location/README.md +318 -0
- package/docs/sdks/login/README.md +48 -0
- package/docs/sdks/martech/README.md +655 -0
- package/docs/sdks/member/README.md +348 -0
- package/docs/sdks/note/README.md +312 -0
- package/docs/sdks/organization/README.md +106 -0
- package/docs/sdks/passthrough/README.md +254 -0
- package/docs/sdks/payment/README.md +312 -0
- package/docs/sdks/payout/README.md +106 -0
- package/docs/sdks/person/README.md +52 -0
- package/docs/sdks/pipeline/README.md +312 -0
- package/docs/sdks/refund/README.md +106 -0
- package/docs/sdks/scorecard/README.md +330 -0
- package/docs/sdks/storage/README.md +336 -0
- package/docs/sdks/taxrate/README.md +318 -0
- package/docs/sdks/ticket/README.md +324 -0
- package/docs/sdks/ticketing/README.md +980 -0
- package/docs/sdks/transaction/README.md +333 -0
- package/docs/sdks/uc/README.md +395 -0
- package/docs/sdks/unified/README.md +935 -0
- package/docs/sdks/unifiedto/README.md +9 -0
- package/docs/sdks/webhook/README.md +297 -0
- package/package.json +37 -0
|
@@ -0,0 +1,2587 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
40
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
+
function step(op) {
|
|
53
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
55
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
56
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
+
switch (op[0]) {
|
|
58
|
+
case 0: case 1: t = op; break;
|
|
59
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
+
default:
|
|
63
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
+
if (t[2]) _.ops.pop();
|
|
68
|
+
_.trys.pop(); continue;
|
|
69
|
+
}
|
|
70
|
+
op = body.call(thisArg, _);
|
|
71
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
76
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
77
|
+
if (!m) return o;
|
|
78
|
+
var i = m.call(o), r, ar = [], e;
|
|
79
|
+
try {
|
|
80
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
81
|
+
}
|
|
82
|
+
catch (error) { e = { error: error }; }
|
|
83
|
+
finally {
|
|
84
|
+
try {
|
|
85
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
86
|
+
}
|
|
87
|
+
finally { if (e) throw e.error; }
|
|
88
|
+
}
|
|
89
|
+
return ar;
|
|
90
|
+
};
|
|
91
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
92
|
+
exports.Accounting = void 0;
|
|
93
|
+
var utils = __importStar(require("../internal/utils"));
|
|
94
|
+
var errors = __importStar(require("../sdk/models/errors"));
|
|
95
|
+
var operations = __importStar(require("../sdk/models/operations"));
|
|
96
|
+
var shared = __importStar(require("../sdk/models/shared"));
|
|
97
|
+
var Accounting = /** @class */ (function () {
|
|
98
|
+
function Accounting(sdkConfig) {
|
|
99
|
+
this.sdkConfiguration = sdkConfig;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Create an account
|
|
103
|
+
*/
|
|
104
|
+
Accounting.prototype.createAccountingAccount = function (req, security, config) {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
108
|
+
var _d;
|
|
109
|
+
return __generator(this, function (_e) {
|
|
110
|
+
switch (_e.label) {
|
|
111
|
+
case 0:
|
|
112
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
113
|
+
req = new operations.CreateAccountingAccountRequest(req);
|
|
114
|
+
}
|
|
115
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
116
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account", req);
|
|
117
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
118
|
+
try {
|
|
119
|
+
_d = __read(utils.serializeRequestBody(req, "accountingAccount", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
if (e instanceof Error) {
|
|
123
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
client = this.sdkConfiguration.defaultClient;
|
|
127
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
128
|
+
security = new operations.CreateAccountingAccountSecurity(security);
|
|
129
|
+
}
|
|
130
|
+
properties = utils.parseSecurityProperties(security);
|
|
131
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
132
|
+
headers["Accept"] = "application/json";
|
|
133
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
134
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
135
|
+
case 1:
|
|
136
|
+
httpRes = _e.sent();
|
|
137
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
139
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
140
|
+
}
|
|
141
|
+
res = new operations.CreateAccountingAccountResponse({
|
|
142
|
+
statusCode: httpRes.status,
|
|
143
|
+
contentType: responseContentType,
|
|
144
|
+
rawResponse: httpRes,
|
|
145
|
+
});
|
|
146
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
147
|
+
switch (true) {
|
|
148
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
149
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
150
|
+
res.accountingAccount = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAccount);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
154
|
+
}
|
|
155
|
+
break;
|
|
156
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
157
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
158
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
159
|
+
}
|
|
160
|
+
return [2 /*return*/, res];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Create a contact
|
|
167
|
+
*/
|
|
168
|
+
Accounting.prototype.createAccountingContact = function (req, security, config) {
|
|
169
|
+
var _a, _b;
|
|
170
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
172
|
+
var _d;
|
|
173
|
+
return __generator(this, function (_e) {
|
|
174
|
+
switch (_e.label) {
|
|
175
|
+
case 0:
|
|
176
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
177
|
+
req = new operations.CreateAccountingContactRequest(req);
|
|
178
|
+
}
|
|
179
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
180
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact", req);
|
|
181
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
182
|
+
try {
|
|
183
|
+
_d = __read(utils.serializeRequestBody(req, "accountingContact", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
184
|
+
}
|
|
185
|
+
catch (e) {
|
|
186
|
+
if (e instanceof Error) {
|
|
187
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
client = this.sdkConfiguration.defaultClient;
|
|
191
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
192
|
+
security = new operations.CreateAccountingContactSecurity(security);
|
|
193
|
+
}
|
|
194
|
+
properties = utils.parseSecurityProperties(security);
|
|
195
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
196
|
+
headers["Accept"] = "application/json";
|
|
197
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
198
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
199
|
+
case 1:
|
|
200
|
+
httpRes = _e.sent();
|
|
201
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
203
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
204
|
+
}
|
|
205
|
+
res = new operations.CreateAccountingContactResponse({
|
|
206
|
+
statusCode: httpRes.status,
|
|
207
|
+
contentType: responseContentType,
|
|
208
|
+
rawResponse: httpRes,
|
|
209
|
+
});
|
|
210
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
211
|
+
switch (true) {
|
|
212
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
213
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
214
|
+
res.accountingContact = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingContact);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
218
|
+
}
|
|
219
|
+
break;
|
|
220
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
221
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
222
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
223
|
+
}
|
|
224
|
+
return [2 /*return*/, res];
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Create a invoice
|
|
231
|
+
*/
|
|
232
|
+
Accounting.prototype.createAccountingInvoice = function (req, security, config) {
|
|
233
|
+
var _a, _b;
|
|
234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
235
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
236
|
+
var _d;
|
|
237
|
+
return __generator(this, function (_e) {
|
|
238
|
+
switch (_e.label) {
|
|
239
|
+
case 0:
|
|
240
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
241
|
+
req = new operations.CreateAccountingInvoiceRequest(req);
|
|
242
|
+
}
|
|
243
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
244
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice", req);
|
|
245
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
246
|
+
try {
|
|
247
|
+
_d = __read(utils.serializeRequestBody(req, "accountingInvoice", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
if (e instanceof Error) {
|
|
251
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
client = this.sdkConfiguration.defaultClient;
|
|
255
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
256
|
+
security = new operations.CreateAccountingInvoiceSecurity(security);
|
|
257
|
+
}
|
|
258
|
+
properties = utils.parseSecurityProperties(security);
|
|
259
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
260
|
+
headers["Accept"] = "application/json";
|
|
261
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
262
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
263
|
+
case 1:
|
|
264
|
+
httpRes = _e.sent();
|
|
265
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
267
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
268
|
+
}
|
|
269
|
+
res = new operations.CreateAccountingInvoiceResponse({
|
|
270
|
+
statusCode: httpRes.status,
|
|
271
|
+
contentType: responseContentType,
|
|
272
|
+
rawResponse: httpRes,
|
|
273
|
+
});
|
|
274
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
275
|
+
switch (true) {
|
|
276
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
277
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
278
|
+
res.accountingInvoice = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingInvoice);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
282
|
+
}
|
|
283
|
+
break;
|
|
284
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
285
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
286
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
287
|
+
}
|
|
288
|
+
return [2 /*return*/, res];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Create a payment
|
|
295
|
+
*/
|
|
296
|
+
Accounting.prototype.createAccountingPayment = function (req, security, config) {
|
|
297
|
+
var _a, _b;
|
|
298
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
300
|
+
var _d;
|
|
301
|
+
return __generator(this, function (_e) {
|
|
302
|
+
switch (_e.label) {
|
|
303
|
+
case 0:
|
|
304
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
305
|
+
req = new operations.CreateAccountingPaymentRequest(req);
|
|
306
|
+
}
|
|
307
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
308
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment", req);
|
|
309
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
310
|
+
try {
|
|
311
|
+
_d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
312
|
+
}
|
|
313
|
+
catch (e) {
|
|
314
|
+
if (e instanceof Error) {
|
|
315
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
client = this.sdkConfiguration.defaultClient;
|
|
319
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
320
|
+
security = new operations.CreateAccountingPaymentSecurity(security);
|
|
321
|
+
}
|
|
322
|
+
properties = utils.parseSecurityProperties(security);
|
|
323
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
324
|
+
headers["Accept"] = "application/json";
|
|
325
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
326
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
327
|
+
case 1:
|
|
328
|
+
httpRes = _e.sent();
|
|
329
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
331
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
332
|
+
}
|
|
333
|
+
res = new operations.CreateAccountingPaymentResponse({
|
|
334
|
+
statusCode: httpRes.status,
|
|
335
|
+
contentType: responseContentType,
|
|
336
|
+
rawResponse: httpRes,
|
|
337
|
+
});
|
|
338
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
339
|
+
switch (true) {
|
|
340
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
341
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
342
|
+
res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
346
|
+
}
|
|
347
|
+
break;
|
|
348
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
349
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
350
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
351
|
+
}
|
|
352
|
+
return [2 /*return*/, res];
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Create a taxrate
|
|
359
|
+
*/
|
|
360
|
+
Accounting.prototype.createAccountingTaxrate = function (req, security, config) {
|
|
361
|
+
var _a, _b;
|
|
362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
364
|
+
var _d;
|
|
365
|
+
return __generator(this, function (_e) {
|
|
366
|
+
switch (_e.label) {
|
|
367
|
+
case 0:
|
|
368
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
369
|
+
req = new operations.CreateAccountingTaxrateRequest(req);
|
|
370
|
+
}
|
|
371
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
372
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate", req);
|
|
373
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
374
|
+
try {
|
|
375
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTaxrate", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
376
|
+
}
|
|
377
|
+
catch (e) {
|
|
378
|
+
if (e instanceof Error) {
|
|
379
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
client = this.sdkConfiguration.defaultClient;
|
|
383
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
384
|
+
security = new operations.CreateAccountingTaxrateSecurity(security);
|
|
385
|
+
}
|
|
386
|
+
properties = utils.parseSecurityProperties(security);
|
|
387
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
388
|
+
headers["Accept"] = "application/json";
|
|
389
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
390
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
391
|
+
case 1:
|
|
392
|
+
httpRes = _e.sent();
|
|
393
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
395
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
396
|
+
}
|
|
397
|
+
res = new operations.CreateAccountingTaxrateResponse({
|
|
398
|
+
statusCode: httpRes.status,
|
|
399
|
+
contentType: responseContentType,
|
|
400
|
+
rawResponse: httpRes,
|
|
401
|
+
});
|
|
402
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
403
|
+
switch (true) {
|
|
404
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
405
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
406
|
+
res.accountingTaxrate = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTaxrate);
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
410
|
+
}
|
|
411
|
+
break;
|
|
412
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
413
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
414
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
415
|
+
}
|
|
416
|
+
return [2 /*return*/, res];
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Create a transaction
|
|
423
|
+
*/
|
|
424
|
+
Accounting.prototype.createAccountingTransaction = function (req, security, config) {
|
|
425
|
+
var _a, _b;
|
|
426
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
427
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
428
|
+
var _d;
|
|
429
|
+
return __generator(this, function (_e) {
|
|
430
|
+
switch (_e.label) {
|
|
431
|
+
case 0:
|
|
432
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
433
|
+
req = new operations.CreateAccountingTransactionRequest(req);
|
|
434
|
+
}
|
|
435
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
436
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction", req);
|
|
437
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
438
|
+
try {
|
|
439
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
440
|
+
}
|
|
441
|
+
catch (e) {
|
|
442
|
+
if (e instanceof Error) {
|
|
443
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
client = this.sdkConfiguration.defaultClient;
|
|
447
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
448
|
+
security = new operations.CreateAccountingTransactionSecurity(security);
|
|
449
|
+
}
|
|
450
|
+
properties = utils.parseSecurityProperties(security);
|
|
451
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
452
|
+
headers["Accept"] = "application/json";
|
|
453
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
454
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
455
|
+
case 1:
|
|
456
|
+
httpRes = _e.sent();
|
|
457
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
459
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
460
|
+
}
|
|
461
|
+
res = new operations.CreateAccountingTransactionResponse({
|
|
462
|
+
statusCode: httpRes.status,
|
|
463
|
+
contentType: responseContentType,
|
|
464
|
+
rawResponse: httpRes,
|
|
465
|
+
});
|
|
466
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
467
|
+
switch (true) {
|
|
468
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
469
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
470
|
+
res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
474
|
+
}
|
|
475
|
+
break;
|
|
476
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
477
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
478
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
479
|
+
}
|
|
480
|
+
return [2 /*return*/, res];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Retrieve an account
|
|
487
|
+
*/
|
|
488
|
+
Accounting.prototype.getAccountingAccount = function (req, security, config) {
|
|
489
|
+
var _a, _b;
|
|
490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
491
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
492
|
+
return __generator(this, function (_c) {
|
|
493
|
+
switch (_c.label) {
|
|
494
|
+
case 0:
|
|
495
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
496
|
+
req = new operations.GetAccountingAccountRequest(req);
|
|
497
|
+
}
|
|
498
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
499
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
500
|
+
client = this.sdkConfiguration.defaultClient;
|
|
501
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
502
|
+
security = new operations.GetAccountingAccountSecurity(security);
|
|
503
|
+
}
|
|
504
|
+
properties = utils.parseSecurityProperties(security);
|
|
505
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
506
|
+
queryParams = utils.serializeQueryParams(req);
|
|
507
|
+
headers["Accept"] = "application/json";
|
|
508
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
509
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
510
|
+
case 1:
|
|
511
|
+
httpRes = _c.sent();
|
|
512
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
514
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
515
|
+
}
|
|
516
|
+
res = new operations.GetAccountingAccountResponse({
|
|
517
|
+
statusCode: httpRes.status,
|
|
518
|
+
contentType: responseContentType,
|
|
519
|
+
rawResponse: httpRes,
|
|
520
|
+
});
|
|
521
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
522
|
+
switch (true) {
|
|
523
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
524
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
525
|
+
res.accountingAccount = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAccount);
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
529
|
+
}
|
|
530
|
+
break;
|
|
531
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
532
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
533
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
534
|
+
}
|
|
535
|
+
return [2 /*return*/, res];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* Retrieve a contact
|
|
542
|
+
*/
|
|
543
|
+
Accounting.prototype.getAccountingContact = function (req, security, config) {
|
|
544
|
+
var _a, _b;
|
|
545
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
546
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
547
|
+
return __generator(this, function (_c) {
|
|
548
|
+
switch (_c.label) {
|
|
549
|
+
case 0:
|
|
550
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
551
|
+
req = new operations.GetAccountingContactRequest(req);
|
|
552
|
+
}
|
|
553
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
554
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
555
|
+
client = this.sdkConfiguration.defaultClient;
|
|
556
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
557
|
+
security = new operations.GetAccountingContactSecurity(security);
|
|
558
|
+
}
|
|
559
|
+
properties = utils.parseSecurityProperties(security);
|
|
560
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
561
|
+
queryParams = utils.serializeQueryParams(req);
|
|
562
|
+
headers["Accept"] = "application/json";
|
|
563
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
564
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
565
|
+
case 1:
|
|
566
|
+
httpRes = _c.sent();
|
|
567
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
569
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
570
|
+
}
|
|
571
|
+
res = new operations.GetAccountingContactResponse({
|
|
572
|
+
statusCode: httpRes.status,
|
|
573
|
+
contentType: responseContentType,
|
|
574
|
+
rawResponse: httpRes,
|
|
575
|
+
});
|
|
576
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
577
|
+
switch (true) {
|
|
578
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
579
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
580
|
+
res.accountingContact = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingContact);
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
584
|
+
}
|
|
585
|
+
break;
|
|
586
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
587
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
588
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
589
|
+
}
|
|
590
|
+
return [2 /*return*/, res];
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
};
|
|
595
|
+
/**
|
|
596
|
+
* Retrieve a invoice
|
|
597
|
+
*/
|
|
598
|
+
Accounting.prototype.getAccountingInvoice = function (req, security, config) {
|
|
599
|
+
var _a, _b;
|
|
600
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
601
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
602
|
+
return __generator(this, function (_c) {
|
|
603
|
+
switch (_c.label) {
|
|
604
|
+
case 0:
|
|
605
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
606
|
+
req = new operations.GetAccountingInvoiceRequest(req);
|
|
607
|
+
}
|
|
608
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
609
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
610
|
+
client = this.sdkConfiguration.defaultClient;
|
|
611
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
612
|
+
security = new operations.GetAccountingInvoiceSecurity(security);
|
|
613
|
+
}
|
|
614
|
+
properties = utils.parseSecurityProperties(security);
|
|
615
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
616
|
+
queryParams = utils.serializeQueryParams(req);
|
|
617
|
+
headers["Accept"] = "application/json";
|
|
618
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
619
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
620
|
+
case 1:
|
|
621
|
+
httpRes = _c.sent();
|
|
622
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
624
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
625
|
+
}
|
|
626
|
+
res = new operations.GetAccountingInvoiceResponse({
|
|
627
|
+
statusCode: httpRes.status,
|
|
628
|
+
contentType: responseContentType,
|
|
629
|
+
rawResponse: httpRes,
|
|
630
|
+
});
|
|
631
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
632
|
+
switch (true) {
|
|
633
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
634
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
635
|
+
res.accountingInvoice = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingInvoice);
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
639
|
+
}
|
|
640
|
+
break;
|
|
641
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
642
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
643
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
644
|
+
}
|
|
645
|
+
return [2 /*return*/, res];
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* Retrieve an organization
|
|
652
|
+
*/
|
|
653
|
+
Accounting.prototype.getAccountingOrganization = function (req, security, config) {
|
|
654
|
+
var _a, _b;
|
|
655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
656
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
657
|
+
return __generator(this, function (_c) {
|
|
658
|
+
switch (_c.label) {
|
|
659
|
+
case 0:
|
|
660
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
661
|
+
req = new operations.GetAccountingOrganizationRequest(req);
|
|
662
|
+
}
|
|
663
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
664
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/organization/{id}", req);
|
|
665
|
+
client = this.sdkConfiguration.defaultClient;
|
|
666
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
667
|
+
security = new operations.GetAccountingOrganizationSecurity(security);
|
|
668
|
+
}
|
|
669
|
+
properties = utils.parseSecurityProperties(security);
|
|
670
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
671
|
+
queryParams = utils.serializeQueryParams(req);
|
|
672
|
+
headers["Accept"] = "application/json";
|
|
673
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
674
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
675
|
+
case 1:
|
|
676
|
+
httpRes = _c.sent();
|
|
677
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
679
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
680
|
+
}
|
|
681
|
+
res = new operations.GetAccountingOrganizationResponse({
|
|
682
|
+
statusCode: httpRes.status,
|
|
683
|
+
contentType: responseContentType,
|
|
684
|
+
rawResponse: httpRes,
|
|
685
|
+
});
|
|
686
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
687
|
+
switch (true) {
|
|
688
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
689
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
690
|
+
res.accountingOrganization = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingOrganization);
|
|
691
|
+
}
|
|
692
|
+
else {
|
|
693
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
694
|
+
}
|
|
695
|
+
break;
|
|
696
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
697
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
698
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
699
|
+
}
|
|
700
|
+
return [2 /*return*/, res];
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
});
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* Retrieve a payment
|
|
707
|
+
*/
|
|
708
|
+
Accounting.prototype.getAccountingPayment = function (req, security, config) {
|
|
709
|
+
var _a, _b;
|
|
710
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
711
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
712
|
+
return __generator(this, function (_c) {
|
|
713
|
+
switch (_c.label) {
|
|
714
|
+
case 0:
|
|
715
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
716
|
+
req = new operations.GetAccountingPaymentRequest(req);
|
|
717
|
+
}
|
|
718
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
719
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
720
|
+
client = this.sdkConfiguration.defaultClient;
|
|
721
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
722
|
+
security = new operations.GetAccountingPaymentSecurity(security);
|
|
723
|
+
}
|
|
724
|
+
properties = utils.parseSecurityProperties(security);
|
|
725
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
726
|
+
queryParams = utils.serializeQueryParams(req);
|
|
727
|
+
headers["Accept"] = "application/json";
|
|
728
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
729
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
730
|
+
case 1:
|
|
731
|
+
httpRes = _c.sent();
|
|
732
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
734
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
735
|
+
}
|
|
736
|
+
res = new operations.GetAccountingPaymentResponse({
|
|
737
|
+
statusCode: httpRes.status,
|
|
738
|
+
contentType: responseContentType,
|
|
739
|
+
rawResponse: httpRes,
|
|
740
|
+
});
|
|
741
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
742
|
+
switch (true) {
|
|
743
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
744
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
745
|
+
res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
749
|
+
}
|
|
750
|
+
break;
|
|
751
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
752
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
753
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
754
|
+
}
|
|
755
|
+
return [2 /*return*/, res];
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* Retrieve a payout
|
|
762
|
+
*/
|
|
763
|
+
Accounting.prototype.getAccountingPayout = function (req, security, config) {
|
|
764
|
+
var _a, _b;
|
|
765
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
766
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
767
|
+
return __generator(this, function (_c) {
|
|
768
|
+
switch (_c.label) {
|
|
769
|
+
case 0:
|
|
770
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
771
|
+
req = new operations.GetAccountingPayoutRequest(req);
|
|
772
|
+
}
|
|
773
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
774
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payout/{id}", req);
|
|
775
|
+
client = this.sdkConfiguration.defaultClient;
|
|
776
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
777
|
+
security = new operations.GetAccountingPayoutSecurity(security);
|
|
778
|
+
}
|
|
779
|
+
properties = utils.parseSecurityProperties(security);
|
|
780
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
781
|
+
queryParams = utils.serializeQueryParams(req);
|
|
782
|
+
headers["Accept"] = "application/json";
|
|
783
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
784
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
785
|
+
case 1:
|
|
786
|
+
httpRes = _c.sent();
|
|
787
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
789
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
790
|
+
}
|
|
791
|
+
res = new operations.GetAccountingPayoutResponse({
|
|
792
|
+
statusCode: httpRes.status,
|
|
793
|
+
contentType: responseContentType,
|
|
794
|
+
rawResponse: httpRes,
|
|
795
|
+
});
|
|
796
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
797
|
+
switch (true) {
|
|
798
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
799
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
800
|
+
res.accountingPayout = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayout);
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
804
|
+
}
|
|
805
|
+
break;
|
|
806
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
807
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
808
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
809
|
+
}
|
|
810
|
+
return [2 /*return*/, res];
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
});
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* Retrieve a refund
|
|
817
|
+
*/
|
|
818
|
+
Accounting.prototype.getAccountingRefund = function (req, security, config) {
|
|
819
|
+
var _a, _b;
|
|
820
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
821
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
822
|
+
return __generator(this, function (_c) {
|
|
823
|
+
switch (_c.label) {
|
|
824
|
+
case 0:
|
|
825
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
826
|
+
req = new operations.GetAccountingRefundRequest(req);
|
|
827
|
+
}
|
|
828
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
829
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/refund/{id}", req);
|
|
830
|
+
client = this.sdkConfiguration.defaultClient;
|
|
831
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
832
|
+
security = new operations.GetAccountingRefundSecurity(security);
|
|
833
|
+
}
|
|
834
|
+
properties = utils.parseSecurityProperties(security);
|
|
835
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
836
|
+
queryParams = utils.serializeQueryParams(req);
|
|
837
|
+
headers["Accept"] = "application/json";
|
|
838
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
839
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
840
|
+
case 1:
|
|
841
|
+
httpRes = _c.sent();
|
|
842
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
844
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
845
|
+
}
|
|
846
|
+
res = new operations.GetAccountingRefundResponse({
|
|
847
|
+
statusCode: httpRes.status,
|
|
848
|
+
contentType: responseContentType,
|
|
849
|
+
rawResponse: httpRes,
|
|
850
|
+
});
|
|
851
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
852
|
+
switch (true) {
|
|
853
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
854
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
855
|
+
res.accountingRefund = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingRefund);
|
|
856
|
+
}
|
|
857
|
+
else {
|
|
858
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
859
|
+
}
|
|
860
|
+
break;
|
|
861
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
862
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
863
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
864
|
+
}
|
|
865
|
+
return [2 /*return*/, res];
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* Retrieve a taxrate
|
|
872
|
+
*/
|
|
873
|
+
Accounting.prototype.getAccountingTaxrate = function (req, security, config) {
|
|
874
|
+
var _a, _b;
|
|
875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
877
|
+
return __generator(this, function (_c) {
|
|
878
|
+
switch (_c.label) {
|
|
879
|
+
case 0:
|
|
880
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
881
|
+
req = new operations.GetAccountingTaxrateRequest(req);
|
|
882
|
+
}
|
|
883
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
884
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
885
|
+
client = this.sdkConfiguration.defaultClient;
|
|
886
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
887
|
+
security = new operations.GetAccountingTaxrateSecurity(security);
|
|
888
|
+
}
|
|
889
|
+
properties = utils.parseSecurityProperties(security);
|
|
890
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
891
|
+
queryParams = utils.serializeQueryParams(req);
|
|
892
|
+
headers["Accept"] = "application/json";
|
|
893
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
894
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
895
|
+
case 1:
|
|
896
|
+
httpRes = _c.sent();
|
|
897
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
898
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
899
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
900
|
+
}
|
|
901
|
+
res = new operations.GetAccountingTaxrateResponse({
|
|
902
|
+
statusCode: httpRes.status,
|
|
903
|
+
contentType: responseContentType,
|
|
904
|
+
rawResponse: httpRes,
|
|
905
|
+
});
|
|
906
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
907
|
+
switch (true) {
|
|
908
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
909
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
910
|
+
res.accountingTaxrate = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTaxrate);
|
|
911
|
+
}
|
|
912
|
+
else {
|
|
913
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
914
|
+
}
|
|
915
|
+
break;
|
|
916
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
917
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
918
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
919
|
+
}
|
|
920
|
+
return [2 /*return*/, res];
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* Retrieve a transaction
|
|
927
|
+
*/
|
|
928
|
+
Accounting.prototype.getAccountingTransaction = function (req, security, config) {
|
|
929
|
+
var _a, _b;
|
|
930
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
931
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
932
|
+
return __generator(this, function (_c) {
|
|
933
|
+
switch (_c.label) {
|
|
934
|
+
case 0:
|
|
935
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
936
|
+
req = new operations.GetAccountingTransactionRequest(req);
|
|
937
|
+
}
|
|
938
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
939
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
940
|
+
client = this.sdkConfiguration.defaultClient;
|
|
941
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
942
|
+
security = new operations.GetAccountingTransactionSecurity(security);
|
|
943
|
+
}
|
|
944
|
+
properties = utils.parseSecurityProperties(security);
|
|
945
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
946
|
+
queryParams = utils.serializeQueryParams(req);
|
|
947
|
+
headers["Accept"] = "application/json";
|
|
948
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
949
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
950
|
+
case 1:
|
|
951
|
+
httpRes = _c.sent();
|
|
952
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
953
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
954
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
955
|
+
}
|
|
956
|
+
res = new operations.GetAccountingTransactionResponse({
|
|
957
|
+
statusCode: httpRes.status,
|
|
958
|
+
contentType: responseContentType,
|
|
959
|
+
rawResponse: httpRes,
|
|
960
|
+
});
|
|
961
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
962
|
+
switch (true) {
|
|
963
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
964
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
965
|
+
res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
969
|
+
}
|
|
970
|
+
break;
|
|
971
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
972
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
973
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
974
|
+
}
|
|
975
|
+
return [2 /*return*/, res];
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
});
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* List all accounts
|
|
982
|
+
*/
|
|
983
|
+
Accounting.prototype.listAccountingAccounts = function (req, security, config) {
|
|
984
|
+
var _a, _b;
|
|
985
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
986
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
987
|
+
return __generator(this, function (_c) {
|
|
988
|
+
switch (_c.label) {
|
|
989
|
+
case 0:
|
|
990
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
991
|
+
req = new operations.ListAccountingAccountsRequest(req);
|
|
992
|
+
}
|
|
993
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
994
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account", req);
|
|
995
|
+
client = this.sdkConfiguration.defaultClient;
|
|
996
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
997
|
+
security = new operations.ListAccountingAccountsSecurity(security);
|
|
998
|
+
}
|
|
999
|
+
properties = utils.parseSecurityProperties(security);
|
|
1000
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1001
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1002
|
+
headers["Accept"] = "application/json";
|
|
1003
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1004
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1005
|
+
case 1:
|
|
1006
|
+
httpRes = _c.sent();
|
|
1007
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1008
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1009
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1010
|
+
}
|
|
1011
|
+
res = new operations.ListAccountingAccountsResponse({
|
|
1012
|
+
statusCode: httpRes.status,
|
|
1013
|
+
contentType: responseContentType,
|
|
1014
|
+
rawResponse: httpRes,
|
|
1015
|
+
});
|
|
1016
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1017
|
+
switch (true) {
|
|
1018
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1019
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1020
|
+
res.accountingAccounts = [];
|
|
1021
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1022
|
+
res.accountingAccounts = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAccount, resFieldDepth);
|
|
1023
|
+
}
|
|
1024
|
+
else {
|
|
1025
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1026
|
+
}
|
|
1027
|
+
break;
|
|
1028
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1029
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1030
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1031
|
+
}
|
|
1032
|
+
return [2 /*return*/, res];
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* List all contacts
|
|
1039
|
+
*/
|
|
1040
|
+
Accounting.prototype.listAccountingContacts = function (req, security, config) {
|
|
1041
|
+
var _a, _b;
|
|
1042
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1043
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1044
|
+
return __generator(this, function (_c) {
|
|
1045
|
+
switch (_c.label) {
|
|
1046
|
+
case 0:
|
|
1047
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1048
|
+
req = new operations.ListAccountingContactsRequest(req);
|
|
1049
|
+
}
|
|
1050
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1051
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact", req);
|
|
1052
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1053
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1054
|
+
security = new operations.ListAccountingContactsSecurity(security);
|
|
1055
|
+
}
|
|
1056
|
+
properties = utils.parseSecurityProperties(security);
|
|
1057
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1058
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1059
|
+
headers["Accept"] = "application/json";
|
|
1060
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1061
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1062
|
+
case 1:
|
|
1063
|
+
httpRes = _c.sent();
|
|
1064
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1065
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1066
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1067
|
+
}
|
|
1068
|
+
res = new operations.ListAccountingContactsResponse({
|
|
1069
|
+
statusCode: httpRes.status,
|
|
1070
|
+
contentType: responseContentType,
|
|
1071
|
+
rawResponse: httpRes,
|
|
1072
|
+
});
|
|
1073
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1074
|
+
switch (true) {
|
|
1075
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1076
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1077
|
+
res.accountingContacts = [];
|
|
1078
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1079
|
+
res.accountingContacts = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingContact, resFieldDepth);
|
|
1080
|
+
}
|
|
1081
|
+
else {
|
|
1082
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1083
|
+
}
|
|
1084
|
+
break;
|
|
1085
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1086
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1087
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1088
|
+
}
|
|
1089
|
+
return [2 /*return*/, res];
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
});
|
|
1093
|
+
};
|
|
1094
|
+
/**
|
|
1095
|
+
* List all invoices
|
|
1096
|
+
*/
|
|
1097
|
+
Accounting.prototype.listAccountingInvoices = function (req, security, config) {
|
|
1098
|
+
var _a, _b;
|
|
1099
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1100
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1101
|
+
return __generator(this, function (_c) {
|
|
1102
|
+
switch (_c.label) {
|
|
1103
|
+
case 0:
|
|
1104
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1105
|
+
req = new operations.ListAccountingInvoicesRequest(req);
|
|
1106
|
+
}
|
|
1107
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1108
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice", req);
|
|
1109
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1110
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1111
|
+
security = new operations.ListAccountingInvoicesSecurity(security);
|
|
1112
|
+
}
|
|
1113
|
+
properties = utils.parseSecurityProperties(security);
|
|
1114
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1115
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1116
|
+
headers["Accept"] = "application/json";
|
|
1117
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1118
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1119
|
+
case 1:
|
|
1120
|
+
httpRes = _c.sent();
|
|
1121
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1122
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1123
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1124
|
+
}
|
|
1125
|
+
res = new operations.ListAccountingInvoicesResponse({
|
|
1126
|
+
statusCode: httpRes.status,
|
|
1127
|
+
contentType: responseContentType,
|
|
1128
|
+
rawResponse: httpRes,
|
|
1129
|
+
});
|
|
1130
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1131
|
+
switch (true) {
|
|
1132
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1133
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1134
|
+
res.accountingInvoices = [];
|
|
1135
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1136
|
+
res.accountingInvoices = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingInvoice, resFieldDepth);
|
|
1137
|
+
}
|
|
1138
|
+
else {
|
|
1139
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1140
|
+
}
|
|
1141
|
+
break;
|
|
1142
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1143
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1144
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1145
|
+
}
|
|
1146
|
+
return [2 /*return*/, res];
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
1151
|
+
/**
|
|
1152
|
+
* List all organizations
|
|
1153
|
+
*/
|
|
1154
|
+
Accounting.prototype.listAccountingOrganizations = function (req, security, config) {
|
|
1155
|
+
var _a, _b;
|
|
1156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1157
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1158
|
+
return __generator(this, function (_c) {
|
|
1159
|
+
switch (_c.label) {
|
|
1160
|
+
case 0:
|
|
1161
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1162
|
+
req = new operations.ListAccountingOrganizationsRequest(req);
|
|
1163
|
+
}
|
|
1164
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1165
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/organization", req);
|
|
1166
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1167
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1168
|
+
security = new operations.ListAccountingOrganizationsSecurity(security);
|
|
1169
|
+
}
|
|
1170
|
+
properties = utils.parseSecurityProperties(security);
|
|
1171
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1172
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1173
|
+
headers["Accept"] = "application/json";
|
|
1174
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1175
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1176
|
+
case 1:
|
|
1177
|
+
httpRes = _c.sent();
|
|
1178
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1179
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1180
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1181
|
+
}
|
|
1182
|
+
res = new operations.ListAccountingOrganizationsResponse({
|
|
1183
|
+
statusCode: httpRes.status,
|
|
1184
|
+
contentType: responseContentType,
|
|
1185
|
+
rawResponse: httpRes,
|
|
1186
|
+
});
|
|
1187
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1188
|
+
switch (true) {
|
|
1189
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1190
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1191
|
+
res.accountingOrganizations = [];
|
|
1192
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1193
|
+
res.accountingOrganizations = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingOrganization, resFieldDepth);
|
|
1194
|
+
}
|
|
1195
|
+
else {
|
|
1196
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1197
|
+
}
|
|
1198
|
+
break;
|
|
1199
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1200
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1201
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1202
|
+
}
|
|
1203
|
+
return [2 /*return*/, res];
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
});
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* List all payments
|
|
1210
|
+
*/
|
|
1211
|
+
Accounting.prototype.listAccountingPayments = function (req, security, config) {
|
|
1212
|
+
var _a, _b;
|
|
1213
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1214
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1215
|
+
return __generator(this, function (_c) {
|
|
1216
|
+
switch (_c.label) {
|
|
1217
|
+
case 0:
|
|
1218
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1219
|
+
req = new operations.ListAccountingPaymentsRequest(req);
|
|
1220
|
+
}
|
|
1221
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1222
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment", req);
|
|
1223
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1224
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1225
|
+
security = new operations.ListAccountingPaymentsSecurity(security);
|
|
1226
|
+
}
|
|
1227
|
+
properties = utils.parseSecurityProperties(security);
|
|
1228
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1229
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1230
|
+
headers["Accept"] = "application/json";
|
|
1231
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1232
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1233
|
+
case 1:
|
|
1234
|
+
httpRes = _c.sent();
|
|
1235
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1236
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1237
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1238
|
+
}
|
|
1239
|
+
res = new operations.ListAccountingPaymentsResponse({
|
|
1240
|
+
statusCode: httpRes.status,
|
|
1241
|
+
contentType: responseContentType,
|
|
1242
|
+
rawResponse: httpRes,
|
|
1243
|
+
});
|
|
1244
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1245
|
+
switch (true) {
|
|
1246
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1247
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1248
|
+
res.accountingPayments = [];
|
|
1249
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1250
|
+
res.accountingPayments = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment, resFieldDepth);
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1254
|
+
}
|
|
1255
|
+
break;
|
|
1256
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1257
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1258
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1259
|
+
}
|
|
1260
|
+
return [2 /*return*/, res];
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
});
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* List all payouts
|
|
1267
|
+
*/
|
|
1268
|
+
Accounting.prototype.listAccountingPayouts = function (req, security, config) {
|
|
1269
|
+
var _a, _b;
|
|
1270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1271
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1272
|
+
return __generator(this, function (_c) {
|
|
1273
|
+
switch (_c.label) {
|
|
1274
|
+
case 0:
|
|
1275
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1276
|
+
req = new operations.ListAccountingPayoutsRequest(req);
|
|
1277
|
+
}
|
|
1278
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1279
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payout", req);
|
|
1280
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1281
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1282
|
+
security = new operations.ListAccountingPayoutsSecurity(security);
|
|
1283
|
+
}
|
|
1284
|
+
properties = utils.parseSecurityProperties(security);
|
|
1285
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1286
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1287
|
+
headers["Accept"] = "application/json";
|
|
1288
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1289
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1290
|
+
case 1:
|
|
1291
|
+
httpRes = _c.sent();
|
|
1292
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1293
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1294
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1295
|
+
}
|
|
1296
|
+
res = new operations.ListAccountingPayoutsResponse({
|
|
1297
|
+
statusCode: httpRes.status,
|
|
1298
|
+
contentType: responseContentType,
|
|
1299
|
+
rawResponse: httpRes,
|
|
1300
|
+
});
|
|
1301
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1302
|
+
switch (true) {
|
|
1303
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1304
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1305
|
+
res.accountingPayouts = [];
|
|
1306
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1307
|
+
res.accountingPayouts = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayout, resFieldDepth);
|
|
1308
|
+
}
|
|
1309
|
+
else {
|
|
1310
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1311
|
+
}
|
|
1312
|
+
break;
|
|
1313
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1314
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1315
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1316
|
+
}
|
|
1317
|
+
return [2 /*return*/, res];
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* List all refunds
|
|
1324
|
+
*/
|
|
1325
|
+
Accounting.prototype.listAccountingRefunds = function (req, security, config) {
|
|
1326
|
+
var _a, _b;
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1328
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1329
|
+
return __generator(this, function (_c) {
|
|
1330
|
+
switch (_c.label) {
|
|
1331
|
+
case 0:
|
|
1332
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1333
|
+
req = new operations.ListAccountingRefundsRequest(req);
|
|
1334
|
+
}
|
|
1335
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1336
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/refund", req);
|
|
1337
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1338
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1339
|
+
security = new operations.ListAccountingRefundsSecurity(security);
|
|
1340
|
+
}
|
|
1341
|
+
properties = utils.parseSecurityProperties(security);
|
|
1342
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1343
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1344
|
+
headers["Accept"] = "application/json";
|
|
1345
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1346
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1347
|
+
case 1:
|
|
1348
|
+
httpRes = _c.sent();
|
|
1349
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1350
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1351
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1352
|
+
}
|
|
1353
|
+
res = new operations.ListAccountingRefundsResponse({
|
|
1354
|
+
statusCode: httpRes.status,
|
|
1355
|
+
contentType: responseContentType,
|
|
1356
|
+
rawResponse: httpRes,
|
|
1357
|
+
});
|
|
1358
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1359
|
+
switch (true) {
|
|
1360
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1361
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1362
|
+
res.accountingRefunds = [];
|
|
1363
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1364
|
+
res.accountingRefunds = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingRefund, resFieldDepth);
|
|
1365
|
+
}
|
|
1366
|
+
else {
|
|
1367
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1368
|
+
}
|
|
1369
|
+
break;
|
|
1370
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1371
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1372
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1373
|
+
}
|
|
1374
|
+
return [2 /*return*/, res];
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
});
|
|
1378
|
+
};
|
|
1379
|
+
/**
|
|
1380
|
+
* List all taxrates
|
|
1381
|
+
*/
|
|
1382
|
+
Accounting.prototype.listAccountingTaxrates = function (req, security, config) {
|
|
1383
|
+
var _a, _b;
|
|
1384
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1385
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1386
|
+
return __generator(this, function (_c) {
|
|
1387
|
+
switch (_c.label) {
|
|
1388
|
+
case 0:
|
|
1389
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1390
|
+
req = new operations.ListAccountingTaxratesRequest(req);
|
|
1391
|
+
}
|
|
1392
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1393
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate", req);
|
|
1394
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1395
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1396
|
+
security = new operations.ListAccountingTaxratesSecurity(security);
|
|
1397
|
+
}
|
|
1398
|
+
properties = utils.parseSecurityProperties(security);
|
|
1399
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1400
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1401
|
+
headers["Accept"] = "application/json";
|
|
1402
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1403
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1404
|
+
case 1:
|
|
1405
|
+
httpRes = _c.sent();
|
|
1406
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1407
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1408
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1409
|
+
}
|
|
1410
|
+
res = new operations.ListAccountingTaxratesResponse({
|
|
1411
|
+
statusCode: httpRes.status,
|
|
1412
|
+
contentType: responseContentType,
|
|
1413
|
+
rawResponse: httpRes,
|
|
1414
|
+
});
|
|
1415
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1416
|
+
switch (true) {
|
|
1417
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1418
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1419
|
+
res.accountingTaxrates = [];
|
|
1420
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1421
|
+
res.accountingTaxrates = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTaxrate, resFieldDepth);
|
|
1422
|
+
}
|
|
1423
|
+
else {
|
|
1424
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1425
|
+
}
|
|
1426
|
+
break;
|
|
1427
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1428
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1429
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1430
|
+
}
|
|
1431
|
+
return [2 /*return*/, res];
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* List all transactions
|
|
1438
|
+
*/
|
|
1439
|
+
Accounting.prototype.listAccountingTransactions = function (req, security, config) {
|
|
1440
|
+
var _a, _b;
|
|
1441
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1442
|
+
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
1443
|
+
return __generator(this, function (_c) {
|
|
1444
|
+
switch (_c.label) {
|
|
1445
|
+
case 0:
|
|
1446
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1447
|
+
req = new operations.ListAccountingTransactionsRequest(req);
|
|
1448
|
+
}
|
|
1449
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1450
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction", req);
|
|
1451
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1452
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1453
|
+
security = new operations.ListAccountingTransactionsSecurity(security);
|
|
1454
|
+
}
|
|
1455
|
+
properties = utils.parseSecurityProperties(security);
|
|
1456
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1457
|
+
queryParams = utils.serializeQueryParams(req);
|
|
1458
|
+
headers["Accept"] = "application/json";
|
|
1459
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1460
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1461
|
+
case 1:
|
|
1462
|
+
httpRes = _c.sent();
|
|
1463
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1464
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1465
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1466
|
+
}
|
|
1467
|
+
res = new operations.ListAccountingTransactionsResponse({
|
|
1468
|
+
statusCode: httpRes.status,
|
|
1469
|
+
contentType: responseContentType,
|
|
1470
|
+
rawResponse: httpRes,
|
|
1471
|
+
});
|
|
1472
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1473
|
+
switch (true) {
|
|
1474
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1475
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1476
|
+
res.accountingTransactions = [];
|
|
1477
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
1478
|
+
res.accountingTransactions = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction, resFieldDepth);
|
|
1479
|
+
}
|
|
1480
|
+
else {
|
|
1481
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1482
|
+
}
|
|
1483
|
+
break;
|
|
1484
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1485
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1486
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1487
|
+
}
|
|
1488
|
+
return [2 /*return*/, res];
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
});
|
|
1492
|
+
};
|
|
1493
|
+
/**
|
|
1494
|
+
* Update an account
|
|
1495
|
+
*/
|
|
1496
|
+
Accounting.prototype.patchAccountingAccount = function (req, security, config) {
|
|
1497
|
+
var _a, _b;
|
|
1498
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1499
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1500
|
+
var _d;
|
|
1501
|
+
return __generator(this, function (_e) {
|
|
1502
|
+
switch (_e.label) {
|
|
1503
|
+
case 0:
|
|
1504
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1505
|
+
req = new operations.PatchAccountingAccountRequest(req);
|
|
1506
|
+
}
|
|
1507
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1508
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
1509
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1510
|
+
try {
|
|
1511
|
+
_d = __read(utils.serializeRequestBody(req, "accountingAccount", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1512
|
+
}
|
|
1513
|
+
catch (e) {
|
|
1514
|
+
if (e instanceof Error) {
|
|
1515
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1519
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1520
|
+
security = new operations.PatchAccountingAccountSecurity(security);
|
|
1521
|
+
}
|
|
1522
|
+
properties = utils.parseSecurityProperties(security);
|
|
1523
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1524
|
+
headers["Accept"] = "application/json";
|
|
1525
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1526
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1527
|
+
case 1:
|
|
1528
|
+
httpRes = _e.sent();
|
|
1529
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1530
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1531
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1532
|
+
}
|
|
1533
|
+
res = new operations.PatchAccountingAccountResponse({
|
|
1534
|
+
statusCode: httpRes.status,
|
|
1535
|
+
contentType: responseContentType,
|
|
1536
|
+
rawResponse: httpRes,
|
|
1537
|
+
});
|
|
1538
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1539
|
+
switch (true) {
|
|
1540
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1541
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1542
|
+
res.accountingAccount = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAccount);
|
|
1543
|
+
}
|
|
1544
|
+
else {
|
|
1545
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1546
|
+
}
|
|
1547
|
+
break;
|
|
1548
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1549
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1550
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1551
|
+
}
|
|
1552
|
+
return [2 /*return*/, res];
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
});
|
|
1556
|
+
};
|
|
1557
|
+
/**
|
|
1558
|
+
* Update a contact
|
|
1559
|
+
*/
|
|
1560
|
+
Accounting.prototype.patchAccountingContact = function (req, security, config) {
|
|
1561
|
+
var _a, _b;
|
|
1562
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1563
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1564
|
+
var _d;
|
|
1565
|
+
return __generator(this, function (_e) {
|
|
1566
|
+
switch (_e.label) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1569
|
+
req = new operations.PatchAccountingContactRequest(req);
|
|
1570
|
+
}
|
|
1571
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1572
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
1573
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1574
|
+
try {
|
|
1575
|
+
_d = __read(utils.serializeRequestBody(req, "accountingContact", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1576
|
+
}
|
|
1577
|
+
catch (e) {
|
|
1578
|
+
if (e instanceof Error) {
|
|
1579
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1583
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1584
|
+
security = new operations.PatchAccountingContactSecurity(security);
|
|
1585
|
+
}
|
|
1586
|
+
properties = utils.parseSecurityProperties(security);
|
|
1587
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1588
|
+
headers["Accept"] = "application/json";
|
|
1589
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1590
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1591
|
+
case 1:
|
|
1592
|
+
httpRes = _e.sent();
|
|
1593
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1594
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1595
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1596
|
+
}
|
|
1597
|
+
res = new operations.PatchAccountingContactResponse({
|
|
1598
|
+
statusCode: httpRes.status,
|
|
1599
|
+
contentType: responseContentType,
|
|
1600
|
+
rawResponse: httpRes,
|
|
1601
|
+
});
|
|
1602
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1603
|
+
switch (true) {
|
|
1604
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1605
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1606
|
+
res.accountingContact = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingContact);
|
|
1607
|
+
}
|
|
1608
|
+
else {
|
|
1609
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1610
|
+
}
|
|
1611
|
+
break;
|
|
1612
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1613
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1614
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1615
|
+
}
|
|
1616
|
+
return [2 /*return*/, res];
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
});
|
|
1620
|
+
};
|
|
1621
|
+
/**
|
|
1622
|
+
* Update a invoice
|
|
1623
|
+
*/
|
|
1624
|
+
Accounting.prototype.patchAccountingInvoice = function (req, security, config) {
|
|
1625
|
+
var _a, _b;
|
|
1626
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1627
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1628
|
+
var _d;
|
|
1629
|
+
return __generator(this, function (_e) {
|
|
1630
|
+
switch (_e.label) {
|
|
1631
|
+
case 0:
|
|
1632
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1633
|
+
req = new operations.PatchAccountingInvoiceRequest(req);
|
|
1634
|
+
}
|
|
1635
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1636
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
1637
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1638
|
+
try {
|
|
1639
|
+
_d = __read(utils.serializeRequestBody(req, "accountingInvoice", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1640
|
+
}
|
|
1641
|
+
catch (e) {
|
|
1642
|
+
if (e instanceof Error) {
|
|
1643
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1647
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1648
|
+
security = new operations.PatchAccountingInvoiceSecurity(security);
|
|
1649
|
+
}
|
|
1650
|
+
properties = utils.parseSecurityProperties(security);
|
|
1651
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1652
|
+
headers["Accept"] = "application/json";
|
|
1653
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1654
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1655
|
+
case 1:
|
|
1656
|
+
httpRes = _e.sent();
|
|
1657
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1658
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1659
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1660
|
+
}
|
|
1661
|
+
res = new operations.PatchAccountingInvoiceResponse({
|
|
1662
|
+
statusCode: httpRes.status,
|
|
1663
|
+
contentType: responseContentType,
|
|
1664
|
+
rawResponse: httpRes,
|
|
1665
|
+
});
|
|
1666
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1667
|
+
switch (true) {
|
|
1668
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1669
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1670
|
+
res.accountingInvoice = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingInvoice);
|
|
1671
|
+
}
|
|
1672
|
+
else {
|
|
1673
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1674
|
+
}
|
|
1675
|
+
break;
|
|
1676
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1677
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1678
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1679
|
+
}
|
|
1680
|
+
return [2 /*return*/, res];
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
});
|
|
1684
|
+
};
|
|
1685
|
+
/**
|
|
1686
|
+
* Update a payment
|
|
1687
|
+
*/
|
|
1688
|
+
Accounting.prototype.patchAccountingPayment = function (req, security, config) {
|
|
1689
|
+
var _a, _b;
|
|
1690
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1691
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1692
|
+
var _d;
|
|
1693
|
+
return __generator(this, function (_e) {
|
|
1694
|
+
switch (_e.label) {
|
|
1695
|
+
case 0:
|
|
1696
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1697
|
+
req = new operations.PatchAccountingPaymentRequest(req);
|
|
1698
|
+
}
|
|
1699
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1700
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
1701
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1702
|
+
try {
|
|
1703
|
+
_d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1704
|
+
}
|
|
1705
|
+
catch (e) {
|
|
1706
|
+
if (e instanceof Error) {
|
|
1707
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1711
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1712
|
+
security = new operations.PatchAccountingPaymentSecurity(security);
|
|
1713
|
+
}
|
|
1714
|
+
properties = utils.parseSecurityProperties(security);
|
|
1715
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1716
|
+
headers["Accept"] = "application/json";
|
|
1717
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1718
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1719
|
+
case 1:
|
|
1720
|
+
httpRes = _e.sent();
|
|
1721
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1722
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1723
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1724
|
+
}
|
|
1725
|
+
res = new operations.PatchAccountingPaymentResponse({
|
|
1726
|
+
statusCode: httpRes.status,
|
|
1727
|
+
contentType: responseContentType,
|
|
1728
|
+
rawResponse: httpRes,
|
|
1729
|
+
});
|
|
1730
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1731
|
+
switch (true) {
|
|
1732
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1733
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1734
|
+
res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
|
|
1735
|
+
}
|
|
1736
|
+
else {
|
|
1737
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1738
|
+
}
|
|
1739
|
+
break;
|
|
1740
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1741
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1742
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1743
|
+
}
|
|
1744
|
+
return [2 /*return*/, res];
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
});
|
|
1748
|
+
};
|
|
1749
|
+
/**
|
|
1750
|
+
* Update a taxrate
|
|
1751
|
+
*/
|
|
1752
|
+
Accounting.prototype.patchAccountingTaxrate = function (req, security, config) {
|
|
1753
|
+
var _a, _b;
|
|
1754
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1755
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1756
|
+
var _d;
|
|
1757
|
+
return __generator(this, function (_e) {
|
|
1758
|
+
switch (_e.label) {
|
|
1759
|
+
case 0:
|
|
1760
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1761
|
+
req = new operations.PatchAccountingTaxrateRequest(req);
|
|
1762
|
+
}
|
|
1763
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1764
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
1765
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1766
|
+
try {
|
|
1767
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTaxrate", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1768
|
+
}
|
|
1769
|
+
catch (e) {
|
|
1770
|
+
if (e instanceof Error) {
|
|
1771
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1775
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1776
|
+
security = new operations.PatchAccountingTaxrateSecurity(security);
|
|
1777
|
+
}
|
|
1778
|
+
properties = utils.parseSecurityProperties(security);
|
|
1779
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1780
|
+
headers["Accept"] = "application/json";
|
|
1781
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1782
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1783
|
+
case 1:
|
|
1784
|
+
httpRes = _e.sent();
|
|
1785
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1786
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1787
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1788
|
+
}
|
|
1789
|
+
res = new operations.PatchAccountingTaxrateResponse({
|
|
1790
|
+
statusCode: httpRes.status,
|
|
1791
|
+
contentType: responseContentType,
|
|
1792
|
+
rawResponse: httpRes,
|
|
1793
|
+
});
|
|
1794
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1795
|
+
switch (true) {
|
|
1796
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1797
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1798
|
+
res.accountingTaxrate = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTaxrate);
|
|
1799
|
+
}
|
|
1800
|
+
else {
|
|
1801
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1802
|
+
}
|
|
1803
|
+
break;
|
|
1804
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1805
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1806
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1807
|
+
}
|
|
1808
|
+
return [2 /*return*/, res];
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
});
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* Update a transaction
|
|
1815
|
+
*/
|
|
1816
|
+
Accounting.prototype.patchAccountingTransaction = function (req, security, config) {
|
|
1817
|
+
var _a, _b;
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1819
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1820
|
+
var _d;
|
|
1821
|
+
return __generator(this, function (_e) {
|
|
1822
|
+
switch (_e.label) {
|
|
1823
|
+
case 0:
|
|
1824
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1825
|
+
req = new operations.PatchAccountingTransactionRequest(req);
|
|
1826
|
+
}
|
|
1827
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1828
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
1829
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1830
|
+
try {
|
|
1831
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1832
|
+
}
|
|
1833
|
+
catch (e) {
|
|
1834
|
+
if (e instanceof Error) {
|
|
1835
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1839
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1840
|
+
security = new operations.PatchAccountingTransactionSecurity(security);
|
|
1841
|
+
}
|
|
1842
|
+
properties = utils.parseSecurityProperties(security);
|
|
1843
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1844
|
+
headers["Accept"] = "application/json";
|
|
1845
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1846
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1847
|
+
case 1:
|
|
1848
|
+
httpRes = _e.sent();
|
|
1849
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1850
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1851
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1852
|
+
}
|
|
1853
|
+
res = new operations.PatchAccountingTransactionResponse({
|
|
1854
|
+
statusCode: httpRes.status,
|
|
1855
|
+
contentType: responseContentType,
|
|
1856
|
+
rawResponse: httpRes,
|
|
1857
|
+
});
|
|
1858
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1859
|
+
switch (true) {
|
|
1860
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1861
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1862
|
+
res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
|
|
1863
|
+
}
|
|
1864
|
+
else {
|
|
1865
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1866
|
+
}
|
|
1867
|
+
break;
|
|
1868
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1869
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1870
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1871
|
+
}
|
|
1872
|
+
return [2 /*return*/, res];
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
});
|
|
1876
|
+
};
|
|
1877
|
+
/**
|
|
1878
|
+
* Remove an account
|
|
1879
|
+
*/
|
|
1880
|
+
Accounting.prototype.removeAccountingAccount = function (req, security, config) {
|
|
1881
|
+
var _a, _b;
|
|
1882
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1883
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1884
|
+
return __generator(this, function (_c) {
|
|
1885
|
+
switch (_c.label) {
|
|
1886
|
+
case 0:
|
|
1887
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1888
|
+
req = new operations.RemoveAccountingAccountRequest(req);
|
|
1889
|
+
}
|
|
1890
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1891
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
1892
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1893
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1894
|
+
security = new operations.RemoveAccountingAccountSecurity(security);
|
|
1895
|
+
}
|
|
1896
|
+
properties = utils.parseSecurityProperties(security);
|
|
1897
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1898
|
+
headers["Accept"] = "application/json";
|
|
1899
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1900
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1901
|
+
case 1:
|
|
1902
|
+
httpRes = _c.sent();
|
|
1903
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1904
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1905
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1906
|
+
}
|
|
1907
|
+
res = new operations.RemoveAccountingAccountResponse({
|
|
1908
|
+
statusCode: httpRes.status,
|
|
1909
|
+
contentType: responseContentType,
|
|
1910
|
+
rawResponse: httpRes,
|
|
1911
|
+
});
|
|
1912
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1913
|
+
switch (true) {
|
|
1914
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1915
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1916
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1917
|
+
default:
|
|
1918
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1919
|
+
res.res = decodedRes;
|
|
1920
|
+
}
|
|
1921
|
+
else {
|
|
1922
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1923
|
+
}
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
return [2 /*return*/, res];
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
});
|
|
1930
|
+
};
|
|
1931
|
+
/**
|
|
1932
|
+
* Remove a contact
|
|
1933
|
+
*/
|
|
1934
|
+
Accounting.prototype.removeAccountingContact = function (req, security, config) {
|
|
1935
|
+
var _a, _b;
|
|
1936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1937
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1938
|
+
return __generator(this, function (_c) {
|
|
1939
|
+
switch (_c.label) {
|
|
1940
|
+
case 0:
|
|
1941
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1942
|
+
req = new operations.RemoveAccountingContactRequest(req);
|
|
1943
|
+
}
|
|
1944
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1945
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
1946
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1947
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
1948
|
+
security = new operations.RemoveAccountingContactSecurity(security);
|
|
1949
|
+
}
|
|
1950
|
+
properties = utils.parseSecurityProperties(security);
|
|
1951
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1952
|
+
headers["Accept"] = "application/json";
|
|
1953
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1954
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
1955
|
+
case 1:
|
|
1956
|
+
httpRes = _c.sent();
|
|
1957
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1958
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1959
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1960
|
+
}
|
|
1961
|
+
res = new operations.RemoveAccountingContactResponse({
|
|
1962
|
+
statusCode: httpRes.status,
|
|
1963
|
+
contentType: responseContentType,
|
|
1964
|
+
rawResponse: httpRes,
|
|
1965
|
+
});
|
|
1966
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1967
|
+
switch (true) {
|
|
1968
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1969
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1970
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1971
|
+
default:
|
|
1972
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1973
|
+
res.res = decodedRes;
|
|
1974
|
+
}
|
|
1975
|
+
else {
|
|
1976
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1977
|
+
}
|
|
1978
|
+
break;
|
|
1979
|
+
}
|
|
1980
|
+
return [2 /*return*/, res];
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
});
|
|
1984
|
+
};
|
|
1985
|
+
/**
|
|
1986
|
+
* Remove a invoice
|
|
1987
|
+
*/
|
|
1988
|
+
Accounting.prototype.removeAccountingInvoice = function (req, security, config) {
|
|
1989
|
+
var _a, _b;
|
|
1990
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1991
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1992
|
+
return __generator(this, function (_c) {
|
|
1993
|
+
switch (_c.label) {
|
|
1994
|
+
case 0:
|
|
1995
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1996
|
+
req = new operations.RemoveAccountingInvoiceRequest(req);
|
|
1997
|
+
}
|
|
1998
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1999
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
2000
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2001
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2002
|
+
security = new operations.RemoveAccountingInvoiceSecurity(security);
|
|
2003
|
+
}
|
|
2004
|
+
properties = utils.parseSecurityProperties(security);
|
|
2005
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2006
|
+
headers["Accept"] = "application/json";
|
|
2007
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2008
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2009
|
+
case 1:
|
|
2010
|
+
httpRes = _c.sent();
|
|
2011
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2012
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2013
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2014
|
+
}
|
|
2015
|
+
res = new operations.RemoveAccountingInvoiceResponse({
|
|
2016
|
+
statusCode: httpRes.status,
|
|
2017
|
+
contentType: responseContentType,
|
|
2018
|
+
rawResponse: httpRes,
|
|
2019
|
+
});
|
|
2020
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2021
|
+
switch (true) {
|
|
2022
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2023
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2024
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2025
|
+
default:
|
|
2026
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2027
|
+
res.res = decodedRes;
|
|
2028
|
+
}
|
|
2029
|
+
else {
|
|
2030
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2031
|
+
}
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
return [2 /*return*/, res];
|
|
2035
|
+
}
|
|
2036
|
+
});
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
/**
|
|
2040
|
+
* Remove a payment
|
|
2041
|
+
*/
|
|
2042
|
+
Accounting.prototype.removeAccountingPayment = function (req, security, config) {
|
|
2043
|
+
var _a, _b;
|
|
2044
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2045
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2046
|
+
return __generator(this, function (_c) {
|
|
2047
|
+
switch (_c.label) {
|
|
2048
|
+
case 0:
|
|
2049
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2050
|
+
req = new operations.RemoveAccountingPaymentRequest(req);
|
|
2051
|
+
}
|
|
2052
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2053
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
2054
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2055
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2056
|
+
security = new operations.RemoveAccountingPaymentSecurity(security);
|
|
2057
|
+
}
|
|
2058
|
+
properties = utils.parseSecurityProperties(security);
|
|
2059
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2060
|
+
headers["Accept"] = "application/json";
|
|
2061
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2062
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2063
|
+
case 1:
|
|
2064
|
+
httpRes = _c.sent();
|
|
2065
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2066
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2067
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2068
|
+
}
|
|
2069
|
+
res = new operations.RemoveAccountingPaymentResponse({
|
|
2070
|
+
statusCode: httpRes.status,
|
|
2071
|
+
contentType: responseContentType,
|
|
2072
|
+
rawResponse: httpRes,
|
|
2073
|
+
});
|
|
2074
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2075
|
+
switch (true) {
|
|
2076
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2077
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2078
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2079
|
+
default:
|
|
2080
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2081
|
+
res.res = decodedRes;
|
|
2082
|
+
}
|
|
2083
|
+
else {
|
|
2084
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2085
|
+
}
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
return [2 /*return*/, res];
|
|
2089
|
+
}
|
|
2090
|
+
});
|
|
2091
|
+
});
|
|
2092
|
+
};
|
|
2093
|
+
/**
|
|
2094
|
+
* Remove a taxrate
|
|
2095
|
+
*/
|
|
2096
|
+
Accounting.prototype.removeAccountingTaxrate = function (req, security, config) {
|
|
2097
|
+
var _a, _b;
|
|
2098
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2099
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2100
|
+
return __generator(this, function (_c) {
|
|
2101
|
+
switch (_c.label) {
|
|
2102
|
+
case 0:
|
|
2103
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2104
|
+
req = new operations.RemoveAccountingTaxrateRequest(req);
|
|
2105
|
+
}
|
|
2106
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2107
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
2108
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2109
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2110
|
+
security = new operations.RemoveAccountingTaxrateSecurity(security);
|
|
2111
|
+
}
|
|
2112
|
+
properties = utils.parseSecurityProperties(security);
|
|
2113
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2114
|
+
headers["Accept"] = "application/json";
|
|
2115
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2116
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2117
|
+
case 1:
|
|
2118
|
+
httpRes = _c.sent();
|
|
2119
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2120
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2121
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2122
|
+
}
|
|
2123
|
+
res = new operations.RemoveAccountingTaxrateResponse({
|
|
2124
|
+
statusCode: httpRes.status,
|
|
2125
|
+
contentType: responseContentType,
|
|
2126
|
+
rawResponse: httpRes,
|
|
2127
|
+
});
|
|
2128
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2129
|
+
switch (true) {
|
|
2130
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2131
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2132
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2133
|
+
default:
|
|
2134
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2135
|
+
res.res = decodedRes;
|
|
2136
|
+
}
|
|
2137
|
+
else {
|
|
2138
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2139
|
+
}
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2142
|
+
return [2 /*return*/, res];
|
|
2143
|
+
}
|
|
2144
|
+
});
|
|
2145
|
+
});
|
|
2146
|
+
};
|
|
2147
|
+
/**
|
|
2148
|
+
* Remove a transaction
|
|
2149
|
+
*/
|
|
2150
|
+
Accounting.prototype.removeAccountingTransaction = function (req, security, config) {
|
|
2151
|
+
var _a, _b;
|
|
2152
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2153
|
+
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2154
|
+
return __generator(this, function (_c) {
|
|
2155
|
+
switch (_c.label) {
|
|
2156
|
+
case 0:
|
|
2157
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2158
|
+
req = new operations.RemoveAccountingTransactionRequest(req);
|
|
2159
|
+
}
|
|
2160
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2161
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
2162
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2163
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2164
|
+
security = new operations.RemoveAccountingTransactionSecurity(security);
|
|
2165
|
+
}
|
|
2166
|
+
properties = utils.parseSecurityProperties(security);
|
|
2167
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2168
|
+
headers["Accept"] = "application/json";
|
|
2169
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2170
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
2171
|
+
case 1:
|
|
2172
|
+
httpRes = _c.sent();
|
|
2173
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2174
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2175
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2176
|
+
}
|
|
2177
|
+
res = new operations.RemoveAccountingTransactionResponse({
|
|
2178
|
+
statusCode: httpRes.status,
|
|
2179
|
+
contentType: responseContentType,
|
|
2180
|
+
rawResponse: httpRes,
|
|
2181
|
+
});
|
|
2182
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2183
|
+
switch (true) {
|
|
2184
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2185
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2186
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2187
|
+
default:
|
|
2188
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2189
|
+
res.res = decodedRes;
|
|
2190
|
+
}
|
|
2191
|
+
else {
|
|
2192
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2193
|
+
}
|
|
2194
|
+
break;
|
|
2195
|
+
}
|
|
2196
|
+
return [2 /*return*/, res];
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
});
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* Update an account
|
|
2203
|
+
*/
|
|
2204
|
+
Accounting.prototype.updateAccountingAccount = function (req, security, config) {
|
|
2205
|
+
var _a, _b;
|
|
2206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2207
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2208
|
+
var _d;
|
|
2209
|
+
return __generator(this, function (_e) {
|
|
2210
|
+
switch (_e.label) {
|
|
2211
|
+
case 0:
|
|
2212
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2213
|
+
req = new operations.UpdateAccountingAccountRequest(req);
|
|
2214
|
+
}
|
|
2215
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2216
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/account/{id}", req);
|
|
2217
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2218
|
+
try {
|
|
2219
|
+
_d = __read(utils.serializeRequestBody(req, "accountingAccount", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2220
|
+
}
|
|
2221
|
+
catch (e) {
|
|
2222
|
+
if (e instanceof Error) {
|
|
2223
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2227
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2228
|
+
security = new operations.UpdateAccountingAccountSecurity(security);
|
|
2229
|
+
}
|
|
2230
|
+
properties = utils.parseSecurityProperties(security);
|
|
2231
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2232
|
+
headers["Accept"] = "application/json";
|
|
2233
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2234
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2235
|
+
case 1:
|
|
2236
|
+
httpRes = _e.sent();
|
|
2237
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2238
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2239
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2240
|
+
}
|
|
2241
|
+
res = new operations.UpdateAccountingAccountResponse({
|
|
2242
|
+
statusCode: httpRes.status,
|
|
2243
|
+
contentType: responseContentType,
|
|
2244
|
+
rawResponse: httpRes,
|
|
2245
|
+
});
|
|
2246
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2247
|
+
switch (true) {
|
|
2248
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2249
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2250
|
+
res.accountingAccount = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAccount);
|
|
2251
|
+
}
|
|
2252
|
+
else {
|
|
2253
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2254
|
+
}
|
|
2255
|
+
break;
|
|
2256
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2257
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2258
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2259
|
+
}
|
|
2260
|
+
return [2 /*return*/, res];
|
|
2261
|
+
}
|
|
2262
|
+
});
|
|
2263
|
+
});
|
|
2264
|
+
};
|
|
2265
|
+
/**
|
|
2266
|
+
* Update a contact
|
|
2267
|
+
*/
|
|
2268
|
+
Accounting.prototype.updateAccountingContact = function (req, security, config) {
|
|
2269
|
+
var _a, _b;
|
|
2270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2271
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2272
|
+
var _d;
|
|
2273
|
+
return __generator(this, function (_e) {
|
|
2274
|
+
switch (_e.label) {
|
|
2275
|
+
case 0:
|
|
2276
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2277
|
+
req = new operations.UpdateAccountingContactRequest(req);
|
|
2278
|
+
}
|
|
2279
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2280
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/contact/{id}", req);
|
|
2281
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2282
|
+
try {
|
|
2283
|
+
_d = __read(utils.serializeRequestBody(req, "accountingContact", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2284
|
+
}
|
|
2285
|
+
catch (e) {
|
|
2286
|
+
if (e instanceof Error) {
|
|
2287
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2291
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2292
|
+
security = new operations.UpdateAccountingContactSecurity(security);
|
|
2293
|
+
}
|
|
2294
|
+
properties = utils.parseSecurityProperties(security);
|
|
2295
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2296
|
+
headers["Accept"] = "application/json";
|
|
2297
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2298
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2299
|
+
case 1:
|
|
2300
|
+
httpRes = _e.sent();
|
|
2301
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2302
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2303
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2304
|
+
}
|
|
2305
|
+
res = new operations.UpdateAccountingContactResponse({
|
|
2306
|
+
statusCode: httpRes.status,
|
|
2307
|
+
contentType: responseContentType,
|
|
2308
|
+
rawResponse: httpRes,
|
|
2309
|
+
});
|
|
2310
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2311
|
+
switch (true) {
|
|
2312
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2313
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2314
|
+
res.accountingContact = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingContact);
|
|
2315
|
+
}
|
|
2316
|
+
else {
|
|
2317
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2318
|
+
}
|
|
2319
|
+
break;
|
|
2320
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2321
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2322
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2323
|
+
}
|
|
2324
|
+
return [2 /*return*/, res];
|
|
2325
|
+
}
|
|
2326
|
+
});
|
|
2327
|
+
});
|
|
2328
|
+
};
|
|
2329
|
+
/**
|
|
2330
|
+
* Update a invoice
|
|
2331
|
+
*/
|
|
2332
|
+
Accounting.prototype.updateAccountingInvoice = function (req, security, config) {
|
|
2333
|
+
var _a, _b;
|
|
2334
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2335
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2336
|
+
var _d;
|
|
2337
|
+
return __generator(this, function (_e) {
|
|
2338
|
+
switch (_e.label) {
|
|
2339
|
+
case 0:
|
|
2340
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2341
|
+
req = new operations.UpdateAccountingInvoiceRequest(req);
|
|
2342
|
+
}
|
|
2343
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2344
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/invoice/{id}", req);
|
|
2345
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2346
|
+
try {
|
|
2347
|
+
_d = __read(utils.serializeRequestBody(req, "accountingInvoice", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2348
|
+
}
|
|
2349
|
+
catch (e) {
|
|
2350
|
+
if (e instanceof Error) {
|
|
2351
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2355
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2356
|
+
security = new operations.UpdateAccountingInvoiceSecurity(security);
|
|
2357
|
+
}
|
|
2358
|
+
properties = utils.parseSecurityProperties(security);
|
|
2359
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2360
|
+
headers["Accept"] = "application/json";
|
|
2361
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2362
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2363
|
+
case 1:
|
|
2364
|
+
httpRes = _e.sent();
|
|
2365
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2366
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2367
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2368
|
+
}
|
|
2369
|
+
res = new operations.UpdateAccountingInvoiceResponse({
|
|
2370
|
+
statusCode: httpRes.status,
|
|
2371
|
+
contentType: responseContentType,
|
|
2372
|
+
rawResponse: httpRes,
|
|
2373
|
+
});
|
|
2374
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2375
|
+
switch (true) {
|
|
2376
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2377
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2378
|
+
res.accountingInvoice = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingInvoice);
|
|
2379
|
+
}
|
|
2380
|
+
else {
|
|
2381
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2382
|
+
}
|
|
2383
|
+
break;
|
|
2384
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2385
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2386
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2387
|
+
}
|
|
2388
|
+
return [2 /*return*/, res];
|
|
2389
|
+
}
|
|
2390
|
+
});
|
|
2391
|
+
});
|
|
2392
|
+
};
|
|
2393
|
+
/**
|
|
2394
|
+
* Update a payment
|
|
2395
|
+
*/
|
|
2396
|
+
Accounting.prototype.updateAccountingPayment = function (req, security, config) {
|
|
2397
|
+
var _a, _b;
|
|
2398
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2399
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2400
|
+
var _d;
|
|
2401
|
+
return __generator(this, function (_e) {
|
|
2402
|
+
switch (_e.label) {
|
|
2403
|
+
case 0:
|
|
2404
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2405
|
+
req = new operations.UpdateAccountingPaymentRequest(req);
|
|
2406
|
+
}
|
|
2407
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2408
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/payment/{id}", req);
|
|
2409
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2410
|
+
try {
|
|
2411
|
+
_d = __read(utils.serializeRequestBody(req, "accountingPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2412
|
+
}
|
|
2413
|
+
catch (e) {
|
|
2414
|
+
if (e instanceof Error) {
|
|
2415
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2419
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2420
|
+
security = new operations.UpdateAccountingPaymentSecurity(security);
|
|
2421
|
+
}
|
|
2422
|
+
properties = utils.parseSecurityProperties(security);
|
|
2423
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2424
|
+
headers["Accept"] = "application/json";
|
|
2425
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2426
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2427
|
+
case 1:
|
|
2428
|
+
httpRes = _e.sent();
|
|
2429
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2430
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2431
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2432
|
+
}
|
|
2433
|
+
res = new operations.UpdateAccountingPaymentResponse({
|
|
2434
|
+
statusCode: httpRes.status,
|
|
2435
|
+
contentType: responseContentType,
|
|
2436
|
+
rawResponse: httpRes,
|
|
2437
|
+
});
|
|
2438
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2439
|
+
switch (true) {
|
|
2440
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2441
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2442
|
+
res.accountingPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingPayment);
|
|
2443
|
+
}
|
|
2444
|
+
else {
|
|
2445
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2446
|
+
}
|
|
2447
|
+
break;
|
|
2448
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2449
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2450
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2451
|
+
}
|
|
2452
|
+
return [2 /*return*/, res];
|
|
2453
|
+
}
|
|
2454
|
+
});
|
|
2455
|
+
});
|
|
2456
|
+
};
|
|
2457
|
+
/**
|
|
2458
|
+
* Update a taxrate
|
|
2459
|
+
*/
|
|
2460
|
+
Accounting.prototype.updateAccountingTaxrate = function (req, security, config) {
|
|
2461
|
+
var _a, _b;
|
|
2462
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2463
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2464
|
+
var _d;
|
|
2465
|
+
return __generator(this, function (_e) {
|
|
2466
|
+
switch (_e.label) {
|
|
2467
|
+
case 0:
|
|
2468
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2469
|
+
req = new operations.UpdateAccountingTaxrateRequest(req);
|
|
2470
|
+
}
|
|
2471
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2472
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/taxrate/{id}", req);
|
|
2473
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2474
|
+
try {
|
|
2475
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTaxrate", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2476
|
+
}
|
|
2477
|
+
catch (e) {
|
|
2478
|
+
if (e instanceof Error) {
|
|
2479
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2483
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2484
|
+
security = new operations.UpdateAccountingTaxrateSecurity(security);
|
|
2485
|
+
}
|
|
2486
|
+
properties = utils.parseSecurityProperties(security);
|
|
2487
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2488
|
+
headers["Accept"] = "application/json";
|
|
2489
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2490
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2491
|
+
case 1:
|
|
2492
|
+
httpRes = _e.sent();
|
|
2493
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2494
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2495
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2496
|
+
}
|
|
2497
|
+
res = new operations.UpdateAccountingTaxrateResponse({
|
|
2498
|
+
statusCode: httpRes.status,
|
|
2499
|
+
contentType: responseContentType,
|
|
2500
|
+
rawResponse: httpRes,
|
|
2501
|
+
});
|
|
2502
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2503
|
+
switch (true) {
|
|
2504
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2505
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2506
|
+
res.accountingTaxrate = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTaxrate);
|
|
2507
|
+
}
|
|
2508
|
+
else {
|
|
2509
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2510
|
+
}
|
|
2511
|
+
break;
|
|
2512
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2513
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2514
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2515
|
+
}
|
|
2516
|
+
return [2 /*return*/, res];
|
|
2517
|
+
}
|
|
2518
|
+
});
|
|
2519
|
+
});
|
|
2520
|
+
};
|
|
2521
|
+
/**
|
|
2522
|
+
* Update a transaction
|
|
2523
|
+
*/
|
|
2524
|
+
Accounting.prototype.updateAccountingTransaction = function (req, security, config) {
|
|
2525
|
+
var _a, _b;
|
|
2526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2527
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
2528
|
+
var _d;
|
|
2529
|
+
return __generator(this, function (_e) {
|
|
2530
|
+
switch (_e.label) {
|
|
2531
|
+
case 0:
|
|
2532
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
2533
|
+
req = new operations.UpdateAccountingTransactionRequest(req);
|
|
2534
|
+
}
|
|
2535
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
2536
|
+
operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
|
|
2537
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
2538
|
+
try {
|
|
2539
|
+
_d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
2540
|
+
}
|
|
2541
|
+
catch (e) {
|
|
2542
|
+
if (e instanceof Error) {
|
|
2543
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
client = this.sdkConfiguration.defaultClient;
|
|
2547
|
+
if (!(security instanceof utils.SpeakeasyBase)) {
|
|
2548
|
+
security = new operations.UpdateAccountingTransactionSecurity(security);
|
|
2549
|
+
}
|
|
2550
|
+
properties = utils.parseSecurityProperties(security);
|
|
2551
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
2552
|
+
headers["Accept"] = "application/json";
|
|
2553
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
2554
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
2555
|
+
case 1:
|
|
2556
|
+
httpRes = _e.sent();
|
|
2557
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
2558
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
2559
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
2560
|
+
}
|
|
2561
|
+
res = new operations.UpdateAccountingTransactionResponse({
|
|
2562
|
+
statusCode: httpRes.status,
|
|
2563
|
+
contentType: responseContentType,
|
|
2564
|
+
rawResponse: httpRes,
|
|
2565
|
+
});
|
|
2566
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
2567
|
+
switch (true) {
|
|
2568
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
2569
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
2570
|
+
res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
|
|
2571
|
+
}
|
|
2572
|
+
else {
|
|
2573
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
2574
|
+
}
|
|
2575
|
+
break;
|
|
2576
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
2577
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
2578
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
2579
|
+
}
|
|
2580
|
+
return [2 /*return*/, res];
|
|
2581
|
+
}
|
|
2582
|
+
});
|
|
2583
|
+
});
|
|
2584
|
+
};
|
|
2585
|
+
return Accounting;
|
|
2586
|
+
}());
|
|
2587
|
+
exports.Accounting = Accounting;
|