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