ch-admin-api-client-typescript 4.9.3 → 4.9.4

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 (415) hide show
  1. package/package.json +1 -1
  2. package/src/.openapi-generator/FILES +414 -0
  3. package/src/.openapi-generator/VERSION +1 -0
  4. package/src/.openapi-generator-ignore +23 -0
  5. package/src/api/about-us-api.ts +624 -0
  6. package/src/api/accreditations-api.ts +473 -0
  7. package/src/api/app-version-api.ts +465 -0
  8. package/src/api/articles-api.ts +2383 -0
  9. package/src/api/bookings-api.ts +738 -0
  10. package/src/api/chadmins-api.ts +519 -0
  11. package/src/api/chat-users-api.ts +620 -0
  12. package/src/api/chmanagers-api.ts +519 -0
  13. package/src/api/communications-api.ts +252 -0
  14. package/src/api/consultations-api.ts +756 -0
  15. package/src/api/contributors-api.ts +1090 -0
  16. package/src/api/countries-api.ts +1123 -0
  17. package/src/api/dash-board-api.ts +133 -0
  18. package/src/api/deals-api.ts +1894 -0
  19. package/src/api/doctor-affiliations-api.ts +1136 -0
  20. package/src/api/doctors-api.ts +3534 -0
  21. package/src/api/email-marketings-api.ts +529 -0
  22. package/src/api/faq-categories-api.ts +624 -0
  23. package/src/api/faqs-api.ts +1419 -0
  24. package/src/api/group-channels-api.ts +238 -0
  25. package/src/api/header-navigations-api.ts +445 -0
  26. package/src/api/hospitals-api.ts +7513 -0
  27. package/src/api/hospitals-consultation-timetable-overrides-api.ts +437 -0
  28. package/src/api/hospitals-consultation-timetables-api.ts +574 -0
  29. package/src/api/images-api.ts +120 -0
  30. package/src/api/languages-api.ts +481 -0
  31. package/src/api/managers-api.ts +884 -0
  32. package/src/api/memberships-api.ts +372 -0
  33. package/src/api/notifications-api.ts +241 -0
  34. package/src/api/patients-api.ts +769 -0
  35. package/src/api/payments-api.ts +114 -0
  36. package/src/api/plans-api.ts +889 -0
  37. package/src/api/profiles-api.ts +489 -0
  38. package/src/api/search-api.ts +132 -0
  39. package/src/api/service-reviews-api.ts +1015 -0
  40. package/src/api/services-api.ts +460 -0
  41. package/src/api/services-categories-api.ts +461 -0
  42. package/src/api/specialties-api.ts +1347 -0
  43. package/src/api/specialty-types-api.ts +1347 -0
  44. package/src/api/survey-forms-api.ts +515 -0
  45. package/src/api/survey-results-api.ts +328 -0
  46. package/src/api/tags-api.ts +385 -0
  47. package/src/api/translation-api.ts +131 -0
  48. package/src/api.ts +60 -0
  49. package/src/base.ts +71 -0
  50. package/src/common.ts +148 -0
  51. package/src/configuration.ts +101 -0
  52. package/src/git_push.sh +57 -0
  53. package/src/index.ts +18 -0
  54. package/src/models/about-us-page-item-model.ts +63 -0
  55. package/src/models/about-us-page-model.ts +126 -0
  56. package/src/models/about-us-pages-model.ts +42 -0
  57. package/src/models/accreditation-item-model.ts +48 -0
  58. package/src/models/accreditation-model.ts +48 -0
  59. package/src/models/accreditations-model.ts +42 -0
  60. package/src/models/admin-message-model.ts +84 -0
  61. package/src/models/app-version-item-model.ts +51 -0
  62. package/src/models/app-version-model.ts +51 -0
  63. package/src/models/app-versions-model.ts +42 -0
  64. package/src/models/approve-booking-command.ts +36 -0
  65. package/src/models/approve-consultation-command.ts +36 -0
  66. package/src/models/article-contributor-item-model.ts +108 -0
  67. package/src/models/article-contributor-model.ts +135 -0
  68. package/src/models/article-contributors-model.ts +42 -0
  69. package/src/models/article-item-model.ts +150 -0
  70. package/src/models/article-model.ts +174 -0
  71. package/src/models/article-sources-model.ts +42 -0
  72. package/src/models/article-status.ts +32 -0
  73. package/src/models/article-tag-item-model.ts +42 -0
  74. package/src/models/article-tag-model.ts +42 -0
  75. package/src/models/article-tags-model.ts +42 -0
  76. package/src/models/articles-model.ts +42 -0
  77. package/src/models/auditable-entity-model.ts +72 -0
  78. package/src/models/auditable-entity.ts +72 -0
  79. package/src/models/batch-add-hospital-consultation-timetable-model.ts +45 -0
  80. package/src/models/batch-hospital-consultation-timetable-result-model.ts +45 -0
  81. package/src/models/batch-hospital-consultation-timetables-command.ts +48 -0
  82. package/src/models/batch-update-hospital-consultation-timetable-model.ts +51 -0
  83. package/src/models/booking-change-log-model.ts +51 -0
  84. package/src/models/booking-item-model.ts +258 -0
  85. package/src/models/booking-model.ts +267 -0
  86. package/src/models/booking-status.ts +36 -0
  87. package/src/models/bookings-model.ts +42 -0
  88. package/src/models/chadmin-item-model.ts +120 -0
  89. package/src/models/chadmin-model.ts +144 -0
  90. package/src/models/chadmins-model.ts +42 -0
  91. package/src/models/change-email-command.ts +30 -0
  92. package/src/models/chat-user-model.ts +78 -0
  93. package/src/models/chat-users-model.ts +39 -0
  94. package/src/models/check-notifications-command.ts +36 -0
  95. package/src/models/chmanager-item-model.ts +120 -0
  96. package/src/models/chmanager-model.ts +144 -0
  97. package/src/models/chmanagers-model.ts +42 -0
  98. package/src/models/communication-user-token-model.ts +48 -0
  99. package/src/models/confirm-email-command.ts +30 -0
  100. package/src/models/consultation-change-log-model.ts +51 -0
  101. package/src/models/consultation-item-model.ts +288 -0
  102. package/src/models/consultation-model.ts +297 -0
  103. package/src/models/consultation-status.ts +36 -0
  104. package/src/models/consultation-type.ts +32 -0
  105. package/src/models/consultations-model.ts +42 -0
  106. package/src/models/contribution-type.ts +32 -0
  107. package/src/models/contributor-item-model.ts +117 -0
  108. package/src/models/contributor-model.ts +135 -0
  109. package/src/models/contributor-sns-handles-model.ts +42 -0
  110. package/src/models/contributors-model.ts +42 -0
  111. package/src/models/countries-model.ts +42 -0
  112. package/src/models/country-item-model.ts +69 -0
  113. package/src/models/country-model.ts +102 -0
  114. package/src/models/create-about-us-page-command.ts +81 -0
  115. package/src/models/create-accreditation-command.ts +42 -0
  116. package/src/models/create-app-version-command.ts +51 -0
  117. package/src/models/create-article-command.ts +120 -0
  118. package/src/models/create-article-contributor-command.ts +51 -0
  119. package/src/models/create-article-source-command.ts +42 -0
  120. package/src/models/create-article-tag-command.ts +36 -0
  121. package/src/models/create-chadmin-command.ts +93 -0
  122. package/src/models/create-chat-user-command.ts +60 -0
  123. package/src/models/create-chmanager-command.ts +93 -0
  124. package/src/models/create-contributor-command.ts +66 -0
  125. package/src/models/create-contributor-sns-handle-command.ts +39 -0
  126. package/src/models/create-country-command.ts +63 -0
  127. package/src/models/create-deal-command.ts +81 -0
  128. package/src/models/create-deal-package-command.ts +63 -0
  129. package/src/models/create-deal-service-command.ts +42 -0
  130. package/src/models/create-doctor-affiliation-command.ts +123 -0
  131. package/src/models/create-doctor-certificate-command.ts +42 -0
  132. package/src/models/create-doctor-command.ts +105 -0
  133. package/src/models/create-doctor-education-command.ts +42 -0
  134. package/src/models/create-doctor-language-command.ts +42 -0
  135. package/src/models/create-doctor-portfolio-command.ts +60 -0
  136. package/src/models/create-doctor-specialty-command.ts +36 -0
  137. package/src/models/create-faq-category-command.ts +60 -0
  138. package/src/models/create-faq-command.ts +78 -0
  139. package/src/models/create-faq-tag-command.ts +36 -0
  140. package/src/models/create-hospital-accreditation-command.ts +30 -0
  141. package/src/models/create-hospital-command.ts +171 -0
  142. package/src/models/create-hospital-consultation-timetable-command.ts +45 -0
  143. package/src/models/create-hospital-equipment-command.ts +36 -0
  144. package/src/models/create-hospital-evaluation-command.ts +48 -0
  145. package/src/models/create-hospital-language-command.ts +42 -0
  146. package/src/models/create-hospital-service-command.ts +114 -0
  147. package/src/models/create-hospital-sns-handle-command.ts +39 -0
  148. package/src/models/create-hospital-specialty-command.ts +99 -0
  149. package/src/models/create-hospital-working-day-command.ts +48 -0
  150. package/src/models/create-landing-command.ts +81 -0
  151. package/src/models/create-language-command.ts +60 -0
  152. package/src/models/create-manager-affiliation-command.ts +30 -0
  153. package/src/models/create-manager-command.ts +99 -0
  154. package/src/models/create-media-command.ts +57 -0
  155. package/src/models/create-patient-command.ts +99 -0
  156. package/src/models/create-plan-command.ts +69 -0
  157. package/src/models/create-plan-hospital-command.ts +36 -0
  158. package/src/models/create-profile-command.ts +111 -0
  159. package/src/models/create-service-category-command.ts +42 -0
  160. package/src/models/create-service-review-command.ts +75 -0
  161. package/src/models/create-specialty-command.ts +87 -0
  162. package/src/models/create-specialty-type-command.ts +90 -0
  163. package/src/models/create-survey-form-command.ts +84 -0
  164. package/src/models/create-tag-command.ts +30 -0
  165. package/src/models/create-template-version-command.ts +42 -0
  166. package/src/models/dash-board-model.ts +96 -0
  167. package/src/models/day-of-week.ts +36 -0
  168. package/src/models/deal-item-model.ts +120 -0
  169. package/src/models/deal-item-simple-model.ts +54 -0
  170. package/src/models/deal-model.ts +144 -0
  171. package/src/models/deal-package-item-model.ts +108 -0
  172. package/src/models/deal-package-model.ts +120 -0
  173. package/src/models/deal-packages-model.ts +42 -0
  174. package/src/models/deal-service-item-model.ts +72 -0
  175. package/src/models/deal-service-model.ts +72 -0
  176. package/src/models/deal-services-model.ts +42 -0
  177. package/src/models/deals-model.ts +42 -0
  178. package/src/models/deals-simple-model.ts +42 -0
  179. package/src/models/delete-hospital-consultation-timetable-override-command.ts +51 -0
  180. package/src/models/doctor-affiliation-item-model.ts +132 -0
  181. package/src/models/doctor-affiliation-model.ts +177 -0
  182. package/src/models/doctor-affiliations-model.ts +42 -0
  183. package/src/models/doctor-certificate-item-model.ts +60 -0
  184. package/src/models/doctor-certificate-model.ts +60 -0
  185. package/src/models/doctor-certificates-model.ts +42 -0
  186. package/src/models/doctor-education-item-model.ts +72 -0
  187. package/src/models/doctor-education-model.ts +72 -0
  188. package/src/models/doctor-educations-model.ts +42 -0
  189. package/src/models/doctor-item-model.ts +120 -0
  190. package/src/models/doctor-language-item-model.ts +60 -0
  191. package/src/models/doctor-language-model.ts +60 -0
  192. package/src/models/doctor-languages-model.ts +42 -0
  193. package/src/models/doctor-model.ts +150 -0
  194. package/src/models/doctor-portfolio-item-model.ts +66 -0
  195. package/src/models/doctor-portfolio-model.ts +66 -0
  196. package/src/models/doctor-portfolios-model.ts +42 -0
  197. package/src/models/doctor-simple-item-model.ts +54 -0
  198. package/src/models/doctor-specialties-model.ts +42 -0
  199. package/src/models/doctor-specialty-model.ts +66 -0
  200. package/src/models/doctors-model.ts +42 -0
  201. package/src/models/doctors-simple-model.ts +42 -0
  202. package/src/models/duration.ts +34 -0
  203. package/src/models/faq-categories-model.ts +42 -0
  204. package/src/models/faq-category-item-model.ts +99 -0
  205. package/src/models/faq-category-model.ts +117 -0
  206. package/src/models/faq-item-model.ts +129 -0
  207. package/src/models/faq-model.ts +153 -0
  208. package/src/models/faq-tag-item-model.ts +42 -0
  209. package/src/models/faq-tag-model.ts +42 -0
  210. package/src/models/faq-tags-model.ts +42 -0
  211. package/src/models/faqs-model.ts +42 -0
  212. package/src/models/gender.ts +34 -0
  213. package/src/models/group-channel-list.ts +63 -0
  214. package/src/models/group-channel.ts +174 -0
  215. package/src/models/header-navigation-item-model.ts +66 -0
  216. package/src/models/hospital-accreditation-item-model.ts +48 -0
  217. package/src/models/hospital-accreditation-model.ts +48 -0
  218. package/src/models/hospital-accreditations-model.ts +42 -0
  219. package/src/models/hospital-consultation-option-model.ts +42 -0
  220. package/src/models/hospital-consultation-timetable-item-model.ts +51 -0
  221. package/src/models/hospital-consultation-timetable-model.ts +51 -0
  222. package/src/models/hospital-consultation-timetable-override-item-model.ts +63 -0
  223. package/src/models/hospital-consultation-timetable-override-model.ts +63 -0
  224. package/src/models/hospital-consultation-timetable-overrides-model.ts +42 -0
  225. package/src/models/hospital-consultation-timetables-model.ts +42 -0
  226. package/src/models/hospital-equipment-item-model.ts +60 -0
  227. package/src/models/hospital-equipment-model.ts +60 -0
  228. package/src/models/hospital-equipments-model.ts +42 -0
  229. package/src/models/hospital-evaluation-item-model.ts +54 -0
  230. package/src/models/hospital-evaluation-model.ts +54 -0
  231. package/src/models/hospital-evaluations-model.ts +42 -0
  232. package/src/models/hospital-item-model.ts +147 -0
  233. package/src/models/hospital-language-item-model.ts +60 -0
  234. package/src/models/hospital-languages-model.ts +42 -0
  235. package/src/models/hospital-model.ts +222 -0
  236. package/src/models/hospital-service-item-model.ts +156 -0
  237. package/src/models/hospital-service-model.ts +219 -0
  238. package/src/models/hospital-services-model.ts +42 -0
  239. package/src/models/hospital-simple-item-model.ts +54 -0
  240. package/src/models/hospital-sns-handles-model.ts +42 -0
  241. package/src/models/hospital-specialties-model.ts +42 -0
  242. package/src/models/hospital-specialties-simple-model.ts +42 -0
  243. package/src/models/hospital-specialty-item-model.ts +132 -0
  244. package/src/models/hospital-specialty-model.ts +192 -0
  245. package/src/models/hospital-specialty-simple-item-model.ts +60 -0
  246. package/src/models/hospitals-model.ts +42 -0
  247. package/src/models/hospitals-simple-model.ts +42 -0
  248. package/src/models/http-status-code.ts +90 -0
  249. package/src/models/index.ts +361 -0
  250. package/src/models/invite-send-bird-group-channel-command.ts +30 -0
  251. package/src/models/jtoken.ts +27 -0
  252. package/src/models/landing-item-model.ts +81 -0
  253. package/src/models/landing-model.ts +141 -0
  254. package/src/models/landings-model.ts +42 -0
  255. package/src/models/language-item-model.ts +60 -0
  256. package/src/models/language-model.ts +60 -0
  257. package/src/models/languages-model.ts +42 -0
  258. package/src/models/leaved-group-channels-model.ts +42 -0
  259. package/src/models/localized-url-model.ts +36 -0
  260. package/src/models/location-model.ts +72 -0
  261. package/src/models/manager-affiliation-item-model.ts +48 -0
  262. package/src/models/manager-affiliation-model.ts +48 -0
  263. package/src/models/manager-affiliations-model.ts +42 -0
  264. package/src/models/manager-item-model.ts +126 -0
  265. package/src/models/manager-model.ts +150 -0
  266. package/src/models/managers-model.ts +42 -0
  267. package/src/models/marketing-type.ts +32 -0
  268. package/src/models/media-model.ts +63 -0
  269. package/src/models/media-type.ts +36 -0
  270. package/src/models/medias-model.ts +42 -0
  271. package/src/models/member-model.ts +69 -0
  272. package/src/models/members-model.ts +42 -0
  273. package/src/models/membership-item-model.ts +75 -0
  274. package/src/models/membership-model.ts +75 -0
  275. package/src/models/memberships-model.ts +42 -0
  276. package/src/models/mention-type.ts +31 -0
  277. package/src/models/message-type.ts +32 -0
  278. package/src/models/metadata.ts +42 -0
  279. package/src/models/model-file.ts +72 -0
  280. package/src/models/notification-code.ts +48 -0
  281. package/src/models/notification-model.ts +93 -0
  282. package/src/models/notifications-model.ts +48 -0
  283. package/src/models/paged-list-meta-data.ts +84 -0
  284. package/src/models/patient-item-model.ts +129 -0
  285. package/src/models/patient-model.ts +159 -0
  286. package/src/models/patients-model.ts +42 -0
  287. package/src/models/plan-hospital-item-model.ts +54 -0
  288. package/src/models/plan-hospital-model.ts +54 -0
  289. package/src/models/plan-hospitals-model.ts +42 -0
  290. package/src/models/plan-item-model.ts +75 -0
  291. package/src/models/plan-model.ts +75 -0
  292. package/src/models/plans-model.ts +42 -0
  293. package/src/models/platform.ts +32 -0
  294. package/src/models/problem-details.ts +56 -0
  295. package/src/models/procedure.ts +31 -0
  296. package/src/models/recurring-interval.ts +33 -0
  297. package/src/models/refund-policy.ts +32 -0
  298. package/src/models/reject-booking-command.ts +39 -0
  299. package/src/models/reject-consultation-command.ts +39 -0
  300. package/src/models/reject-reason.ts +33 -0
  301. package/src/models/review-type.ts +32 -0
  302. package/src/models/save-header-navigation-item-model.ts +54 -0
  303. package/src/models/save-header-navigations-command.ts +33 -0
  304. package/src/models/save-hospital-consultation-timetable-override-model.ts +48 -0
  305. package/src/models/save-hospital-consultation-timetable-overrides-command.ts +33 -0
  306. package/src/models/search-index-type.ts +41 -0
  307. package/src/models/send-bird-group-channel-member.ts +87 -0
  308. package/src/models/send-bird-group-channel-model.ts +153 -0
  309. package/src/models/send-bird-group-channelr-operator.ts +42 -0
  310. package/src/models/send-template-version-command.ts +30 -0
  311. package/src/models/sendbird-response.ts +66 -0
  312. package/src/models/service-categories-model.ts +42 -0
  313. package/src/models/service-category-item-model.ts +60 -0
  314. package/src/models/service-category-mapping-model.ts +36 -0
  315. package/src/models/service-category-model.ts +60 -0
  316. package/src/models/service-review-item-model.ts +135 -0
  317. package/src/models/service-review-model.ts +153 -0
  318. package/src/models/service-reviews-model.ts +42 -0
  319. package/src/models/session-token.ts +36 -0
  320. package/src/models/sns-handle-model.ts +45 -0
  321. package/src/models/sns-type.ts +35 -0
  322. package/src/models/sorting-order.ts +31 -0
  323. package/src/models/source-model.ts +48 -0
  324. package/src/models/specialties-model.ts +42 -0
  325. package/src/models/specialties-simple-model.ts +42 -0
  326. package/src/models/specialty-item-model.ts +117 -0
  327. package/src/models/specialty-item-simple-model.ts +60 -0
  328. package/src/models/specialty-model.ts +141 -0
  329. package/src/models/specialty-type-item-model.ts +117 -0
  330. package/src/models/specialty-type-model.ts +135 -0
  331. package/src/models/specialty-type-simple-item-model.ts +54 -0
  332. package/src/models/specialty-types-model.ts +42 -0
  333. package/src/models/specialty-types-simple-model.ts +42 -0
  334. package/src/models/string-string-ienumerable-key-value-pair.ts +36 -0
  335. package/src/models/subscription-model.ts +42 -0
  336. package/src/models/survey-form-element-input-model.ts +90 -0
  337. package/src/models/survey-form-element-model.ts +90 -0
  338. package/src/models/survey-form-element-option-input-model.ts +60 -0
  339. package/src/models/survey-form-element-option-model.ts +66 -0
  340. package/src/models/survey-form-element-types.ts +41 -0
  341. package/src/models/survey-form-item-model.ts +72 -0
  342. package/src/models/survey-form-model.ts +99 -0
  343. package/src/models/survey-form-status.ts +31 -0
  344. package/src/models/survey-forms-model.ts +42 -0
  345. package/src/models/survey-result-element-model.ts +45 -0
  346. package/src/models/survey-result-element-value-model.ts +42 -0
  347. package/src/models/survey-result-item-model.ts +81 -0
  348. package/src/models/survey-result-model.ts +108 -0
  349. package/src/models/survey-result-user-model.ts +42 -0
  350. package/src/models/survey-results-model.ts +42 -0
  351. package/src/models/tag-item-model.ts +48 -0
  352. package/src/models/tag-model.ts +48 -0
  353. package/src/models/tags-model.ts +42 -0
  354. package/src/models/template-version-item-model.ts +72 -0
  355. package/src/models/template-version-model.ts +72 -0
  356. package/src/models/template-versions-model.ts +42 -0
  357. package/src/models/text-message.ts +141 -0
  358. package/src/models/translate-all-options.ts +32 -0
  359. package/src/models/translate-command.ts +48 -0
  360. package/src/models/translate-doctor-affiliation-command.ts +45 -0
  361. package/src/models/translate-hospital-command.ts +45 -0
  362. package/src/models/update-about-us-page-command.ts +105 -0
  363. package/src/models/update-accreditation-command.ts +42 -0
  364. package/src/models/update-app-version-command.ts +42 -0
  365. package/src/models/update-article-command.ts +144 -0
  366. package/src/models/update-article-contributor-command.ts +45 -0
  367. package/src/models/update-article-source-command.ts +42 -0
  368. package/src/models/update-chadmin-command.ts +93 -0
  369. package/src/models/update-chat-user-command.ts +48 -0
  370. package/src/models/update-chmanager-command.ts +93 -0
  371. package/src/models/update-contributor-command.ts +84 -0
  372. package/src/models/update-contributor-sns-handle-command.ts +39 -0
  373. package/src/models/update-country-command.ts +81 -0
  374. package/src/models/update-deal-command.ts +87 -0
  375. package/src/models/update-deal-package-command.ts +63 -0
  376. package/src/models/update-deal-service-command.ts +30 -0
  377. package/src/models/update-doctor-affiliation-command.ts +123 -0
  378. package/src/models/update-doctor-certificate-command.ts +42 -0
  379. package/src/models/update-doctor-command.ts +93 -0
  380. package/src/models/update-doctor-education-command.ts +42 -0
  381. package/src/models/update-doctor-language-command.ts +36 -0
  382. package/src/models/update-doctor-portfolio-command.ts +60 -0
  383. package/src/models/update-doctor-specialty-command.ts +30 -0
  384. package/src/models/update-faq-category-command.ts +66 -0
  385. package/src/models/update-faq-command.ts +96 -0
  386. package/src/models/update-hospital-command.ts +183 -0
  387. package/src/models/update-hospital-consultation-timetable-command.ts +45 -0
  388. package/src/models/update-hospital-equipment-command.ts +54 -0
  389. package/src/models/update-hospital-language-command.ts +36 -0
  390. package/src/models/update-hospital-service-command.ts +126 -0
  391. package/src/models/update-hospital-sns-handle-command.ts +39 -0
  392. package/src/models/update-hospital-specialty-command.ts +105 -0
  393. package/src/models/update-hospital-working-day-command.ts +48 -0
  394. package/src/models/update-landing-command.ts +93 -0
  395. package/src/models/update-language-command.ts +54 -0
  396. package/src/models/update-manager-command.ts +99 -0
  397. package/src/models/update-media-command.ts +57 -0
  398. package/src/models/update-patient-command.ts +93 -0
  399. package/src/models/update-plan-command.ts +63 -0
  400. package/src/models/update-plan-hospital-command.ts +30 -0
  401. package/src/models/update-profile-command.ts +99 -0
  402. package/src/models/update-service-category-command.ts +42 -0
  403. package/src/models/update-service-review-command.ts +72 -0
  404. package/src/models/update-specialty-command.ts +105 -0
  405. package/src/models/update-specialty-type-command.ts +108 -0
  406. package/src/models/update-survey-form-command.ts +78 -0
  407. package/src/models/update-template-version-command.ts +42 -0
  408. package/src/models/user-language-model.ts +60 -0
  409. package/src/models/user-location-model.ts +81 -0
  410. package/src/models/user-location-type.ts +31 -0
  411. package/src/models/user-model.ts +144 -0
  412. package/src/models/user.ts +123 -0
  413. package/src/models/working-day-item-model.ts +54 -0
  414. package/src/models/working-day-model.ts +54 -0
  415. package/src/models/working-days-model.ts +42 -0
