@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,2778 @@
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.Ats = 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 Ats = /** @class */ (function () {
98
+ function Ats(sdkConfig) {
99
+ this.sdkConfiguration = sdkConfig;
100
+ }
101
+ /**
102
+ * Create an activity
103
+ */
104
+ Ats.prototype.createAtsActivity = 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.CreateAtsActivityRequest(req);
114
+ }
115
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
116
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity", req);
117
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
118
+ try {
119
+ _d = __read(utils.serializeRequestBody(req, "atsActivity", "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.CreateAtsActivitySecurity(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.CreateAtsActivityResponse({
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.atsActivity = utils.objectToClass(JSON.parse(decodedRes), shared.AtsActivity);
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 an application
167
+ */
168
+ Ats.prototype.createAtsApplication = 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.CreateAtsApplicationRequest(req);
178
+ }
179
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
180
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application", req);
181
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
182
+ try {
183
+ _d = __read(utils.serializeRequestBody(req, "atsApplication", "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.CreateAtsApplicationSecurity(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.CreateAtsApplicationResponse({
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.atsApplication = utils.objectToClass(JSON.parse(decodedRes), shared.AtsApplication);
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 candidate
231
+ */
232
+ Ats.prototype.createAtsCandidate = 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.CreateAtsCandidateRequest(req);
242
+ }
243
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
244
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate", req);
245
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
246
+ try {
247
+ _d = __read(utils.serializeRequestBody(req, "atsCandidate", "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.CreateAtsCandidateSecurity(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.CreateAtsCandidateResponse({
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.atsCandidate = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCandidate);
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 document
295
+ */
296
+ Ats.prototype.createAtsDocument = 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.CreateAtsDocumentRequest(req);
306
+ }
307
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
308
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document", req);
309
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
310
+ try {
311
+ _d = __read(utils.serializeRequestBody(req, "atsDocument", "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.CreateAtsDocumentSecurity(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.CreateAtsDocumentResponse({
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.atsDocument = utils.objectToClass(JSON.parse(decodedRes), shared.AtsDocument);
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 interview
359
+ */
360
+ Ats.prototype.createAtsInterview = 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.CreateAtsInterviewRequest(req);
370
+ }
371
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
372
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview", req);
373
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
374
+ try {
375
+ _d = __read(utils.serializeRequestBody(req, "atsInterview", "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.CreateAtsInterviewSecurity(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.CreateAtsInterviewResponse({
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.atsInterview = utils.objectToClass(JSON.parse(decodedRes), shared.AtsInterview);
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 job
423
+ */
424
+ Ats.prototype.createAtsJob = 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.CreateAtsJobRequest(req);
434
+ }
435
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
436
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job", req);
437
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
438
+ try {
439
+ _d = __read(utils.serializeRequestBody(req, "atsJob", "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.CreateAtsJobSecurity(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.CreateAtsJobResponse({
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.atsJob = utils.objectToClass(JSON.parse(decodedRes), shared.AtsJob);
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
+ * Create a scorecard
487
+ */
488
+ Ats.prototype.createAtsScorecard = function (req, security, config) {
489
+ var _a, _b;
490
+ return __awaiter(this, void 0, void 0, function () {
491
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
492
+ var _d;
493
+ return __generator(this, function (_e) {
494
+ switch (_e.label) {
495
+ case 0:
496
+ if (!(req instanceof utils.SpeakeasyBase)) {
497
+ req = new operations.CreateAtsScorecardRequest(req);
498
+ }
499
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
500
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard", req);
501
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
502
+ try {
503
+ _d = __read(utils.serializeRequestBody(req, "atsScorecard", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
504
+ }
505
+ catch (e) {
506
+ if (e instanceof Error) {
507
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
508
+ }
509
+ }
510
+ client = this.sdkConfiguration.defaultClient;
511
+ if (!(security instanceof utils.SpeakeasyBase)) {
512
+ security = new operations.CreateAtsScorecardSecurity(security);
513
+ }
514
+ properties = utils.parseSecurityProperties(security);
515
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
516
+ headers["Accept"] = "application/json";
517
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
518
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
519
+ case 1:
520
+ httpRes = _e.sent();
521
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
522
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
523
+ throw new Error("status code not found in response: ".concat(httpRes));
524
+ }
525
+ res = new operations.CreateAtsScorecardResponse({
526
+ statusCode: httpRes.status,
527
+ contentType: responseContentType,
528
+ rawResponse: httpRes,
529
+ });
530
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
531
+ switch (true) {
532
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
533
+ if (utils.matchContentType(responseContentType, "application/json")) {
534
+ res.atsScorecard = utils.objectToClass(JSON.parse(decodedRes), shared.AtsScorecard);
535
+ }
536
+ else {
537
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
538
+ }
539
+ break;
540
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
541
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
542
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
543
+ }
544
+ return [2 /*return*/, res];
545
+ }
546
+ });
547
+ });
548
+ };
549
+ /**
550
+ * Retrieve an activity
551
+ */
552
+ Ats.prototype.getAtsActivity = function (req, security, config) {
553
+ var _a, _b;
554
+ return __awaiter(this, void 0, void 0, function () {
555
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
556
+ return __generator(this, function (_c) {
557
+ switch (_c.label) {
558
+ case 0:
559
+ if (!(req instanceof utils.SpeakeasyBase)) {
560
+ req = new operations.GetAtsActivityRequest(req);
561
+ }
562
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
563
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
564
+ client = this.sdkConfiguration.defaultClient;
565
+ if (!(security instanceof utils.SpeakeasyBase)) {
566
+ security = new operations.GetAtsActivitySecurity(security);
567
+ }
568
+ properties = utils.parseSecurityProperties(security);
569
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
570
+ queryParams = utils.serializeQueryParams(req);
571
+ headers["Accept"] = "application/json";
572
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
573
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
574
+ case 1:
575
+ httpRes = _c.sent();
576
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
577
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
578
+ throw new Error("status code not found in response: ".concat(httpRes));
579
+ }
580
+ res = new operations.GetAtsActivityResponse({
581
+ statusCode: httpRes.status,
582
+ contentType: responseContentType,
583
+ rawResponse: httpRes,
584
+ });
585
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
586
+ switch (true) {
587
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
588
+ if (utils.matchContentType(responseContentType, "application/json")) {
589
+ res.atsActivity = utils.objectToClass(JSON.parse(decodedRes), shared.AtsActivity);
590
+ }
591
+ else {
592
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
593
+ }
594
+ break;
595
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
596
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
597
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
598
+ }
599
+ return [2 /*return*/, res];
600
+ }
601
+ });
602
+ });
603
+ };
604
+ /**
605
+ * Retrieve an application
606
+ */
607
+ Ats.prototype.getAtsApplication = function (req, security, config) {
608
+ var _a, _b;
609
+ return __awaiter(this, void 0, void 0, function () {
610
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
611
+ return __generator(this, function (_c) {
612
+ switch (_c.label) {
613
+ case 0:
614
+ if (!(req instanceof utils.SpeakeasyBase)) {
615
+ req = new operations.GetAtsApplicationRequest(req);
616
+ }
617
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
618
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
619
+ client = this.sdkConfiguration.defaultClient;
620
+ if (!(security instanceof utils.SpeakeasyBase)) {
621
+ security = new operations.GetAtsApplicationSecurity(security);
622
+ }
623
+ properties = utils.parseSecurityProperties(security);
624
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
625
+ queryParams = utils.serializeQueryParams(req);
626
+ headers["Accept"] = "application/json";
627
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
628
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
629
+ case 1:
630
+ httpRes = _c.sent();
631
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
632
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
633
+ throw new Error("status code not found in response: ".concat(httpRes));
634
+ }
635
+ res = new operations.GetAtsApplicationResponse({
636
+ statusCode: httpRes.status,
637
+ contentType: responseContentType,
638
+ rawResponse: httpRes,
639
+ });
640
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
641
+ switch (true) {
642
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
643
+ if (utils.matchContentType(responseContentType, "application/json")) {
644
+ res.atsApplication = utils.objectToClass(JSON.parse(decodedRes), shared.AtsApplication);
645
+ }
646
+ else {
647
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
648
+ }
649
+ break;
650
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
651
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
652
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
653
+ }
654
+ return [2 /*return*/, res];
655
+ }
656
+ });
657
+ });
658
+ };
659
+ /**
660
+ * Retrieve a candidate
661
+ */
662
+ Ats.prototype.getAtsCandidate = function (req, security, config) {
663
+ var _a, _b;
664
+ return __awaiter(this, void 0, void 0, function () {
665
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
666
+ return __generator(this, function (_c) {
667
+ switch (_c.label) {
668
+ case 0:
669
+ if (!(req instanceof utils.SpeakeasyBase)) {
670
+ req = new operations.GetAtsCandidateRequest(req);
671
+ }
672
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
673
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
674
+ client = this.sdkConfiguration.defaultClient;
675
+ if (!(security instanceof utils.SpeakeasyBase)) {
676
+ security = new operations.GetAtsCandidateSecurity(security);
677
+ }
678
+ properties = utils.parseSecurityProperties(security);
679
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
680
+ queryParams = utils.serializeQueryParams(req);
681
+ headers["Accept"] = "application/json";
682
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
683
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
684
+ case 1:
685
+ httpRes = _c.sent();
686
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
687
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
688
+ throw new Error("status code not found in response: ".concat(httpRes));
689
+ }
690
+ res = new operations.GetAtsCandidateResponse({
691
+ statusCode: httpRes.status,
692
+ contentType: responseContentType,
693
+ rawResponse: httpRes,
694
+ });
695
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
696
+ switch (true) {
697
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
698
+ if (utils.matchContentType(responseContentType, "application/json")) {
699
+ res.atsCandidate = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCandidate);
700
+ }
701
+ else {
702
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
703
+ }
704
+ break;
705
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
706
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
707
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
708
+ }
709
+ return [2 /*return*/, res];
710
+ }
711
+ });
712
+ });
713
+ };
714
+ /**
715
+ * Retrieve a company
716
+ */
717
+ Ats.prototype.getAtsCompany = function (req, security, config) {
718
+ var _a, _b;
719
+ return __awaiter(this, void 0, void 0, function () {
720
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
721
+ return __generator(this, function (_c) {
722
+ switch (_c.label) {
723
+ case 0:
724
+ if (!(req instanceof utils.SpeakeasyBase)) {
725
+ req = new operations.GetAtsCompanyRequest(req);
726
+ }
727
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
728
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company/{id}", req);
729
+ client = this.sdkConfiguration.defaultClient;
730
+ if (!(security instanceof utils.SpeakeasyBase)) {
731
+ security = new operations.GetAtsCompanySecurity(security);
732
+ }
733
+ properties = utils.parseSecurityProperties(security);
734
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
735
+ queryParams = utils.serializeQueryParams(req);
736
+ headers["Accept"] = "application/json";
737
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
738
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
739
+ case 1:
740
+ httpRes = _c.sent();
741
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
742
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
743
+ throw new Error("status code not found in response: ".concat(httpRes));
744
+ }
745
+ res = new operations.GetAtsCompanyResponse({
746
+ statusCode: httpRes.status,
747
+ contentType: responseContentType,
748
+ rawResponse: httpRes,
749
+ });
750
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
751
+ switch (true) {
752
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
753
+ if (utils.matchContentType(responseContentType, "application/json")) {
754
+ res.atsCompany = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCompany);
755
+ }
756
+ else {
757
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
758
+ }
759
+ break;
760
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
761
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
762
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
763
+ }
764
+ return [2 /*return*/, res];
765
+ }
766
+ });
767
+ });
768
+ };
769
+ /**
770
+ * Retrieve a document
771
+ */
772
+ Ats.prototype.getAtsDocument = function (req, security, config) {
773
+ var _a, _b;
774
+ return __awaiter(this, void 0, void 0, function () {
775
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
776
+ return __generator(this, function (_c) {
777
+ switch (_c.label) {
778
+ case 0:
779
+ if (!(req instanceof utils.SpeakeasyBase)) {
780
+ req = new operations.GetAtsDocumentRequest(req);
781
+ }
782
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
783
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
784
+ client = this.sdkConfiguration.defaultClient;
785
+ if (!(security instanceof utils.SpeakeasyBase)) {
786
+ security = new operations.GetAtsDocumentSecurity(security);
787
+ }
788
+ properties = utils.parseSecurityProperties(security);
789
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
790
+ queryParams = utils.serializeQueryParams(req);
791
+ headers["Accept"] = "application/json";
792
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
793
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
794
+ case 1:
795
+ httpRes = _c.sent();
796
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
797
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
798
+ throw new Error("status code not found in response: ".concat(httpRes));
799
+ }
800
+ res = new operations.GetAtsDocumentResponse({
801
+ statusCode: httpRes.status,
802
+ contentType: responseContentType,
803
+ rawResponse: httpRes,
804
+ });
805
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
806
+ switch (true) {
807
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
808
+ if (utils.matchContentType(responseContentType, "application/json")) {
809
+ res.atsDocument = utils.objectToClass(JSON.parse(decodedRes), shared.AtsDocument);
810
+ }
811
+ else {
812
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
813
+ }
814
+ break;
815
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
816
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
817
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
818
+ }
819
+ return [2 /*return*/, res];
820
+ }
821
+ });
822
+ });
823
+ };
824
+ /**
825
+ * Retrieve a interview
826
+ */
827
+ Ats.prototype.getAtsInterview = function (req, security, config) {
828
+ var _a, _b;
829
+ return __awaiter(this, void 0, void 0, function () {
830
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
831
+ return __generator(this, function (_c) {
832
+ switch (_c.label) {
833
+ case 0:
834
+ if (!(req instanceof utils.SpeakeasyBase)) {
835
+ req = new operations.GetAtsInterviewRequest(req);
836
+ }
837
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
838
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
839
+ client = this.sdkConfiguration.defaultClient;
840
+ if (!(security instanceof utils.SpeakeasyBase)) {
841
+ security = new operations.GetAtsInterviewSecurity(security);
842
+ }
843
+ properties = utils.parseSecurityProperties(security);
844
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
845
+ queryParams = utils.serializeQueryParams(req);
846
+ headers["Accept"] = "application/json";
847
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
848
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
849
+ case 1:
850
+ httpRes = _c.sent();
851
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
852
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
853
+ throw new Error("status code not found in response: ".concat(httpRes));
854
+ }
855
+ res = new operations.GetAtsInterviewResponse({
856
+ statusCode: httpRes.status,
857
+ contentType: responseContentType,
858
+ rawResponse: httpRes,
859
+ });
860
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
861
+ switch (true) {
862
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
863
+ if (utils.matchContentType(responseContentType, "application/json")) {
864
+ res.atsInterview = utils.objectToClass(JSON.parse(decodedRes), shared.AtsInterview);
865
+ }
866
+ else {
867
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
868
+ }
869
+ break;
870
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
871
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
872
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
873
+ }
874
+ return [2 /*return*/, res];
875
+ }
876
+ });
877
+ });
878
+ };
879
+ /**
880
+ * Retrieve a job
881
+ */
882
+ Ats.prototype.getAtsJob = function (req, security, config) {
883
+ var _a, _b;
884
+ return __awaiter(this, void 0, void 0, function () {
885
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
886
+ return __generator(this, function (_c) {
887
+ switch (_c.label) {
888
+ case 0:
889
+ if (!(req instanceof utils.SpeakeasyBase)) {
890
+ req = new operations.GetAtsJobRequest(req);
891
+ }
892
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
893
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
894
+ client = this.sdkConfiguration.defaultClient;
895
+ if (!(security instanceof utils.SpeakeasyBase)) {
896
+ security = new operations.GetAtsJobSecurity(security);
897
+ }
898
+ properties = utils.parseSecurityProperties(security);
899
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
900
+ queryParams = utils.serializeQueryParams(req);
901
+ headers["Accept"] = "application/json";
902
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
903
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
904
+ case 1:
905
+ httpRes = _c.sent();
906
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
907
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
908
+ throw new Error("status code not found in response: ".concat(httpRes));
909
+ }
910
+ res = new operations.GetAtsJobResponse({
911
+ statusCode: httpRes.status,
912
+ contentType: responseContentType,
913
+ rawResponse: httpRes,
914
+ });
915
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
916
+ switch (true) {
917
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
918
+ if (utils.matchContentType(responseContentType, "application/json")) {
919
+ res.atsJob = utils.objectToClass(JSON.parse(decodedRes), shared.AtsJob);
920
+ }
921
+ else {
922
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
923
+ }
924
+ break;
925
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
926
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
927
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
928
+ }
929
+ return [2 /*return*/, res];
930
+ }
931
+ });
932
+ });
933
+ };
934
+ /**
935
+ * Retrieve a scorecard
936
+ */
937
+ Ats.prototype.getAtsScorecard = function (req, security, config) {
938
+ var _a, _b;
939
+ return __awaiter(this, void 0, void 0, function () {
940
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
941
+ return __generator(this, function (_c) {
942
+ switch (_c.label) {
943
+ case 0:
944
+ if (!(req instanceof utils.SpeakeasyBase)) {
945
+ req = new operations.GetAtsScorecardRequest(req);
946
+ }
947
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
948
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
949
+ client = this.sdkConfiguration.defaultClient;
950
+ if (!(security instanceof utils.SpeakeasyBase)) {
951
+ security = new operations.GetAtsScorecardSecurity(security);
952
+ }
953
+ properties = utils.parseSecurityProperties(security);
954
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
955
+ queryParams = utils.serializeQueryParams(req);
956
+ headers["Accept"] = "application/json";
957
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
958
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
959
+ case 1:
960
+ httpRes = _c.sent();
961
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
962
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
963
+ throw new Error("status code not found in response: ".concat(httpRes));
964
+ }
965
+ res = new operations.GetAtsScorecardResponse({
966
+ statusCode: httpRes.status,
967
+ contentType: responseContentType,
968
+ rawResponse: httpRes,
969
+ });
970
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
971
+ switch (true) {
972
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
973
+ if (utils.matchContentType(responseContentType, "application/json")) {
974
+ res.atsScorecard = utils.objectToClass(JSON.parse(decodedRes), shared.AtsScorecard);
975
+ }
976
+ else {
977
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
978
+ }
979
+ break;
980
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
981
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
982
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
983
+ }
984
+ return [2 /*return*/, res];
985
+ }
986
+ });
987
+ });
988
+ };
989
+ /**
990
+ * List all activities
991
+ */
992
+ Ats.prototype.listAtsActivities = function (req, security, config) {
993
+ var _a, _b;
994
+ return __awaiter(this, void 0, void 0, function () {
995
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
996
+ return __generator(this, function (_c) {
997
+ switch (_c.label) {
998
+ case 0:
999
+ if (!(req instanceof utils.SpeakeasyBase)) {
1000
+ req = new operations.ListAtsActivitiesRequest(req);
1001
+ }
1002
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1003
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity", req);
1004
+ client = this.sdkConfiguration.defaultClient;
1005
+ if (!(security instanceof utils.SpeakeasyBase)) {
1006
+ security = new operations.ListAtsActivitiesSecurity(security);
1007
+ }
1008
+ properties = utils.parseSecurityProperties(security);
1009
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1010
+ queryParams = utils.serializeQueryParams(req);
1011
+ headers["Accept"] = "application/json";
1012
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1013
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1014
+ case 1:
1015
+ httpRes = _c.sent();
1016
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1017
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1018
+ throw new Error("status code not found in response: ".concat(httpRes));
1019
+ }
1020
+ res = new operations.ListAtsActivitiesResponse({
1021
+ statusCode: httpRes.status,
1022
+ contentType: responseContentType,
1023
+ rawResponse: httpRes,
1024
+ });
1025
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1026
+ switch (true) {
1027
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1028
+ if (utils.matchContentType(responseContentType, "application/json")) {
1029
+ res.atsActivities = [];
1030
+ resFieldDepth = utils.getResFieldDepth(res);
1031
+ res.atsActivities = utils.objectToClass(JSON.parse(decodedRes), shared.AtsActivity, resFieldDepth);
1032
+ }
1033
+ else {
1034
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1035
+ }
1036
+ break;
1037
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1038
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1039
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1040
+ }
1041
+ return [2 /*return*/, res];
1042
+ }
1043
+ });
1044
+ });
1045
+ };
1046
+ /**
1047
+ * List all applications
1048
+ */
1049
+ Ats.prototype.listAtsApplications = function (req, security, config) {
1050
+ var _a, _b;
1051
+ return __awaiter(this, void 0, void 0, function () {
1052
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1053
+ return __generator(this, function (_c) {
1054
+ switch (_c.label) {
1055
+ case 0:
1056
+ if (!(req instanceof utils.SpeakeasyBase)) {
1057
+ req = new operations.ListAtsApplicationsRequest(req);
1058
+ }
1059
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1060
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application", req);
1061
+ client = this.sdkConfiguration.defaultClient;
1062
+ if (!(security instanceof utils.SpeakeasyBase)) {
1063
+ security = new operations.ListAtsApplicationsSecurity(security);
1064
+ }
1065
+ properties = utils.parseSecurityProperties(security);
1066
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1067
+ queryParams = utils.serializeQueryParams(req);
1068
+ headers["Accept"] = "application/json";
1069
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1070
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1071
+ case 1:
1072
+ httpRes = _c.sent();
1073
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1074
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1075
+ throw new Error("status code not found in response: ".concat(httpRes));
1076
+ }
1077
+ res = new operations.ListAtsApplicationsResponse({
1078
+ statusCode: httpRes.status,
1079
+ contentType: responseContentType,
1080
+ rawResponse: httpRes,
1081
+ });
1082
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1083
+ switch (true) {
1084
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1085
+ if (utils.matchContentType(responseContentType, "application/json")) {
1086
+ res.atsApplications = [];
1087
+ resFieldDepth = utils.getResFieldDepth(res);
1088
+ res.atsApplications = utils.objectToClass(JSON.parse(decodedRes), shared.AtsApplication, resFieldDepth);
1089
+ }
1090
+ else {
1091
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1092
+ }
1093
+ break;
1094
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1095
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1096
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1097
+ }
1098
+ return [2 /*return*/, res];
1099
+ }
1100
+ });
1101
+ });
1102
+ };
1103
+ /**
1104
+ * List all application statuses
1105
+ */
1106
+ Ats.prototype.listAtsApplicationstatuses = function (req, security, config) {
1107
+ var _a, _b;
1108
+ return __awaiter(this, void 0, void 0, function () {
1109
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1110
+ return __generator(this, function (_c) {
1111
+ switch (_c.label) {
1112
+ case 0:
1113
+ if (!(req instanceof utils.SpeakeasyBase)) {
1114
+ req = new operations.ListAtsApplicationstatusesRequest(req);
1115
+ }
1116
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1117
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/applicationstatus", req);
1118
+ client = this.sdkConfiguration.defaultClient;
1119
+ if (!(security instanceof utils.SpeakeasyBase)) {
1120
+ security = new operations.ListAtsApplicationstatusesSecurity(security);
1121
+ }
1122
+ properties = utils.parseSecurityProperties(security);
1123
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1124
+ queryParams = utils.serializeQueryParams(req);
1125
+ headers["Accept"] = "application/json";
1126
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1127
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1128
+ case 1:
1129
+ httpRes = _c.sent();
1130
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1131
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1132
+ throw new Error("status code not found in response: ".concat(httpRes));
1133
+ }
1134
+ res = new operations.ListAtsApplicationstatusesResponse({
1135
+ statusCode: httpRes.status,
1136
+ contentType: responseContentType,
1137
+ rawResponse: httpRes,
1138
+ });
1139
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1140
+ switch (true) {
1141
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1142
+ if (utils.matchContentType(responseContentType, "application/json")) {
1143
+ res.atsStatuses = [];
1144
+ resFieldDepth = utils.getResFieldDepth(res);
1145
+ res.atsStatuses = utils.objectToClass(JSON.parse(decodedRes), shared.AtsStatus, resFieldDepth);
1146
+ }
1147
+ else {
1148
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1149
+ }
1150
+ break;
1151
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1152
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1153
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1154
+ }
1155
+ return [2 /*return*/, res];
1156
+ }
1157
+ });
1158
+ });
1159
+ };
1160
+ /**
1161
+ * List all candidates
1162
+ */
1163
+ Ats.prototype.listAtsCandidates = function (req, security, config) {
1164
+ var _a, _b;
1165
+ return __awaiter(this, void 0, void 0, function () {
1166
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1167
+ return __generator(this, function (_c) {
1168
+ switch (_c.label) {
1169
+ case 0:
1170
+ if (!(req instanceof utils.SpeakeasyBase)) {
1171
+ req = new operations.ListAtsCandidatesRequest(req);
1172
+ }
1173
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1174
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate", req);
1175
+ client = this.sdkConfiguration.defaultClient;
1176
+ if (!(security instanceof utils.SpeakeasyBase)) {
1177
+ security = new operations.ListAtsCandidatesSecurity(security);
1178
+ }
1179
+ properties = utils.parseSecurityProperties(security);
1180
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1181
+ queryParams = utils.serializeQueryParams(req);
1182
+ headers["Accept"] = "application/json";
1183
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1184
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1185
+ case 1:
1186
+ httpRes = _c.sent();
1187
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1188
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1189
+ throw new Error("status code not found in response: ".concat(httpRes));
1190
+ }
1191
+ res = new operations.ListAtsCandidatesResponse({
1192
+ statusCode: httpRes.status,
1193
+ contentType: responseContentType,
1194
+ rawResponse: httpRes,
1195
+ });
1196
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1197
+ switch (true) {
1198
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1199
+ if (utils.matchContentType(responseContentType, "application/json")) {
1200
+ res.atsCandidates = [];
1201
+ resFieldDepth = utils.getResFieldDepth(res);
1202
+ res.atsCandidates = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCandidate, resFieldDepth);
1203
+ }
1204
+ else {
1205
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1206
+ }
1207
+ break;
1208
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1209
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1210
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1211
+ }
1212
+ return [2 /*return*/, res];
1213
+ }
1214
+ });
1215
+ });
1216
+ };
1217
+ /**
1218
+ * List all companies
1219
+ */
1220
+ Ats.prototype.listAtsCompanies = function (req, security, config) {
1221
+ var _a, _b;
1222
+ return __awaiter(this, void 0, void 0, function () {
1223
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1224
+ return __generator(this, function (_c) {
1225
+ switch (_c.label) {
1226
+ case 0:
1227
+ if (!(req instanceof utils.SpeakeasyBase)) {
1228
+ req = new operations.ListAtsCompaniesRequest(req);
1229
+ }
1230
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1231
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company", req);
1232
+ client = this.sdkConfiguration.defaultClient;
1233
+ if (!(security instanceof utils.SpeakeasyBase)) {
1234
+ security = new operations.ListAtsCompaniesSecurity(security);
1235
+ }
1236
+ properties = utils.parseSecurityProperties(security);
1237
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1238
+ queryParams = utils.serializeQueryParams(req);
1239
+ headers["Accept"] = "application/json";
1240
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1241
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1242
+ case 1:
1243
+ httpRes = _c.sent();
1244
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1245
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1246
+ throw new Error("status code not found in response: ".concat(httpRes));
1247
+ }
1248
+ res = new operations.ListAtsCompaniesResponse({
1249
+ statusCode: httpRes.status,
1250
+ contentType: responseContentType,
1251
+ rawResponse: httpRes,
1252
+ });
1253
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1254
+ switch (true) {
1255
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1256
+ if (utils.matchContentType(responseContentType, "application/json")) {
1257
+ res.atsCompanies = [];
1258
+ resFieldDepth = utils.getResFieldDepth(res);
1259
+ res.atsCompanies = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCompany, resFieldDepth);
1260
+ }
1261
+ else {
1262
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1263
+ }
1264
+ break;
1265
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1266
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1267
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1268
+ }
1269
+ return [2 /*return*/, res];
1270
+ }
1271
+ });
1272
+ });
1273
+ };
1274
+ /**
1275
+ * List all documents
1276
+ */
1277
+ Ats.prototype.listAtsDocuments = function (req, security, config) {
1278
+ var _a, _b;
1279
+ return __awaiter(this, void 0, void 0, function () {
1280
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1281
+ return __generator(this, function (_c) {
1282
+ switch (_c.label) {
1283
+ case 0:
1284
+ if (!(req instanceof utils.SpeakeasyBase)) {
1285
+ req = new operations.ListAtsDocumentsRequest(req);
1286
+ }
1287
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1288
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document", req);
1289
+ client = this.sdkConfiguration.defaultClient;
1290
+ if (!(security instanceof utils.SpeakeasyBase)) {
1291
+ security = new operations.ListAtsDocumentsSecurity(security);
1292
+ }
1293
+ properties = utils.parseSecurityProperties(security);
1294
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1295
+ queryParams = utils.serializeQueryParams(req);
1296
+ headers["Accept"] = "application/json";
1297
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1298
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1299
+ case 1:
1300
+ httpRes = _c.sent();
1301
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1302
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1303
+ throw new Error("status code not found in response: ".concat(httpRes));
1304
+ }
1305
+ res = new operations.ListAtsDocumentsResponse({
1306
+ statusCode: httpRes.status,
1307
+ contentType: responseContentType,
1308
+ rawResponse: httpRes,
1309
+ });
1310
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1311
+ switch (true) {
1312
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1313
+ if (utils.matchContentType(responseContentType, "application/json")) {
1314
+ res.atsDocuments = [];
1315
+ resFieldDepth = utils.getResFieldDepth(res);
1316
+ res.atsDocuments = utils.objectToClass(JSON.parse(decodedRes), shared.AtsDocument, resFieldDepth);
1317
+ }
1318
+ else {
1319
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1320
+ }
1321
+ break;
1322
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1323
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1324
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1325
+ }
1326
+ return [2 /*return*/, res];
1327
+ }
1328
+ });
1329
+ });
1330
+ };
1331
+ /**
1332
+ * List all interviews
1333
+ */
1334
+ Ats.prototype.listAtsInterviews = function (req, security, config) {
1335
+ var _a, _b;
1336
+ return __awaiter(this, void 0, void 0, function () {
1337
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1338
+ return __generator(this, function (_c) {
1339
+ switch (_c.label) {
1340
+ case 0:
1341
+ if (!(req instanceof utils.SpeakeasyBase)) {
1342
+ req = new operations.ListAtsInterviewsRequest(req);
1343
+ }
1344
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1345
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview", req);
1346
+ client = this.sdkConfiguration.defaultClient;
1347
+ if (!(security instanceof utils.SpeakeasyBase)) {
1348
+ security = new operations.ListAtsInterviewsSecurity(security);
1349
+ }
1350
+ properties = utils.parseSecurityProperties(security);
1351
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1352
+ queryParams = utils.serializeQueryParams(req);
1353
+ headers["Accept"] = "application/json";
1354
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1355
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1356
+ case 1:
1357
+ httpRes = _c.sent();
1358
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1359
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1360
+ throw new Error("status code not found in response: ".concat(httpRes));
1361
+ }
1362
+ res = new operations.ListAtsInterviewsResponse({
1363
+ statusCode: httpRes.status,
1364
+ contentType: responseContentType,
1365
+ rawResponse: httpRes,
1366
+ });
1367
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1368
+ switch (true) {
1369
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1370
+ if (utils.matchContentType(responseContentType, "application/json")) {
1371
+ res.atsInterviews = [];
1372
+ resFieldDepth = utils.getResFieldDepth(res);
1373
+ res.atsInterviews = utils.objectToClass(JSON.parse(decodedRes), shared.AtsInterview, resFieldDepth);
1374
+ }
1375
+ else {
1376
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1377
+ }
1378
+ break;
1379
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1380
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1381
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1382
+ }
1383
+ return [2 /*return*/, res];
1384
+ }
1385
+ });
1386
+ });
1387
+ };
1388
+ /**
1389
+ * List all jobs
1390
+ */
1391
+ Ats.prototype.listAtsJobs = function (req, security, config) {
1392
+ var _a, _b;
1393
+ return __awaiter(this, void 0, void 0, function () {
1394
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1395
+ return __generator(this, function (_c) {
1396
+ switch (_c.label) {
1397
+ case 0:
1398
+ if (!(req instanceof utils.SpeakeasyBase)) {
1399
+ req = new operations.ListAtsJobsRequest(req);
1400
+ }
1401
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1402
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job", req);
1403
+ client = this.sdkConfiguration.defaultClient;
1404
+ if (!(security instanceof utils.SpeakeasyBase)) {
1405
+ security = new operations.ListAtsJobsSecurity(security);
1406
+ }
1407
+ properties = utils.parseSecurityProperties(security);
1408
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1409
+ queryParams = utils.serializeQueryParams(req);
1410
+ headers["Accept"] = "application/json";
1411
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1412
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1413
+ case 1:
1414
+ httpRes = _c.sent();
1415
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1416
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1417
+ throw new Error("status code not found in response: ".concat(httpRes));
1418
+ }
1419
+ res = new operations.ListAtsJobsResponse({
1420
+ statusCode: httpRes.status,
1421
+ contentType: responseContentType,
1422
+ rawResponse: httpRes,
1423
+ });
1424
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1425
+ switch (true) {
1426
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1427
+ if (utils.matchContentType(responseContentType, "application/json")) {
1428
+ res.atsJobs = [];
1429
+ resFieldDepth = utils.getResFieldDepth(res);
1430
+ res.atsJobs = utils.objectToClass(JSON.parse(decodedRes), shared.AtsJob, resFieldDepth);
1431
+ }
1432
+ else {
1433
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1434
+ }
1435
+ break;
1436
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1437
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1438
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1439
+ }
1440
+ return [2 /*return*/, res];
1441
+ }
1442
+ });
1443
+ });
1444
+ };
1445
+ /**
1446
+ * List all scorecards
1447
+ */
1448
+ Ats.prototype.listAtsScorecards = function (req, security, config) {
1449
+ var _a, _b;
1450
+ return __awaiter(this, void 0, void 0, function () {
1451
+ var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1452
+ return __generator(this, function (_c) {
1453
+ switch (_c.label) {
1454
+ case 0:
1455
+ if (!(req instanceof utils.SpeakeasyBase)) {
1456
+ req = new operations.ListAtsScorecardsRequest(req);
1457
+ }
1458
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1459
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard", req);
1460
+ client = this.sdkConfiguration.defaultClient;
1461
+ if (!(security instanceof utils.SpeakeasyBase)) {
1462
+ security = new operations.ListAtsScorecardsSecurity(security);
1463
+ }
1464
+ properties = utils.parseSecurityProperties(security);
1465
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1466
+ queryParams = utils.serializeQueryParams(req);
1467
+ headers["Accept"] = "application/json";
1468
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1469
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1470
+ case 1:
1471
+ httpRes = _c.sent();
1472
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1473
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1474
+ throw new Error("status code not found in response: ".concat(httpRes));
1475
+ }
1476
+ res = new operations.ListAtsScorecardsResponse({
1477
+ statusCode: httpRes.status,
1478
+ contentType: responseContentType,
1479
+ rawResponse: httpRes,
1480
+ });
1481
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1482
+ switch (true) {
1483
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1484
+ if (utils.matchContentType(responseContentType, "application/json")) {
1485
+ res.atsScorecards = [];
1486
+ resFieldDepth = utils.getResFieldDepth(res);
1487
+ res.atsScorecards = utils.objectToClass(JSON.parse(decodedRes), shared.AtsScorecard, resFieldDepth);
1488
+ }
1489
+ else {
1490
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1491
+ }
1492
+ break;
1493
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1494
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1495
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1496
+ }
1497
+ return [2 /*return*/, res];
1498
+ }
1499
+ });
1500
+ });
1501
+ };
1502
+ /**
1503
+ * Update an activity
1504
+ */
1505
+ Ats.prototype.patchAtsActivity = function (req, security, config) {
1506
+ var _a, _b;
1507
+ return __awaiter(this, void 0, void 0, function () {
1508
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1509
+ var _d;
1510
+ return __generator(this, function (_e) {
1511
+ switch (_e.label) {
1512
+ case 0:
1513
+ if (!(req instanceof utils.SpeakeasyBase)) {
1514
+ req = new operations.PatchAtsActivityRequest(req);
1515
+ }
1516
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1517
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
1518
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1519
+ try {
1520
+ _d = __read(utils.serializeRequestBody(req, "atsActivity", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1521
+ }
1522
+ catch (e) {
1523
+ if (e instanceof Error) {
1524
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1525
+ }
1526
+ }
1527
+ client = this.sdkConfiguration.defaultClient;
1528
+ if (!(security instanceof utils.SpeakeasyBase)) {
1529
+ security = new operations.PatchAtsActivitySecurity(security);
1530
+ }
1531
+ properties = utils.parseSecurityProperties(security);
1532
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1533
+ headers["Accept"] = "application/json";
1534
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1535
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1536
+ case 1:
1537
+ httpRes = _e.sent();
1538
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1539
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1540
+ throw new Error("status code not found in response: ".concat(httpRes));
1541
+ }
1542
+ res = new operations.PatchAtsActivityResponse({
1543
+ statusCode: httpRes.status,
1544
+ contentType: responseContentType,
1545
+ rawResponse: httpRes,
1546
+ });
1547
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1548
+ switch (true) {
1549
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1550
+ if (utils.matchContentType(responseContentType, "application/json")) {
1551
+ res.atsActivity = utils.objectToClass(JSON.parse(decodedRes), shared.AtsActivity);
1552
+ }
1553
+ else {
1554
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1555
+ }
1556
+ break;
1557
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1558
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1559
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1560
+ }
1561
+ return [2 /*return*/, res];
1562
+ }
1563
+ });
1564
+ });
1565
+ };
1566
+ /**
1567
+ * Update an application
1568
+ */
1569
+ Ats.prototype.patchAtsApplication = function (req, security, config) {
1570
+ var _a, _b;
1571
+ return __awaiter(this, void 0, void 0, function () {
1572
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1573
+ var _d;
1574
+ return __generator(this, function (_e) {
1575
+ switch (_e.label) {
1576
+ case 0:
1577
+ if (!(req instanceof utils.SpeakeasyBase)) {
1578
+ req = new operations.PatchAtsApplicationRequest(req);
1579
+ }
1580
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1581
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
1582
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1583
+ try {
1584
+ _d = __read(utils.serializeRequestBody(req, "atsApplication", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1585
+ }
1586
+ catch (e) {
1587
+ if (e instanceof Error) {
1588
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1589
+ }
1590
+ }
1591
+ client = this.sdkConfiguration.defaultClient;
1592
+ if (!(security instanceof utils.SpeakeasyBase)) {
1593
+ security = new operations.PatchAtsApplicationSecurity(security);
1594
+ }
1595
+ properties = utils.parseSecurityProperties(security);
1596
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1597
+ headers["Accept"] = "application/json";
1598
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1599
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1600
+ case 1:
1601
+ httpRes = _e.sent();
1602
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1603
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1604
+ throw new Error("status code not found in response: ".concat(httpRes));
1605
+ }
1606
+ res = new operations.PatchAtsApplicationResponse({
1607
+ statusCode: httpRes.status,
1608
+ contentType: responseContentType,
1609
+ rawResponse: httpRes,
1610
+ });
1611
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1612
+ switch (true) {
1613
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1614
+ if (utils.matchContentType(responseContentType, "application/json")) {
1615
+ res.atsApplication = utils.objectToClass(JSON.parse(decodedRes), shared.AtsApplication);
1616
+ }
1617
+ else {
1618
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1619
+ }
1620
+ break;
1621
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1622
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1623
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1624
+ }
1625
+ return [2 /*return*/, res];
1626
+ }
1627
+ });
1628
+ });
1629
+ };
1630
+ /**
1631
+ * Update a candidate
1632
+ */
1633
+ Ats.prototype.patchAtsCandidate = function (req, security, config) {
1634
+ var _a, _b;
1635
+ return __awaiter(this, void 0, void 0, function () {
1636
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1637
+ var _d;
1638
+ return __generator(this, function (_e) {
1639
+ switch (_e.label) {
1640
+ case 0:
1641
+ if (!(req instanceof utils.SpeakeasyBase)) {
1642
+ req = new operations.PatchAtsCandidateRequest(req);
1643
+ }
1644
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1645
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
1646
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1647
+ try {
1648
+ _d = __read(utils.serializeRequestBody(req, "atsCandidate", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1649
+ }
1650
+ catch (e) {
1651
+ if (e instanceof Error) {
1652
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1653
+ }
1654
+ }
1655
+ client = this.sdkConfiguration.defaultClient;
1656
+ if (!(security instanceof utils.SpeakeasyBase)) {
1657
+ security = new operations.PatchAtsCandidateSecurity(security);
1658
+ }
1659
+ properties = utils.parseSecurityProperties(security);
1660
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1661
+ headers["Accept"] = "application/json";
1662
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1663
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1664
+ case 1:
1665
+ httpRes = _e.sent();
1666
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1667
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1668
+ throw new Error("status code not found in response: ".concat(httpRes));
1669
+ }
1670
+ res = new operations.PatchAtsCandidateResponse({
1671
+ statusCode: httpRes.status,
1672
+ contentType: responseContentType,
1673
+ rawResponse: httpRes,
1674
+ });
1675
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1676
+ switch (true) {
1677
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1678
+ if (utils.matchContentType(responseContentType, "application/json")) {
1679
+ res.atsCandidate = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCandidate);
1680
+ }
1681
+ else {
1682
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1683
+ }
1684
+ break;
1685
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1686
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1687
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1688
+ }
1689
+ return [2 /*return*/, res];
1690
+ }
1691
+ });
1692
+ });
1693
+ };
1694
+ /**
1695
+ * Update a document
1696
+ */
1697
+ Ats.prototype.patchAtsDocument = function (req, security, config) {
1698
+ var _a, _b;
1699
+ return __awaiter(this, void 0, void 0, function () {
1700
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1701
+ var _d;
1702
+ return __generator(this, function (_e) {
1703
+ switch (_e.label) {
1704
+ case 0:
1705
+ if (!(req instanceof utils.SpeakeasyBase)) {
1706
+ req = new operations.PatchAtsDocumentRequest(req);
1707
+ }
1708
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1709
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
1710
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1711
+ try {
1712
+ _d = __read(utils.serializeRequestBody(req, "atsDocument", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1713
+ }
1714
+ catch (e) {
1715
+ if (e instanceof Error) {
1716
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1717
+ }
1718
+ }
1719
+ client = this.sdkConfiguration.defaultClient;
1720
+ if (!(security instanceof utils.SpeakeasyBase)) {
1721
+ security = new operations.PatchAtsDocumentSecurity(security);
1722
+ }
1723
+ properties = utils.parseSecurityProperties(security);
1724
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1725
+ headers["Accept"] = "application/json";
1726
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1727
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1728
+ case 1:
1729
+ httpRes = _e.sent();
1730
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1731
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1732
+ throw new Error("status code not found in response: ".concat(httpRes));
1733
+ }
1734
+ res = new operations.PatchAtsDocumentResponse({
1735
+ statusCode: httpRes.status,
1736
+ contentType: responseContentType,
1737
+ rawResponse: httpRes,
1738
+ });
1739
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1740
+ switch (true) {
1741
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1742
+ if (utils.matchContentType(responseContentType, "application/json")) {
1743
+ res.atsDocument = utils.objectToClass(JSON.parse(decodedRes), shared.AtsDocument);
1744
+ }
1745
+ else {
1746
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1747
+ }
1748
+ break;
1749
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1750
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1751
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1752
+ }
1753
+ return [2 /*return*/, res];
1754
+ }
1755
+ });
1756
+ });
1757
+ };
1758
+ /**
1759
+ * Update a interview
1760
+ */
1761
+ Ats.prototype.patchAtsInterview = function (req, security, config) {
1762
+ var _a, _b;
1763
+ return __awaiter(this, void 0, void 0, function () {
1764
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1765
+ var _d;
1766
+ return __generator(this, function (_e) {
1767
+ switch (_e.label) {
1768
+ case 0:
1769
+ if (!(req instanceof utils.SpeakeasyBase)) {
1770
+ req = new operations.PatchAtsInterviewRequest(req);
1771
+ }
1772
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1773
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
1774
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1775
+ try {
1776
+ _d = __read(utils.serializeRequestBody(req, "atsInterview", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1777
+ }
1778
+ catch (e) {
1779
+ if (e instanceof Error) {
1780
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1781
+ }
1782
+ }
1783
+ client = this.sdkConfiguration.defaultClient;
1784
+ if (!(security instanceof utils.SpeakeasyBase)) {
1785
+ security = new operations.PatchAtsInterviewSecurity(security);
1786
+ }
1787
+ properties = utils.parseSecurityProperties(security);
1788
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1789
+ headers["Accept"] = "application/json";
1790
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1791
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1792
+ case 1:
1793
+ httpRes = _e.sent();
1794
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1795
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1796
+ throw new Error("status code not found in response: ".concat(httpRes));
1797
+ }
1798
+ res = new operations.PatchAtsInterviewResponse({
1799
+ statusCode: httpRes.status,
1800
+ contentType: responseContentType,
1801
+ rawResponse: httpRes,
1802
+ });
1803
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1804
+ switch (true) {
1805
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1806
+ if (utils.matchContentType(responseContentType, "application/json")) {
1807
+ res.atsInterview = utils.objectToClass(JSON.parse(decodedRes), shared.AtsInterview);
1808
+ }
1809
+ else {
1810
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1811
+ }
1812
+ break;
1813
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1814
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1815
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1816
+ }
1817
+ return [2 /*return*/, res];
1818
+ }
1819
+ });
1820
+ });
1821
+ };
1822
+ /**
1823
+ * Update a job
1824
+ */
1825
+ Ats.prototype.patchAtsJob = function (req, security, config) {
1826
+ var _a, _b;
1827
+ return __awaiter(this, void 0, void 0, function () {
1828
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1829
+ var _d;
1830
+ return __generator(this, function (_e) {
1831
+ switch (_e.label) {
1832
+ case 0:
1833
+ if (!(req instanceof utils.SpeakeasyBase)) {
1834
+ req = new operations.PatchAtsJobRequest(req);
1835
+ }
1836
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1837
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
1838
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1839
+ try {
1840
+ _d = __read(utils.serializeRequestBody(req, "atsJob", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1841
+ }
1842
+ catch (e) {
1843
+ if (e instanceof Error) {
1844
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1845
+ }
1846
+ }
1847
+ client = this.sdkConfiguration.defaultClient;
1848
+ if (!(security instanceof utils.SpeakeasyBase)) {
1849
+ security = new operations.PatchAtsJobSecurity(security);
1850
+ }
1851
+ properties = utils.parseSecurityProperties(security);
1852
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1853
+ headers["Accept"] = "application/json";
1854
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1855
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1856
+ case 1:
1857
+ httpRes = _e.sent();
1858
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1859
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1860
+ throw new Error("status code not found in response: ".concat(httpRes));
1861
+ }
1862
+ res = new operations.PatchAtsJobResponse({
1863
+ statusCode: httpRes.status,
1864
+ contentType: responseContentType,
1865
+ rawResponse: httpRes,
1866
+ });
1867
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1868
+ switch (true) {
1869
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1870
+ if (utils.matchContentType(responseContentType, "application/json")) {
1871
+ res.atsJob = utils.objectToClass(JSON.parse(decodedRes), shared.AtsJob);
1872
+ }
1873
+ else {
1874
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1875
+ }
1876
+ break;
1877
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1878
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1879
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1880
+ }
1881
+ return [2 /*return*/, res];
1882
+ }
1883
+ });
1884
+ });
1885
+ };
1886
+ /**
1887
+ * Update a scorecard
1888
+ */
1889
+ Ats.prototype.patchAtsScorecard = function (req, security, config) {
1890
+ var _a, _b;
1891
+ return __awaiter(this, void 0, void 0, function () {
1892
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1893
+ var _d;
1894
+ return __generator(this, function (_e) {
1895
+ switch (_e.label) {
1896
+ case 0:
1897
+ if (!(req instanceof utils.SpeakeasyBase)) {
1898
+ req = new operations.PatchAtsScorecardRequest(req);
1899
+ }
1900
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1901
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
1902
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
1903
+ try {
1904
+ _d = __read(utils.serializeRequestBody(req, "atsScorecard", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
1905
+ }
1906
+ catch (e) {
1907
+ if (e instanceof Error) {
1908
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
1909
+ }
1910
+ }
1911
+ client = this.sdkConfiguration.defaultClient;
1912
+ if (!(security instanceof utils.SpeakeasyBase)) {
1913
+ security = new operations.PatchAtsScorecardSecurity(security);
1914
+ }
1915
+ properties = utils.parseSecurityProperties(security);
1916
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1917
+ headers["Accept"] = "application/json";
1918
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1919
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1920
+ case 1:
1921
+ httpRes = _e.sent();
1922
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1923
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1924
+ throw new Error("status code not found in response: ".concat(httpRes));
1925
+ }
1926
+ res = new operations.PatchAtsScorecardResponse({
1927
+ statusCode: httpRes.status,
1928
+ contentType: responseContentType,
1929
+ rawResponse: httpRes,
1930
+ });
1931
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1932
+ switch (true) {
1933
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1934
+ if (utils.matchContentType(responseContentType, "application/json")) {
1935
+ res.atsScorecard = utils.objectToClass(JSON.parse(decodedRes), shared.AtsScorecard);
1936
+ }
1937
+ else {
1938
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1939
+ }
1940
+ break;
1941
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1942
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1943
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1944
+ }
1945
+ return [2 /*return*/, res];
1946
+ }
1947
+ });
1948
+ });
1949
+ };
1950
+ /**
1951
+ * Remove an activity
1952
+ */
1953
+ Ats.prototype.removeAtsActivity = function (req, security, config) {
1954
+ var _a, _b;
1955
+ return __awaiter(this, void 0, void 0, function () {
1956
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1957
+ return __generator(this, function (_c) {
1958
+ switch (_c.label) {
1959
+ case 0:
1960
+ if (!(req instanceof utils.SpeakeasyBase)) {
1961
+ req = new operations.RemoveAtsActivityRequest(req);
1962
+ }
1963
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1964
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
1965
+ client = this.sdkConfiguration.defaultClient;
1966
+ if (!(security instanceof utils.SpeakeasyBase)) {
1967
+ security = new operations.RemoveAtsActivitySecurity(security);
1968
+ }
1969
+ properties = utils.parseSecurityProperties(security);
1970
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1971
+ headers["Accept"] = "application/json";
1972
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
1973
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
1974
+ case 1:
1975
+ httpRes = _c.sent();
1976
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1977
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1978
+ throw new Error("status code not found in response: ".concat(httpRes));
1979
+ }
1980
+ res = new operations.RemoveAtsActivityResponse({
1981
+ statusCode: httpRes.status,
1982
+ contentType: responseContentType,
1983
+ rawResponse: httpRes,
1984
+ });
1985
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1986
+ switch (true) {
1987
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
1988
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
1989
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
1990
+ default:
1991
+ if (utils.matchContentType(responseContentType, "application/json")) {
1992
+ res.res = decodedRes;
1993
+ }
1994
+ else {
1995
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
1996
+ }
1997
+ break;
1998
+ }
1999
+ return [2 /*return*/, res];
2000
+ }
2001
+ });
2002
+ });
2003
+ };
2004
+ /**
2005
+ * Remove an application
2006
+ */
2007
+ Ats.prototype.removeAtsApplication = function (req, security, config) {
2008
+ var _a, _b;
2009
+ return __awaiter(this, void 0, void 0, function () {
2010
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2011
+ return __generator(this, function (_c) {
2012
+ switch (_c.label) {
2013
+ case 0:
2014
+ if (!(req instanceof utils.SpeakeasyBase)) {
2015
+ req = new operations.RemoveAtsApplicationRequest(req);
2016
+ }
2017
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2018
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
2019
+ client = this.sdkConfiguration.defaultClient;
2020
+ if (!(security instanceof utils.SpeakeasyBase)) {
2021
+ security = new operations.RemoveAtsApplicationSecurity(security);
2022
+ }
2023
+ properties = utils.parseSecurityProperties(security);
2024
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2025
+ headers["Accept"] = "application/json";
2026
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2027
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2028
+ case 1:
2029
+ httpRes = _c.sent();
2030
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2031
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2032
+ throw new Error("status code not found in response: ".concat(httpRes));
2033
+ }
2034
+ res = new operations.RemoveAtsApplicationResponse({
2035
+ statusCode: httpRes.status,
2036
+ contentType: responseContentType,
2037
+ rawResponse: httpRes,
2038
+ });
2039
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2040
+ switch (true) {
2041
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2042
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2043
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2044
+ default:
2045
+ if (utils.matchContentType(responseContentType, "application/json")) {
2046
+ res.res = decodedRes;
2047
+ }
2048
+ else {
2049
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2050
+ }
2051
+ break;
2052
+ }
2053
+ return [2 /*return*/, res];
2054
+ }
2055
+ });
2056
+ });
2057
+ };
2058
+ /**
2059
+ * Remove a candidate
2060
+ */
2061
+ Ats.prototype.removeAtsCandidate = function (req, security, config) {
2062
+ var _a, _b;
2063
+ return __awaiter(this, void 0, void 0, function () {
2064
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2065
+ return __generator(this, function (_c) {
2066
+ switch (_c.label) {
2067
+ case 0:
2068
+ if (!(req instanceof utils.SpeakeasyBase)) {
2069
+ req = new operations.RemoveAtsCandidateRequest(req);
2070
+ }
2071
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2072
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
2073
+ client = this.sdkConfiguration.defaultClient;
2074
+ if (!(security instanceof utils.SpeakeasyBase)) {
2075
+ security = new operations.RemoveAtsCandidateSecurity(security);
2076
+ }
2077
+ properties = utils.parseSecurityProperties(security);
2078
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2079
+ headers["Accept"] = "application/json";
2080
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2081
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2082
+ case 1:
2083
+ httpRes = _c.sent();
2084
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2085
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2086
+ throw new Error("status code not found in response: ".concat(httpRes));
2087
+ }
2088
+ res = new operations.RemoveAtsCandidateResponse({
2089
+ statusCode: httpRes.status,
2090
+ contentType: responseContentType,
2091
+ rawResponse: httpRes,
2092
+ });
2093
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2094
+ switch (true) {
2095
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2096
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2097
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2098
+ default:
2099
+ if (utils.matchContentType(responseContentType, "application/json")) {
2100
+ res.res = decodedRes;
2101
+ }
2102
+ else {
2103
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2104
+ }
2105
+ break;
2106
+ }
2107
+ return [2 /*return*/, res];
2108
+ }
2109
+ });
2110
+ });
2111
+ };
2112
+ /**
2113
+ * Remove a document
2114
+ */
2115
+ Ats.prototype.removeAtsDocument = function (req, security, config) {
2116
+ var _a, _b;
2117
+ return __awaiter(this, void 0, void 0, function () {
2118
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2119
+ return __generator(this, function (_c) {
2120
+ switch (_c.label) {
2121
+ case 0:
2122
+ if (!(req instanceof utils.SpeakeasyBase)) {
2123
+ req = new operations.RemoveAtsDocumentRequest(req);
2124
+ }
2125
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2126
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
2127
+ client = this.sdkConfiguration.defaultClient;
2128
+ if (!(security instanceof utils.SpeakeasyBase)) {
2129
+ security = new operations.RemoveAtsDocumentSecurity(security);
2130
+ }
2131
+ properties = utils.parseSecurityProperties(security);
2132
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2133
+ headers["Accept"] = "application/json";
2134
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2135
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2136
+ case 1:
2137
+ httpRes = _c.sent();
2138
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2139
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2140
+ throw new Error("status code not found in response: ".concat(httpRes));
2141
+ }
2142
+ res = new operations.RemoveAtsDocumentResponse({
2143
+ statusCode: httpRes.status,
2144
+ contentType: responseContentType,
2145
+ rawResponse: httpRes,
2146
+ });
2147
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2148
+ switch (true) {
2149
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2150
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2151
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2152
+ default:
2153
+ if (utils.matchContentType(responseContentType, "application/json")) {
2154
+ res.res = decodedRes;
2155
+ }
2156
+ else {
2157
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2158
+ }
2159
+ break;
2160
+ }
2161
+ return [2 /*return*/, res];
2162
+ }
2163
+ });
2164
+ });
2165
+ };
2166
+ /**
2167
+ * Remove a interview
2168
+ */
2169
+ Ats.prototype.removeAtsInterview = function (req, security, config) {
2170
+ var _a, _b;
2171
+ return __awaiter(this, void 0, void 0, function () {
2172
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2173
+ return __generator(this, function (_c) {
2174
+ switch (_c.label) {
2175
+ case 0:
2176
+ if (!(req instanceof utils.SpeakeasyBase)) {
2177
+ req = new operations.RemoveAtsInterviewRequest(req);
2178
+ }
2179
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2180
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
2181
+ client = this.sdkConfiguration.defaultClient;
2182
+ if (!(security instanceof utils.SpeakeasyBase)) {
2183
+ security = new operations.RemoveAtsInterviewSecurity(security);
2184
+ }
2185
+ properties = utils.parseSecurityProperties(security);
2186
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2187
+ headers["Accept"] = "application/json";
2188
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2189
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2190
+ case 1:
2191
+ httpRes = _c.sent();
2192
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2193
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2194
+ throw new Error("status code not found in response: ".concat(httpRes));
2195
+ }
2196
+ res = new operations.RemoveAtsInterviewResponse({
2197
+ statusCode: httpRes.status,
2198
+ contentType: responseContentType,
2199
+ rawResponse: httpRes,
2200
+ });
2201
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2202
+ switch (true) {
2203
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2204
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2205
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2206
+ default:
2207
+ if (utils.matchContentType(responseContentType, "application/json")) {
2208
+ res.res = decodedRes;
2209
+ }
2210
+ else {
2211
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2212
+ }
2213
+ break;
2214
+ }
2215
+ return [2 /*return*/, res];
2216
+ }
2217
+ });
2218
+ });
2219
+ };
2220
+ /**
2221
+ * Remove a job
2222
+ */
2223
+ Ats.prototype.removeAtsJob = function (req, security, config) {
2224
+ var _a, _b;
2225
+ return __awaiter(this, void 0, void 0, function () {
2226
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2227
+ return __generator(this, function (_c) {
2228
+ switch (_c.label) {
2229
+ case 0:
2230
+ if (!(req instanceof utils.SpeakeasyBase)) {
2231
+ req = new operations.RemoveAtsJobRequest(req);
2232
+ }
2233
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2234
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
2235
+ client = this.sdkConfiguration.defaultClient;
2236
+ if (!(security instanceof utils.SpeakeasyBase)) {
2237
+ security = new operations.RemoveAtsJobSecurity(security);
2238
+ }
2239
+ properties = utils.parseSecurityProperties(security);
2240
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2241
+ headers["Accept"] = "application/json";
2242
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2243
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2244
+ case 1:
2245
+ httpRes = _c.sent();
2246
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2247
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2248
+ throw new Error("status code not found in response: ".concat(httpRes));
2249
+ }
2250
+ res = new operations.RemoveAtsJobResponse({
2251
+ statusCode: httpRes.status,
2252
+ contentType: responseContentType,
2253
+ rawResponse: httpRes,
2254
+ });
2255
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2256
+ switch (true) {
2257
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2258
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2259
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2260
+ default:
2261
+ if (utils.matchContentType(responseContentType, "application/json")) {
2262
+ res.res = decodedRes;
2263
+ }
2264
+ else {
2265
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2266
+ }
2267
+ break;
2268
+ }
2269
+ return [2 /*return*/, res];
2270
+ }
2271
+ });
2272
+ });
2273
+ };
2274
+ /**
2275
+ * Remove a scorecard
2276
+ */
2277
+ Ats.prototype.removeAtsScorecard = function (req, security, config) {
2278
+ var _a, _b;
2279
+ return __awaiter(this, void 0, void 0, function () {
2280
+ var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2281
+ return __generator(this, function (_c) {
2282
+ switch (_c.label) {
2283
+ case 0:
2284
+ if (!(req instanceof utils.SpeakeasyBase)) {
2285
+ req = new operations.RemoveAtsScorecardRequest(req);
2286
+ }
2287
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2288
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
2289
+ client = this.sdkConfiguration.defaultClient;
2290
+ if (!(security instanceof utils.SpeakeasyBase)) {
2291
+ security = new operations.RemoveAtsScorecardSecurity(security);
2292
+ }
2293
+ properties = utils.parseSecurityProperties(security);
2294
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2295
+ headers["Accept"] = "application/json";
2296
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2297
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2298
+ case 1:
2299
+ httpRes = _c.sent();
2300
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2301
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2302
+ throw new Error("status code not found in response: ".concat(httpRes));
2303
+ }
2304
+ res = new operations.RemoveAtsScorecardResponse({
2305
+ statusCode: httpRes.status,
2306
+ contentType: responseContentType,
2307
+ rawResponse: httpRes,
2308
+ });
2309
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2310
+ switch (true) {
2311
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2312
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2313
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2314
+ default:
2315
+ if (utils.matchContentType(responseContentType, "application/json")) {
2316
+ res.res = decodedRes;
2317
+ }
2318
+ else {
2319
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2320
+ }
2321
+ break;
2322
+ }
2323
+ return [2 /*return*/, res];
2324
+ }
2325
+ });
2326
+ });
2327
+ };
2328
+ /**
2329
+ * Update an activity
2330
+ */
2331
+ Ats.prototype.updateAtsActivity = function (req, security, config) {
2332
+ var _a, _b;
2333
+ return __awaiter(this, void 0, void 0, function () {
2334
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2335
+ var _d;
2336
+ return __generator(this, function (_e) {
2337
+ switch (_e.label) {
2338
+ case 0:
2339
+ if (!(req instanceof utils.SpeakeasyBase)) {
2340
+ req = new operations.UpdateAtsActivityRequest(req);
2341
+ }
2342
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2343
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
2344
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2345
+ try {
2346
+ _d = __read(utils.serializeRequestBody(req, "atsActivity", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2347
+ }
2348
+ catch (e) {
2349
+ if (e instanceof Error) {
2350
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2351
+ }
2352
+ }
2353
+ client = this.sdkConfiguration.defaultClient;
2354
+ if (!(security instanceof utils.SpeakeasyBase)) {
2355
+ security = new operations.UpdateAtsActivitySecurity(security);
2356
+ }
2357
+ properties = utils.parseSecurityProperties(security);
2358
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2359
+ headers["Accept"] = "application/json";
2360
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2361
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2362
+ case 1:
2363
+ httpRes = _e.sent();
2364
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2365
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2366
+ throw new Error("status code not found in response: ".concat(httpRes));
2367
+ }
2368
+ res = new operations.UpdateAtsActivityResponse({
2369
+ statusCode: httpRes.status,
2370
+ contentType: responseContentType,
2371
+ rawResponse: httpRes,
2372
+ });
2373
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2374
+ switch (true) {
2375
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2376
+ if (utils.matchContentType(responseContentType, "application/json")) {
2377
+ res.atsActivity = utils.objectToClass(JSON.parse(decodedRes), shared.AtsActivity);
2378
+ }
2379
+ else {
2380
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2381
+ }
2382
+ break;
2383
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2384
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2385
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2386
+ }
2387
+ return [2 /*return*/, res];
2388
+ }
2389
+ });
2390
+ });
2391
+ };
2392
+ /**
2393
+ * Update an application
2394
+ */
2395
+ Ats.prototype.updateAtsApplication = function (req, security, config) {
2396
+ var _a, _b;
2397
+ return __awaiter(this, void 0, void 0, function () {
2398
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2399
+ var _d;
2400
+ return __generator(this, function (_e) {
2401
+ switch (_e.label) {
2402
+ case 0:
2403
+ if (!(req instanceof utils.SpeakeasyBase)) {
2404
+ req = new operations.UpdateAtsApplicationRequest(req);
2405
+ }
2406
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2407
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
2408
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2409
+ try {
2410
+ _d = __read(utils.serializeRequestBody(req, "atsApplication", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2411
+ }
2412
+ catch (e) {
2413
+ if (e instanceof Error) {
2414
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2415
+ }
2416
+ }
2417
+ client = this.sdkConfiguration.defaultClient;
2418
+ if (!(security instanceof utils.SpeakeasyBase)) {
2419
+ security = new operations.UpdateAtsApplicationSecurity(security);
2420
+ }
2421
+ properties = utils.parseSecurityProperties(security);
2422
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2423
+ headers["Accept"] = "application/json";
2424
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2425
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2426
+ case 1:
2427
+ httpRes = _e.sent();
2428
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2429
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2430
+ throw new Error("status code not found in response: ".concat(httpRes));
2431
+ }
2432
+ res = new operations.UpdateAtsApplicationResponse({
2433
+ statusCode: httpRes.status,
2434
+ contentType: responseContentType,
2435
+ rawResponse: httpRes,
2436
+ });
2437
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2438
+ switch (true) {
2439
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2440
+ if (utils.matchContentType(responseContentType, "application/json")) {
2441
+ res.atsApplication = utils.objectToClass(JSON.parse(decodedRes), shared.AtsApplication);
2442
+ }
2443
+ else {
2444
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2445
+ }
2446
+ break;
2447
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2448
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2449
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2450
+ }
2451
+ return [2 /*return*/, res];
2452
+ }
2453
+ });
2454
+ });
2455
+ };
2456
+ /**
2457
+ * Update a candidate
2458
+ */
2459
+ Ats.prototype.updateAtsCandidate = function (req, security, config) {
2460
+ var _a, _b;
2461
+ return __awaiter(this, void 0, void 0, function () {
2462
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2463
+ var _d;
2464
+ return __generator(this, function (_e) {
2465
+ switch (_e.label) {
2466
+ case 0:
2467
+ if (!(req instanceof utils.SpeakeasyBase)) {
2468
+ req = new operations.UpdateAtsCandidateRequest(req);
2469
+ }
2470
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2471
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
2472
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2473
+ try {
2474
+ _d = __read(utils.serializeRequestBody(req, "atsCandidate", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2475
+ }
2476
+ catch (e) {
2477
+ if (e instanceof Error) {
2478
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2479
+ }
2480
+ }
2481
+ client = this.sdkConfiguration.defaultClient;
2482
+ if (!(security instanceof utils.SpeakeasyBase)) {
2483
+ security = new operations.UpdateAtsCandidateSecurity(security);
2484
+ }
2485
+ properties = utils.parseSecurityProperties(security);
2486
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2487
+ headers["Accept"] = "application/json";
2488
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2489
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2490
+ case 1:
2491
+ httpRes = _e.sent();
2492
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2493
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2494
+ throw new Error("status code not found in response: ".concat(httpRes));
2495
+ }
2496
+ res = new operations.UpdateAtsCandidateResponse({
2497
+ statusCode: httpRes.status,
2498
+ contentType: responseContentType,
2499
+ rawResponse: httpRes,
2500
+ });
2501
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2502
+ switch (true) {
2503
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2504
+ if (utils.matchContentType(responseContentType, "application/json")) {
2505
+ res.atsCandidate = utils.objectToClass(JSON.parse(decodedRes), shared.AtsCandidate);
2506
+ }
2507
+ else {
2508
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2509
+ }
2510
+ break;
2511
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2512
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2513
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2514
+ }
2515
+ return [2 /*return*/, res];
2516
+ }
2517
+ });
2518
+ });
2519
+ };
2520
+ /**
2521
+ * Update a document
2522
+ */
2523
+ Ats.prototype.updateAtsDocument = function (req, security, config) {
2524
+ var _a, _b;
2525
+ return __awaiter(this, void 0, void 0, function () {
2526
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2527
+ var _d;
2528
+ return __generator(this, function (_e) {
2529
+ switch (_e.label) {
2530
+ case 0:
2531
+ if (!(req instanceof utils.SpeakeasyBase)) {
2532
+ req = new operations.UpdateAtsDocumentRequest(req);
2533
+ }
2534
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2535
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
2536
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2537
+ try {
2538
+ _d = __read(utils.serializeRequestBody(req, "atsDocument", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2539
+ }
2540
+ catch (e) {
2541
+ if (e instanceof Error) {
2542
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2543
+ }
2544
+ }
2545
+ client = this.sdkConfiguration.defaultClient;
2546
+ if (!(security instanceof utils.SpeakeasyBase)) {
2547
+ security = new operations.UpdateAtsDocumentSecurity(security);
2548
+ }
2549
+ properties = utils.parseSecurityProperties(security);
2550
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2551
+ headers["Accept"] = "application/json";
2552
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2553
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2554
+ case 1:
2555
+ httpRes = _e.sent();
2556
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2557
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2558
+ throw new Error("status code not found in response: ".concat(httpRes));
2559
+ }
2560
+ res = new operations.UpdateAtsDocumentResponse({
2561
+ statusCode: httpRes.status,
2562
+ contentType: responseContentType,
2563
+ rawResponse: httpRes,
2564
+ });
2565
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2566
+ switch (true) {
2567
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2568
+ if (utils.matchContentType(responseContentType, "application/json")) {
2569
+ res.atsDocument = utils.objectToClass(JSON.parse(decodedRes), shared.AtsDocument);
2570
+ }
2571
+ else {
2572
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2573
+ }
2574
+ break;
2575
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2576
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2577
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2578
+ }
2579
+ return [2 /*return*/, res];
2580
+ }
2581
+ });
2582
+ });
2583
+ };
2584
+ /**
2585
+ * Update a interview
2586
+ */
2587
+ Ats.prototype.updateAtsInterview = function (req, security, config) {
2588
+ var _a, _b;
2589
+ return __awaiter(this, void 0, void 0, function () {
2590
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2591
+ var _d;
2592
+ return __generator(this, function (_e) {
2593
+ switch (_e.label) {
2594
+ case 0:
2595
+ if (!(req instanceof utils.SpeakeasyBase)) {
2596
+ req = new operations.UpdateAtsInterviewRequest(req);
2597
+ }
2598
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2599
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
2600
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2601
+ try {
2602
+ _d = __read(utils.serializeRequestBody(req, "atsInterview", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2603
+ }
2604
+ catch (e) {
2605
+ if (e instanceof Error) {
2606
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2607
+ }
2608
+ }
2609
+ client = this.sdkConfiguration.defaultClient;
2610
+ if (!(security instanceof utils.SpeakeasyBase)) {
2611
+ security = new operations.UpdateAtsInterviewSecurity(security);
2612
+ }
2613
+ properties = utils.parseSecurityProperties(security);
2614
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2615
+ headers["Accept"] = "application/json";
2616
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2617
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2618
+ case 1:
2619
+ httpRes = _e.sent();
2620
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2621
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2622
+ throw new Error("status code not found in response: ".concat(httpRes));
2623
+ }
2624
+ res = new operations.UpdateAtsInterviewResponse({
2625
+ statusCode: httpRes.status,
2626
+ contentType: responseContentType,
2627
+ rawResponse: httpRes,
2628
+ });
2629
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2630
+ switch (true) {
2631
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2632
+ if (utils.matchContentType(responseContentType, "application/json")) {
2633
+ res.atsInterview = utils.objectToClass(JSON.parse(decodedRes), shared.AtsInterview);
2634
+ }
2635
+ else {
2636
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2637
+ }
2638
+ break;
2639
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2640
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2641
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2642
+ }
2643
+ return [2 /*return*/, res];
2644
+ }
2645
+ });
2646
+ });
2647
+ };
2648
+ /**
2649
+ * Update a job
2650
+ */
2651
+ Ats.prototype.updateAtsJob = function (req, security, config) {
2652
+ var _a, _b;
2653
+ return __awaiter(this, void 0, void 0, function () {
2654
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2655
+ var _d;
2656
+ return __generator(this, function (_e) {
2657
+ switch (_e.label) {
2658
+ case 0:
2659
+ if (!(req instanceof utils.SpeakeasyBase)) {
2660
+ req = new operations.UpdateAtsJobRequest(req);
2661
+ }
2662
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2663
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
2664
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2665
+ try {
2666
+ _d = __read(utils.serializeRequestBody(req, "atsJob", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2667
+ }
2668
+ catch (e) {
2669
+ if (e instanceof Error) {
2670
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2671
+ }
2672
+ }
2673
+ client = this.sdkConfiguration.defaultClient;
2674
+ if (!(security instanceof utils.SpeakeasyBase)) {
2675
+ security = new operations.UpdateAtsJobSecurity(security);
2676
+ }
2677
+ properties = utils.parseSecurityProperties(security);
2678
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2679
+ headers["Accept"] = "application/json";
2680
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2681
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2682
+ case 1:
2683
+ httpRes = _e.sent();
2684
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2685
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2686
+ throw new Error("status code not found in response: ".concat(httpRes));
2687
+ }
2688
+ res = new operations.UpdateAtsJobResponse({
2689
+ statusCode: httpRes.status,
2690
+ contentType: responseContentType,
2691
+ rawResponse: httpRes,
2692
+ });
2693
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2694
+ switch (true) {
2695
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2696
+ if (utils.matchContentType(responseContentType, "application/json")) {
2697
+ res.atsJob = utils.objectToClass(JSON.parse(decodedRes), shared.AtsJob);
2698
+ }
2699
+ else {
2700
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2701
+ }
2702
+ break;
2703
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2704
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2705
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2706
+ }
2707
+ return [2 /*return*/, res];
2708
+ }
2709
+ });
2710
+ });
2711
+ };
2712
+ /**
2713
+ * Update a scorecard
2714
+ */
2715
+ Ats.prototype.updateAtsScorecard = function (req, security, config) {
2716
+ var _a, _b;
2717
+ return __awaiter(this, void 0, void 0, function () {
2718
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2719
+ var _d;
2720
+ return __generator(this, function (_e) {
2721
+ switch (_e.label) {
2722
+ case 0:
2723
+ if (!(req instanceof utils.SpeakeasyBase)) {
2724
+ req = new operations.UpdateAtsScorecardRequest(req);
2725
+ }
2726
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2727
+ operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
2728
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
2729
+ try {
2730
+ _d = __read(utils.serializeRequestBody(req, "atsScorecard", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
2731
+ }
2732
+ catch (e) {
2733
+ if (e instanceof Error) {
2734
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
2735
+ }
2736
+ }
2737
+ client = this.sdkConfiguration.defaultClient;
2738
+ if (!(security instanceof utils.SpeakeasyBase)) {
2739
+ security = new operations.UpdateAtsScorecardSecurity(security);
2740
+ }
2741
+ properties = utils.parseSecurityProperties(security);
2742
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2743
+ headers["Accept"] = "application/json";
2744
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
2745
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2746
+ case 1:
2747
+ httpRes = _e.sent();
2748
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2749
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
2750
+ throw new Error("status code not found in response: ".concat(httpRes));
2751
+ }
2752
+ res = new operations.UpdateAtsScorecardResponse({
2753
+ statusCode: httpRes.status,
2754
+ contentType: responseContentType,
2755
+ rawResponse: httpRes,
2756
+ });
2757
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
2758
+ switch (true) {
2759
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
2760
+ if (utils.matchContentType(responseContentType, "application/json")) {
2761
+ res.atsScorecard = utils.objectToClass(JSON.parse(decodedRes), shared.AtsScorecard);
2762
+ }
2763
+ else {
2764
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
2765
+ }
2766
+ break;
2767
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
2768
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
2769
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
2770
+ }
2771
+ return [2 /*return*/, res];
2772
+ }
2773
+ });
2774
+ });
2775
+ };
2776
+ return Ats;
2777
+ }());
2778
+ exports.Ats = Ats;