@@ -0,0 +1,3534 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateDoctorCertificateCommand } from '../models';
25
+ // @ts-ignore
26
+ import { CreateDoctorCommand } from '../models';
27
+ // @ts-ignore
28
+ import { CreateDoctorEducationCommand } from '../models';
29
+ // @ts-ignore
30
+ import { CreateDoctorLanguageCommand } from '../models';
31
+ // @ts-ignore
32
+ import { CreateDoctorPortfolioCommand } from '../models';
33
+ // @ts-ignore
34
+ import { CreateDoctorSpecialtyCommand } from '../models';
35
+ // @ts-ignore
36
+ import { CreateMediaCommand } from '../models';
37
+ // @ts-ignore
38
+ import { DoctorCertificateModel } from '../models';
39
+ // @ts-ignore
40
+ import { DoctorCertificatesModel } from '../models';
41
+ // @ts-ignore
42
+ import { DoctorEducationModel } from '../models';
43
+ // @ts-ignore
44
+ import { DoctorEducationsModel } from '../models';
45
+ // @ts-ignore
46
+ import { DoctorLanguageModel } from '../models';
47
+ // @ts-ignore
48
+ import { DoctorLanguagesModel } from '../models';
49
+ // @ts-ignore
50
+ import { DoctorModel } from '../models';
51
+ // @ts-ignore
52
+ import { DoctorPortfolioModel } from '../models';
53
+ // @ts-ignore
54
+ import { DoctorPortfoliosModel } from '../models';
55
+ // @ts-ignore
56
+ import { DoctorSpecialtiesModel } from '../models';
57
+ // @ts-ignore
58
+ import { DoctorSpecialtyModel } from '../models';
59
+ // @ts-ignore
60
+ import { DoctorsModel } from '../models';
61
+ // @ts-ignore
62
+ import { DoctorsSimpleModel } from '../models';
63
+ // @ts-ignore
64
+ import { Gender } from '../models';
65
+ // @ts-ignore
66
+ import { MediaModel } from '../models';
67
+ // @ts-ignore
68
+ import { MediaType } from '../models';
69
+ // @ts-ignore
70
+ import { MediasModel } from '../models';
71
+ // @ts-ignore
72
+ import { ProblemDetails } from '../models';
73
+ // @ts-ignore
74
+ import { UpdateDoctorCertificateCommand } from '../models';
75
+ // @ts-ignore
76
+ import { UpdateDoctorCommand } from '../models';
77
+ // @ts-ignore
78
+ import { UpdateDoctorEducationCommand } from '../models';
79
+ // @ts-ignore
80
+ import { UpdateDoctorLanguageCommand } from '../models';
81
+ // @ts-ignore
82
+ import { UpdateDoctorPortfolioCommand } from '../models';
83
+ // @ts-ignore
84
+ import { UpdateDoctorSpecialtyCommand } from '../models';
85
+ // @ts-ignore
86
+ import { UpdateMediaCommand } from '../models';
87
+ /**
88
+ * DoctorsApi - axios parameter creator
89
+ * @export
90
+ */
91
+ export const DoctorsApiAxiosParamCreator = function (configuration?: Configuration) {
92
+ return {
93
+ /**
94
+ *
95
+ * @summary Delete DoctorCertificate.
96
+ * @param {string} doctorId
97
+ * @param {string} certificateId
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ apiV1DoctorsDoctorIdCertificatesCertificateIdDelete: async (doctorId: string, certificateId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
102
+ // verify required parameter 'doctorId' is not null or undefined
103
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdDelete', 'doctorId', doctorId)
104
+ // verify required parameter 'certificateId' is not null or undefined
105
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdDelete', 'certificateId', certificateId)
106
+ const localVarPath = `/api/v1/doctors/{doctorId}/certificates/{certificateId}`
107
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
108
+ .replace(`{${"certificateId"}}`, encodeURIComponent(String(certificateId)));
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+
116
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
117
+ const localVarHeaderParameter = {} as any;
118
+ const localVarQueryParameter = {} as any;
119
+
120
+ // authentication oauth2 required
121
+ // oauth required
122
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
123
+
124
+
125
+
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ *
137
+ * @summary Get DoctorCertificate.
138
+ * @param {string} doctorId
139
+ * @param {string} certificateId
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ apiV1DoctorsDoctorIdCertificatesCertificateIdGet: async (doctorId: string, certificateId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'doctorId' is not null or undefined
145
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdGet', 'doctorId', doctorId)
146
+ // verify required parameter 'certificateId' is not null or undefined
147
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdGet', 'certificateId', certificateId)
148
+ const localVarPath = `/api/v1/doctors/{doctorId}/certificates/{certificateId}`
149
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
150
+ .replace(`{${"certificateId"}}`, encodeURIComponent(String(certificateId)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication oauth2 required
163
+ // oauth required
164
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
165
+
166
+
167
+
168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
171
+
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ },
177
+ /**
178
+ *
179
+ * @summary Update DoctorCertificate.
180
+ * @param {string} doctorId
181
+ * @param {string} certificateId
182
+ * @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ apiV1DoctorsDoctorIdCertificatesCertificateIdPut: async (doctorId: string, certificateId: string, updateDoctorCertificateCommand?: UpdateDoctorCertificateCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
187
+ // verify required parameter 'doctorId' is not null or undefined
188
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdPut', 'doctorId', doctorId)
189
+ // verify required parameter 'certificateId' is not null or undefined
190
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesCertificateIdPut', 'certificateId', certificateId)
191
+ const localVarPath = `/api/v1/doctors/{doctorId}/certificates/{certificateId}`
192
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
193
+ .replace(`{${"certificateId"}}`, encodeURIComponent(String(certificateId)));
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ }
200
+
201
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication oauth2 required
206
+ // oauth required
207
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
208
+
209
+
210
+
211
+ localVarHeaderParameter['Content-Type'] = 'application/json';
212
+
213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
216
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorCertificateCommand, localVarRequestOptions, configuration)
217
+
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ },
223
+ /**
224
+ *
225
+ * @summary Delete DoctorCertificate.
226
+ * @param {string} doctorId
227
+ * @param {string} [doctorName]
228
+ * @param {string} [certificateId]
229
+ * @param {string} [certificate]
230
+ * @param {Date} [activeFrom]
231
+ * @param {Date} [activeTo]
232
+ * @param {number} [page]
233
+ * @param {number} [limit]
234
+ * @param {Date} [lastRetrieved]
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ apiV1DoctorsDoctorIdCertificatesGet: async (doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
239
+ // verify required parameter 'doctorId' is not null or undefined
240
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesGet', 'doctorId', doctorId)
241
+ const localVarPath = `/api/v1/doctors/{doctorId}/certificates`
242
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
245
+ let baseOptions;
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+
250
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
251
+ const localVarHeaderParameter = {} as any;
252
+ const localVarQueryParameter = {} as any;
253
+
254
+ // authentication oauth2 required
255
+ // oauth required
256
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
257
+
258
+ if (doctorName !== undefined) {
259
+ localVarQueryParameter['DoctorName'] = doctorName;
260
+ }
261
+
262
+ if (certificateId !== undefined) {
263
+ localVarQueryParameter['CertificateId'] = certificateId;
264
+ }
265
+
266
+ if (certificate !== undefined) {
267
+ localVarQueryParameter['Certificate'] = certificate;
268
+ }
269
+
270
+ if (activeFrom !== undefined) {
271
+ localVarQueryParameter['ActiveFrom'] = (activeFrom as any instanceof Date) ?
272
+ (activeFrom as any).toISOString() :
273
+ activeFrom;
274
+ }
275
+
276
+ if (activeTo !== undefined) {
277
+ localVarQueryParameter['ActiveTo'] = (activeTo as any instanceof Date) ?
278
+ (activeTo as any).toISOString() :
279
+ activeTo;
280
+ }
281
+
282
+ if (page !== undefined) {
283
+ localVarQueryParameter['page'] = page;
284
+ }
285
+
286
+ if (limit !== undefined) {
287
+ localVarQueryParameter['limit'] = limit;
288
+ }
289
+
290
+ if (lastRetrieved !== undefined) {
291
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
292
+ (lastRetrieved as any).toISOString() :
293
+ lastRetrieved;
294
+ }
295
+
296
+
297
+
298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
301
+
302
+ return {
303
+ url: toPathString(localVarUrlObj),
304
+ options: localVarRequestOptions,
305
+ };
306
+ },
307
+ /**
308
+ *
309
+ * @summary Create DoctorCertificate.
310
+ * @param {string} doctorId
311
+ * @param {CreateDoctorCertificateCommand} [createDoctorCertificateCommand]
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ apiV1DoctorsDoctorIdCertificatesPost: async (doctorId: string, createDoctorCertificateCommand?: CreateDoctorCertificateCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
316
+ // verify required parameter 'doctorId' is not null or undefined
317
+ assertParamExists('apiV1DoctorsDoctorIdCertificatesPost', 'doctorId', doctorId)
318
+ const localVarPath = `/api/v1/doctors/{doctorId}/certificates`
319
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
322
+ let baseOptions;
323
+ if (configuration) {
324
+ baseOptions = configuration.baseOptions;
325
+ }
326
+
327
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
328
+ const localVarHeaderParameter = {} as any;
329
+ const localVarQueryParameter = {} as any;
330
+
331
+ // authentication oauth2 required
332
+ // oauth required
333
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
334
+
335
+
336
+
337
+ localVarHeaderParameter['Content-Type'] = 'application/json';
338
+
339
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
342
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorCertificateCommand, localVarRequestOptions, configuration)
343
+
344
+ return {
345
+ url: toPathString(localVarUrlObj),
346
+ options: localVarRequestOptions,
347
+ };
348
+ },
349
+ /**
350
+ *
351
+ * @summary Delete Doctor.
352
+ * @param {string} doctorId
353
+ * @param {boolean} [isPermanent]
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ apiV1DoctorsDoctorIdDelete: async (doctorId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
358
+ // verify required parameter 'doctorId' is not null or undefined
359
+ assertParamExists('apiV1DoctorsDoctorIdDelete', 'doctorId', doctorId)
360
+ const localVarPath = `/api/v1/doctors/{doctorId}`
361
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
363
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
364
+ let baseOptions;
365
+ if (configuration) {
366
+ baseOptions = configuration.baseOptions;
367
+ }
368
+
369
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
370
+ const localVarHeaderParameter = {} as any;
371
+ const localVarQueryParameter = {} as any;
372
+
373
+ // authentication oauth2 required
374
+ // oauth required
375
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
376
+
377
+ if (isPermanent !== undefined) {
378
+ localVarQueryParameter['isPermanent'] = isPermanent;
379
+ }
380
+
381
+
382
+
383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
386
+
387
+ return {
388
+ url: toPathString(localVarUrlObj),
389
+ options: localVarRequestOptions,
390
+ };
391
+ },
392
+ /**
393
+ *
394
+ * @summary Delete DoctorEducation
395
+ * @param {string} doctorId
396
+ * @param {string} educationId
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ apiV1DoctorsDoctorIdEducationsEducationIdDelete: async (doctorId: string, educationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
401
+ // verify required parameter 'doctorId' is not null or undefined
402
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdDelete', 'doctorId', doctorId)
403
+ // verify required parameter 'educationId' is not null or undefined
404
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdDelete', 'educationId', educationId)
405
+ const localVarPath = `/api/v1/doctors/{doctorId}/educations/{educationId}`
406
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
407
+ .replace(`{${"educationId"}}`, encodeURIComponent(String(educationId)));
408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
410
+ let baseOptions;
411
+ if (configuration) {
412
+ baseOptions = configuration.baseOptions;
413
+ }
414
+
415
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
416
+ const localVarHeaderParameter = {} as any;
417
+ const localVarQueryParameter = {} as any;
418
+
419
+ // authentication oauth2 required
420
+ // oauth required
421
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
422
+
423
+
424
+
425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
428
+
429
+ return {
430
+ url: toPathString(localVarUrlObj),
431
+ options: localVarRequestOptions,
432
+ };
433
+ },
434
+ /**
435
+ *
436
+ * @summary Get DoctorEducation.
437
+ * @param {string} doctorId
438
+ * @param {string} educationId
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ apiV1DoctorsDoctorIdEducationsEducationIdGet: async (doctorId: string, educationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
443
+ // verify required parameter 'doctorId' is not null or undefined
444
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdGet', 'doctorId', doctorId)
445
+ // verify required parameter 'educationId' is not null or undefined
446
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdGet', 'educationId', educationId)
447
+ const localVarPath = `/api/v1/doctors/{doctorId}/educations/{educationId}`
448
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
449
+ .replace(`{${"educationId"}}`, encodeURIComponent(String(educationId)));
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+
457
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
458
+ const localVarHeaderParameter = {} as any;
459
+ const localVarQueryParameter = {} as any;
460
+
461
+ // authentication oauth2 required
462
+ // oauth required
463
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
464
+
465
+
466
+
467
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
469
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
470
+
471
+ return {
472
+ url: toPathString(localVarUrlObj),
473
+ options: localVarRequestOptions,
474
+ };
475
+ },
476
+ /**
477
+ *
478
+ * @summary Update DoctorEducation.
479
+ * @param {string} doctorId
480
+ * @param {string} educationId
481
+ * @param {UpdateDoctorEducationCommand} [updateDoctorEducationCommand]
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ apiV1DoctorsDoctorIdEducationsEducationIdPut: async (doctorId: string, educationId: string, updateDoctorEducationCommand?: UpdateDoctorEducationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
486
+ // verify required parameter 'doctorId' is not null or undefined
487
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdPut', 'doctorId', doctorId)
488
+ // verify required parameter 'educationId' is not null or undefined
489
+ assertParamExists('apiV1DoctorsDoctorIdEducationsEducationIdPut', 'educationId', educationId)
490
+ const localVarPath = `/api/v1/doctors/{doctorId}/educations/{educationId}`
491
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
492
+ .replace(`{${"educationId"}}`, encodeURIComponent(String(educationId)));
493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
495
+ let baseOptions;
496
+ if (configuration) {
497
+ baseOptions = configuration.baseOptions;
498
+ }
499
+
500
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
501
+ const localVarHeaderParameter = {} as any;
502
+ const localVarQueryParameter = {} as any;
503
+
504
+ // authentication oauth2 required
505
+ // oauth required
506
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
507
+
508
+
509
+
510
+ localVarHeaderParameter['Content-Type'] = 'application/json';
511
+
512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
514
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
515
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorEducationCommand, localVarRequestOptions, configuration)
516
+
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions,
520
+ };
521
+ },
522
+ /**
523
+ *
524
+ * @summary Get all DoctorEducations.
525
+ * @param {string} doctorId
526
+ * @param {string} [doctorName]
527
+ * @param {string} [educationId]
528
+ * @param {string} [institution]
529
+ * @param {string} [qualification]
530
+ * @param {Date} [graduationDate]
531
+ * @param {number} [page]
532
+ * @param {number} [limit]
533
+ * @param {Date} [lastRetrieved]
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ apiV1DoctorsDoctorIdEducationsGet: async (doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
538
+ // verify required parameter 'doctorId' is not null or undefined
539
+ assertParamExists('apiV1DoctorsDoctorIdEducationsGet', 'doctorId', doctorId)
540
+ const localVarPath = `/api/v1/doctors/{doctorId}/educations`
541
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
544
+ let baseOptions;
545
+ if (configuration) {
546
+ baseOptions = configuration.baseOptions;
547
+ }
548
+
549
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
550
+ const localVarHeaderParameter = {} as any;
551
+ const localVarQueryParameter = {} as any;
552
+
553
+ // authentication oauth2 required
554
+ // oauth required
555
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
556
+
557
+ if (doctorName !== undefined) {
558
+ localVarQueryParameter['DoctorName'] = doctorName;
559
+ }
560
+
561
+ if (educationId !== undefined) {
562
+ localVarQueryParameter['EducationId'] = educationId;
563
+ }
564
+
565
+ if (institution !== undefined) {
566
+ localVarQueryParameter['Institution'] = institution;
567
+ }
568
+
569
+ if (qualification !== undefined) {
570
+ localVarQueryParameter['Qualification'] = qualification;
571
+ }
572
+
573
+ if (graduationDate !== undefined) {
574
+ localVarQueryParameter['GraduationDate'] = (graduationDate as any instanceof Date) ?
575
+ (graduationDate as any).toISOString() :
576
+ graduationDate;
577
+ }
578
+
579
+ if (page !== undefined) {
580
+ localVarQueryParameter['page'] = page;
581
+ }
582
+
583
+ if (limit !== undefined) {
584
+ localVarQueryParameter['limit'] = limit;
585
+ }
586
+
587
+ if (lastRetrieved !== undefined) {
588
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
589
+ (lastRetrieved as any).toISOString() :
590
+ lastRetrieved;
591
+ }
592
+
593
+
594
+
595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
597
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
598
+
599
+ return {
600
+ url: toPathString(localVarUrlObj),
601
+ options: localVarRequestOptions,
602
+ };
603
+ },
604
+ /**
605
+ *
606
+ * @summary Create DoctorEducation.
607
+ * @param {string} doctorId
608
+ * @param {CreateDoctorEducationCommand} [createDoctorEducationCommand]
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ apiV1DoctorsDoctorIdEducationsPost: async (doctorId: string, createDoctorEducationCommand?: CreateDoctorEducationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
613
+ // verify required parameter 'doctorId' is not null or undefined
614
+ assertParamExists('apiV1DoctorsDoctorIdEducationsPost', 'doctorId', doctorId)
615
+ const localVarPath = `/api/v1/doctors/{doctorId}/educations`
616
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
619
+ let baseOptions;
620
+ if (configuration) {
621
+ baseOptions = configuration.baseOptions;
622
+ }
623
+
624
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
625
+ const localVarHeaderParameter = {} as any;
626
+ const localVarQueryParameter = {} as any;
627
+
628
+ // authentication oauth2 required
629
+ // oauth required
630
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
631
+
632
+
633
+
634
+ localVarHeaderParameter['Content-Type'] = 'application/json';
635
+
636
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
638
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
639
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorEducationCommand, localVarRequestOptions, configuration)
640
+
641
+ return {
642
+ url: toPathString(localVarUrlObj),
643
+ options: localVarRequestOptions,
644
+ };
645
+ },
646
+ /**
647
+ *
648
+ * @summary
649
+ * @param {string} doctorId
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ apiV1DoctorsDoctorIdGet: async (doctorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
654
+ // verify required parameter 'doctorId' is not null or undefined
655
+ assertParamExists('apiV1DoctorsDoctorIdGet', 'doctorId', doctorId)
656
+ const localVarPath = `/api/v1/doctors/{doctorId}`
657
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
658
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
659
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
660
+ let baseOptions;
661
+ if (configuration) {
662
+ baseOptions = configuration.baseOptions;
663
+ }
664
+
665
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
666
+ const localVarHeaderParameter = {} as any;
667
+ const localVarQueryParameter = {} as any;
668
+
669
+ // authentication oauth2 required
670
+ // oauth required
671
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
672
+
673
+
674
+
675
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
676
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
677
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
678
+
679
+ return {
680
+ url: toPathString(localVarUrlObj),
681
+ options: localVarRequestOptions,
682
+ };
683
+ },
684
+ /**
685
+ *
686
+ * @summary Get all DoctorLanguages.
687
+ * @param {string} doctorId
688
+ * @param {string} [languageCode]
689
+ * @param {number} [page]
690
+ * @param {number} [limit]
691
+ * @param {Date} [lastRetrieved]
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ */
695
+ apiV1DoctorsDoctorIdLanguagesGet: async (doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
696
+ // verify required parameter 'doctorId' is not null or undefined
697
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesGet', 'doctorId', doctorId)
698
+ const localVarPath = `/api/v1/doctors/{doctorId}/languages`
699
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
702
+ let baseOptions;
703
+ if (configuration) {
704
+ baseOptions = configuration.baseOptions;
705
+ }
706
+
707
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
708
+ const localVarHeaderParameter = {} as any;
709
+ const localVarQueryParameter = {} as any;
710
+
711
+ // authentication oauth2 required
712
+ // oauth required
713
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
714
+
715
+ if (languageCode !== undefined) {
716
+ localVarQueryParameter['LanguageCode'] = languageCode;
717
+ }
718
+
719
+ if (page !== undefined) {
720
+ localVarQueryParameter['page'] = page;
721
+ }
722
+
723
+ if (limit !== undefined) {
724
+ localVarQueryParameter['limit'] = limit;
725
+ }
726
+
727
+ if (lastRetrieved !== undefined) {
728
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
729
+ (lastRetrieved as any).toISOString() :
730
+ lastRetrieved;
731
+ }
732
+
733
+
734
+
735
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
736
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
737
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
738
+
739
+ return {
740
+ url: toPathString(localVarUrlObj),
741
+ options: localVarRequestOptions,
742
+ };
743
+ },
744
+ /**
745
+ *
746
+ * @summary Delete DoctorLanguage
747
+ * @param {string} doctorId
748
+ * @param {string} languageCode
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete: async (doctorId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
753
+ // verify required parameter 'doctorId' is not null or undefined
754
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete', 'doctorId', doctorId)
755
+ // verify required parameter 'languageCode' is not null or undefined
756
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete', 'languageCode', languageCode)
757
+ const localVarPath = `/api/v1/doctors/{doctorId}/languages/{languageCode}`
758
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
759
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
760
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
761
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
762
+ let baseOptions;
763
+ if (configuration) {
764
+ baseOptions = configuration.baseOptions;
765
+ }
766
+
767
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
768
+ const localVarHeaderParameter = {} as any;
769
+ const localVarQueryParameter = {} as any;
770
+
771
+ // authentication oauth2 required
772
+ // oauth required
773
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
774
+
775
+
776
+
777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
779
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
780
+
781
+ return {
782
+ url: toPathString(localVarUrlObj),
783
+ options: localVarRequestOptions,
784
+ };
785
+ },
786
+ /**
787
+ *
788
+ * @summary Get DoctorLanguage.
789
+ * @param {string} doctorId
790
+ * @param {string} languageCode
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ apiV1DoctorsDoctorIdLanguagesLanguageCodeGet: async (doctorId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
795
+ // verify required parameter 'doctorId' is not null or undefined
796
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodeGet', 'doctorId', doctorId)
797
+ // verify required parameter 'languageCode' is not null or undefined
798
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodeGet', 'languageCode', languageCode)
799
+ const localVarPath = `/api/v1/doctors/{doctorId}/languages/{languageCode}`
800
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
801
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
802
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
803
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
804
+ let baseOptions;
805
+ if (configuration) {
806
+ baseOptions = configuration.baseOptions;
807
+ }
808
+
809
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
810
+ const localVarHeaderParameter = {} as any;
811
+ const localVarQueryParameter = {} as any;
812
+
813
+ // authentication oauth2 required
814
+ // oauth required
815
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
816
+
817
+
818
+
819
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
820
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
821
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
822
+
823
+ return {
824
+ url: toPathString(localVarUrlObj),
825
+ options: localVarRequestOptions,
826
+ };
827
+ },
828
+ /**
829
+ *
830
+ * @summary Update DoctorLanguage.
831
+ * @param {string} doctorId
832
+ * @param {string} languageCode
833
+ * @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ apiV1DoctorsDoctorIdLanguagesLanguageCodePut: async (doctorId: string, languageCode: string, updateDoctorLanguageCommand?: UpdateDoctorLanguageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
838
+ // verify required parameter 'doctorId' is not null or undefined
839
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodePut', 'doctorId', doctorId)
840
+ // verify required parameter 'languageCode' is not null or undefined
841
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesLanguageCodePut', 'languageCode', languageCode)
842
+ const localVarPath = `/api/v1/doctors/{doctorId}/languages/{languageCode}`
843
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
844
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
846
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
847
+ let baseOptions;
848
+ if (configuration) {
849
+ baseOptions = configuration.baseOptions;
850
+ }
851
+
852
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
853
+ const localVarHeaderParameter = {} as any;
854
+ const localVarQueryParameter = {} as any;
855
+
856
+ // authentication oauth2 required
857
+ // oauth required
858
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
859
+
860
+
861
+
862
+ localVarHeaderParameter['Content-Type'] = 'application/json';
863
+
864
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
866
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
867
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorLanguageCommand, localVarRequestOptions, configuration)
868
+
869
+ return {
870
+ url: toPathString(localVarUrlObj),
871
+ options: localVarRequestOptions,
872
+ };
873
+ },
874
+ /**
875
+ *
876
+ * @summary Create DoctorLanguage.
877
+ * @param {string} doctorId
878
+ * @param {CreateDoctorLanguageCommand} [createDoctorLanguageCommand]
879
+ * @param {*} [options] Override http request option.
880
+ * @throws {RequiredError}
881
+ */
882
+ apiV1DoctorsDoctorIdLanguagesPost: async (doctorId: string, createDoctorLanguageCommand?: CreateDoctorLanguageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
883
+ // verify required parameter 'doctorId' is not null or undefined
884
+ assertParamExists('apiV1DoctorsDoctorIdLanguagesPost', 'doctorId', doctorId)
885
+ const localVarPath = `/api/v1/doctors/{doctorId}/languages`
886
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
887
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
888
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
889
+ let baseOptions;
890
+ if (configuration) {
891
+ baseOptions = configuration.baseOptions;
892
+ }
893
+
894
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
895
+ const localVarHeaderParameter = {} as any;
896
+ const localVarQueryParameter = {} as any;
897
+
898
+ // authentication oauth2 required
899
+ // oauth required
900
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
901
+
902
+
903
+
904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
905
+
906
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
907
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
908
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
909
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorLanguageCommand, localVarRequestOptions, configuration)
910
+
911
+ return {
912
+ url: toPathString(localVarUrlObj),
913
+ options: localVarRequestOptions,
914
+ };
915
+ },
916
+ /**
917
+ *
918
+ * @summary Get all DoctorMedias.
919
+ * @param {string} doctorId
920
+ * @param {string} [id]
921
+ * @param {MediaType} [mediaType]
922
+ * @param {number} [page]
923
+ * @param {number} [limit]
924
+ * @param {Date} [lastRetrieved]
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ apiV1DoctorsDoctorIdMediasGet: async (doctorId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
929
+ // verify required parameter 'doctorId' is not null or undefined
930
+ assertParamExists('apiV1DoctorsDoctorIdMediasGet', 'doctorId', doctorId)
931
+ const localVarPath = `/api/v1/doctors/{doctorId}/medias`
932
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
933
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
934
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
935
+ let baseOptions;
936
+ if (configuration) {
937
+ baseOptions = configuration.baseOptions;
938
+ }
939
+
940
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
941
+ const localVarHeaderParameter = {} as any;
942
+ const localVarQueryParameter = {} as any;
943
+
944
+ // authentication oauth2 required
945
+ // oauth required
946
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
947
+
948
+ if (id !== undefined) {
949
+ localVarQueryParameter['Id'] = id;
950
+ }
951
+
952
+ if (mediaType !== undefined) {
953
+ localVarQueryParameter['MediaType'] = mediaType;
954
+ }
955
+
956
+ if (page !== undefined) {
957
+ localVarQueryParameter['page'] = page;
958
+ }
959
+
960
+ if (limit !== undefined) {
961
+ localVarQueryParameter['limit'] = limit;
962
+ }
963
+
964
+ if (lastRetrieved !== undefined) {
965
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
966
+ (lastRetrieved as any).toISOString() :
967
+ lastRetrieved;
968
+ }
969
+
970
+
971
+
972
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
974
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
975
+
976
+ return {
977
+ url: toPathString(localVarUrlObj),
978
+ options: localVarRequestOptions,
979
+ };
980
+ },
981
+ /**
982
+ *
983
+ * @summary Delete DoctorMedia
984
+ * @param {string} doctorId
985
+ * @param {string} mediaId
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ apiV1DoctorsDoctorIdMediasMediaIdDelete: async (doctorId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
990
+ // verify required parameter 'doctorId' is not null or undefined
991
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdDelete', 'doctorId', doctorId)
992
+ // verify required parameter 'mediaId' is not null or undefined
993
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdDelete', 'mediaId', mediaId)
994
+ const localVarPath = `/api/v1/doctors/{doctorId}/medias/{mediaId}`
995
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
996
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
998
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
999
+ let baseOptions;
1000
+ if (configuration) {
1001
+ baseOptions = configuration.baseOptions;
1002
+ }
1003
+
1004
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1005
+ const localVarHeaderParameter = {} as any;
1006
+ const localVarQueryParameter = {} as any;
1007
+
1008
+ // authentication oauth2 required
1009
+ // oauth required
1010
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1011
+
1012
+
1013
+
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1017
+
1018
+ return {
1019
+ url: toPathString(localVarUrlObj),
1020
+ options: localVarRequestOptions,
1021
+ };
1022
+ },
1023
+ /**
1024
+ *
1025
+ * @summary Get DoctorMedia.
1026
+ * @param {string} doctorId
1027
+ * @param {string} mediaId
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ apiV1DoctorsDoctorIdMediasMediaIdGet: async (doctorId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1032
+ // verify required parameter 'doctorId' is not null or undefined
1033
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdGet', 'doctorId', doctorId)
1034
+ // verify required parameter 'mediaId' is not null or undefined
1035
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdGet', 'mediaId', mediaId)
1036
+ const localVarPath = `/api/v1/doctors/{doctorId}/medias/{mediaId}`
1037
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1038
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
1039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1041
+ let baseOptions;
1042
+ if (configuration) {
1043
+ baseOptions = configuration.baseOptions;
1044
+ }
1045
+
1046
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1047
+ const localVarHeaderParameter = {} as any;
1048
+ const localVarQueryParameter = {} as any;
1049
+
1050
+ // authentication oauth2 required
1051
+ // oauth required
1052
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1053
+
1054
+
1055
+
1056
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1057
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1058
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1059
+
1060
+ return {
1061
+ url: toPathString(localVarUrlObj),
1062
+ options: localVarRequestOptions,
1063
+ };
1064
+ },
1065
+ /**
1066
+ *
1067
+ * @summary Update DoctorMedia.
1068
+ * @param {string} doctorId
1069
+ * @param {string} mediaId
1070
+ * @param {UpdateMediaCommand} [updateMediaCommand]
1071
+ * @param {*} [options] Override http request option.
1072
+ * @throws {RequiredError}
1073
+ */
1074
+ apiV1DoctorsDoctorIdMediasMediaIdPut: async (doctorId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1075
+ // verify required parameter 'doctorId' is not null or undefined
1076
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdPut', 'doctorId', doctorId)
1077
+ // verify required parameter 'mediaId' is not null or undefined
1078
+ assertParamExists('apiV1DoctorsDoctorIdMediasMediaIdPut', 'mediaId', mediaId)
1079
+ const localVarPath = `/api/v1/doctors/{doctorId}/medias/{mediaId}`
1080
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1081
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
1082
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1083
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1084
+ let baseOptions;
1085
+ if (configuration) {
1086
+ baseOptions = configuration.baseOptions;
1087
+ }
1088
+
1089
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1090
+ const localVarHeaderParameter = {} as any;
1091
+ const localVarQueryParameter = {} as any;
1092
+
1093
+ // authentication oauth2 required
1094
+ // oauth required
1095
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1096
+
1097
+
1098
+
1099
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1100
+
1101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1103
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1104
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
1105
+
1106
+ return {
1107
+ url: toPathString(localVarUrlObj),
1108
+ options: localVarRequestOptions,
1109
+ };
1110
+ },
1111
+ /**
1112
+ *
1113
+ * @summary Create DoctorMedia.
1114
+ * @param {string} doctorId
1115
+ * @param {CreateMediaCommand} [createMediaCommand]
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ */
1119
+ apiV1DoctorsDoctorIdMediasPost: async (doctorId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1120
+ // verify required parameter 'doctorId' is not null or undefined
1121
+ assertParamExists('apiV1DoctorsDoctorIdMediasPost', 'doctorId', doctorId)
1122
+ const localVarPath = `/api/v1/doctors/{doctorId}/medias`
1123
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1126
+ let baseOptions;
1127
+ if (configuration) {
1128
+ baseOptions = configuration.baseOptions;
1129
+ }
1130
+
1131
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1132
+ const localVarHeaderParameter = {} as any;
1133
+ const localVarQueryParameter = {} as any;
1134
+
1135
+ // authentication oauth2 required
1136
+ // oauth required
1137
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1138
+
1139
+
1140
+
1141
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1142
+
1143
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1145
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1146
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
1147
+
1148
+ return {
1149
+ url: toPathString(localVarUrlObj),
1150
+ options: localVarRequestOptions,
1151
+ };
1152
+ },
1153
+ /**
1154
+ *
1155
+ * @summary Get All DoctorPortfolios
1156
+ * @param {string} doctorId
1157
+ * @param {string} [doctorName]
1158
+ * @param {string} [portfolioId]
1159
+ * @param {string} [name]
1160
+ * @param {number} [page]
1161
+ * @param {number} [limit]
1162
+ * @param {Date} [lastRetrieved]
1163
+ * @param {*} [options] Override http request option.
1164
+ * @throws {RequiredError}
1165
+ */
1166
+ apiV1DoctorsDoctorIdPortfoliosGet: async (doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1167
+ // verify required parameter 'doctorId' is not null or undefined
1168
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosGet', 'doctorId', doctorId)
1169
+ const localVarPath = `/api/v1/doctors/{doctorId}/portfolios`
1170
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1173
+ let baseOptions;
1174
+ if (configuration) {
1175
+ baseOptions = configuration.baseOptions;
1176
+ }
1177
+
1178
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1179
+ const localVarHeaderParameter = {} as any;
1180
+ const localVarQueryParameter = {} as any;
1181
+
1182
+ // authentication oauth2 required
1183
+ // oauth required
1184
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1185
+
1186
+ if (doctorName !== undefined) {
1187
+ localVarQueryParameter['DoctorName'] = doctorName;
1188
+ }
1189
+
1190
+ if (portfolioId !== undefined) {
1191
+ localVarQueryParameter['PortfolioId'] = portfolioId;
1192
+ }
1193
+
1194
+ if (name !== undefined) {
1195
+ localVarQueryParameter['Name'] = name;
1196
+ }
1197
+
1198
+ if (page !== undefined) {
1199
+ localVarQueryParameter['page'] = page;
1200
+ }
1201
+
1202
+ if (limit !== undefined) {
1203
+ localVarQueryParameter['limit'] = limit;
1204
+ }
1205
+
1206
+ if (lastRetrieved !== undefined) {
1207
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
1208
+ (lastRetrieved as any).toISOString() :
1209
+ lastRetrieved;
1210
+ }
1211
+
1212
+
1213
+
1214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1217
+
1218
+ return {
1219
+ url: toPathString(localVarUrlObj),
1220
+ options: localVarRequestOptions,
1221
+ };
1222
+ },
1223
+ /**
1224
+ *
1225
+ * @summary Delete DoctorPortfolio.
1226
+ * @param {string} doctorId
1227
+ * @param {string} portfolioId
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ */
1231
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete: async (doctorId: string, portfolioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1232
+ // verify required parameter 'doctorId' is not null or undefined
1233
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete', 'doctorId', doctorId)
1234
+ // verify required parameter 'portfolioId' is not null or undefined
1235
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete', 'portfolioId', portfolioId)
1236
+ const localVarPath = `/api/v1/doctors/{doctorId}/portfolios/{portfolioId}`
1237
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1238
+ .replace(`{${"portfolioId"}}`, encodeURIComponent(String(portfolioId)));
1239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1241
+ let baseOptions;
1242
+ if (configuration) {
1243
+ baseOptions = configuration.baseOptions;
1244
+ }
1245
+
1246
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1247
+ const localVarHeaderParameter = {} as any;
1248
+ const localVarQueryParameter = {} as any;
1249
+
1250
+ // authentication oauth2 required
1251
+ // oauth required
1252
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1253
+
1254
+
1255
+
1256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1259
+
1260
+ return {
1261
+ url: toPathString(localVarUrlObj),
1262
+ options: localVarRequestOptions,
1263
+ };
1264
+ },
1265
+ /**
1266
+ *
1267
+ * @summary Get DoctorPortfolio.
1268
+ * @param {string} doctorId
1269
+ * @param {string} portfolioId
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ */
1273
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet: async (doctorId: string, portfolioId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1274
+ // verify required parameter 'doctorId' is not null or undefined
1275
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet', 'doctorId', doctorId)
1276
+ // verify required parameter 'portfolioId' is not null or undefined
1277
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet', 'portfolioId', portfolioId)
1278
+ const localVarPath = `/api/v1/doctors/{doctorId}/portfolios/{portfolioId}`
1279
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1280
+ .replace(`{${"portfolioId"}}`, encodeURIComponent(String(portfolioId)));
1281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1283
+ let baseOptions;
1284
+ if (configuration) {
1285
+ baseOptions = configuration.baseOptions;
1286
+ }
1287
+
1288
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1289
+ const localVarHeaderParameter = {} as any;
1290
+ const localVarQueryParameter = {} as any;
1291
+
1292
+ // authentication oauth2 required
1293
+ // oauth required
1294
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1295
+
1296
+
1297
+
1298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1301
+
1302
+ return {
1303
+ url: toPathString(localVarUrlObj),
1304
+ options: localVarRequestOptions,
1305
+ };
1306
+ },
1307
+ /**
1308
+ *
1309
+ * @summary Update DoctorPortfolio.
1310
+ * @param {string} doctorId
1311
+ * @param {string} portfolioId
1312
+ * @param {UpdateDoctorPortfolioCommand} [updateDoctorPortfolioCommand]
1313
+ * @param {*} [options] Override http request option.
1314
+ * @throws {RequiredError}
1315
+ */
1316
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut: async (doctorId: string, portfolioId: string, updateDoctorPortfolioCommand?: UpdateDoctorPortfolioCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1317
+ // verify required parameter 'doctorId' is not null or undefined
1318
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut', 'doctorId', doctorId)
1319
+ // verify required parameter 'portfolioId' is not null or undefined
1320
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut', 'portfolioId', portfolioId)
1321
+ const localVarPath = `/api/v1/doctors/{doctorId}/portfolios/{portfolioId}`
1322
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1323
+ .replace(`{${"portfolioId"}}`, encodeURIComponent(String(portfolioId)));
1324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1326
+ let baseOptions;
1327
+ if (configuration) {
1328
+ baseOptions = configuration.baseOptions;
1329
+ }
1330
+
1331
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1332
+ const localVarHeaderParameter = {} as any;
1333
+ const localVarQueryParameter = {} as any;
1334
+
1335
+ // authentication oauth2 required
1336
+ // oauth required
1337
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1338
+
1339
+
1340
+
1341
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1342
+
1343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1345
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1346
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorPortfolioCommand, localVarRequestOptions, configuration)
1347
+
1348
+ return {
1349
+ url: toPathString(localVarUrlObj),
1350
+ options: localVarRequestOptions,
1351
+ };
1352
+ },
1353
+ /**
1354
+ *
1355
+ * @summary Create DoctorPortfolio.
1356
+ * @param {string} doctorId
1357
+ * @param {CreateDoctorPortfolioCommand} [createDoctorPortfolioCommand]
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ apiV1DoctorsDoctorIdPortfoliosPost: async (doctorId: string, createDoctorPortfolioCommand?: CreateDoctorPortfolioCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1362
+ // verify required parameter 'doctorId' is not null or undefined
1363
+ assertParamExists('apiV1DoctorsDoctorIdPortfoliosPost', 'doctorId', doctorId)
1364
+ const localVarPath = `/api/v1/doctors/{doctorId}/portfolios`
1365
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1368
+ let baseOptions;
1369
+ if (configuration) {
1370
+ baseOptions = configuration.baseOptions;
1371
+ }
1372
+
1373
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1374
+ const localVarHeaderParameter = {} as any;
1375
+ const localVarQueryParameter = {} as any;
1376
+
1377
+ // authentication oauth2 required
1378
+ // oauth required
1379
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1380
+
1381
+
1382
+
1383
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1384
+
1385
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1387
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1388
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorPortfolioCommand, localVarRequestOptions, configuration)
1389
+
1390
+ return {
1391
+ url: toPathString(localVarUrlObj),
1392
+ options: localVarRequestOptions,
1393
+ };
1394
+ },
1395
+ /**
1396
+ *
1397
+ * @summary Update Doctor.
1398
+ * @param {string} doctorId
1399
+ * @param {UpdateDoctorCommand} [updateDoctorCommand]
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ apiV1DoctorsDoctorIdPut: async (doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1404
+ // verify required parameter 'doctorId' is not null or undefined
1405
+ assertParamExists('apiV1DoctorsDoctorIdPut', 'doctorId', doctorId)
1406
+ const localVarPath = `/api/v1/doctors/{doctorId}`
1407
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1410
+ let baseOptions;
1411
+ if (configuration) {
1412
+ baseOptions = configuration.baseOptions;
1413
+ }
1414
+
1415
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1416
+ const localVarHeaderParameter = {} as any;
1417
+ const localVarQueryParameter = {} as any;
1418
+
1419
+ // authentication oauth2 required
1420
+ // oauth required
1421
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1422
+
1423
+
1424
+
1425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1426
+
1427
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1429
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1430
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorCommand, localVarRequestOptions, configuration)
1431
+
1432
+ return {
1433
+ url: toPathString(localVarUrlObj),
1434
+ options: localVarRequestOptions,
1435
+ };
1436
+ },
1437
+ /**
1438
+ *
1439
+ * @summary Delete Doctor.
1440
+ * @param {string} doctorId
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ apiV1DoctorsDoctorIdReactivePut: async (doctorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1445
+ // verify required parameter 'doctorId' is not null or undefined
1446
+ assertParamExists('apiV1DoctorsDoctorIdReactivePut', 'doctorId', doctorId)
1447
+ const localVarPath = `/api/v1/doctors/{doctorId}/reactive`
1448
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1451
+ let baseOptions;
1452
+ if (configuration) {
1453
+ baseOptions = configuration.baseOptions;
1454
+ }
1455
+
1456
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1457
+ const localVarHeaderParameter = {} as any;
1458
+ const localVarQueryParameter = {} as any;
1459
+
1460
+ // authentication oauth2 required
1461
+ // oauth required
1462
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1463
+
1464
+
1465
+
1466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1469
+
1470
+ return {
1471
+ url: toPathString(localVarUrlObj),
1472
+ options: localVarRequestOptions,
1473
+ };
1474
+ },
1475
+ /**
1476
+ *
1477
+ * @summary Get All DoctorSpecialties.
1478
+ * @param {string} doctorId
1479
+ * @param {string} [doctorName]
1480
+ * @param {string} [specialtyId]
1481
+ * @param {string} [specialtyName]
1482
+ * @param {string} [languageCode]
1483
+ * @param {number} [page]
1484
+ * @param {number} [limit]
1485
+ * @param {Date} [lastRetrieved]
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ apiV1DoctorsDoctorIdSpecialtiesGet: async (doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1490
+ // verify required parameter 'doctorId' is not null or undefined
1491
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesGet', 'doctorId', doctorId)
1492
+ const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
1493
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1494
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1496
+ let baseOptions;
1497
+ if (configuration) {
1498
+ baseOptions = configuration.baseOptions;
1499
+ }
1500
+
1501
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1502
+ const localVarHeaderParameter = {} as any;
1503
+ const localVarQueryParameter = {} as any;
1504
+
1505
+ // authentication oauth2 required
1506
+ // oauth required
1507
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1508
+
1509
+ if (doctorName !== undefined) {
1510
+ localVarQueryParameter['DoctorName'] = doctorName;
1511
+ }
1512
+
1513
+ if (specialtyId !== undefined) {
1514
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
1515
+ }
1516
+
1517
+ if (specialtyName !== undefined) {
1518
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
1519
+ }
1520
+
1521
+ if (languageCode !== undefined) {
1522
+ localVarQueryParameter['LanguageCode'] = languageCode;
1523
+ }
1524
+
1525
+ if (page !== undefined) {
1526
+ localVarQueryParameter['page'] = page;
1527
+ }
1528
+
1529
+ if (limit !== undefined) {
1530
+ localVarQueryParameter['limit'] = limit;
1531
+ }
1532
+
1533
+ if (lastRetrieved !== undefined) {
1534
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
1535
+ (lastRetrieved as any).toISOString() :
1536
+ lastRetrieved;
1537
+ }
1538
+
1539
+
1540
+
1541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1543
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1544
+
1545
+ return {
1546
+ url: toPathString(localVarUrlObj),
1547
+ options: localVarRequestOptions,
1548
+ };
1549
+ },
1550
+ /**
1551
+ *
1552
+ * @summary Link a doctor to a specialty.
1553
+ * @param {string} doctorId
1554
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ apiV1DoctorsDoctorIdSpecialtiesPost: async (doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1559
+ // verify required parameter 'doctorId' is not null or undefined
1560
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId)
1561
+ const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
1562
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1565
+ let baseOptions;
1566
+ if (configuration) {
1567
+ baseOptions = configuration.baseOptions;
1568
+ }
1569
+
1570
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1571
+ const localVarHeaderParameter = {} as any;
1572
+ const localVarQueryParameter = {} as any;
1573
+
1574
+ // authentication oauth2 required
1575
+ // oauth required
1576
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1577
+
1578
+
1579
+
1580
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1581
+
1582
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1583
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1584
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1585
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration)
1586
+
1587
+ return {
1588
+ url: toPathString(localVarUrlObj),
1589
+ options: localVarRequestOptions,
1590
+ };
1591
+ },
1592
+ /**
1593
+ *
1594
+ * @summary Remove link between the doctor and the specialty.
1595
+ * @param {string} doctorId
1596
+ * @param {string} specialtyId
1597
+ * @param {*} [options] Override http request option.
1598
+ * @throws {RequiredError}
1599
+ */
1600
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete: async (doctorId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1601
+ // verify required parameter 'doctorId' is not null or undefined
1602
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete', 'doctorId', doctorId)
1603
+ // verify required parameter 'specialtyId' is not null or undefined
1604
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
1605
+ const localVarPath = `/api/v1/doctors/{doctorId}/specialties/{specialtyId}`
1606
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1607
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
1608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1610
+ let baseOptions;
1611
+ if (configuration) {
1612
+ baseOptions = configuration.baseOptions;
1613
+ }
1614
+
1615
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1616
+ const localVarHeaderParameter = {} as any;
1617
+ const localVarQueryParameter = {} as any;
1618
+
1619
+ // authentication oauth2 required
1620
+ // oauth required
1621
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1622
+
1623
+
1624
+
1625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1627
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1628
+
1629
+ return {
1630
+ url: toPathString(localVarUrlObj),
1631
+ options: localVarRequestOptions,
1632
+ };
1633
+ },
1634
+ /**
1635
+ *
1636
+ * @summary Get DoctorSpecialty
1637
+ * @param {string} doctorId
1638
+ * @param {string} specialtyId
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ */
1642
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet: async (doctorId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1643
+ // verify required parameter 'doctorId' is not null or undefined
1644
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet', 'doctorId', doctorId)
1645
+ // verify required parameter 'specialtyId' is not null or undefined
1646
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId)
1647
+ const localVarPath = `/api/v1/doctors/{doctorId}/specialties/{specialtyId}`
1648
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1649
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
1650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1652
+ let baseOptions;
1653
+ if (configuration) {
1654
+ baseOptions = configuration.baseOptions;
1655
+ }
1656
+
1657
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1658
+ const localVarHeaderParameter = {} as any;
1659
+ const localVarQueryParameter = {} as any;
1660
+
1661
+ // authentication oauth2 required
1662
+ // oauth required
1663
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1664
+
1665
+
1666
+
1667
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1668
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1669
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1670
+
1671
+ return {
1672
+ url: toPathString(localVarUrlObj),
1673
+ options: localVarRequestOptions,
1674
+ };
1675
+ },
1676
+ /**
1677
+ *
1678
+ * @summary Update DoctorSpecialty.
1679
+ * @param {string} doctorId
1680
+ * @param {string} specialtyId
1681
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
1682
+ * @param {*} [options] Override http request option.
1683
+ * @throws {RequiredError}
1684
+ */
1685
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: async (doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1686
+ // verify required parameter 'doctorId' is not null or undefined
1687
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId)
1688
+ // verify required parameter 'specialtyId' is not null or undefined
1689
+ assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
1690
+ const localVarPath = `/api/v1/doctors/{doctorId}/specialties/{specialtyId}`
1691
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
1692
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
1693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1694
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1695
+ let baseOptions;
1696
+ if (configuration) {
1697
+ baseOptions = configuration.baseOptions;
1698
+ }
1699
+
1700
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1701
+ const localVarHeaderParameter = {} as any;
1702
+ const localVarQueryParameter = {} as any;
1703
+
1704
+ // authentication oauth2 required
1705
+ // oauth required
1706
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1707
+
1708
+
1709
+
1710
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1711
+
1712
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1714
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1715
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration)
1716
+
1717
+ return {
1718
+ url: toPathString(localVarUrlObj),
1719
+ options: localVarRequestOptions,
1720
+ };
1721
+ },
1722
+ /**
1723
+ *
1724
+ * @summary Get all Doctors.
1725
+ * @param {string} [hospitalId]
1726
+ * @param {string} [hospitalName]
1727
+ * @param {Array<string>} [ids]
1728
+ * @param {string} [specialtyId]
1729
+ * @param {boolean} [consultationEnabled]
1730
+ * @param {string} [id]
1731
+ * @param {string} [fullname]
1732
+ * @param {string} [email]
1733
+ * @param {Gender} [gender]
1734
+ * @param {Date} [dateOfBirth]
1735
+ * @param {Date} [created]
1736
+ * @param {boolean} [showHidden]
1737
+ * @param {number} [page]
1738
+ * @param {number} [limit]
1739
+ * @param {Date} [lastRetrieved]
1740
+ * @param {*} [options] Override http request option.
1741
+ * @throws {RequiredError}
1742
+ */
1743
+ apiV1DoctorsGet: async (hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1744
+ const localVarPath = `/api/v1/doctors`;
1745
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1746
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1747
+ let baseOptions;
1748
+ if (configuration) {
1749
+ baseOptions = configuration.baseOptions;
1750
+ }
1751
+
1752
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1753
+ const localVarHeaderParameter = {} as any;
1754
+ const localVarQueryParameter = {} as any;
1755
+
1756
+ // authentication oauth2 required
1757
+ // oauth required
1758
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1759
+
1760
+ if (hospitalId !== undefined) {
1761
+ localVarQueryParameter['HospitalId'] = hospitalId;
1762
+ }
1763
+
1764
+ if (hospitalName !== undefined) {
1765
+ localVarQueryParameter['HospitalName'] = hospitalName;
1766
+ }
1767
+
1768
+ if (ids) {
1769
+ localVarQueryParameter['Ids'] = ids;
1770
+ }
1771
+
1772
+ if (specialtyId !== undefined) {
1773
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
1774
+ }
1775
+
1776
+ if (consultationEnabled !== undefined) {
1777
+ localVarQueryParameter['ConsultationEnabled'] = consultationEnabled;
1778
+ }
1779
+
1780
+ if (id !== undefined) {
1781
+ localVarQueryParameter['Id'] = id;
1782
+ }
1783
+
1784
+ if (fullname !== undefined) {
1785
+ localVarQueryParameter['Fullname'] = fullname;
1786
+ }
1787
+
1788
+ if (email !== undefined) {
1789
+ localVarQueryParameter['Email'] = email;
1790
+ }
1791
+
1792
+ if (gender !== undefined) {
1793
+ localVarQueryParameter['Gender'] = gender;
1794
+ }
1795
+
1796
+ if (dateOfBirth !== undefined) {
1797
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth as any instanceof Date) ?
1798
+ (dateOfBirth as any).toISOString() :
1799
+ dateOfBirth;
1800
+ }
1801
+
1802
+ if (created !== undefined) {
1803
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
1804
+ (created as any).toISOString() :
1805
+ created;
1806
+ }
1807
+
1808
+ if (showHidden !== undefined) {
1809
+ localVarQueryParameter['ShowHidden'] = showHidden;
1810
+ }
1811
+
1812
+ if (page !== undefined) {
1813
+ localVarQueryParameter['page'] = page;
1814
+ }
1815
+
1816
+ if (limit !== undefined) {
1817
+ localVarQueryParameter['limit'] = limit;
1818
+ }
1819
+
1820
+ if (lastRetrieved !== undefined) {
1821
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
1822
+ (lastRetrieved as any).toISOString() :
1823
+ lastRetrieved;
1824
+ }
1825
+
1826
+
1827
+
1828
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1830
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1831
+
1832
+ return {
1833
+ url: toPathString(localVarUrlObj),
1834
+ options: localVarRequestOptions,
1835
+ };
1836
+ },
1837
+ /**
1838
+ *
1839
+ * @summary Create a Doctor.
1840
+ * @param {CreateDoctorCommand} [createDoctorCommand]
1841
+ * @param {*} [options] Override http request option.
1842
+ * @throws {RequiredError}
1843
+ */
1844
+ apiV1DoctorsPost: async (createDoctorCommand?: CreateDoctorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1845
+ const localVarPath = `/api/v1/doctors`;
1846
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1848
+ let baseOptions;
1849
+ if (configuration) {
1850
+ baseOptions = configuration.baseOptions;
1851
+ }
1852
+
1853
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1854
+ const localVarHeaderParameter = {} as any;
1855
+ const localVarQueryParameter = {} as any;
1856
+
1857
+ // authentication oauth2 required
1858
+ // oauth required
1859
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1860
+
1861
+
1862
+
1863
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1864
+
1865
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1866
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1867
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1868
+ localVarRequestOptions.data = serializeDataIfNeeded(createDoctorCommand, localVarRequestOptions, configuration)
1869
+
1870
+ return {
1871
+ url: toPathString(localVarUrlObj),
1872
+ options: localVarRequestOptions,
1873
+ };
1874
+ },
1875
+ /**
1876
+ *
1877
+ * @summary Get all Doctors.
1878
+ * @param {string} [hospitalId]
1879
+ * @param {string} [hospitalName]
1880
+ * @param {Array<string>} [ids]
1881
+ * @param {string} [specialtyId]
1882
+ * @param {boolean} [consultationEnabled]
1883
+ * @param {string} [id]
1884
+ * @param {string} [fullname]
1885
+ * @param {string} [email]
1886
+ * @param {Gender} [gender]
1887
+ * @param {Date} [dateOfBirth]
1888
+ * @param {Date} [created]
1889
+ * @param {boolean} [showHidden]
1890
+ * @param {number} [page]
1891
+ * @param {number} [limit]
1892
+ * @param {Date} [lastRetrieved]
1893
+ * @param {*} [options] Override http request option.
1894
+ * @throws {RequiredError}
1895
+ */
1896
+ apiV1DoctorsSimpleGet: async (hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1897
+ const localVarPath = `/api/v1/doctors/simple`;
1898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1899
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1900
+ let baseOptions;
1901
+ if (configuration) {
1902
+ baseOptions = configuration.baseOptions;
1903
+ }
1904
+
1905
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1906
+ const localVarHeaderParameter = {} as any;
1907
+ const localVarQueryParameter = {} as any;
1908
+
1909
+ // authentication oauth2 required
1910
+ // oauth required
1911
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1912
+
1913
+ if (hospitalId !== undefined) {
1914
+ localVarQueryParameter['HospitalId'] = hospitalId;
1915
+ }
1916
+
1917
+ if (hospitalName !== undefined) {
1918
+ localVarQueryParameter['HospitalName'] = hospitalName;
1919
+ }
1920
+
1921
+ if (ids) {
1922
+ localVarQueryParameter['Ids'] = ids;
1923
+ }
1924
+
1925
+ if (specialtyId !== undefined) {
1926
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
1927
+ }
1928
+
1929
+ if (consultationEnabled !== undefined) {
1930
+ localVarQueryParameter['ConsultationEnabled'] = consultationEnabled;
1931
+ }
1932
+
1933
+ if (id !== undefined) {
1934
+ localVarQueryParameter['Id'] = id;
1935
+ }
1936
+
1937
+ if (fullname !== undefined) {
1938
+ localVarQueryParameter['Fullname'] = fullname;
1939
+ }
1940
+
1941
+ if (email !== undefined) {
1942
+ localVarQueryParameter['Email'] = email;
1943
+ }
1944
+
1945
+ if (gender !== undefined) {
1946
+ localVarQueryParameter['Gender'] = gender;
1947
+ }
1948
+
1949
+ if (dateOfBirth !== undefined) {
1950
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth as any instanceof Date) ?
1951
+ (dateOfBirth as any).toISOString() :
1952
+ dateOfBirth;
1953
+ }
1954
+
1955
+ if (created !== undefined) {
1956
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
1957
+ (created as any).toISOString() :
1958
+ created;
1959
+ }
1960
+
1961
+ if (showHidden !== undefined) {
1962
+ localVarQueryParameter['ShowHidden'] = showHidden;
1963
+ }
1964
+
1965
+ if (page !== undefined) {
1966
+ localVarQueryParameter['page'] = page;
1967
+ }
1968
+
1969
+ if (limit !== undefined) {
1970
+ localVarQueryParameter['limit'] = limit;
1971
+ }
1972
+
1973
+ if (lastRetrieved !== undefined) {
1974
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
1975
+ (lastRetrieved as any).toISOString() :
1976
+ lastRetrieved;
1977
+ }
1978
+
1979
+
1980
+
1981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1983
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1984
+
1985
+ return {
1986
+ url: toPathString(localVarUrlObj),
1987
+ options: localVarRequestOptions,
1988
+ };
1989
+ },
1990
+ }
1991
+ };
1992
+
1993
+ /**
1994
+ * DoctorsApi - functional programming interface
1995
+ * @export
1996
+ */
1997
+ export const DoctorsApiFp = function(configuration?: Configuration) {
1998
+ const localVarAxiosParamCreator = DoctorsApiAxiosParamCreator(configuration)
1999
+ return {
2000
+ /**
2001
+ *
2002
+ * @summary Delete DoctorCertificate.
2003
+ * @param {string} doctorId
2004
+ * @param {string} certificateId
2005
+ * @param {*} [options] Override http request option.
2006
+ * @throws {RequiredError}
2007
+ */
2008
+ async apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId: string, certificateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId, certificateId, options);
2010
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2011
+ },
2012
+ /**
2013
+ *
2014
+ * @summary Get DoctorCertificate.
2015
+ * @param {string} doctorId
2016
+ * @param {string} certificateId
2017
+ * @param {*} [options] Override http request option.
2018
+ * @throws {RequiredError}
2019
+ */
2020
+ async apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId: string, certificateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificateModel>> {
2021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId, certificateId, options);
2022
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2023
+ },
2024
+ /**
2025
+ *
2026
+ * @summary Update DoctorCertificate.
2027
+ * @param {string} doctorId
2028
+ * @param {string} certificateId
2029
+ * @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ */
2033
+ async apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId: string, certificateId: string, updateDoctorCertificateCommand?: UpdateDoctorCertificateCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificateModel>> {
2034
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId, certificateId, updateDoctorCertificateCommand, options);
2035
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2036
+ },
2037
+ /**
2038
+ *
2039
+ * @summary Delete DoctorCertificate.
2040
+ * @param {string} doctorId
2041
+ * @param {string} [doctorName]
2042
+ * @param {string} [certificateId]
2043
+ * @param {string} [certificate]
2044
+ * @param {Date} [activeFrom]
2045
+ * @param {Date} [activeTo]
2046
+ * @param {number} [page]
2047
+ * @param {number} [limit]
2048
+ * @param {Date} [lastRetrieved]
2049
+ * @param {*} [options] Override http request option.
2050
+ * @throws {RequiredError}
2051
+ */
2052
+ async apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificatesModel>> {
2053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options);
2054
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2055
+ },
2056
+ /**
2057
+ *
2058
+ * @summary Create DoctorCertificate.
2059
+ * @param {string} doctorId
2060
+ * @param {CreateDoctorCertificateCommand} [createDoctorCertificateCommand]
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ async apiV1DoctorsDoctorIdCertificatesPost(doctorId: string, createDoctorCertificateCommand?: CreateDoctorCertificateCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificateModel>> {
2065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesPost(doctorId, createDoctorCertificateCommand, options);
2066
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2067
+ },
2068
+ /**
2069
+ *
2070
+ * @summary Delete Doctor.
2071
+ * @param {string} doctorId
2072
+ * @param {boolean} [isPermanent]
2073
+ * @param {*} [options] Override http request option.
2074
+ * @throws {RequiredError}
2075
+ */
2076
+ async apiV1DoctorsDoctorIdDelete(doctorId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2077
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdDelete(doctorId, isPermanent, options);
2078
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2079
+ },
2080
+ /**
2081
+ *
2082
+ * @summary Delete DoctorEducation
2083
+ * @param {string} doctorId
2084
+ * @param {string} educationId
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ */
2088
+ async apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId: string, educationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2089
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId, educationId, options);
2090
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2091
+ },
2092
+ /**
2093
+ *
2094
+ * @summary Get DoctorEducation.
2095
+ * @param {string} doctorId
2096
+ * @param {string} educationId
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ async apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId: string, educationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationModel>> {
2101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId, educationId, options);
2102
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2103
+ },
2104
+ /**
2105
+ *
2106
+ * @summary Update DoctorEducation.
2107
+ * @param {string} doctorId
2108
+ * @param {string} educationId
2109
+ * @param {UpdateDoctorEducationCommand} [updateDoctorEducationCommand]
2110
+ * @param {*} [options] Override http request option.
2111
+ * @throws {RequiredError}
2112
+ */
2113
+ async apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId: string, educationId: string, updateDoctorEducationCommand?: UpdateDoctorEducationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationModel>> {
2114
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId, educationId, updateDoctorEducationCommand, options);
2115
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2116
+ },
2117
+ /**
2118
+ *
2119
+ * @summary Get all DoctorEducations.
2120
+ * @param {string} doctorId
2121
+ * @param {string} [doctorName]
2122
+ * @param {string} [educationId]
2123
+ * @param {string} [institution]
2124
+ * @param {string} [qualification]
2125
+ * @param {Date} [graduationDate]
2126
+ * @param {number} [page]
2127
+ * @param {number} [limit]
2128
+ * @param {Date} [lastRetrieved]
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ async apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationsModel>> {
2133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options);
2134
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2135
+ },
2136
+ /**
2137
+ *
2138
+ * @summary Create DoctorEducation.
2139
+ * @param {string} doctorId
2140
+ * @param {CreateDoctorEducationCommand} [createDoctorEducationCommand]
2141
+ * @param {*} [options] Override http request option.
2142
+ * @throws {RequiredError}
2143
+ */
2144
+ async apiV1DoctorsDoctorIdEducationsPost(doctorId: string, createDoctorEducationCommand?: CreateDoctorEducationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationModel>> {
2145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsPost(doctorId, createDoctorEducationCommand, options);
2146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2147
+ },
2148
+ /**
2149
+ *
2150
+ * @summary
2151
+ * @param {string} doctorId
2152
+ * @param {*} [options] Override http request option.
2153
+ * @throws {RequiredError}
2154
+ */
2155
+ async apiV1DoctorsDoctorIdGet(doctorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
2156
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options);
2157
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2158
+ },
2159
+ /**
2160
+ *
2161
+ * @summary Get all DoctorLanguages.
2162
+ * @param {string} doctorId
2163
+ * @param {string} [languageCode]
2164
+ * @param {number} [page]
2165
+ * @param {number} [limit]
2166
+ * @param {Date} [lastRetrieved]
2167
+ * @param {*} [options] Override http request option.
2168
+ * @throws {RequiredError}
2169
+ */
2170
+ async apiV1DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguagesModel>> {
2171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options);
2172
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2173
+ },
2174
+ /**
2175
+ *
2176
+ * @summary Delete DoctorLanguage
2177
+ * @param {string} doctorId
2178
+ * @param {string} languageCode
2179
+ * @param {*} [options] Override http request option.
2180
+ * @throws {RequiredError}
2181
+ */
2182
+ async apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId, languageCode, options);
2184
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2185
+ },
2186
+ /**
2187
+ *
2188
+ * @summary Get DoctorLanguage.
2189
+ * @param {string} doctorId
2190
+ * @param {string} languageCode
2191
+ * @param {*} [options] Override http request option.
2192
+ * @throws {RequiredError}
2193
+ */
2194
+ async apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguageModel>> {
2195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options);
2196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2197
+ },
2198
+ /**
2199
+ *
2200
+ * @summary Update DoctorLanguage.
2201
+ * @param {string} doctorId
2202
+ * @param {string} languageCode
2203
+ * @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ async apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId: string, languageCode: string, updateDoctorLanguageCommand?: UpdateDoctorLanguageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId, languageCode, updateDoctorLanguageCommand, options);
2209
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2210
+ },
2211
+ /**
2212
+ *
2213
+ * @summary Create DoctorLanguage.
2214
+ * @param {string} doctorId
2215
+ * @param {CreateDoctorLanguageCommand} [createDoctorLanguageCommand]
2216
+ * @param {*} [options] Override http request option.
2217
+ * @throws {RequiredError}
2218
+ */
2219
+ async apiV1DoctorsDoctorIdLanguagesPost(doctorId: string, createDoctorLanguageCommand?: CreateDoctorLanguageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesPost(doctorId, createDoctorLanguageCommand, options);
2221
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2222
+ },
2223
+ /**
2224
+ *
2225
+ * @summary Get all DoctorMedias.
2226
+ * @param {string} doctorId
2227
+ * @param {string} [id]
2228
+ * @param {MediaType} [mediaType]
2229
+ * @param {number} [page]
2230
+ * @param {number} [limit]
2231
+ * @param {Date} [lastRetrieved]
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ */
2235
+ async apiV1DoctorsDoctorIdMediasGet(doctorId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
2236
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdMediasGet(doctorId, id, mediaType, page, limit, lastRetrieved, options);
2237
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2238
+ },
2239
+ /**
2240
+ *
2241
+ * @summary Delete DoctorMedia
2242
+ * @param {string} doctorId
2243
+ * @param {string} mediaId
2244
+ * @param {*} [options] Override http request option.
2245
+ * @throws {RequiredError}
2246
+ */
2247
+ async apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId, mediaId, options);
2249
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2250
+ },
2251
+ /**
2252
+ *
2253
+ * @summary Get DoctorMedia.
2254
+ * @param {string} doctorId
2255
+ * @param {string} mediaId
2256
+ * @param {*} [options] Override http request option.
2257
+ * @throws {RequiredError}
2258
+ */
2259
+ async apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
2260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId, mediaId, options);
2261
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2262
+ },
2263
+ /**
2264
+ *
2265
+ * @summary Update DoctorMedia.
2266
+ * @param {string} doctorId
2267
+ * @param {string} mediaId
2268
+ * @param {UpdateMediaCommand} [updateMediaCommand]
2269
+ * @param {*} [options] Override http request option.
2270
+ * @throws {RequiredError}
2271
+ */
2272
+ async apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
2273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId, mediaId, updateMediaCommand, options);
2274
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2275
+ },
2276
+ /**
2277
+ *
2278
+ * @summary Create DoctorMedia.
2279
+ * @param {string} doctorId
2280
+ * @param {CreateMediaCommand} [createMediaCommand]
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ async apiV1DoctorsDoctorIdMediasPost(doctorId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
2285
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdMediasPost(doctorId, createMediaCommand, options);
2286
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2287
+ },
2288
+ /**
2289
+ *
2290
+ * @summary Get All DoctorPortfolios
2291
+ * @param {string} doctorId
2292
+ * @param {string} [doctorName]
2293
+ * @param {string} [portfolioId]
2294
+ * @param {string} [name]
2295
+ * @param {number} [page]
2296
+ * @param {number} [limit]
2297
+ * @param {Date} [lastRetrieved]
2298
+ * @param {*} [options] Override http request option.
2299
+ * @throws {RequiredError}
2300
+ */
2301
+ async apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfoliosModel>> {
2302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options);
2303
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2304
+ },
2305
+ /**
2306
+ *
2307
+ * @summary Delete DoctorPortfolio.
2308
+ * @param {string} doctorId
2309
+ * @param {string} portfolioId
2310
+ * @param {*} [options] Override http request option.
2311
+ * @throws {RequiredError}
2312
+ */
2313
+ async apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId: string, portfolioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId, portfolioId, options);
2315
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2316
+ },
2317
+ /**
2318
+ *
2319
+ * @summary Get DoctorPortfolio.
2320
+ * @param {string} doctorId
2321
+ * @param {string} portfolioId
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ async apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId: string, portfolioId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfolioModel>> {
2326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId, portfolioId, options);
2327
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2328
+ },
2329
+ /**
2330
+ *
2331
+ * @summary Update DoctorPortfolio.
2332
+ * @param {string} doctorId
2333
+ * @param {string} portfolioId
2334
+ * @param {UpdateDoctorPortfolioCommand} [updateDoctorPortfolioCommand]
2335
+ * @param {*} [options] Override http request option.
2336
+ * @throws {RequiredError}
2337
+ */
2338
+ async apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId: string, portfolioId: string, updateDoctorPortfolioCommand?: UpdateDoctorPortfolioCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfolioModel>> {
2339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId, portfolioId, updateDoctorPortfolioCommand, options);
2340
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2341
+ },
2342
+ /**
2343
+ *
2344
+ * @summary Create DoctorPortfolio.
2345
+ * @param {string} doctorId
2346
+ * @param {CreateDoctorPortfolioCommand} [createDoctorPortfolioCommand]
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ */
2350
+ async apiV1DoctorsDoctorIdPortfoliosPost(doctorId: string, createDoctorPortfolioCommand?: CreateDoctorPortfolioCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfolioModel>> {
2351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosPost(doctorId, createDoctorPortfolioCommand, options);
2352
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2353
+ },
2354
+ /**
2355
+ *
2356
+ * @summary Update Doctor.
2357
+ * @param {string} doctorId
2358
+ * @param {UpdateDoctorCommand} [updateDoctorCommand]
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
2363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options);
2364
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2365
+ },
2366
+ /**
2367
+ *
2368
+ * @summary Delete Doctor.
2369
+ * @param {string} doctorId
2370
+ * @param {*} [options] Override http request option.
2371
+ * @throws {RequiredError}
2372
+ */
2373
+ async apiV1DoctorsDoctorIdReactivePut(doctorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2374
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdReactivePut(doctorId, options);
2375
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2376
+ },
2377
+ /**
2378
+ *
2379
+ * @summary Get All DoctorSpecialties.
2380
+ * @param {string} doctorId
2381
+ * @param {string} [doctorName]
2382
+ * @param {string} [specialtyId]
2383
+ * @param {string} [specialtyName]
2384
+ * @param {string} [languageCode]
2385
+ * @param {number} [page]
2386
+ * @param {number} [limit]
2387
+ * @param {Date} [lastRetrieved]
2388
+ * @param {*} [options] Override http request option.
2389
+ * @throws {RequiredError}
2390
+ */
2391
+ async apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtiesModel>> {
2392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, languageCode, page, limit, lastRetrieved, options);
2393
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2394
+ },
2395
+ /**
2396
+ *
2397
+ * @summary Link a doctor to a specialty.
2398
+ * @param {string} doctorId
2399
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ async apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
2404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options);
2405
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2406
+ },
2407
+ /**
2408
+ *
2409
+ * @summary Remove link between the doctor and the specialty.
2410
+ * @param {string} doctorId
2411
+ * @param {string} specialtyId
2412
+ * @param {*} [options] Override http request option.
2413
+ * @throws {RequiredError}
2414
+ */
2415
+ async apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId: string, specialtyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId, specialtyId, options);
2417
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2418
+ },
2419
+ /**
2420
+ *
2421
+ * @summary Get DoctorSpecialty
2422
+ * @param {string} doctorId
2423
+ * @param {string} specialtyId
2424
+ * @param {*} [options] Override http request option.
2425
+ * @throws {RequiredError}
2426
+ */
2427
+ async apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId: string, specialtyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
2428
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId, specialtyId, options);
2429
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2430
+ },
2431
+ /**
2432
+ *
2433
+ * @summary Update DoctorSpecialty.
2434
+ * @param {string} doctorId
2435
+ * @param {string} specialtyId
2436
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
2437
+ * @param {*} [options] Override http request option.
2438
+ * @throws {RequiredError}
2439
+ */
2440
+ async apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
2441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options);
2442
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2443
+ },
2444
+ /**
2445
+ *
2446
+ * @summary Get all Doctors.
2447
+ * @param {string} [hospitalId]
2448
+ * @param {string} [hospitalName]
2449
+ * @param {Array<string>} [ids]
2450
+ * @param {string} [specialtyId]
2451
+ * @param {boolean} [consultationEnabled]
2452
+ * @param {string} [id]
2453
+ * @param {string} [fullname]
2454
+ * @param {string} [email]
2455
+ * @param {Gender} [gender]
2456
+ * @param {Date} [dateOfBirth]
2457
+ * @param {Date} [created]
2458
+ * @param {boolean} [showHidden]
2459
+ * @param {number} [page]
2460
+ * @param {number} [limit]
2461
+ * @param {Date} [lastRetrieved]
2462
+ * @param {*} [options] Override http request option.
2463
+ * @throws {RequiredError}
2464
+ */
2465
+ async apiV1DoctorsGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorsModel>> {
2466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
2467
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2468
+ },
2469
+ /**
2470
+ *
2471
+ * @summary Create a Doctor.
2472
+ * @param {CreateDoctorCommand} [createDoctorCommand]
2473
+ * @param {*} [options] Override http request option.
2474
+ * @throws {RequiredError}
2475
+ */
2476
+ async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
2477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsPost(createDoctorCommand, options);
2478
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2479
+ },
2480
+ /**
2481
+ *
2482
+ * @summary Get all Doctors.
2483
+ * @param {string} [hospitalId]
2484
+ * @param {string} [hospitalName]
2485
+ * @param {Array<string>} [ids]
2486
+ * @param {string} [specialtyId]
2487
+ * @param {boolean} [consultationEnabled]
2488
+ * @param {string} [id]
2489
+ * @param {string} [fullname]
2490
+ * @param {string} [email]
2491
+ * @param {Gender} [gender]
2492
+ * @param {Date} [dateOfBirth]
2493
+ * @param {Date} [created]
2494
+ * @param {boolean} [showHidden]
2495
+ * @param {number} [page]
2496
+ * @param {number} [limit]
2497
+ * @param {Date} [lastRetrieved]
2498
+ * @param {*} [options] Override http request option.
2499
+ * @throws {RequiredError}
2500
+ */
2501
+ async apiV1DoctorsSimpleGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorsSimpleModel>> {
2502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsSimpleGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
2503
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2504
+ },
2505
+ }
2506
+ };
2507
+
2508
+ /**
2509
+ * DoctorsApi - factory interface
2510
+ * @export
2511
+ */
2512
+ export const DoctorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2513
+ const localVarFp = DoctorsApiFp(configuration)
2514
+ return {
2515
+ /**
2516
+ *
2517
+ * @summary Delete DoctorCertificate.
2518
+ * @param {string} doctorId
2519
+ * @param {string} certificateId
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId: string, certificateId: string, options?: any): AxiosPromise<boolean> {
2524
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId, certificateId, options).then((request) => request(axios, basePath));
2525
+ },
2526
+ /**
2527
+ *
2528
+ * @summary Get DoctorCertificate.
2529
+ * @param {string} doctorId
2530
+ * @param {string} certificateId
2531
+ * @param {*} [options] Override http request option.
2532
+ * @throws {RequiredError}
2533
+ */
2534
+ apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId: string, certificateId: string, options?: any): AxiosPromise<DoctorCertificateModel> {
2535
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId, certificateId, options).then((request) => request(axios, basePath));
2536
+ },
2537
+ /**
2538
+ *
2539
+ * @summary Update DoctorCertificate.
2540
+ * @param {string} doctorId
2541
+ * @param {string} certificateId
2542
+ * @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
2543
+ * @param {*} [options] Override http request option.
2544
+ * @throws {RequiredError}
2545
+ */
2546
+ apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId: string, certificateId: string, updateDoctorCertificateCommand?: UpdateDoctorCertificateCommand, options?: any): AxiosPromise<DoctorCertificateModel> {
2547
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId, certificateId, updateDoctorCertificateCommand, options).then((request) => request(axios, basePath));
2548
+ },
2549
+ /**
2550
+ *
2551
+ * @summary Delete DoctorCertificate.
2552
+ * @param {string} doctorId
2553
+ * @param {string} [doctorName]
2554
+ * @param {string} [certificateId]
2555
+ * @param {string} [certificate]
2556
+ * @param {Date} [activeFrom]
2557
+ * @param {Date} [activeTo]
2558
+ * @param {number} [page]
2559
+ * @param {number} [limit]
2560
+ * @param {Date} [lastRetrieved]
2561
+ * @param {*} [options] Override http request option.
2562
+ * @throws {RequiredError}
2563
+ */
2564
+ apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorCertificatesModel> {
2565
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2566
+ },
2567
+ /**
2568
+ *
2569
+ * @summary Create DoctorCertificate.
2570
+ * @param {string} doctorId
2571
+ * @param {CreateDoctorCertificateCommand} [createDoctorCertificateCommand]
2572
+ * @param {*} [options] Override http request option.
2573
+ * @throws {RequiredError}
2574
+ */
2575
+ apiV1DoctorsDoctorIdCertificatesPost(doctorId: string, createDoctorCertificateCommand?: CreateDoctorCertificateCommand, options?: any): AxiosPromise<DoctorCertificateModel> {
2576
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesPost(doctorId, createDoctorCertificateCommand, options).then((request) => request(axios, basePath));
2577
+ },
2578
+ /**
2579
+ *
2580
+ * @summary Delete Doctor.
2581
+ * @param {string} doctorId
2582
+ * @param {boolean} [isPermanent]
2583
+ * @param {*} [options] Override http request option.
2584
+ * @throws {RequiredError}
2585
+ */
2586
+ apiV1DoctorsDoctorIdDelete(doctorId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
2587
+ return localVarFp.apiV1DoctorsDoctorIdDelete(doctorId, isPermanent, options).then((request) => request(axios, basePath));
2588
+ },
2589
+ /**
2590
+ *
2591
+ * @summary Delete DoctorEducation
2592
+ * @param {string} doctorId
2593
+ * @param {string} educationId
2594
+ * @param {*} [options] Override http request option.
2595
+ * @throws {RequiredError}
2596
+ */
2597
+ apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId: string, educationId: string, options?: any): AxiosPromise<boolean> {
2598
+ return localVarFp.apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId, educationId, options).then((request) => request(axios, basePath));
2599
+ },
2600
+ /**
2601
+ *
2602
+ * @summary Get DoctorEducation.
2603
+ * @param {string} doctorId
2604
+ * @param {string} educationId
2605
+ * @param {*} [options] Override http request option.
2606
+ * @throws {RequiredError}
2607
+ */
2608
+ apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId: string, educationId: string, options?: any): AxiosPromise<DoctorEducationModel> {
2609
+ return localVarFp.apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId, educationId, options).then((request) => request(axios, basePath));
2610
+ },
2611
+ /**
2612
+ *
2613
+ * @summary Update DoctorEducation.
2614
+ * @param {string} doctorId
2615
+ * @param {string} educationId
2616
+ * @param {UpdateDoctorEducationCommand} [updateDoctorEducationCommand]
2617
+ * @param {*} [options] Override http request option.
2618
+ * @throws {RequiredError}
2619
+ */
2620
+ apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId: string, educationId: string, updateDoctorEducationCommand?: UpdateDoctorEducationCommand, options?: any): AxiosPromise<DoctorEducationModel> {
2621
+ return localVarFp.apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId, educationId, updateDoctorEducationCommand, options).then((request) => request(axios, basePath));
2622
+ },
2623
+ /**
2624
+ *
2625
+ * @summary Get all DoctorEducations.
2626
+ * @param {string} doctorId
2627
+ * @param {string} [doctorName]
2628
+ * @param {string} [educationId]
2629
+ * @param {string} [institution]
2630
+ * @param {string} [qualification]
2631
+ * @param {Date} [graduationDate]
2632
+ * @param {number} [page]
2633
+ * @param {number} [limit]
2634
+ * @param {Date} [lastRetrieved]
2635
+ * @param {*} [options] Override http request option.
2636
+ * @throws {RequiredError}
2637
+ */
2638
+ apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorEducationsModel> {
2639
+ return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2640
+ },
2641
+ /**
2642
+ *
2643
+ * @summary Create DoctorEducation.
2644
+ * @param {string} doctorId
2645
+ * @param {CreateDoctorEducationCommand} [createDoctorEducationCommand]
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ */
2649
+ apiV1DoctorsDoctorIdEducationsPost(doctorId: string, createDoctorEducationCommand?: CreateDoctorEducationCommand, options?: any): AxiosPromise<DoctorEducationModel> {
2650
+ return localVarFp.apiV1DoctorsDoctorIdEducationsPost(doctorId, createDoctorEducationCommand, options).then((request) => request(axios, basePath));
2651
+ },
2652
+ /**
2653
+ *
2654
+ * @summary
2655
+ * @param {string} doctorId
2656
+ * @param {*} [options] Override http request option.
2657
+ * @throws {RequiredError}
2658
+ */
2659
+ apiV1DoctorsDoctorIdGet(doctorId: string, options?: any): AxiosPromise<DoctorModel> {
2660
+ return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then((request) => request(axios, basePath));
2661
+ },
2662
+ /**
2663
+ *
2664
+ * @summary Get all DoctorLanguages.
2665
+ * @param {string} doctorId
2666
+ * @param {string} [languageCode]
2667
+ * @param {number} [page]
2668
+ * @param {number} [limit]
2669
+ * @param {Date} [lastRetrieved]
2670
+ * @param {*} [options] Override http request option.
2671
+ * @throws {RequiredError}
2672
+ */
2673
+ apiV1DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorLanguagesModel> {
2674
+ return localVarFp.apiV1DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2675
+ },
2676
+ /**
2677
+ *
2678
+ * @summary Delete DoctorLanguage
2679
+ * @param {string} doctorId
2680
+ * @param {string} languageCode
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId: string, languageCode: string, options?: any): AxiosPromise<boolean> {
2685
+ return localVarFp.apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId, languageCode, options).then((request) => request(axios, basePath));
2686
+ },
2687
+ /**
2688
+ *
2689
+ * @summary Get DoctorLanguage.
2690
+ * @param {string} doctorId
2691
+ * @param {string} languageCode
2692
+ * @param {*} [options] Override http request option.
2693
+ * @throws {RequiredError}
2694
+ */
2695
+ apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: any): AxiosPromise<DoctorLanguageModel> {
2696
+ return localVarFp.apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(axios, basePath));
2697
+ },
2698
+ /**
2699
+ *
2700
+ * @summary Update DoctorLanguage.
2701
+ * @param {string} doctorId
2702
+ * @param {string} languageCode
2703
+ * @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
2704
+ * @param {*} [options] Override http request option.
2705
+ * @throws {RequiredError}
2706
+ */
2707
+ apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId: string, languageCode: string, updateDoctorLanguageCommand?: UpdateDoctorLanguageCommand, options?: any): AxiosPromise<boolean> {
2708
+ return localVarFp.apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId, languageCode, updateDoctorLanguageCommand, options).then((request) => request(axios, basePath));
2709
+ },
2710
+ /**
2711
+ *
2712
+ * @summary Create DoctorLanguage.
2713
+ * @param {string} doctorId
2714
+ * @param {CreateDoctorLanguageCommand} [createDoctorLanguageCommand]
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ apiV1DoctorsDoctorIdLanguagesPost(doctorId: string, createDoctorLanguageCommand?: CreateDoctorLanguageCommand, options?: any): AxiosPromise<boolean> {
2719
+ return localVarFp.apiV1DoctorsDoctorIdLanguagesPost(doctorId, createDoctorLanguageCommand, options).then((request) => request(axios, basePath));
2720
+ },
2721
+ /**
2722
+ *
2723
+ * @summary Get all DoctorMedias.
2724
+ * @param {string} doctorId
2725
+ * @param {string} [id]
2726
+ * @param {MediaType} [mediaType]
2727
+ * @param {number} [page]
2728
+ * @param {number} [limit]
2729
+ * @param {Date} [lastRetrieved]
2730
+ * @param {*} [options] Override http request option.
2731
+ * @throws {RequiredError}
2732
+ */
2733
+ apiV1DoctorsDoctorIdMediasGet(doctorId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
2734
+ return localVarFp.apiV1DoctorsDoctorIdMediasGet(doctorId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2735
+ },
2736
+ /**
2737
+ *
2738
+ * @summary Delete DoctorMedia
2739
+ * @param {string} doctorId
2740
+ * @param {string} mediaId
2741
+ * @param {*} [options] Override http request option.
2742
+ * @throws {RequiredError}
2743
+ */
2744
+ apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
2745
+ return localVarFp.apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId, mediaId, options).then((request) => request(axios, basePath));
2746
+ },
2747
+ /**
2748
+ *
2749
+ * @summary Get DoctorMedia.
2750
+ * @param {string} doctorId
2751
+ * @param {string} mediaId
2752
+ * @param {*} [options] Override http request option.
2753
+ * @throws {RequiredError}
2754
+ */
2755
+ apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
2756
+ return localVarFp.apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId, mediaId, options).then((request) => request(axios, basePath));
2757
+ },
2758
+ /**
2759
+ *
2760
+ * @summary Update DoctorMedia.
2761
+ * @param {string} doctorId
2762
+ * @param {string} mediaId
2763
+ * @param {UpdateMediaCommand} [updateMediaCommand]
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
2768
+ return localVarFp.apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
2769
+ },
2770
+ /**
2771
+ *
2772
+ * @summary Create DoctorMedia.
2773
+ * @param {string} doctorId
2774
+ * @param {CreateMediaCommand} [createMediaCommand]
2775
+ * @param {*} [options] Override http request option.
2776
+ * @throws {RequiredError}
2777
+ */
2778
+ apiV1DoctorsDoctorIdMediasPost(doctorId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
2779
+ return localVarFp.apiV1DoctorsDoctorIdMediasPost(doctorId, createMediaCommand, options).then((request) => request(axios, basePath));
2780
+ },
2781
+ /**
2782
+ *
2783
+ * @summary Get All DoctorPortfolios
2784
+ * @param {string} doctorId
2785
+ * @param {string} [doctorName]
2786
+ * @param {string} [portfolioId]
2787
+ * @param {string} [name]
2788
+ * @param {number} [page]
2789
+ * @param {number} [limit]
2790
+ * @param {Date} [lastRetrieved]
2791
+ * @param {*} [options] Override http request option.
2792
+ * @throws {RequiredError}
2793
+ */
2794
+ apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorPortfoliosModel> {
2795
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2796
+ },
2797
+ /**
2798
+ *
2799
+ * @summary Delete DoctorPortfolio.
2800
+ * @param {string} doctorId
2801
+ * @param {string} portfolioId
2802
+ * @param {*} [options] Override http request option.
2803
+ * @throws {RequiredError}
2804
+ */
2805
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId: string, portfolioId: string, options?: any): AxiosPromise<boolean> {
2806
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId, portfolioId, options).then((request) => request(axios, basePath));
2807
+ },
2808
+ /**
2809
+ *
2810
+ * @summary Get DoctorPortfolio.
2811
+ * @param {string} doctorId
2812
+ * @param {string} portfolioId
2813
+ * @param {*} [options] Override http request option.
2814
+ * @throws {RequiredError}
2815
+ */
2816
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId: string, portfolioId: string, options?: any): AxiosPromise<DoctorPortfolioModel> {
2817
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId, portfolioId, options).then((request) => request(axios, basePath));
2818
+ },
2819
+ /**
2820
+ *
2821
+ * @summary Update DoctorPortfolio.
2822
+ * @param {string} doctorId
2823
+ * @param {string} portfolioId
2824
+ * @param {UpdateDoctorPortfolioCommand} [updateDoctorPortfolioCommand]
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ */
2828
+ apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId: string, portfolioId: string, updateDoctorPortfolioCommand?: UpdateDoctorPortfolioCommand, options?: any): AxiosPromise<DoctorPortfolioModel> {
2829
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId, portfolioId, updateDoctorPortfolioCommand, options).then((request) => request(axios, basePath));
2830
+ },
2831
+ /**
2832
+ *
2833
+ * @summary Create DoctorPortfolio.
2834
+ * @param {string} doctorId
2835
+ * @param {CreateDoctorPortfolioCommand} [createDoctorPortfolioCommand]
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ */
2839
+ apiV1DoctorsDoctorIdPortfoliosPost(doctorId: string, createDoctorPortfolioCommand?: CreateDoctorPortfolioCommand, options?: any): AxiosPromise<DoctorPortfolioModel> {
2840
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosPost(doctorId, createDoctorPortfolioCommand, options).then((request) => request(axios, basePath));
2841
+ },
2842
+ /**
2843
+ *
2844
+ * @summary Update Doctor.
2845
+ * @param {string} doctorId
2846
+ * @param {UpdateDoctorCommand} [updateDoctorCommand]
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
2851
+ return localVarFp.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options).then((request) => request(axios, basePath));
2852
+ },
2853
+ /**
2854
+ *
2855
+ * @summary Delete Doctor.
2856
+ * @param {string} doctorId
2857
+ * @param {*} [options] Override http request option.
2858
+ * @throws {RequiredError}
2859
+ */
2860
+ apiV1DoctorsDoctorIdReactivePut(doctorId: string, options?: any): AxiosPromise<boolean> {
2861
+ return localVarFp.apiV1DoctorsDoctorIdReactivePut(doctorId, options).then((request) => request(axios, basePath));
2862
+ },
2863
+ /**
2864
+ *
2865
+ * @summary Get All DoctorSpecialties.
2866
+ * @param {string} doctorId
2867
+ * @param {string} [doctorName]
2868
+ * @param {string} [specialtyId]
2869
+ * @param {string} [specialtyName]
2870
+ * @param {string} [languageCode]
2871
+ * @param {number} [page]
2872
+ * @param {number} [limit]
2873
+ * @param {Date} [lastRetrieved]
2874
+ * @param {*} [options] Override http request option.
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorSpecialtiesModel> {
2878
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2879
+ },
2880
+ /**
2881
+ *
2882
+ * @summary Link a doctor to a specialty.
2883
+ * @param {string} doctorId
2884
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
2885
+ * @param {*} [options] Override http request option.
2886
+ * @throws {RequiredError}
2887
+ */
2888
+ apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
2889
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
2890
+ },
2891
+ /**
2892
+ *
2893
+ * @summary Remove link between the doctor and the specialty.
2894
+ * @param {string} doctorId
2895
+ * @param {string} specialtyId
2896
+ * @param {*} [options] Override http request option.
2897
+ * @throws {RequiredError}
2898
+ */
2899
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId: string, specialtyId: string, options?: any): AxiosPromise<boolean> {
2900
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId, specialtyId, options).then((request) => request(axios, basePath));
2901
+ },
2902
+ /**
2903
+ *
2904
+ * @summary Get DoctorSpecialty
2905
+ * @param {string} doctorId
2906
+ * @param {string} specialtyId
2907
+ * @param {*} [options] Override http request option.
2908
+ * @throws {RequiredError}
2909
+ */
2910
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId: string, specialtyId: string, options?: any): AxiosPromise<DoctorSpecialtyModel> {
2911
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId, specialtyId, options).then((request) => request(axios, basePath));
2912
+ },
2913
+ /**
2914
+ *
2915
+ * @summary Update DoctorSpecialty.
2916
+ * @param {string} doctorId
2917
+ * @param {string} specialtyId
2918
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ */
2922
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
2923
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
2924
+ },
2925
+ /**
2926
+ *
2927
+ * @summary Get all Doctors.
2928
+ * @param {string} [hospitalId]
2929
+ * @param {string} [hospitalName]
2930
+ * @param {Array<string>} [ids]
2931
+ * @param {string} [specialtyId]
2932
+ * @param {boolean} [consultationEnabled]
2933
+ * @param {string} [id]
2934
+ * @param {string} [fullname]
2935
+ * @param {string} [email]
2936
+ * @param {Gender} [gender]
2937
+ * @param {Date} [dateOfBirth]
2938
+ * @param {Date} [created]
2939
+ * @param {boolean} [showHidden]
2940
+ * @param {number} [page]
2941
+ * @param {number} [limit]
2942
+ * @param {Date} [lastRetrieved]
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ */
2946
+ apiV1DoctorsGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorsModel> {
2947
+ return localVarFp.apiV1DoctorsGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2948
+ },
2949
+ /**
2950
+ *
2951
+ * @summary Create a Doctor.
2952
+ * @param {CreateDoctorCommand} [createDoctorCommand]
2953
+ * @param {*} [options] Override http request option.
2954
+ * @throws {RequiredError}
2955
+ */
2956
+ apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
2957
+ return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(axios, basePath));
2958
+ },
2959
+ /**
2960
+ *
2961
+ * @summary Get all Doctors.
2962
+ * @param {string} [hospitalId]
2963
+ * @param {string} [hospitalName]
2964
+ * @param {Array<string>} [ids]
2965
+ * @param {string} [specialtyId]
2966
+ * @param {boolean} [consultationEnabled]
2967
+ * @param {string} [id]
2968
+ * @param {string} [fullname]
2969
+ * @param {string} [email]
2970
+ * @param {Gender} [gender]
2971
+ * @param {Date} [dateOfBirth]
2972
+ * @param {Date} [created]
2973
+ * @param {boolean} [showHidden]
2974
+ * @param {number} [page]
2975
+ * @param {number} [limit]
2976
+ * @param {Date} [lastRetrieved]
2977
+ * @param {*} [options] Override http request option.
2978
+ * @throws {RequiredError}
2979
+ */
2980
+ apiV1DoctorsSimpleGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorsSimpleModel> {
2981
+ return localVarFp.apiV1DoctorsSimpleGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2982
+ },
2983
+ };
2984
+ };
2985
+
2986
+ /**
2987
+ * DoctorsApi - object-oriented interface
2988
+ * @export
2989
+ * @class DoctorsApi
2990
+ * @extends {BaseAPI}
2991
+ */
2992
+ export class DoctorsApi extends BaseAPI {
2993
+ /**
2994
+ *
2995
+ * @summary Delete DoctorCertificate.
2996
+ * @param {string} doctorId
2997
+ * @param {string} certificateId
2998
+ * @param {*} [options] Override http request option.
2999
+ * @throws {RequiredError}
3000
+ * @memberof DoctorsApi
3001
+ */
3002
+ public apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId: string, certificateId: string, options?: AxiosRequestConfig) {
3003
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId, certificateId, options).then((request) => request(this.axios, this.basePath));
3004
+ }
3005
+
3006
+ /**
3007
+ *
3008
+ * @summary Get DoctorCertificate.
3009
+ * @param {string} doctorId
3010
+ * @param {string} certificateId
3011
+ * @param {*} [options] Override http request option.
3012
+ * @throws {RequiredError}
3013
+ * @memberof DoctorsApi
3014
+ */
3015
+ public apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId: string, certificateId: string, options?: AxiosRequestConfig) {
3016
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId, certificateId, options).then((request) => request(this.axios, this.basePath));
3017
+ }
3018
+
3019
+ /**
3020
+ *
3021
+ * @summary Update DoctorCertificate.
3022
+ * @param {string} doctorId
3023
+ * @param {string} certificateId
3024
+ * @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
3025
+ * @param {*} [options] Override http request option.
3026
+ * @throws {RequiredError}
3027
+ * @memberof DoctorsApi
3028
+ */
3029
+ public apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId: string, certificateId: string, updateDoctorCertificateCommand?: UpdateDoctorCertificateCommand, options?: AxiosRequestConfig) {
3030
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId, certificateId, updateDoctorCertificateCommand, options).then((request) => request(this.axios, this.basePath));
3031
+ }
3032
+
3033
+ /**
3034
+ *
3035
+ * @summary Delete DoctorCertificate.
3036
+ * @param {string} doctorId
3037
+ * @param {string} [doctorName]
3038
+ * @param {string} [certificateId]
3039
+ * @param {string} [certificate]
3040
+ * @param {Date} [activeFrom]
3041
+ * @param {Date} [activeTo]
3042
+ * @param {number} [page]
3043
+ * @param {number} [limit]
3044
+ * @param {Date} [lastRetrieved]
3045
+ * @param {*} [options] Override http request option.
3046
+ * @throws {RequiredError}
3047
+ * @memberof DoctorsApi
3048
+ */
3049
+ public apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3050
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3051
+ }
3052
+
3053
+ /**
3054
+ *
3055
+ * @summary Create DoctorCertificate.
3056
+ * @param {string} doctorId
3057
+ * @param {CreateDoctorCertificateCommand} [createDoctorCertificateCommand]
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ * @memberof DoctorsApi
3061
+ */
3062
+ public apiV1DoctorsDoctorIdCertificatesPost(doctorId: string, createDoctorCertificateCommand?: CreateDoctorCertificateCommand, options?: AxiosRequestConfig) {
3063
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesPost(doctorId, createDoctorCertificateCommand, options).then((request) => request(this.axios, this.basePath));
3064
+ }
3065
+
3066
+ /**
3067
+ *
3068
+ * @summary Delete Doctor.
3069
+ * @param {string} doctorId
3070
+ * @param {boolean} [isPermanent]
3071
+ * @param {*} [options] Override http request option.
3072
+ * @throws {RequiredError}
3073
+ * @memberof DoctorsApi
3074
+ */
3075
+ public apiV1DoctorsDoctorIdDelete(doctorId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
3076
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdDelete(doctorId, isPermanent, options).then((request) => request(this.axios, this.basePath));
3077
+ }
3078
+
3079
+ /**
3080
+ *
3081
+ * @summary Delete DoctorEducation
3082
+ * @param {string} doctorId
3083
+ * @param {string} educationId
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ * @memberof DoctorsApi
3087
+ */
3088
+ public apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId: string, educationId: string, options?: AxiosRequestConfig) {
3089
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsEducationIdDelete(doctorId, educationId, options).then((request) => request(this.axios, this.basePath));
3090
+ }
3091
+
3092
+ /**
3093
+ *
3094
+ * @summary Get DoctorEducation.
3095
+ * @param {string} doctorId
3096
+ * @param {string} educationId
3097
+ * @param {*} [options] Override http request option.
3098
+ * @throws {RequiredError}
3099
+ * @memberof DoctorsApi
3100
+ */
3101
+ public apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId: string, educationId: string, options?: AxiosRequestConfig) {
3102
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsEducationIdGet(doctorId, educationId, options).then((request) => request(this.axios, this.basePath));
3103
+ }
3104
+
3105
+ /**
3106
+ *
3107
+ * @summary Update DoctorEducation.
3108
+ * @param {string} doctorId
3109
+ * @param {string} educationId
3110
+ * @param {UpdateDoctorEducationCommand} [updateDoctorEducationCommand]
3111
+ * @param {*} [options] Override http request option.
3112
+ * @throws {RequiredError}
3113
+ * @memberof DoctorsApi
3114
+ */
3115
+ public apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId: string, educationId: string, updateDoctorEducationCommand?: UpdateDoctorEducationCommand, options?: AxiosRequestConfig) {
3116
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsEducationIdPut(doctorId, educationId, updateDoctorEducationCommand, options).then((request) => request(this.axios, this.basePath));
3117
+ }
3118
+
3119
+ /**
3120
+ *
3121
+ * @summary Get all DoctorEducations.
3122
+ * @param {string} doctorId
3123
+ * @param {string} [doctorName]
3124
+ * @param {string} [educationId]
3125
+ * @param {string} [institution]
3126
+ * @param {string} [qualification]
3127
+ * @param {Date} [graduationDate]
3128
+ * @param {number} [page]
3129
+ * @param {number} [limit]
3130
+ * @param {Date} [lastRetrieved]
3131
+ * @param {*} [options] Override http request option.
3132
+ * @throws {RequiredError}
3133
+ * @memberof DoctorsApi
3134
+ */
3135
+ public apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3136
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3137
+ }
3138
+
3139
+ /**
3140
+ *
3141
+ * @summary Create DoctorEducation.
3142
+ * @param {string} doctorId
3143
+ * @param {CreateDoctorEducationCommand} [createDoctorEducationCommand]
3144
+ * @param {*} [options] Override http request option.
3145
+ * @throws {RequiredError}
3146
+ * @memberof DoctorsApi
3147
+ */
3148
+ public apiV1DoctorsDoctorIdEducationsPost(doctorId: string, createDoctorEducationCommand?: CreateDoctorEducationCommand, options?: AxiosRequestConfig) {
3149
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsPost(doctorId, createDoctorEducationCommand, options).then((request) => request(this.axios, this.basePath));
3150
+ }
3151
+
3152
+ /**
3153
+ *
3154
+ * @summary
3155
+ * @param {string} doctorId
3156
+ * @param {*} [options] Override http request option.
3157
+ * @throws {RequiredError}
3158
+ * @memberof DoctorsApi
3159
+ */
3160
+ public apiV1DoctorsDoctorIdGet(doctorId: string, options?: AxiosRequestConfig) {
3161
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then((request) => request(this.axios, this.basePath));
3162
+ }
3163
+
3164
+ /**
3165
+ *
3166
+ * @summary Get all DoctorLanguages.
3167
+ * @param {string} doctorId
3168
+ * @param {string} [languageCode]
3169
+ * @param {number} [page]
3170
+ * @param {number} [limit]
3171
+ * @param {Date} [lastRetrieved]
3172
+ * @param {*} [options] Override http request option.
3173
+ * @throws {RequiredError}
3174
+ * @memberof DoctorsApi
3175
+ */
3176
+ public apiV1DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3177
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3178
+ }
3179
+
3180
+ /**
3181
+ *
3182
+ * @summary Delete DoctorLanguage
3183
+ * @param {string} doctorId
3184
+ * @param {string} languageCode
3185
+ * @param {*} [options] Override http request option.
3186
+ * @throws {RequiredError}
3187
+ * @memberof DoctorsApi
3188
+ */
3189
+ public apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId: string, languageCode: string, options?: AxiosRequestConfig) {
3190
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesLanguageCodeDelete(doctorId, languageCode, options).then((request) => request(this.axios, this.basePath));
3191
+ }
3192
+
3193
+ /**
3194
+ *
3195
+ * @summary Get DoctorLanguage.
3196
+ * @param {string} doctorId
3197
+ * @param {string} languageCode
3198
+ * @param {*} [options] Override http request option.
3199
+ * @throws {RequiredError}
3200
+ * @memberof DoctorsApi
3201
+ */
3202
+ public apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig) {
3203
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(this.axios, this.basePath));
3204
+ }
3205
+
3206
+ /**
3207
+ *
3208
+ * @summary Update DoctorLanguage.
3209
+ * @param {string} doctorId
3210
+ * @param {string} languageCode
3211
+ * @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
3212
+ * @param {*} [options] Override http request option.
3213
+ * @throws {RequiredError}
3214
+ * @memberof DoctorsApi
3215
+ */
3216
+ public apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId: string, languageCode: string, updateDoctorLanguageCommand?: UpdateDoctorLanguageCommand, options?: AxiosRequestConfig) {
3217
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesLanguageCodePut(doctorId, languageCode, updateDoctorLanguageCommand, options).then((request) => request(this.axios, this.basePath));
3218
+ }
3219
+
3220
+ /**
3221
+ *
3222
+ * @summary Create DoctorLanguage.
3223
+ * @param {string} doctorId
3224
+ * @param {CreateDoctorLanguageCommand} [createDoctorLanguageCommand]
3225
+ * @param {*} [options] Override http request option.
3226
+ * @throws {RequiredError}
3227
+ * @memberof DoctorsApi
3228
+ */
3229
+ public apiV1DoctorsDoctorIdLanguagesPost(doctorId: string, createDoctorLanguageCommand?: CreateDoctorLanguageCommand, options?: AxiosRequestConfig) {
3230
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesPost(doctorId, createDoctorLanguageCommand, options).then((request) => request(this.axios, this.basePath));
3231
+ }
3232
+
3233
+ /**
3234
+ *
3235
+ * @summary Get all DoctorMedias.
3236
+ * @param {string} doctorId
3237
+ * @param {string} [id]
3238
+ * @param {MediaType} [mediaType]
3239
+ * @param {number} [page]
3240
+ * @param {number} [limit]
3241
+ * @param {Date} [lastRetrieved]
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ * @memberof DoctorsApi
3245
+ */
3246
+ public apiV1DoctorsDoctorIdMediasGet(doctorId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3247
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdMediasGet(doctorId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3248
+ }
3249
+
3250
+ /**
3251
+ *
3252
+ * @summary Delete DoctorMedia
3253
+ * @param {string} doctorId
3254
+ * @param {string} mediaId
3255
+ * @param {*} [options] Override http request option.
3256
+ * @throws {RequiredError}
3257
+ * @memberof DoctorsApi
3258
+ */
3259
+ public apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId: string, mediaId: string, options?: AxiosRequestConfig) {
3260
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdMediasMediaIdDelete(doctorId, mediaId, options).then((request) => request(this.axios, this.basePath));
3261
+ }
3262
+
3263
+ /**
3264
+ *
3265
+ * @summary Get DoctorMedia.
3266
+ * @param {string} doctorId
3267
+ * @param {string} mediaId
3268
+ * @param {*} [options] Override http request option.
3269
+ * @throws {RequiredError}
3270
+ * @memberof DoctorsApi
3271
+ */
3272
+ public apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId: string, mediaId: string, options?: AxiosRequestConfig) {
3273
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdMediasMediaIdGet(doctorId, mediaId, options).then((request) => request(this.axios, this.basePath));
3274
+ }
3275
+
3276
+ /**
3277
+ *
3278
+ * @summary Update DoctorMedia.
3279
+ * @param {string} doctorId
3280
+ * @param {string} mediaId
3281
+ * @param {UpdateMediaCommand} [updateMediaCommand]
3282
+ * @param {*} [options] Override http request option.
3283
+ * @throws {RequiredError}
3284
+ * @memberof DoctorsApi
3285
+ */
3286
+ public apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
3287
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdMediasMediaIdPut(doctorId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
3288
+ }
3289
+
3290
+ /**
3291
+ *
3292
+ * @summary Create DoctorMedia.
3293
+ * @param {string} doctorId
3294
+ * @param {CreateMediaCommand} [createMediaCommand]
3295
+ * @param {*} [options] Override http request option.
3296
+ * @throws {RequiredError}
3297
+ * @memberof DoctorsApi
3298
+ */
3299
+ public apiV1DoctorsDoctorIdMediasPost(doctorId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
3300
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdMediasPost(doctorId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
3301
+ }
3302
+
3303
+ /**
3304
+ *
3305
+ * @summary Get All DoctorPortfolios
3306
+ * @param {string} doctorId
3307
+ * @param {string} [doctorName]
3308
+ * @param {string} [portfolioId]
3309
+ * @param {string} [name]
3310
+ * @param {number} [page]
3311
+ * @param {number} [limit]
3312
+ * @param {Date} [lastRetrieved]
3313
+ * @param {*} [options] Override http request option.
3314
+ * @throws {RequiredError}
3315
+ * @memberof DoctorsApi
3316
+ */
3317
+ public apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3318
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3319
+ }
3320
+
3321
+ /**
3322
+ *
3323
+ * @summary Delete DoctorPortfolio.
3324
+ * @param {string} doctorId
3325
+ * @param {string} portfolioId
3326
+ * @param {*} [options] Override http request option.
3327
+ * @throws {RequiredError}
3328
+ * @memberof DoctorsApi
3329
+ */
3330
+ public apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId: string, portfolioId: string, options?: AxiosRequestConfig) {
3331
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosPortfolioIdDelete(doctorId, portfolioId, options).then((request) => request(this.axios, this.basePath));
3332
+ }
3333
+
3334
+ /**
3335
+ *
3336
+ * @summary Get DoctorPortfolio.
3337
+ * @param {string} doctorId
3338
+ * @param {string} portfolioId
3339
+ * @param {*} [options] Override http request option.
3340
+ * @throws {RequiredError}
3341
+ * @memberof DoctorsApi
3342
+ */
3343
+ public apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId: string, portfolioId: string, options?: AxiosRequestConfig) {
3344
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosPortfolioIdGet(doctorId, portfolioId, options).then((request) => request(this.axios, this.basePath));
3345
+ }
3346
+
3347
+ /**
3348
+ *
3349
+ * @summary Update DoctorPortfolio.
3350
+ * @param {string} doctorId
3351
+ * @param {string} portfolioId
3352
+ * @param {UpdateDoctorPortfolioCommand} [updateDoctorPortfolioCommand]
3353
+ * @param {*} [options] Override http request option.
3354
+ * @throws {RequiredError}
3355
+ * @memberof DoctorsApi
3356
+ */
3357
+ public apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId: string, portfolioId: string, updateDoctorPortfolioCommand?: UpdateDoctorPortfolioCommand, options?: AxiosRequestConfig) {
3358
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosPortfolioIdPut(doctorId, portfolioId, updateDoctorPortfolioCommand, options).then((request) => request(this.axios, this.basePath));
3359
+ }
3360
+
3361
+ /**
3362
+ *
3363
+ * @summary Create DoctorPortfolio.
3364
+ * @param {string} doctorId
3365
+ * @param {CreateDoctorPortfolioCommand} [createDoctorPortfolioCommand]
3366
+ * @param {*} [options] Override http request option.
3367
+ * @throws {RequiredError}
3368
+ * @memberof DoctorsApi
3369
+ */
3370
+ public apiV1DoctorsDoctorIdPortfoliosPost(doctorId: string, createDoctorPortfolioCommand?: CreateDoctorPortfolioCommand, options?: AxiosRequestConfig) {
3371
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosPost(doctorId, createDoctorPortfolioCommand, options).then((request) => request(this.axios, this.basePath));
3372
+ }
3373
+
3374
+ /**
3375
+ *
3376
+ * @summary Update Doctor.
3377
+ * @param {string} doctorId
3378
+ * @param {UpdateDoctorCommand} [updateDoctorCommand]
3379
+ * @param {*} [options] Override http request option.
3380
+ * @throws {RequiredError}
3381
+ * @memberof DoctorsApi
3382
+ */
3383
+ public apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig) {
3384
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options).then((request) => request(this.axios, this.basePath));
3385
+ }
3386
+
3387
+ /**
3388
+ *
3389
+ * @summary Delete Doctor.
3390
+ * @param {string} doctorId
3391
+ * @param {*} [options] Override http request option.
3392
+ * @throws {RequiredError}
3393
+ * @memberof DoctorsApi
3394
+ */
3395
+ public apiV1DoctorsDoctorIdReactivePut(doctorId: string, options?: AxiosRequestConfig) {
3396
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdReactivePut(doctorId, options).then((request) => request(this.axios, this.basePath));
3397
+ }
3398
+
3399
+ /**
3400
+ *
3401
+ * @summary Get All DoctorSpecialties.
3402
+ * @param {string} doctorId
3403
+ * @param {string} [doctorName]
3404
+ * @param {string} [specialtyId]
3405
+ * @param {string} [specialtyName]
3406
+ * @param {string} [languageCode]
3407
+ * @param {number} [page]
3408
+ * @param {number} [limit]
3409
+ * @param {Date} [lastRetrieved]
3410
+ * @param {*} [options] Override http request option.
3411
+ * @throws {RequiredError}
3412
+ * @memberof DoctorsApi
3413
+ */
3414
+ public apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3415
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3416
+ }
3417
+
3418
+ /**
3419
+ *
3420
+ * @summary Link a doctor to a specialty.
3421
+ * @param {string} doctorId
3422
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
3423
+ * @param {*} [options] Override http request option.
3424
+ * @throws {RequiredError}
3425
+ * @memberof DoctorsApi
3426
+ */
3427
+ public apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
3428
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
3429
+ }
3430
+
3431
+ /**
3432
+ *
3433
+ * @summary Remove link between the doctor and the specialty.
3434
+ * @param {string} doctorId
3435
+ * @param {string} specialtyId
3436
+ * @param {*} [options] Override http request option.
3437
+ * @throws {RequiredError}
3438
+ * @memberof DoctorsApi
3439
+ */
3440
+ public apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId: string, specialtyId: string, options?: AxiosRequestConfig) {
3441
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete(doctorId, specialtyId, options).then((request) => request(this.axios, this.basePath));
3442
+ }
3443
+
3444
+ /**
3445
+ *
3446
+ * @summary Get DoctorSpecialty
3447
+ * @param {string} doctorId
3448
+ * @param {string} specialtyId
3449
+ * @param {*} [options] Override http request option.
3450
+ * @throws {RequiredError}
3451
+ * @memberof DoctorsApi
3452
+ */
3453
+ public apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId: string, specialtyId: string, options?: AxiosRequestConfig) {
3454
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdGet(doctorId, specialtyId, options).then((request) => request(this.axios, this.basePath));
3455
+ }
3456
+
3457
+ /**
3458
+ *
3459
+ * @summary Update DoctorSpecialty.
3460
+ * @param {string} doctorId
3461
+ * @param {string} specialtyId
3462
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
3463
+ * @param {*} [options] Override http request option.
3464
+ * @throws {RequiredError}
3465
+ * @memberof DoctorsApi
3466
+ */
3467
+ public apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
3468
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
3469
+ }
3470
+
3471
+ /**
3472
+ *
3473
+ * @summary Get all Doctors.
3474
+ * @param {string} [hospitalId]
3475
+ * @param {string} [hospitalName]
3476
+ * @param {Array<string>} [ids]
3477
+ * @param {string} [specialtyId]
3478
+ * @param {boolean} [consultationEnabled]
3479
+ * @param {string} [id]
3480
+ * @param {string} [fullname]
3481
+ * @param {string} [email]
3482
+ * @param {Gender} [gender]
3483
+ * @param {Date} [dateOfBirth]
3484
+ * @param {Date} [created]
3485
+ * @param {boolean} [showHidden]
3486
+ * @param {number} [page]
3487
+ * @param {number} [limit]
3488
+ * @param {Date} [lastRetrieved]
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ * @memberof DoctorsApi
3492
+ */
3493
+ public apiV1DoctorsGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3494
+ return DoctorsApiFp(this.configuration).apiV1DoctorsGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3495
+ }
3496
+
3497
+ /**
3498
+ *
3499
+ * @summary Create a Doctor.
3500
+ * @param {CreateDoctorCommand} [createDoctorCommand]
3501
+ * @param {*} [options] Override http request option.
3502
+ * @throws {RequiredError}
3503
+ * @memberof DoctorsApi
3504
+ */
3505
+ public apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig) {
3506
+ return DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(this.axios, this.basePath));
3507
+ }
3508
+
3509
+ /**
3510
+ *
3511
+ * @summary Get all Doctors.
3512
+ * @param {string} [hospitalId]
3513
+ * @param {string} [hospitalName]
3514
+ * @param {Array<string>} [ids]
3515
+ * @param {string} [specialtyId]
3516
+ * @param {boolean} [consultationEnabled]
3517
+ * @param {string} [id]
3518
+ * @param {string} [fullname]
3519
+ * @param {string} [email]
3520
+ * @param {Gender} [gender]
3521
+ * @param {Date} [dateOfBirth]
3522
+ * @param {Date} [created]
3523
+ * @param {boolean} [showHidden]
3524
+ * @param {number} [page]
3525
+ * @param {number} [limit]
3526
+ * @param {Date} [lastRetrieved]
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ * @memberof DoctorsApi
3530
+ */
3531
+ public apiV1DoctorsSimpleGet(hospitalId?: string, hospitalName?: string, ids?: Array<string>, specialtyId?: string, consultationEnabled?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
3532
+ return DoctorsApiFp(this.configuration).apiV1DoctorsSimpleGet(hospitalId, hospitalName, ids, specialtyId, consultationEnabled, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3533
+ }
3534
+ }