ch-admin-api-client-typescript 4.9.3 → 4.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/appointments-api.d.ts +395 -0
- package/lib/api/appointments-api.d.ts.map +1 -0
- package/lib/api/appointments-api.js +929 -0
- package/lib/api/deals-api.d.ts +393 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +912 -10
- package/lib/api/doctor-affiliations-api.d.ts +191 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +437 -0
- package/lib/api/hospitals-api.d.ts +611 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +1439 -44
- package/lib/api/services-api.d.ts +8 -8
- package/lib/api/services-api.js +8 -8
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/appointment-change-log-model.d.ts +44 -0
- package/lib/models/appointment-change-log-model.d.ts.map +1 -0
- package/lib/models/appointment-change-log-model.js +15 -0
- package/lib/models/appointment-item-model.d.ts +282 -0
- package/lib/models/appointment-item-model.d.ts.map +1 -0
- package/lib/models/appointment-item-model.js +15 -0
- package/lib/models/appointment-model.d.ts +302 -0
- package/lib/models/appointment-model.d.ts.map +1 -0
- package/lib/models/appointment-model.js +15 -0
- package/lib/models/appointment-option-model.d.ts +63 -0
- package/lib/models/appointment-option-model.d.ts.map +1 -0
- package/lib/models/appointment-option-model.js +15 -0
- package/lib/models/appointment-status.d.ts +27 -0
- package/lib/models/appointment-status.d.ts.map +1 -0
- package/lib/models/appointment-status.js +30 -0
- package/lib/models/appointment-timetable-model.d.ts +44 -0
- package/lib/models/appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-model.js +15 -0
- package/lib/models/appointment-timetable-override-model.d.ts +56 -0
- package/lib/models/appointment-timetable-override-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-override-model.js +15 -0
- package/lib/models/appointment-timetable-overrides-model.d.ts +33 -0
- package/lib/models/appointment-timetable-overrides-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-overrides-model.js +15 -0
- package/lib/models/appointment-timetables-model.d.ts +33 -0
- package/lib/models/appointment-timetables-model.d.ts.map +1 -0
- package/lib/models/appointment-timetables-model.js +15 -0
- package/lib/models/appointment-type.d.ts +26 -0
- package/lib/models/appointment-type.d.ts.map +1 -0
- package/lib/models/appointment-type.js +29 -0
- package/lib/models/appointments-model.d.ts +33 -0
- package/lib/models/appointments-model.d.ts.map +1 -0
- package/lib/models/appointments-model.js +15 -0
- package/lib/models/approve-appointment-command.d.ts +31 -0
- package/lib/models/approve-appointment-command.d.ts.map +1 -0
- package/lib/models/approve-appointment-command.js +15 -0
- package/lib/models/batch-add-appointment-timetable-model.d.ts +38 -0
- package/lib/models/batch-add-appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/batch-add-appointment-timetable-model.js +15 -0
- package/lib/models/batch-appointment-timetables-result-model.d.ts +38 -0
- package/lib/models/batch-appointment-timetables-result-model.d.ts.map +1 -0
- package/lib/models/batch-appointment-timetables-result-model.js +15 -0
- package/lib/models/batch-deal-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-deal-appointment-timetables-command.js +15 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.js +15 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.js +15 -0
- package/lib/models/batch-hospital-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-hospital-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-hospital-appointment-timetables-command.js +15 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.js +15 -0
- package/lib/models/batch-service-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-service-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-service-appointment-timetables-command.js +15 -0
- package/lib/models/batch-update-appointment-timetable-model.d.ts +44 -0
- package/lib/models/batch-update-appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/batch-update-appointment-timetable-model.js +15 -0
- package/lib/models/create-article-command.d.ts +6 -0
- package/lib/models/create-article-command.d.ts.map +1 -1
- package/lib/models/create-deal-command.d.ts +7 -0
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-deal-package-command.d.ts +7 -0
- package/lib/models/create-deal-package-command.d.ts.map +1 -1
- package/lib/models/create-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +7 -0
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/create-hospital-service-command.d.ts +7 -0
- package/lib/models/create-hospital-service-command.d.ts.map +1 -1
- package/lib/models/create-hospital-specialty-command.d.ts +7 -0
- package/lib/models/create-hospital-specialty-command.d.ts.map +1 -1
- package/lib/models/deal-item-model.d.ts +7 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +7 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/deal-package-item-model.d.ts +7 -0
- package/lib/models/deal-package-item-model.d.ts.map +1 -1
- package/lib/models/deal-package-model.d.ts +7 -0
- package/lib/models/deal-package-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +7 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/hospital-service-item-model.d.ts +7 -0
- package/lib/models/hospital-service-item-model.d.ts.map +1 -1
- package/lib/models/hospital-service-model.d.ts +7 -0
- package/lib/models/hospital-service-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-item-model.d.ts +7 -0
- package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-model.d.ts +7 -0
- package/lib/models/hospital-specialty-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +30 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +30 -0
- package/lib/models/notification-code.d.ts +9 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +10 -1
- package/lib/models/reject-appointment-command.d.ts +32 -0
- package/lib/models/reject-appointment-command.d.ts.map +1 -0
- package/lib/models/reject-appointment-command.js +15 -0
- package/lib/models/save-appointment-timetable-override-model.d.ts +43 -0
- package/lib/models/save-appointment-timetable-override-model.d.ts.map +1 -0
- package/lib/models/save-appointment-timetable-override-model.js +15 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.d.ts +26 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.d.ts.map +1 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.js +15 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/update-deal-command.d.ts +7 -0
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-deal-package-command.d.ts +7 -0
- package/lib/models/update-deal-package-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +7 -0
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-hospital-service-command.d.ts +7 -0
- package/lib/models/update-hospital-service-command.d.ts.map +1 -1
- package/lib/models/update-hospital-specialty-command.d.ts +7 -0
- package/lib/models/update-hospital-specialty-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +445 -0
- package/src/.openapi-generator/VERSION +1 -0
- package/src/.openapi-generator-ignore +23 -0
- package/src/api/about-us-api.ts +624 -0
- package/src/api/accreditations-api.ts +473 -0
- package/src/api/app-version-api.ts +465 -0
- package/src/api/appointments-api.ts +802 -0
- package/src/api/articles-api.ts +2383 -0
- package/src/api/bookings-api.ts +738 -0
- package/src/api/chadmins-api.ts +519 -0
- package/src/api/chat-users-api.ts +620 -0
- package/src/api/chmanagers-api.ts +519 -0
- package/src/api/communications-api.ts +252 -0
- package/src/api/consultations-api.ts +756 -0
- package/src/api/contributors-api.ts +1090 -0
- package/src/api/countries-api.ts +1123 -0
- package/src/api/dash-board-api.ts +133 -0
- package/src/api/deals-api.ts +2728 -0
- package/src/api/doctor-affiliations-api.ts +1544 -0
- package/src/api/doctors-api.ts +3534 -0
- package/src/api/email-marketings-api.ts +529 -0
- package/src/api/faq-categories-api.ts +624 -0
- package/src/api/faqs-api.ts +1419 -0
- package/src/api/group-channels-api.ts +238 -0
- package/src/api/header-navigations-api.ts +445 -0
- package/src/api/hospitals-api.ts +8801 -0
- package/src/api/hospitals-consultation-timetable-overrides-api.ts +437 -0
- package/src/api/hospitals-consultation-timetables-api.ts +574 -0
- package/src/api/images-api.ts +120 -0
- package/src/api/languages-api.ts +481 -0
- package/src/api/managers-api.ts +884 -0
- package/src/api/memberships-api.ts +372 -0
- package/src/api/notifications-api.ts +241 -0
- package/src/api/patients-api.ts +769 -0
- package/src/api/payments-api.ts +114 -0
- package/src/api/plans-api.ts +889 -0
- package/src/api/profiles-api.ts +489 -0
- package/src/api/search-api.ts +132 -0
- package/src/api/service-reviews-api.ts +1015 -0
- package/src/api/services-api.ts +460 -0
- package/src/api/services-categories-api.ts +461 -0
- package/src/api/specialties-api.ts +1347 -0
- package/src/api/specialty-types-api.ts +1347 -0
- package/src/api/survey-forms-api.ts +515 -0
- package/src/api/survey-results-api.ts +328 -0
- package/src/api/tags-api.ts +385 -0
- package/src/api/translation-api.ts +131 -0
- package/src/api.ts +61 -0
- package/src/base.ts +71 -0
- package/src/common.ts +148 -0
- package/src/configuration.ts +101 -0
- package/src/git_push.sh +57 -0
- package/src/index.ts +18 -0
- package/src/models/about-us-page-item-model.ts +63 -0
- package/src/models/about-us-page-model.ts +126 -0
- package/src/models/about-us-pages-model.ts +42 -0
- package/src/models/accreditation-item-model.ts +48 -0
- package/src/models/accreditation-model.ts +48 -0
- package/src/models/accreditations-model.ts +42 -0
- package/src/models/admin-message-model.ts +84 -0
- package/src/models/app-version-item-model.ts +51 -0
- package/src/models/app-version-model.ts +51 -0
- package/src/models/app-versions-model.ts +42 -0
- package/src/models/appointment-change-log-model.ts +51 -0
- package/src/models/appointment-item-model.ts +297 -0
- package/src/models/appointment-model.ts +321 -0
- package/src/models/appointment-option-model.ts +72 -0
- package/src/models/appointment-status.ts +36 -0
- package/src/models/appointment-timetable-model.ts +51 -0
- package/src/models/appointment-timetable-override-model.ts +63 -0
- package/src/models/appointment-timetable-overrides-model.ts +42 -0
- package/src/models/appointment-timetables-model.ts +42 -0
- package/src/models/appointment-type.ts +35 -0
- package/src/models/appointments-model.ts +42 -0
- package/src/models/approve-appointment-command.ts +36 -0
- package/src/models/approve-booking-command.ts +36 -0
- package/src/models/approve-consultation-command.ts +36 -0
- package/src/models/article-contributor-item-model.ts +108 -0
- package/src/models/article-contributor-model.ts +135 -0
- package/src/models/article-contributors-model.ts +42 -0
- package/src/models/article-item-model.ts +150 -0
- package/src/models/article-model.ts +174 -0
- package/src/models/article-sources-model.ts +42 -0
- package/src/models/article-status.ts +32 -0
- package/src/models/article-tag-item-model.ts +42 -0
- package/src/models/article-tag-model.ts +42 -0
- package/src/models/article-tags-model.ts +42 -0
- package/src/models/articles-model.ts +42 -0
- package/src/models/auditable-entity-model.ts +72 -0
- package/src/models/auditable-entity.ts +72 -0
- package/src/models/batch-add-appointment-timetable-model.ts +45 -0
- package/src/models/batch-add-hospital-consultation-timetable-model.ts +45 -0
- package/src/models/batch-appointment-timetables-result-model.ts +45 -0
- package/src/models/batch-deal-appointment-timetables-command.ts +48 -0
- package/src/models/batch-deal-package-appointment-timetables-command.ts +48 -0
- package/src/models/batch-doctor-affiliation-appointment-timetables-command.ts +48 -0
- package/src/models/batch-hospital-appointment-timetables-command.ts +48 -0
- package/src/models/batch-hospital-consultation-timetable-result-model.ts +45 -0
- package/src/models/batch-hospital-consultation-timetables-command.ts +48 -0
- package/src/models/batch-hospital-specialty-appointment-timetables-command.ts +48 -0
- package/src/models/batch-service-appointment-timetables-command.ts +48 -0
- package/src/models/batch-update-appointment-timetable-model.ts +51 -0
- package/src/models/batch-update-hospital-consultation-timetable-model.ts +51 -0
- package/src/models/booking-change-log-model.ts +51 -0
- package/src/models/booking-item-model.ts +258 -0
- package/src/models/booking-model.ts +267 -0
- package/src/models/booking-status.ts +36 -0
- package/src/models/bookings-model.ts +42 -0
- package/src/models/chadmin-item-model.ts +120 -0
- package/src/models/chadmin-model.ts +144 -0
- package/src/models/chadmins-model.ts +42 -0
- package/src/models/change-email-command.ts +30 -0
- package/src/models/chat-user-model.ts +78 -0
- package/src/models/chat-users-model.ts +39 -0
- package/src/models/check-notifications-command.ts +36 -0
- package/src/models/chmanager-item-model.ts +120 -0
- package/src/models/chmanager-model.ts +144 -0
- package/src/models/chmanagers-model.ts +42 -0
- package/src/models/communication-user-token-model.ts +48 -0
- package/src/models/confirm-email-command.ts +30 -0
- package/src/models/consultation-change-log-model.ts +51 -0
- package/src/models/consultation-item-model.ts +288 -0
- package/src/models/consultation-model.ts +297 -0
- package/src/models/consultation-status.ts +36 -0
- package/src/models/consultation-type.ts +32 -0
- package/src/models/consultations-model.ts +42 -0
- package/src/models/contribution-type.ts +32 -0
- package/src/models/contributor-item-model.ts +117 -0
- package/src/models/contributor-model.ts +135 -0
- package/src/models/contributor-sns-handles-model.ts +42 -0
- package/src/models/contributors-model.ts +42 -0
- package/src/models/countries-model.ts +42 -0
- package/src/models/country-item-model.ts +69 -0
- package/src/models/country-model.ts +102 -0
- package/src/models/create-about-us-page-command.ts +81 -0
- package/src/models/create-accreditation-command.ts +42 -0
- package/src/models/create-app-version-command.ts +51 -0
- package/src/models/create-article-command.ts +126 -0
- package/src/models/create-article-contributor-command.ts +51 -0
- package/src/models/create-article-source-command.ts +42 -0
- package/src/models/create-article-tag-command.ts +36 -0
- package/src/models/create-chadmin-command.ts +93 -0
- package/src/models/create-chat-user-command.ts +60 -0
- package/src/models/create-chmanager-command.ts +93 -0
- package/src/models/create-contributor-command.ts +66 -0
- package/src/models/create-contributor-sns-handle-command.ts +39 -0
- package/src/models/create-country-command.ts +63 -0
- package/src/models/create-deal-command.ts +90 -0
- package/src/models/create-deal-package-command.ts +72 -0
- package/src/models/create-deal-service-command.ts +42 -0
- package/src/models/create-doctor-affiliation-command.ts +132 -0
- package/src/models/create-doctor-certificate-command.ts +42 -0
- package/src/models/create-doctor-command.ts +105 -0
- package/src/models/create-doctor-education-command.ts +42 -0
- package/src/models/create-doctor-language-command.ts +42 -0
- package/src/models/create-doctor-portfolio-command.ts +60 -0
- package/src/models/create-doctor-specialty-command.ts +36 -0
- package/src/models/create-faq-category-command.ts +60 -0
- package/src/models/create-faq-command.ts +78 -0
- package/src/models/create-faq-tag-command.ts +36 -0
- package/src/models/create-hospital-accreditation-command.ts +30 -0
- package/src/models/create-hospital-command.ts +180 -0
- package/src/models/create-hospital-consultation-timetable-command.ts +45 -0
- package/src/models/create-hospital-equipment-command.ts +36 -0
- package/src/models/create-hospital-evaluation-command.ts +48 -0
- package/src/models/create-hospital-language-command.ts +42 -0
- package/src/models/create-hospital-service-command.ts +123 -0
- package/src/models/create-hospital-sns-handle-command.ts +39 -0
- package/src/models/create-hospital-specialty-command.ts +108 -0
- package/src/models/create-hospital-working-day-command.ts +48 -0
- package/src/models/create-landing-command.ts +81 -0
- package/src/models/create-language-command.ts +60 -0
- package/src/models/create-manager-affiliation-command.ts +30 -0
- package/src/models/create-manager-command.ts +99 -0
- package/src/models/create-media-command.ts +57 -0
- package/src/models/create-patient-command.ts +99 -0
- package/src/models/create-plan-command.ts +69 -0
- package/src/models/create-plan-hospital-command.ts +36 -0
- package/src/models/create-profile-command.ts +111 -0
- package/src/models/create-service-category-command.ts +42 -0
- package/src/models/create-service-review-command.ts +75 -0
- package/src/models/create-specialty-command.ts +87 -0
- package/src/models/create-specialty-type-command.ts +90 -0
- package/src/models/create-survey-form-command.ts +84 -0
- package/src/models/create-tag-command.ts +30 -0
- package/src/models/create-template-version-command.ts +42 -0
- package/src/models/dash-board-model.ts +96 -0
- package/src/models/day-of-week.ts +36 -0
- package/src/models/deal-item-model.ts +129 -0
- package/src/models/deal-item-simple-model.ts +54 -0
- package/src/models/deal-model.ts +153 -0
- package/src/models/deal-package-item-model.ts +117 -0
- package/src/models/deal-package-model.ts +129 -0
- package/src/models/deal-packages-model.ts +42 -0
- package/src/models/deal-service-item-model.ts +72 -0
- package/src/models/deal-service-model.ts +72 -0
- package/src/models/deal-services-model.ts +42 -0
- package/src/models/deals-model.ts +42 -0
- package/src/models/deals-simple-model.ts +42 -0
- package/src/models/delete-hospital-consultation-timetable-override-command.ts +51 -0
- package/src/models/doctor-affiliation-item-model.ts +141 -0
- package/src/models/doctor-affiliation-model.ts +186 -0
- package/src/models/doctor-affiliations-model.ts +42 -0
- package/src/models/doctor-certificate-item-model.ts +60 -0
- package/src/models/doctor-certificate-model.ts +60 -0
- package/src/models/doctor-certificates-model.ts +42 -0
- package/src/models/doctor-education-item-model.ts +72 -0
- package/src/models/doctor-education-model.ts +72 -0
- package/src/models/doctor-educations-model.ts +42 -0
- package/src/models/doctor-item-model.ts +120 -0
- package/src/models/doctor-language-item-model.ts +60 -0
- package/src/models/doctor-language-model.ts +60 -0
- package/src/models/doctor-languages-model.ts +42 -0
- package/src/models/doctor-model.ts +150 -0
- package/src/models/doctor-portfolio-item-model.ts +66 -0
- package/src/models/doctor-portfolio-model.ts +66 -0
- package/src/models/doctor-portfolios-model.ts +42 -0
- package/src/models/doctor-simple-item-model.ts +54 -0
- package/src/models/doctor-specialties-model.ts +42 -0
- package/src/models/doctor-specialty-model.ts +66 -0
- package/src/models/doctors-model.ts +42 -0
- package/src/models/doctors-simple-model.ts +42 -0
- package/src/models/duration.ts +34 -0
- package/src/models/faq-categories-model.ts +42 -0
- package/src/models/faq-category-item-model.ts +99 -0
- package/src/models/faq-category-model.ts +117 -0
- package/src/models/faq-item-model.ts +129 -0
- package/src/models/faq-model.ts +153 -0
- package/src/models/faq-tag-item-model.ts +42 -0
- package/src/models/faq-tag-model.ts +42 -0
- package/src/models/faq-tags-model.ts +42 -0
- package/src/models/faqs-model.ts +42 -0
- package/src/models/gender.ts +34 -0
- package/src/models/group-channel-list.ts +63 -0
- package/src/models/group-channel.ts +174 -0
- package/src/models/header-navigation-item-model.ts +66 -0
- package/src/models/hospital-accreditation-item-model.ts +48 -0
- package/src/models/hospital-accreditation-model.ts +48 -0
- package/src/models/hospital-accreditations-model.ts +42 -0
- package/src/models/hospital-consultation-option-model.ts +42 -0
- package/src/models/hospital-consultation-timetable-item-model.ts +51 -0
- package/src/models/hospital-consultation-timetable-model.ts +51 -0
- package/src/models/hospital-consultation-timetable-override-item-model.ts +63 -0
- package/src/models/hospital-consultation-timetable-override-model.ts +63 -0
- package/src/models/hospital-consultation-timetable-overrides-model.ts +42 -0
- package/src/models/hospital-consultation-timetables-model.ts +42 -0
- package/src/models/hospital-equipment-item-model.ts +60 -0
- package/src/models/hospital-equipment-model.ts +60 -0
- package/src/models/hospital-equipments-model.ts +42 -0
- package/src/models/hospital-evaluation-item-model.ts +54 -0
- package/src/models/hospital-evaluation-model.ts +54 -0
- package/src/models/hospital-evaluations-model.ts +42 -0
- package/src/models/hospital-item-model.ts +156 -0
- package/src/models/hospital-language-item-model.ts +60 -0
- package/src/models/hospital-languages-model.ts +42 -0
- package/src/models/hospital-model.ts +231 -0
- package/src/models/hospital-service-item-model.ts +165 -0
- package/src/models/hospital-service-model.ts +228 -0
- package/src/models/hospital-services-model.ts +42 -0
- package/src/models/hospital-simple-item-model.ts +54 -0
- package/src/models/hospital-sns-handles-model.ts +42 -0
- package/src/models/hospital-specialties-model.ts +42 -0
- package/src/models/hospital-specialties-simple-model.ts +42 -0
- package/src/models/hospital-specialty-item-model.ts +141 -0
- package/src/models/hospital-specialty-model.ts +201 -0
- package/src/models/hospital-specialty-simple-item-model.ts +60 -0
- package/src/models/hospitals-model.ts +42 -0
- package/src/models/hospitals-simple-model.ts +42 -0
- package/src/models/http-status-code.ts +90 -0
- package/src/models/index.ts +391 -0
- package/src/models/invite-send-bird-group-channel-command.ts +30 -0
- package/src/models/jtoken.ts +27 -0
- package/src/models/landing-item-model.ts +81 -0
- package/src/models/landing-model.ts +141 -0
- package/src/models/landings-model.ts +42 -0
- package/src/models/language-item-model.ts +60 -0
- package/src/models/language-model.ts +60 -0
- package/src/models/languages-model.ts +42 -0
- package/src/models/leaved-group-channels-model.ts +42 -0
- package/src/models/localized-url-model.ts +36 -0
- package/src/models/location-model.ts +72 -0
- package/src/models/manager-affiliation-item-model.ts +48 -0
- package/src/models/manager-affiliation-model.ts +48 -0
- package/src/models/manager-affiliations-model.ts +42 -0
- package/src/models/manager-item-model.ts +126 -0
- package/src/models/manager-model.ts +150 -0
- package/src/models/managers-model.ts +42 -0
- package/src/models/marketing-type.ts +32 -0
- package/src/models/media-model.ts +63 -0
- package/src/models/media-type.ts +36 -0
- package/src/models/medias-model.ts +42 -0
- package/src/models/member-model.ts +69 -0
- package/src/models/members-model.ts +42 -0
- package/src/models/membership-item-model.ts +75 -0
- package/src/models/membership-model.ts +75 -0
- package/src/models/memberships-model.ts +42 -0
- package/src/models/mention-type.ts +31 -0
- package/src/models/message-type.ts +32 -0
- package/src/models/metadata.ts +42 -0
- package/src/models/model-file.ts +72 -0
- package/src/models/notification-code.ts +57 -0
- package/src/models/notification-model.ts +93 -0
- package/src/models/notifications-model.ts +48 -0
- package/src/models/paged-list-meta-data.ts +84 -0
- package/src/models/patient-item-model.ts +129 -0
- package/src/models/patient-model.ts +159 -0
- package/src/models/patients-model.ts +42 -0
- package/src/models/plan-hospital-item-model.ts +54 -0
- package/src/models/plan-hospital-model.ts +54 -0
- package/src/models/plan-hospitals-model.ts +42 -0
- package/src/models/plan-item-model.ts +75 -0
- package/src/models/plan-model.ts +75 -0
- package/src/models/plans-model.ts +42 -0
- package/src/models/platform.ts +32 -0
- package/src/models/problem-details.ts +56 -0
- package/src/models/procedure.ts +31 -0
- package/src/models/recurring-interval.ts +33 -0
- package/src/models/refund-policy.ts +32 -0
- package/src/models/reject-appointment-command.ts +39 -0
- package/src/models/reject-booking-command.ts +39 -0
- package/src/models/reject-consultation-command.ts +39 -0
- package/src/models/reject-reason.ts +33 -0
- package/src/models/review-type.ts +32 -0
- package/src/models/save-appointment-timetable-override-model.ts +48 -0
- package/src/models/save-appointment-timetable-overrides-result-model.ts +33 -0
- package/src/models/save-deal-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-deal-package-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-doctor-affiliation-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-header-navigation-item-model.ts +54 -0
- package/src/models/save-header-navigations-command.ts +33 -0
- package/src/models/save-hospital-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-hospital-consultation-timetable-override-model.ts +48 -0
- package/src/models/save-hospital-consultation-timetable-overrides-command.ts +33 -0
- package/src/models/save-hospital-specialty-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-service-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/search-index-type.ts +41 -0
- package/src/models/send-bird-group-channel-member.ts +87 -0
- package/src/models/send-bird-group-channel-model.ts +153 -0
- package/src/models/send-bird-group-channelr-operator.ts +42 -0
- package/src/models/send-template-version-command.ts +30 -0
- package/src/models/sendbird-response.ts +66 -0
- package/src/models/service-categories-model.ts +42 -0
- package/src/models/service-category-item-model.ts +60 -0
- package/src/models/service-category-mapping-model.ts +36 -0
- package/src/models/service-category-model.ts +60 -0
- package/src/models/service-review-item-model.ts +135 -0
- package/src/models/service-review-model.ts +153 -0
- package/src/models/service-reviews-model.ts +42 -0
- package/src/models/session-token.ts +36 -0
- package/src/models/sns-handle-model.ts +45 -0
- package/src/models/sns-type.ts +35 -0
- package/src/models/sorting-order.ts +31 -0
- package/src/models/source-model.ts +48 -0
- package/src/models/specialties-model.ts +42 -0
- package/src/models/specialties-simple-model.ts +42 -0
- package/src/models/specialty-item-model.ts +117 -0
- package/src/models/specialty-item-simple-model.ts +60 -0
- package/src/models/specialty-model.ts +141 -0
- package/src/models/specialty-type-item-model.ts +117 -0
- package/src/models/specialty-type-model.ts +135 -0
- package/src/models/specialty-type-simple-item-model.ts +54 -0
- package/src/models/specialty-types-model.ts +42 -0
- package/src/models/specialty-types-simple-model.ts +42 -0
- package/src/models/string-string-ienumerable-key-value-pair.ts +36 -0
- package/src/models/subscription-model.ts +42 -0
- package/src/models/survey-form-element-input-model.ts +90 -0
- package/src/models/survey-form-element-model.ts +90 -0
- package/src/models/survey-form-element-option-input-model.ts +60 -0
- package/src/models/survey-form-element-option-model.ts +66 -0
- package/src/models/survey-form-element-types.ts +41 -0
- package/src/models/survey-form-item-model.ts +72 -0
- package/src/models/survey-form-model.ts +99 -0
- package/src/models/survey-form-status.ts +31 -0
- package/src/models/survey-forms-model.ts +42 -0
- package/src/models/survey-result-element-model.ts +45 -0
- package/src/models/survey-result-element-value-model.ts +42 -0
- package/src/models/survey-result-item-model.ts +81 -0
- package/src/models/survey-result-model.ts +108 -0
- package/src/models/survey-result-user-model.ts +42 -0
- package/src/models/survey-results-model.ts +42 -0
- package/src/models/tag-item-model.ts +48 -0
- package/src/models/tag-model.ts +48 -0
- package/src/models/tags-model.ts +42 -0
- package/src/models/template-version-item-model.ts +72 -0
- package/src/models/template-version-model.ts +72 -0
- package/src/models/template-versions-model.ts +42 -0
- package/src/models/text-message.ts +141 -0
- package/src/models/translate-all-options.ts +32 -0
- package/src/models/translate-command.ts +48 -0
- package/src/models/translate-doctor-affiliation-command.ts +45 -0
- package/src/models/translate-hospital-command.ts +45 -0
- package/src/models/update-about-us-page-command.ts +105 -0
- package/src/models/update-accreditation-command.ts +42 -0
- package/src/models/update-app-version-command.ts +42 -0
- package/src/models/update-article-command.ts +144 -0
- package/src/models/update-article-contributor-command.ts +45 -0
- package/src/models/update-article-source-command.ts +42 -0
- package/src/models/update-chadmin-command.ts +93 -0
- package/src/models/update-chat-user-command.ts +48 -0
- package/src/models/update-chmanager-command.ts +93 -0
- package/src/models/update-contributor-command.ts +84 -0
- package/src/models/update-contributor-sns-handle-command.ts +39 -0
- package/src/models/update-country-command.ts +81 -0
- package/src/models/update-deal-command.ts +96 -0
- package/src/models/update-deal-package-command.ts +72 -0
- package/src/models/update-deal-service-command.ts +30 -0
- package/src/models/update-doctor-affiliation-command.ts +132 -0
- package/src/models/update-doctor-certificate-command.ts +42 -0
- package/src/models/update-doctor-command.ts +93 -0
- package/src/models/update-doctor-education-command.ts +42 -0
- package/src/models/update-doctor-language-command.ts +36 -0
- package/src/models/update-doctor-portfolio-command.ts +60 -0
- package/src/models/update-doctor-specialty-command.ts +30 -0
- package/src/models/update-faq-category-command.ts +66 -0
- package/src/models/update-faq-command.ts +96 -0
- package/src/models/update-hospital-command.ts +192 -0
- package/src/models/update-hospital-consultation-timetable-command.ts +45 -0
- package/src/models/update-hospital-equipment-command.ts +54 -0
- package/src/models/update-hospital-language-command.ts +36 -0
- package/src/models/update-hospital-service-command.ts +135 -0
- package/src/models/update-hospital-sns-handle-command.ts +39 -0
- package/src/models/update-hospital-specialty-command.ts +114 -0
- package/src/models/update-hospital-working-day-command.ts +48 -0
- package/src/models/update-landing-command.ts +93 -0
- package/src/models/update-language-command.ts +54 -0
- package/src/models/update-manager-command.ts +99 -0
- package/src/models/update-media-command.ts +57 -0
- package/src/models/update-patient-command.ts +93 -0
- package/src/models/update-plan-command.ts +63 -0
- package/src/models/update-plan-hospital-command.ts +30 -0
- package/src/models/update-profile-command.ts +99 -0
- package/src/models/update-service-category-command.ts +42 -0
- package/src/models/update-service-review-command.ts +72 -0
- package/src/models/update-specialty-command.ts +105 -0
- package/src/models/update-specialty-type-command.ts +108 -0
- package/src/models/update-survey-form-command.ts +78 -0
- package/src/models/update-template-version-command.ts +42 -0
- package/src/models/user-language-model.ts +60 -0
- package/src/models/user-location-model.ts +81 -0
- package/src/models/user-location-type.ts +31 -0
- package/src/models/user-model.ts +144 -0
- package/src/models/user.ts +123 -0
- package/src/models/working-day-item-model.ts +54 -0
- package/src/models/working-day-model.ts +54 -0
- package/src/models/working-days-model.ts +42 -0
|
@@ -0,0 +1,2383 @@
|
|
|
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 { ArticleContributorModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ArticleContributorsModel } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ArticleModel } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ArticleSourcesModel } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ArticleTagModel } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ArticleTagsModel } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { ArticlesModel } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { ContributionType } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { CreateArticleCommand } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { CreateArticleContributorCommand } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { CreateArticleSourceCommand } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { CreateArticleTagCommand } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { CreateMediaCommand } from '../models';
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
import { MarketingType } from '../models';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import { MediaModel } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import { MediaType } from '../models';
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
import { MediasModel } from '../models';
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
import { ProblemDetails } from '../models';
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
import { SourceModel } from '../models';
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
import { UpdateArticleCommand } from '../models';
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import { UpdateArticleContributorCommand } from '../models';
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
import { UpdateArticleSourceCommand } from '../models';
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
import { UpdateMediaCommand } from '../models';
|
|
69
|
+
/**
|
|
70
|
+
* ArticlesApi - axios parameter creator
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const ArticlesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
74
|
+
return {
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @summary Delete ArticleContributor.
|
|
78
|
+
* @param {string} articleId
|
|
79
|
+
* @param {string} contributorId
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
apiV1ArticlesArticleIdContributorsContributorIdDelete: async (articleId: string, contributorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
84
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
85
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdDelete', 'articleId', articleId)
|
|
86
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
87
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdDelete', 'contributorId', contributorId)
|
|
88
|
+
const localVarPath = `/api/v1/articles/{articleId}/contributors/{contributorId}`
|
|
89
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
90
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
91
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
93
|
+
let baseOptions;
|
|
94
|
+
if (configuration) {
|
|
95
|
+
baseOptions = configuration.baseOptions;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
99
|
+
const localVarHeaderParameter = {} as any;
|
|
100
|
+
const localVarQueryParameter = {} as any;
|
|
101
|
+
|
|
102
|
+
// authentication oauth2 required
|
|
103
|
+
// oauth required
|
|
104
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
url: toPathString(localVarUrlObj),
|
|
114
|
+
options: localVarRequestOptions,
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @summary Get ArticleContributor.
|
|
120
|
+
* @param {string} articleId
|
|
121
|
+
* @param {string} contributorId
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
apiV1ArticlesArticleIdContributorsContributorIdGet: async (articleId: string, contributorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
126
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
127
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdGet', 'articleId', articleId)
|
|
128
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
129
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdGet', 'contributorId', contributorId)
|
|
130
|
+
const localVarPath = `/api/v1/articles/{articleId}/contributors/{contributorId}`
|
|
131
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
132
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
135
|
+
let baseOptions;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
141
|
+
const localVarHeaderParameter = {} as any;
|
|
142
|
+
const localVarQueryParameter = {} as any;
|
|
143
|
+
|
|
144
|
+
// authentication oauth2 required
|
|
145
|
+
// oauth required
|
|
146
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary Update ArticleContributor.
|
|
162
|
+
* @param {string} articleId
|
|
163
|
+
* @param {string} contributorId
|
|
164
|
+
* @param {UpdateArticleContributorCommand} [updateArticleContributorCommand]
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
apiV1ArticlesArticleIdContributorsContributorIdPut: async (articleId: string, contributorId: string, updateArticleContributorCommand?: UpdateArticleContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
169
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
170
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdPut', 'articleId', articleId)
|
|
171
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
172
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsContributorIdPut', 'contributorId', contributorId)
|
|
173
|
+
const localVarPath = `/api/v1/articles/{articleId}/contributors/{contributorId}`
|
|
174
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
175
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
178
|
+
let baseOptions;
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
184
|
+
const localVarHeaderParameter = {} as any;
|
|
185
|
+
const localVarQueryParameter = {} as any;
|
|
186
|
+
|
|
187
|
+
// authentication oauth2 required
|
|
188
|
+
// oauth required
|
|
189
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
194
|
+
|
|
195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
198
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateArticleContributorCommand, localVarRequestOptions, configuration)
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
url: toPathString(localVarUrlObj),
|
|
202
|
+
options: localVarRequestOptions,
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @summary GetAll ArticleContributors.
|
|
208
|
+
* @param {string} articleId
|
|
209
|
+
* @param {string} [articleName]
|
|
210
|
+
* @param {string} [contributorId]
|
|
211
|
+
* @param {string} [contributorName]
|
|
212
|
+
* @param {string} [email]
|
|
213
|
+
* @param {string} [website]
|
|
214
|
+
* @param {ContributionType} [contributionType]
|
|
215
|
+
* @param {string} [languageCode]
|
|
216
|
+
* @param {boolean} [showHidden]
|
|
217
|
+
* @param {number} [page]
|
|
218
|
+
* @param {number} [limit]
|
|
219
|
+
* @param {Date} [lastRetrieved]
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
apiV1ArticlesArticleIdContributorsGet: async (articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, website?: string, contributionType?: ContributionType, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
224
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
225
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsGet', 'articleId', articleId)
|
|
226
|
+
const localVarPath = `/api/v1/articles/{articleId}/contributors`
|
|
227
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
230
|
+
let baseOptions;
|
|
231
|
+
if (configuration) {
|
|
232
|
+
baseOptions = configuration.baseOptions;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
236
|
+
const localVarHeaderParameter = {} as any;
|
|
237
|
+
const localVarQueryParameter = {} as any;
|
|
238
|
+
|
|
239
|
+
// authentication oauth2 required
|
|
240
|
+
// oauth required
|
|
241
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
242
|
+
|
|
243
|
+
if (articleName !== undefined) {
|
|
244
|
+
localVarQueryParameter['ArticleName'] = articleName;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (contributorId !== undefined) {
|
|
248
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (contributorName !== undefined) {
|
|
252
|
+
localVarQueryParameter['ContributorName'] = contributorName;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (email !== undefined) {
|
|
256
|
+
localVarQueryParameter['Email'] = email;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (website !== undefined) {
|
|
260
|
+
localVarQueryParameter['Website'] = website;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (contributionType !== undefined) {
|
|
264
|
+
localVarQueryParameter['ContributionType'] = contributionType;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (languageCode !== undefined) {
|
|
268
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (showHidden !== undefined) {
|
|
272
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (page !== undefined) {
|
|
276
|
+
localVarQueryParameter['page'] = page;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (limit !== undefined) {
|
|
280
|
+
localVarQueryParameter['limit'] = limit;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (lastRetrieved !== undefined) {
|
|
284
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
285
|
+
(lastRetrieved as any).toISOString() :
|
|
286
|
+
lastRetrieved;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
url: toPathString(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Create ArticleContributor.
|
|
303
|
+
* @param {string} articleId
|
|
304
|
+
* @param {CreateArticleContributorCommand} [createArticleContributorCommand]
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
apiV1ArticlesArticleIdContributorsPost: async (articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
309
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
310
|
+
assertParamExists('apiV1ArticlesArticleIdContributorsPost', 'articleId', articleId)
|
|
311
|
+
const localVarPath = `/api/v1/articles/{articleId}/contributors`
|
|
312
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
321
|
+
const localVarHeaderParameter = {} as any;
|
|
322
|
+
const localVarQueryParameter = {} as any;
|
|
323
|
+
|
|
324
|
+
// authentication oauth2 required
|
|
325
|
+
// oauth required
|
|
326
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
|
+
|
|
332
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
334
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createArticleContributorCommand, localVarRequestOptions, configuration)
|
|
336
|
+
|
|
337
|
+
return {
|
|
338
|
+
url: toPathString(localVarUrlObj),
|
|
339
|
+
options: localVarRequestOptions,
|
|
340
|
+
};
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary Delete Article.
|
|
345
|
+
* @param {string} articleId
|
|
346
|
+
* @param {boolean} [isPermanent]
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
apiV1ArticlesArticleIdDelete: async (articleId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
351
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
352
|
+
assertParamExists('apiV1ArticlesArticleIdDelete', 'articleId', articleId)
|
|
353
|
+
const localVarPath = `/api/v1/articles/{articleId}`
|
|
354
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
357
|
+
let baseOptions;
|
|
358
|
+
if (configuration) {
|
|
359
|
+
baseOptions = configuration.baseOptions;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
363
|
+
const localVarHeaderParameter = {} as any;
|
|
364
|
+
const localVarQueryParameter = {} as any;
|
|
365
|
+
|
|
366
|
+
// authentication oauth2 required
|
|
367
|
+
// oauth required
|
|
368
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
369
|
+
|
|
370
|
+
if (isPermanent !== undefined) {
|
|
371
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
379
|
+
|
|
380
|
+
return {
|
|
381
|
+
url: toPathString(localVarUrlObj),
|
|
382
|
+
options: localVarRequestOptions,
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary Get Article.
|
|
388
|
+
* @param {string} articleId
|
|
389
|
+
* @param {string} [languageCode]
|
|
390
|
+
* @param {boolean} [returnDefaultValue]
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
apiV1ArticlesArticleIdGet: async (articleId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
395
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
396
|
+
assertParamExists('apiV1ArticlesArticleIdGet', 'articleId', articleId)
|
|
397
|
+
const localVarPath = `/api/v1/articles/{articleId}`
|
|
398
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
399
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
400
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
401
|
+
let baseOptions;
|
|
402
|
+
if (configuration) {
|
|
403
|
+
baseOptions = configuration.baseOptions;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
407
|
+
const localVarHeaderParameter = {} as any;
|
|
408
|
+
const localVarQueryParameter = {} as any;
|
|
409
|
+
|
|
410
|
+
// authentication oauth2 required
|
|
411
|
+
// oauth required
|
|
412
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
413
|
+
|
|
414
|
+
if (languageCode !== undefined) {
|
|
415
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (returnDefaultValue !== undefined) {
|
|
419
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
427
|
+
|
|
428
|
+
return {
|
|
429
|
+
url: toPathString(localVarUrlObj),
|
|
430
|
+
options: localVarRequestOptions,
|
|
431
|
+
};
|
|
432
|
+
},
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @summary Get all ArticleMedias.
|
|
436
|
+
* @param {string} articleId
|
|
437
|
+
* @param {string} [id]
|
|
438
|
+
* @param {MediaType} [mediaType]
|
|
439
|
+
* @param {number} [page]
|
|
440
|
+
* @param {number} [limit]
|
|
441
|
+
* @param {Date} [lastRetrieved]
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
apiV1ArticlesArticleIdMediasGet: async (articleId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
446
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
447
|
+
assertParamExists('apiV1ArticlesArticleIdMediasGet', 'articleId', articleId)
|
|
448
|
+
const localVarPath = `/api/v1/articles/{articleId}/medias`
|
|
449
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
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
|
+
if (id !== undefined) {
|
|
466
|
+
localVarQueryParameter['Id'] = id;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (mediaType !== undefined) {
|
|
470
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if (page !== undefined) {
|
|
474
|
+
localVarQueryParameter['page'] = page;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (limit !== undefined) {
|
|
478
|
+
localVarQueryParameter['limit'] = limit;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (lastRetrieved !== undefined) {
|
|
482
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
483
|
+
(lastRetrieved as any).toISOString() :
|
|
484
|
+
lastRetrieved;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
491
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
492
|
+
|
|
493
|
+
return {
|
|
494
|
+
url: toPathString(localVarUrlObj),
|
|
495
|
+
options: localVarRequestOptions,
|
|
496
|
+
};
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @summary Delete ArticleMedia
|
|
501
|
+
* @param {string} articleId
|
|
502
|
+
* @param {string} mediaId
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
apiV1ArticlesArticleIdMediasMediaIdDelete: async (articleId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
507
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
508
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdDelete', 'articleId', articleId)
|
|
509
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
510
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdDelete', 'mediaId', mediaId)
|
|
511
|
+
const localVarPath = `/api/v1/articles/{articleId}/medias/{mediaId}`
|
|
512
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
513
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
516
|
+
let baseOptions;
|
|
517
|
+
if (configuration) {
|
|
518
|
+
baseOptions = configuration.baseOptions;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
522
|
+
const localVarHeaderParameter = {} as any;
|
|
523
|
+
const localVarQueryParameter = {} as any;
|
|
524
|
+
|
|
525
|
+
// authentication oauth2 required
|
|
526
|
+
// oauth required
|
|
527
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
532
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
533
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
534
|
+
|
|
535
|
+
return {
|
|
536
|
+
url: toPathString(localVarUrlObj),
|
|
537
|
+
options: localVarRequestOptions,
|
|
538
|
+
};
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @summary Get ArticleMedia.
|
|
543
|
+
* @param {string} articleId
|
|
544
|
+
* @param {string} mediaId
|
|
545
|
+
* @param {*} [options] Override http request option.
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
*/
|
|
548
|
+
apiV1ArticlesArticleIdMediasMediaIdGet: async (articleId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
549
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
550
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdGet', 'articleId', articleId)
|
|
551
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
552
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
553
|
+
const localVarPath = `/api/v1/articles/{articleId}/medias/{mediaId}`
|
|
554
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
555
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
556
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
558
|
+
let baseOptions;
|
|
559
|
+
if (configuration) {
|
|
560
|
+
baseOptions = configuration.baseOptions;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
564
|
+
const localVarHeaderParameter = {} as any;
|
|
565
|
+
const localVarQueryParameter = {} as any;
|
|
566
|
+
|
|
567
|
+
// authentication oauth2 required
|
|
568
|
+
// oauth required
|
|
569
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
575
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
576
|
+
|
|
577
|
+
return {
|
|
578
|
+
url: toPathString(localVarUrlObj),
|
|
579
|
+
options: localVarRequestOptions,
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Update ArticleMedia.
|
|
585
|
+
* @param {string} articleId
|
|
586
|
+
* @param {string} mediaId
|
|
587
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
apiV1ArticlesArticleIdMediasMediaIdPut: async (articleId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
592
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
593
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdPut', 'articleId', articleId)
|
|
594
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
595
|
+
assertParamExists('apiV1ArticlesArticleIdMediasMediaIdPut', 'mediaId', mediaId)
|
|
596
|
+
const localVarPath = `/api/v1/articles/{articleId}/medias/{mediaId}`
|
|
597
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
598
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
601
|
+
let baseOptions;
|
|
602
|
+
if (configuration) {
|
|
603
|
+
baseOptions = configuration.baseOptions;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
607
|
+
const localVarHeaderParameter = {} as any;
|
|
608
|
+
const localVarQueryParameter = {} as any;
|
|
609
|
+
|
|
610
|
+
// authentication oauth2 required
|
|
611
|
+
// oauth required
|
|
612
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
617
|
+
|
|
618
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
620
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
621
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
|
|
622
|
+
|
|
623
|
+
return {
|
|
624
|
+
url: toPathString(localVarUrlObj),
|
|
625
|
+
options: localVarRequestOptions,
|
|
626
|
+
};
|
|
627
|
+
},
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @summary Create ArticleMedia.
|
|
631
|
+
* @param {string} articleId
|
|
632
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
apiV1ArticlesArticleIdMediasPost: async (articleId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
637
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
638
|
+
assertParamExists('apiV1ArticlesArticleIdMediasPost', 'articleId', articleId)
|
|
639
|
+
const localVarPath = `/api/v1/articles/{articleId}/medias`
|
|
640
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
642
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
643
|
+
let baseOptions;
|
|
644
|
+
if (configuration) {
|
|
645
|
+
baseOptions = configuration.baseOptions;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
649
|
+
const localVarHeaderParameter = {} as any;
|
|
650
|
+
const localVarQueryParameter = {} as any;
|
|
651
|
+
|
|
652
|
+
// authentication oauth2 required
|
|
653
|
+
// oauth required
|
|
654
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
659
|
+
|
|
660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
662
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
663
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
|
|
664
|
+
|
|
665
|
+
return {
|
|
666
|
+
url: toPathString(localVarUrlObj),
|
|
667
|
+
options: localVarRequestOptions,
|
|
668
|
+
};
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @summary Update Article.
|
|
673
|
+
* @param {string} articleId
|
|
674
|
+
* @param {UpdateArticleCommand} [updateArticleCommand]
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
apiV1ArticlesArticleIdPut: async (articleId: string, updateArticleCommand?: UpdateArticleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
679
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
680
|
+
assertParamExists('apiV1ArticlesArticleIdPut', 'articleId', articleId)
|
|
681
|
+
const localVarPath = `/api/v1/articles/{articleId}`
|
|
682
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
|
+
let baseOptions;
|
|
686
|
+
if (configuration) {
|
|
687
|
+
baseOptions = configuration.baseOptions;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
691
|
+
const localVarHeaderParameter = {} as any;
|
|
692
|
+
const localVarQueryParameter = {} as any;
|
|
693
|
+
|
|
694
|
+
// authentication oauth2 required
|
|
695
|
+
// oauth required
|
|
696
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
701
|
+
|
|
702
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
703
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
704
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
705
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateArticleCommand, localVarRequestOptions, configuration)
|
|
706
|
+
|
|
707
|
+
return {
|
|
708
|
+
url: toPathString(localVarUrlObj),
|
|
709
|
+
options: localVarRequestOptions,
|
|
710
|
+
};
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @summary Get all ArticleSource.
|
|
715
|
+
* @param {string} articleId
|
|
716
|
+
* @param {number} [page]
|
|
717
|
+
* @param {number} [limit]
|
|
718
|
+
* @param {Date} [lastRetrieved]
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
apiV1ArticlesArticleIdSourcesGet: async (articleId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
723
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
724
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesGet', 'articleId', articleId)
|
|
725
|
+
const localVarPath = `/api/v1/articles/{articleId}/sources`
|
|
726
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
729
|
+
let baseOptions;
|
|
730
|
+
if (configuration) {
|
|
731
|
+
baseOptions = configuration.baseOptions;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
735
|
+
const localVarHeaderParameter = {} as any;
|
|
736
|
+
const localVarQueryParameter = {} as any;
|
|
737
|
+
|
|
738
|
+
// authentication oauth2 required
|
|
739
|
+
// oauth required
|
|
740
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
741
|
+
|
|
742
|
+
if (page !== undefined) {
|
|
743
|
+
localVarQueryParameter['page'] = page;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
if (limit !== undefined) {
|
|
747
|
+
localVarQueryParameter['limit'] = limit;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (lastRetrieved !== undefined) {
|
|
751
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
752
|
+
(lastRetrieved as any).toISOString() :
|
|
753
|
+
lastRetrieved;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
760
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
761
|
+
|
|
762
|
+
return {
|
|
763
|
+
url: toPathString(localVarUrlObj),
|
|
764
|
+
options: localVarRequestOptions,
|
|
765
|
+
};
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @summary Create ArticleSource.
|
|
770
|
+
* @param {string} articleId
|
|
771
|
+
* @param {CreateArticleSourceCommand} [createArticleSourceCommand]
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
*/
|
|
775
|
+
apiV1ArticlesArticleIdSourcesPost: async (articleId: string, createArticleSourceCommand?: CreateArticleSourceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
776
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
777
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesPost', 'articleId', articleId)
|
|
778
|
+
const localVarPath = `/api/v1/articles/{articleId}/sources`
|
|
779
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
780
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
781
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
782
|
+
let baseOptions;
|
|
783
|
+
if (configuration) {
|
|
784
|
+
baseOptions = configuration.baseOptions;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
788
|
+
const localVarHeaderParameter = {} as any;
|
|
789
|
+
const localVarQueryParameter = {} as any;
|
|
790
|
+
|
|
791
|
+
// authentication oauth2 required
|
|
792
|
+
// oauth required
|
|
793
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
798
|
+
|
|
799
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
800
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
801
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
802
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createArticleSourceCommand, localVarRequestOptions, configuration)
|
|
803
|
+
|
|
804
|
+
return {
|
|
805
|
+
url: toPathString(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
};
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
*
|
|
811
|
+
* @summary Delete ArticleSource.
|
|
812
|
+
* @param {string} articleId
|
|
813
|
+
* @param {string} sourceId
|
|
814
|
+
* @param {*} [options] Override http request option.
|
|
815
|
+
* @throws {RequiredError}
|
|
816
|
+
*/
|
|
817
|
+
apiV1ArticlesArticleIdSourcesSourceIdDelete: async (articleId: string, sourceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
818
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
819
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdDelete', 'articleId', articleId)
|
|
820
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
821
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdDelete', 'sourceId', sourceId)
|
|
822
|
+
const localVarPath = `/api/v1/articles/{articleId}/sources/{sourceId}`
|
|
823
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
824
|
+
.replace(`{${"sourceId"}}`, encodeURIComponent(String(sourceId)));
|
|
825
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
826
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
827
|
+
let baseOptions;
|
|
828
|
+
if (configuration) {
|
|
829
|
+
baseOptions = configuration.baseOptions;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
833
|
+
const localVarHeaderParameter = {} as any;
|
|
834
|
+
const localVarQueryParameter = {} as any;
|
|
835
|
+
|
|
836
|
+
// authentication oauth2 required
|
|
837
|
+
// oauth required
|
|
838
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
843
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
844
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
845
|
+
|
|
846
|
+
return {
|
|
847
|
+
url: toPathString(localVarUrlObj),
|
|
848
|
+
options: localVarRequestOptions,
|
|
849
|
+
};
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary Get ArticleSource.
|
|
854
|
+
* @param {string} articleId
|
|
855
|
+
* @param {string} sourceId
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
apiV1ArticlesArticleIdSourcesSourceIdGet: async (articleId: string, sourceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
860
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
861
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdGet', 'articleId', articleId)
|
|
862
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
863
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdGet', 'sourceId', sourceId)
|
|
864
|
+
const localVarPath = `/api/v1/articles/{articleId}/sources/{sourceId}`
|
|
865
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
866
|
+
.replace(`{${"sourceId"}}`, encodeURIComponent(String(sourceId)));
|
|
867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
868
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
869
|
+
let baseOptions;
|
|
870
|
+
if (configuration) {
|
|
871
|
+
baseOptions = configuration.baseOptions;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
875
|
+
const localVarHeaderParameter = {} as any;
|
|
876
|
+
const localVarQueryParameter = {} as any;
|
|
877
|
+
|
|
878
|
+
// authentication oauth2 required
|
|
879
|
+
// oauth required
|
|
880
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
886
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
887
|
+
|
|
888
|
+
return {
|
|
889
|
+
url: toPathString(localVarUrlObj),
|
|
890
|
+
options: localVarRequestOptions,
|
|
891
|
+
};
|
|
892
|
+
},
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @summary Update ArticleSource.
|
|
896
|
+
* @param {string} articleId
|
|
897
|
+
* @param {string} sourceId
|
|
898
|
+
* @param {UpdateArticleSourceCommand} [updateArticleSourceCommand]
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
apiV1ArticlesArticleIdSourcesSourceIdPut: async (articleId: string, sourceId: string, updateArticleSourceCommand?: UpdateArticleSourceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
903
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
904
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdPut', 'articleId', articleId)
|
|
905
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
906
|
+
assertParamExists('apiV1ArticlesArticleIdSourcesSourceIdPut', 'sourceId', sourceId)
|
|
907
|
+
const localVarPath = `/api/v1/articles/{articleId}/sources/{sourceId}`
|
|
908
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
909
|
+
.replace(`{${"sourceId"}}`, encodeURIComponent(String(sourceId)));
|
|
910
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
911
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
912
|
+
let baseOptions;
|
|
913
|
+
if (configuration) {
|
|
914
|
+
baseOptions = configuration.baseOptions;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
918
|
+
const localVarHeaderParameter = {} as any;
|
|
919
|
+
const localVarQueryParameter = {} as any;
|
|
920
|
+
|
|
921
|
+
// authentication oauth2 required
|
|
922
|
+
// oauth required
|
|
923
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
928
|
+
|
|
929
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
930
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
931
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
932
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateArticleSourceCommand, localVarRequestOptions, configuration)
|
|
933
|
+
|
|
934
|
+
return {
|
|
935
|
+
url: toPathString(localVarUrlObj),
|
|
936
|
+
options: localVarRequestOptions,
|
|
937
|
+
};
|
|
938
|
+
},
|
|
939
|
+
/**
|
|
940
|
+
*
|
|
941
|
+
* @summary GetAll ArticleTags.
|
|
942
|
+
* @param {string} articleId
|
|
943
|
+
* @param {string} [tagId]
|
|
944
|
+
* @param {number} [page]
|
|
945
|
+
* @param {number} [limit]
|
|
946
|
+
* @param {Date} [lastRetrieved]
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
apiV1ArticlesArticleIdTagsGet: async (articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
951
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
952
|
+
assertParamExists('apiV1ArticlesArticleIdTagsGet', 'articleId', articleId)
|
|
953
|
+
const localVarPath = `/api/v1/articles/{articleId}/tags`
|
|
954
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
957
|
+
let baseOptions;
|
|
958
|
+
if (configuration) {
|
|
959
|
+
baseOptions = configuration.baseOptions;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
963
|
+
const localVarHeaderParameter = {} as any;
|
|
964
|
+
const localVarQueryParameter = {} as any;
|
|
965
|
+
|
|
966
|
+
// authentication oauth2 required
|
|
967
|
+
// oauth required
|
|
968
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
969
|
+
|
|
970
|
+
if (tagId !== undefined) {
|
|
971
|
+
localVarQueryParameter['TagId'] = tagId;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
if (page !== undefined) {
|
|
975
|
+
localVarQueryParameter['page'] = page;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
if (limit !== undefined) {
|
|
979
|
+
localVarQueryParameter['limit'] = limit;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (lastRetrieved !== undefined) {
|
|
983
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
984
|
+
(lastRetrieved as any).toISOString() :
|
|
985
|
+
lastRetrieved;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
992
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
993
|
+
|
|
994
|
+
return {
|
|
995
|
+
url: toPathString(localVarUrlObj),
|
|
996
|
+
options: localVarRequestOptions,
|
|
997
|
+
};
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @summary Create ArticleTag.
|
|
1002
|
+
* @param {string} articleId
|
|
1003
|
+
* @param {CreateArticleTagCommand} [createArticleTagCommand]
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
apiV1ArticlesArticleIdTagsPost: async (articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1008
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
1009
|
+
assertParamExists('apiV1ArticlesArticleIdTagsPost', 'articleId', articleId)
|
|
1010
|
+
const localVarPath = `/api/v1/articles/{articleId}/tags`
|
|
1011
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)));
|
|
1012
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1013
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1014
|
+
let baseOptions;
|
|
1015
|
+
if (configuration) {
|
|
1016
|
+
baseOptions = configuration.baseOptions;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1020
|
+
const localVarHeaderParameter = {} as any;
|
|
1021
|
+
const localVarQueryParameter = {} as any;
|
|
1022
|
+
|
|
1023
|
+
// authentication oauth2 required
|
|
1024
|
+
// oauth required
|
|
1025
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1030
|
+
|
|
1031
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1032
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1033
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1034
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createArticleTagCommand, localVarRequestOptions, configuration)
|
|
1035
|
+
|
|
1036
|
+
return {
|
|
1037
|
+
url: toPathString(localVarUrlObj),
|
|
1038
|
+
options: localVarRequestOptions,
|
|
1039
|
+
};
|
|
1040
|
+
},
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @summary Delete ArticleTag.
|
|
1044
|
+
* @param {string} articleId
|
|
1045
|
+
* @param {string} tagId
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
*/
|
|
1049
|
+
apiV1ArticlesArticleIdTagsTagIdDelete: async (articleId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1050
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
1051
|
+
assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'articleId', articleId)
|
|
1052
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
1053
|
+
assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'tagId', tagId)
|
|
1054
|
+
const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
|
|
1055
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
1056
|
+
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
|
1057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1059
|
+
let baseOptions;
|
|
1060
|
+
if (configuration) {
|
|
1061
|
+
baseOptions = configuration.baseOptions;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1065
|
+
const localVarHeaderParameter = {} as any;
|
|
1066
|
+
const localVarQueryParameter = {} as any;
|
|
1067
|
+
|
|
1068
|
+
// authentication oauth2 required
|
|
1069
|
+
// oauth required
|
|
1070
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1075
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1076
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1077
|
+
|
|
1078
|
+
return {
|
|
1079
|
+
url: toPathString(localVarUrlObj),
|
|
1080
|
+
options: localVarRequestOptions,
|
|
1081
|
+
};
|
|
1082
|
+
},
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @summary Get ArticleTag.
|
|
1086
|
+
* @param {string} articleId
|
|
1087
|
+
* @param {string} tagId
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
apiV1ArticlesArticleIdTagsTagIdGet: async (articleId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1092
|
+
// verify required parameter 'articleId' is not null or undefined
|
|
1093
|
+
assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'articleId', articleId)
|
|
1094
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
1095
|
+
assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'tagId', tagId)
|
|
1096
|
+
const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
|
|
1097
|
+
.replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
|
|
1098
|
+
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
|
1099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1101
|
+
let baseOptions;
|
|
1102
|
+
if (configuration) {
|
|
1103
|
+
baseOptions = configuration.baseOptions;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1107
|
+
const localVarHeaderParameter = {} as any;
|
|
1108
|
+
const localVarQueryParameter = {} as any;
|
|
1109
|
+
|
|
1110
|
+
// authentication oauth2 required
|
|
1111
|
+
// oauth required
|
|
1112
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1118
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1119
|
+
|
|
1120
|
+
return {
|
|
1121
|
+
url: toPathString(localVarUrlObj),
|
|
1122
|
+
options: localVarRequestOptions,
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @summary Get all Articles.
|
|
1128
|
+
* @param {string} [id]
|
|
1129
|
+
* @param {string} [name]
|
|
1130
|
+
* @param {string} [description]
|
|
1131
|
+
* @param {MarketingType} [marketingType]
|
|
1132
|
+
* @param {string} [userId]
|
|
1133
|
+
* @param {string} [userName]
|
|
1134
|
+
* @param {string} [hospitalId]
|
|
1135
|
+
* @param {string} [hospitalName]
|
|
1136
|
+
* @param {string} [countryId]
|
|
1137
|
+
* @param {string} [tag]
|
|
1138
|
+
* @param {string} [exceptArticleId]
|
|
1139
|
+
* @param {string} [exceptHospitalId]
|
|
1140
|
+
* @param {string} [contributorId]
|
|
1141
|
+
* @param {string} [languageCode]
|
|
1142
|
+
* @param {boolean} [showHidden]
|
|
1143
|
+
* @param {number} [page]
|
|
1144
|
+
* @param {number} [limit]
|
|
1145
|
+
* @param {Date} [lastRetrieved]
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
apiV1ArticlesGet: async (id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1150
|
+
const localVarPath = `/api/v1/articles`;
|
|
1151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1152
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1153
|
+
let baseOptions;
|
|
1154
|
+
if (configuration) {
|
|
1155
|
+
baseOptions = configuration.baseOptions;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1159
|
+
const localVarHeaderParameter = {} as any;
|
|
1160
|
+
const localVarQueryParameter = {} as any;
|
|
1161
|
+
|
|
1162
|
+
// authentication oauth2 required
|
|
1163
|
+
// oauth required
|
|
1164
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1165
|
+
|
|
1166
|
+
if (id !== undefined) {
|
|
1167
|
+
localVarQueryParameter['Id'] = id;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (name !== undefined) {
|
|
1171
|
+
localVarQueryParameter['Name'] = name;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (description !== undefined) {
|
|
1175
|
+
localVarQueryParameter['Description'] = description;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
if (marketingType !== undefined) {
|
|
1179
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
if (userId !== undefined) {
|
|
1183
|
+
localVarQueryParameter['UserId'] = userId;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
if (userName !== undefined) {
|
|
1187
|
+
localVarQueryParameter['UserName'] = userName;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
if (hospitalId !== undefined) {
|
|
1191
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
if (hospitalName !== undefined) {
|
|
1195
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
if (countryId !== undefined) {
|
|
1199
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (tag !== undefined) {
|
|
1203
|
+
localVarQueryParameter['Tag'] = tag;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
if (exceptArticleId !== undefined) {
|
|
1207
|
+
localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
if (exceptHospitalId !== undefined) {
|
|
1211
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
if (contributorId !== undefined) {
|
|
1215
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if (languageCode !== undefined) {
|
|
1219
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
if (showHidden !== undefined) {
|
|
1223
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
if (page !== undefined) {
|
|
1227
|
+
localVarQueryParameter['page'] = page;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
if (limit !== undefined) {
|
|
1231
|
+
localVarQueryParameter['limit'] = limit;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
if (lastRetrieved !== undefined) {
|
|
1235
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1236
|
+
(lastRetrieved as any).toISOString() :
|
|
1237
|
+
lastRetrieved;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1244
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1245
|
+
|
|
1246
|
+
return {
|
|
1247
|
+
url: toPathString(localVarUrlObj),
|
|
1248
|
+
options: localVarRequestOptions,
|
|
1249
|
+
};
|
|
1250
|
+
},
|
|
1251
|
+
/**
|
|
1252
|
+
*
|
|
1253
|
+
* @summary Create a Article.
|
|
1254
|
+
* @param {CreateArticleCommand} [createArticleCommand]
|
|
1255
|
+
* @param {*} [options] Override http request option.
|
|
1256
|
+
* @throws {RequiredError}
|
|
1257
|
+
*/
|
|
1258
|
+
apiV1ArticlesPost: async (createArticleCommand?: CreateArticleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1259
|
+
const localVarPath = `/api/v1/articles`;
|
|
1260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1262
|
+
let baseOptions;
|
|
1263
|
+
if (configuration) {
|
|
1264
|
+
baseOptions = configuration.baseOptions;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1268
|
+
const localVarHeaderParameter = {} as any;
|
|
1269
|
+
const localVarQueryParameter = {} as any;
|
|
1270
|
+
|
|
1271
|
+
// authentication oauth2 required
|
|
1272
|
+
// oauth required
|
|
1273
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1278
|
+
|
|
1279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1282
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createArticleCommand, localVarRequestOptions, configuration)
|
|
1283
|
+
|
|
1284
|
+
return {
|
|
1285
|
+
url: toPathString(localVarUrlObj),
|
|
1286
|
+
options: localVarRequestOptions,
|
|
1287
|
+
};
|
|
1288
|
+
},
|
|
1289
|
+
/**
|
|
1290
|
+
*
|
|
1291
|
+
* @summary Get Article by slug.
|
|
1292
|
+
* @param {string} slug
|
|
1293
|
+
* @param {string} [languageCode]
|
|
1294
|
+
* @param {boolean} [returnDefaultValue]
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
apiV1ArticlesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1299
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1300
|
+
assertParamExists('apiV1ArticlesSlugGet', 'slug', slug)
|
|
1301
|
+
const localVarPath = `/api/v1/articles/{slug}`
|
|
1302
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1305
|
+
let baseOptions;
|
|
1306
|
+
if (configuration) {
|
|
1307
|
+
baseOptions = configuration.baseOptions;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1311
|
+
const localVarHeaderParameter = {} as any;
|
|
1312
|
+
const localVarQueryParameter = {} as any;
|
|
1313
|
+
|
|
1314
|
+
// authentication oauth2 required
|
|
1315
|
+
// oauth required
|
|
1316
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1317
|
+
|
|
1318
|
+
if (languageCode !== undefined) {
|
|
1319
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
if (returnDefaultValue !== undefined) {
|
|
1323
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1331
|
+
|
|
1332
|
+
return {
|
|
1333
|
+
url: toPathString(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions,
|
|
1335
|
+
};
|
|
1336
|
+
},
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* ArticlesApi - functional programming interface
|
|
1342
|
+
* @export
|
|
1343
|
+
*/
|
|
1344
|
+
export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
1345
|
+
const localVarAxiosParamCreator = ArticlesApiAxiosParamCreator(configuration)
|
|
1346
|
+
return {
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* @summary Delete ArticleContributor.
|
|
1350
|
+
* @param {string} articleId
|
|
1351
|
+
* @param {string} contributorId
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
*/
|
|
1355
|
+
async apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId: string, contributorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId, contributorId, options);
|
|
1357
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1358
|
+
},
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @summary Get ArticleContributor.
|
|
1362
|
+
* @param {string} articleId
|
|
1363
|
+
* @param {string} contributorId
|
|
1364
|
+
* @param {*} [options] Override http request option.
|
|
1365
|
+
* @throws {RequiredError}
|
|
1366
|
+
*/
|
|
1367
|
+
async apiV1ArticlesArticleIdContributorsContributorIdGet(articleId: string, contributorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
|
|
1368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsContributorIdGet(articleId, contributorId, options);
|
|
1369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1370
|
+
},
|
|
1371
|
+
/**
|
|
1372
|
+
*
|
|
1373
|
+
* @summary Update ArticleContributor.
|
|
1374
|
+
* @param {string} articleId
|
|
1375
|
+
* @param {string} contributorId
|
|
1376
|
+
* @param {UpdateArticleContributorCommand} [updateArticleContributorCommand]
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
async apiV1ArticlesArticleIdContributorsContributorIdPut(articleId: string, contributorId: string, updateArticleContributorCommand?: UpdateArticleContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
|
|
1381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsContributorIdPut(articleId, contributorId, updateArticleContributorCommand, options);
|
|
1382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1383
|
+
},
|
|
1384
|
+
/**
|
|
1385
|
+
*
|
|
1386
|
+
* @summary GetAll ArticleContributors.
|
|
1387
|
+
* @param {string} articleId
|
|
1388
|
+
* @param {string} [articleName]
|
|
1389
|
+
* @param {string} [contributorId]
|
|
1390
|
+
* @param {string} [contributorName]
|
|
1391
|
+
* @param {string} [email]
|
|
1392
|
+
* @param {string} [website]
|
|
1393
|
+
* @param {ContributionType} [contributionType]
|
|
1394
|
+
* @param {string} [languageCode]
|
|
1395
|
+
* @param {boolean} [showHidden]
|
|
1396
|
+
* @param {number} [page]
|
|
1397
|
+
* @param {number} [limit]
|
|
1398
|
+
* @param {Date} [lastRetrieved]
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
*/
|
|
1402
|
+
async apiV1ArticlesArticleIdContributorsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, website?: string, contributionType?: ContributionType, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorsModel>> {
|
|
1403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, website, contributionType, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
1404
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1405
|
+
},
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
* @summary Create ArticleContributor.
|
|
1409
|
+
* @param {string} articleId
|
|
1410
|
+
* @param {CreateArticleContributorCommand} [createArticleContributorCommand]
|
|
1411
|
+
* @param {*} [options] Override http request option.
|
|
1412
|
+
* @throws {RequiredError}
|
|
1413
|
+
*/
|
|
1414
|
+
async apiV1ArticlesArticleIdContributorsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
|
|
1415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsPost(articleId, createArticleContributorCommand, options);
|
|
1416
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1417
|
+
},
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @summary Delete Article.
|
|
1421
|
+
* @param {string} articleId
|
|
1422
|
+
* @param {boolean} [isPermanent]
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
async apiV1ArticlesArticleIdDelete(articleId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdDelete(articleId, isPermanent, options);
|
|
1428
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1429
|
+
},
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @summary Get Article.
|
|
1433
|
+
* @param {string} articleId
|
|
1434
|
+
* @param {string} [languageCode]
|
|
1435
|
+
* @param {boolean} [returnDefaultValue]
|
|
1436
|
+
* @param {*} [options] Override http request option.
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
*/
|
|
1439
|
+
async apiV1ArticlesArticleIdGet(articleId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
1440
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdGet(articleId, languageCode, returnDefaultValue, options);
|
|
1441
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1442
|
+
},
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @summary Get all ArticleMedias.
|
|
1446
|
+
* @param {string} articleId
|
|
1447
|
+
* @param {string} [id]
|
|
1448
|
+
* @param {MediaType} [mediaType]
|
|
1449
|
+
* @param {number} [page]
|
|
1450
|
+
* @param {number} [limit]
|
|
1451
|
+
* @param {Date} [lastRetrieved]
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
async apiV1ArticlesArticleIdMediasGet(articleId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
1456
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdMediasGet(articleId, id, mediaType, page, limit, lastRetrieved, options);
|
|
1457
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @summary Delete ArticleMedia
|
|
1462
|
+
* @param {string} articleId
|
|
1463
|
+
* @param {string} mediaId
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
async apiV1ArticlesArticleIdMediasMediaIdDelete(articleId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1468
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdMediasMediaIdDelete(articleId, mediaId, options);
|
|
1469
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1470
|
+
},
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @summary Get ArticleMedia.
|
|
1474
|
+
* @param {string} articleId
|
|
1475
|
+
* @param {string} mediaId
|
|
1476
|
+
* @param {*} [options] Override http request option.
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
*/
|
|
1479
|
+
async apiV1ArticlesArticleIdMediasMediaIdGet(articleId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
1480
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdMediasMediaIdGet(articleId, mediaId, options);
|
|
1481
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1482
|
+
},
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @summary Update ArticleMedia.
|
|
1486
|
+
* @param {string} articleId
|
|
1487
|
+
* @param {string} mediaId
|
|
1488
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
*/
|
|
1492
|
+
async apiV1ArticlesArticleIdMediasMediaIdPut(articleId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
1493
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdMediasMediaIdPut(articleId, mediaId, updateMediaCommand, options);
|
|
1494
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1495
|
+
},
|
|
1496
|
+
/**
|
|
1497
|
+
*
|
|
1498
|
+
* @summary Create ArticleMedia.
|
|
1499
|
+
* @param {string} articleId
|
|
1500
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
async apiV1ArticlesArticleIdMediasPost(articleId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
1505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdMediasPost(articleId, createMediaCommand, options);
|
|
1506
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1507
|
+
},
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @summary Update Article.
|
|
1511
|
+
* @param {string} articleId
|
|
1512
|
+
* @param {UpdateArticleCommand} [updateArticleCommand]
|
|
1513
|
+
* @param {*} [options] Override http request option.
|
|
1514
|
+
* @throws {RequiredError}
|
|
1515
|
+
*/
|
|
1516
|
+
async apiV1ArticlesArticleIdPut(articleId: string, updateArticleCommand?: UpdateArticleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
1517
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdPut(articleId, updateArticleCommand, options);
|
|
1518
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1519
|
+
},
|
|
1520
|
+
/**
|
|
1521
|
+
*
|
|
1522
|
+
* @summary Get all ArticleSource.
|
|
1523
|
+
* @param {string} articleId
|
|
1524
|
+
* @param {number} [page]
|
|
1525
|
+
* @param {number} [limit]
|
|
1526
|
+
* @param {Date} [lastRetrieved]
|
|
1527
|
+
* @param {*} [options] Override http request option.
|
|
1528
|
+
* @throws {RequiredError}
|
|
1529
|
+
*/
|
|
1530
|
+
async apiV1ArticlesArticleIdSourcesGet(articleId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleSourcesModel>> {
|
|
1531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdSourcesGet(articleId, page, limit, lastRetrieved, options);
|
|
1532
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1533
|
+
},
|
|
1534
|
+
/**
|
|
1535
|
+
*
|
|
1536
|
+
* @summary Create ArticleSource.
|
|
1537
|
+
* @param {string} articleId
|
|
1538
|
+
* @param {CreateArticleSourceCommand} [createArticleSourceCommand]
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
async apiV1ArticlesArticleIdSourcesPost(articleId: string, createArticleSourceCommand?: CreateArticleSourceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SourceModel>> {
|
|
1543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdSourcesPost(articleId, createArticleSourceCommand, options);
|
|
1544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1545
|
+
},
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* @summary Delete ArticleSource.
|
|
1549
|
+
* @param {string} articleId
|
|
1550
|
+
* @param {string} sourceId
|
|
1551
|
+
* @param {*} [options] Override http request option.
|
|
1552
|
+
* @throws {RequiredError}
|
|
1553
|
+
*/
|
|
1554
|
+
async apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId: string, sourceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId, sourceId, options);
|
|
1556
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1557
|
+
},
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @summary Get ArticleSource.
|
|
1561
|
+
* @param {string} articleId
|
|
1562
|
+
* @param {string} sourceId
|
|
1563
|
+
* @param {*} [options] Override http request option.
|
|
1564
|
+
* @throws {RequiredError}
|
|
1565
|
+
*/
|
|
1566
|
+
async apiV1ArticlesArticleIdSourcesSourceIdGet(articleId: string, sourceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SourceModel>> {
|
|
1567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdSourcesSourceIdGet(articleId, sourceId, options);
|
|
1568
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1569
|
+
},
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @summary Update ArticleSource.
|
|
1573
|
+
* @param {string} articleId
|
|
1574
|
+
* @param {string} sourceId
|
|
1575
|
+
* @param {UpdateArticleSourceCommand} [updateArticleSourceCommand]
|
|
1576
|
+
* @param {*} [options] Override http request option.
|
|
1577
|
+
* @throws {RequiredError}
|
|
1578
|
+
*/
|
|
1579
|
+
async apiV1ArticlesArticleIdSourcesSourceIdPut(articleId: string, sourceId: string, updateArticleSourceCommand?: UpdateArticleSourceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SourceModel>> {
|
|
1580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdSourcesSourceIdPut(articleId, sourceId, updateArticleSourceCommand, options);
|
|
1581
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1582
|
+
},
|
|
1583
|
+
/**
|
|
1584
|
+
*
|
|
1585
|
+
* @summary GetAll ArticleTags.
|
|
1586
|
+
* @param {string} articleId
|
|
1587
|
+
* @param {string} [tagId]
|
|
1588
|
+
* @param {number} [page]
|
|
1589
|
+
* @param {number} [limit]
|
|
1590
|
+
* @param {Date} [lastRetrieved]
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
async apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagsModel>> {
|
|
1595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options);
|
|
1596
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1597
|
+
},
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @summary Create ArticleTag.
|
|
1601
|
+
* @param {string} articleId
|
|
1602
|
+
* @param {CreateArticleTagCommand} [createArticleTagCommand]
|
|
1603
|
+
* @param {*} [options] Override http request option.
|
|
1604
|
+
* @throws {RequiredError}
|
|
1605
|
+
*/
|
|
1606
|
+
async apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
|
|
1607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options);
|
|
1608
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1609
|
+
},
|
|
1610
|
+
/**
|
|
1611
|
+
*
|
|
1612
|
+
* @summary Delete ArticleTag.
|
|
1613
|
+
* @param {string} articleId
|
|
1614
|
+
* @param {string} tagId
|
|
1615
|
+
* @param {*} [options] Override http request option.
|
|
1616
|
+
* @throws {RequiredError}
|
|
1617
|
+
*/
|
|
1618
|
+
async apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, options);
|
|
1620
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1621
|
+
},
|
|
1622
|
+
/**
|
|
1623
|
+
*
|
|
1624
|
+
* @summary Get ArticleTag.
|
|
1625
|
+
* @param {string} articleId
|
|
1626
|
+
* @param {string} tagId
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
*/
|
|
1630
|
+
async apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
|
|
1631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options);
|
|
1632
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1633
|
+
},
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @summary Get all Articles.
|
|
1637
|
+
* @param {string} [id]
|
|
1638
|
+
* @param {string} [name]
|
|
1639
|
+
* @param {string} [description]
|
|
1640
|
+
* @param {MarketingType} [marketingType]
|
|
1641
|
+
* @param {string} [userId]
|
|
1642
|
+
* @param {string} [userName]
|
|
1643
|
+
* @param {string} [hospitalId]
|
|
1644
|
+
* @param {string} [hospitalName]
|
|
1645
|
+
* @param {string} [countryId]
|
|
1646
|
+
* @param {string} [tag]
|
|
1647
|
+
* @param {string} [exceptArticleId]
|
|
1648
|
+
* @param {string} [exceptHospitalId]
|
|
1649
|
+
* @param {string} [contributorId]
|
|
1650
|
+
* @param {string} [languageCode]
|
|
1651
|
+
* @param {boolean} [showHidden]
|
|
1652
|
+
* @param {number} [page]
|
|
1653
|
+
* @param {number} [limit]
|
|
1654
|
+
* @param {Date} [lastRetrieved]
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
*/
|
|
1658
|
+
async apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
|
|
1659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
1660
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1661
|
+
},
|
|
1662
|
+
/**
|
|
1663
|
+
*
|
|
1664
|
+
* @summary Create a Article.
|
|
1665
|
+
* @param {CreateArticleCommand} [createArticleCommand]
|
|
1666
|
+
* @param {*} [options] Override http request option.
|
|
1667
|
+
* @throws {RequiredError}
|
|
1668
|
+
*/
|
|
1669
|
+
async apiV1ArticlesPost(createArticleCommand?: CreateArticleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
1670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesPost(createArticleCommand, options);
|
|
1671
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1672
|
+
},
|
|
1673
|
+
/**
|
|
1674
|
+
*
|
|
1675
|
+
* @summary Get Article by slug.
|
|
1676
|
+
* @param {string} slug
|
|
1677
|
+
* @param {string} [languageCode]
|
|
1678
|
+
* @param {boolean} [returnDefaultValue]
|
|
1679
|
+
* @param {*} [options] Override http request option.
|
|
1680
|
+
* @throws {RequiredError}
|
|
1681
|
+
*/
|
|
1682
|
+
async apiV1ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
1683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
1684
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1685
|
+
},
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* ArticlesApi - factory interface
|
|
1691
|
+
* @export
|
|
1692
|
+
*/
|
|
1693
|
+
export const ArticlesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1694
|
+
const localVarFp = ArticlesApiFp(configuration)
|
|
1695
|
+
return {
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @summary Delete ArticleContributor.
|
|
1699
|
+
* @param {string} articleId
|
|
1700
|
+
* @param {string} contributorId
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
*/
|
|
1704
|
+
apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId: string, contributorId: string, options?: any): AxiosPromise<boolean> {
|
|
1705
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId, contributorId, options).then((request) => request(axios, basePath));
|
|
1706
|
+
},
|
|
1707
|
+
/**
|
|
1708
|
+
*
|
|
1709
|
+
* @summary Get ArticleContributor.
|
|
1710
|
+
* @param {string} articleId
|
|
1711
|
+
* @param {string} contributorId
|
|
1712
|
+
* @param {*} [options] Override http request option.
|
|
1713
|
+
* @throws {RequiredError}
|
|
1714
|
+
*/
|
|
1715
|
+
apiV1ArticlesArticleIdContributorsContributorIdGet(articleId: string, contributorId: string, options?: any): AxiosPromise<ArticleContributorModel> {
|
|
1716
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsContributorIdGet(articleId, contributorId, options).then((request) => request(axios, basePath));
|
|
1717
|
+
},
|
|
1718
|
+
/**
|
|
1719
|
+
*
|
|
1720
|
+
* @summary Update ArticleContributor.
|
|
1721
|
+
* @param {string} articleId
|
|
1722
|
+
* @param {string} contributorId
|
|
1723
|
+
* @param {UpdateArticleContributorCommand} [updateArticleContributorCommand]
|
|
1724
|
+
* @param {*} [options] Override http request option.
|
|
1725
|
+
* @throws {RequiredError}
|
|
1726
|
+
*/
|
|
1727
|
+
apiV1ArticlesArticleIdContributorsContributorIdPut(articleId: string, contributorId: string, updateArticleContributorCommand?: UpdateArticleContributorCommand, options?: any): AxiosPromise<ArticleContributorModel> {
|
|
1728
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsContributorIdPut(articleId, contributorId, updateArticleContributorCommand, options).then((request) => request(axios, basePath));
|
|
1729
|
+
},
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @summary GetAll ArticleContributors.
|
|
1733
|
+
* @param {string} articleId
|
|
1734
|
+
* @param {string} [articleName]
|
|
1735
|
+
* @param {string} [contributorId]
|
|
1736
|
+
* @param {string} [contributorName]
|
|
1737
|
+
* @param {string} [email]
|
|
1738
|
+
* @param {string} [website]
|
|
1739
|
+
* @param {ContributionType} [contributionType]
|
|
1740
|
+
* @param {string} [languageCode]
|
|
1741
|
+
* @param {boolean} [showHidden]
|
|
1742
|
+
* @param {number} [page]
|
|
1743
|
+
* @param {number} [limit]
|
|
1744
|
+
* @param {Date} [lastRetrieved]
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
*/
|
|
1748
|
+
apiV1ArticlesArticleIdContributorsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, website?: string, contributionType?: ContributionType, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleContributorsModel> {
|
|
1749
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, website, contributionType, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1750
|
+
},
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @summary Create ArticleContributor.
|
|
1754
|
+
* @param {string} articleId
|
|
1755
|
+
* @param {CreateArticleContributorCommand} [createArticleContributorCommand]
|
|
1756
|
+
* @param {*} [options] Override http request option.
|
|
1757
|
+
* @throws {RequiredError}
|
|
1758
|
+
*/
|
|
1759
|
+
apiV1ArticlesArticleIdContributorsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: any): AxiosPromise<ArticleContributorModel> {
|
|
1760
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsPost(articleId, createArticleContributorCommand, options).then((request) => request(axios, basePath));
|
|
1761
|
+
},
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @summary Delete Article.
|
|
1765
|
+
* @param {string} articleId
|
|
1766
|
+
* @param {boolean} [isPermanent]
|
|
1767
|
+
* @param {*} [options] Override http request option.
|
|
1768
|
+
* @throws {RequiredError}
|
|
1769
|
+
*/
|
|
1770
|
+
apiV1ArticlesArticleIdDelete(articleId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
1771
|
+
return localVarFp.apiV1ArticlesArticleIdDelete(articleId, isPermanent, options).then((request) => request(axios, basePath));
|
|
1772
|
+
},
|
|
1773
|
+
/**
|
|
1774
|
+
*
|
|
1775
|
+
* @summary Get Article.
|
|
1776
|
+
* @param {string} articleId
|
|
1777
|
+
* @param {string} [languageCode]
|
|
1778
|
+
* @param {boolean} [returnDefaultValue]
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
*/
|
|
1782
|
+
apiV1ArticlesArticleIdGet(articleId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ArticleModel> {
|
|
1783
|
+
return localVarFp.apiV1ArticlesArticleIdGet(articleId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1784
|
+
},
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @summary Get all ArticleMedias.
|
|
1788
|
+
* @param {string} articleId
|
|
1789
|
+
* @param {string} [id]
|
|
1790
|
+
* @param {MediaType} [mediaType]
|
|
1791
|
+
* @param {number} [page]
|
|
1792
|
+
* @param {number} [limit]
|
|
1793
|
+
* @param {Date} [lastRetrieved]
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
apiV1ArticlesArticleIdMediasGet(articleId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
1798
|
+
return localVarFp.apiV1ArticlesArticleIdMediasGet(articleId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1799
|
+
},
|
|
1800
|
+
/**
|
|
1801
|
+
*
|
|
1802
|
+
* @summary Delete ArticleMedia
|
|
1803
|
+
* @param {string} articleId
|
|
1804
|
+
* @param {string} mediaId
|
|
1805
|
+
* @param {*} [options] Override http request option.
|
|
1806
|
+
* @throws {RequiredError}
|
|
1807
|
+
*/
|
|
1808
|
+
apiV1ArticlesArticleIdMediasMediaIdDelete(articleId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
|
|
1809
|
+
return localVarFp.apiV1ArticlesArticleIdMediasMediaIdDelete(articleId, mediaId, options).then((request) => request(axios, basePath));
|
|
1810
|
+
},
|
|
1811
|
+
/**
|
|
1812
|
+
*
|
|
1813
|
+
* @summary Get ArticleMedia.
|
|
1814
|
+
* @param {string} articleId
|
|
1815
|
+
* @param {string} mediaId
|
|
1816
|
+
* @param {*} [options] Override http request option.
|
|
1817
|
+
* @throws {RequiredError}
|
|
1818
|
+
*/
|
|
1819
|
+
apiV1ArticlesArticleIdMediasMediaIdGet(articleId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
1820
|
+
return localVarFp.apiV1ArticlesArticleIdMediasMediaIdGet(articleId, mediaId, options).then((request) => request(axios, basePath));
|
|
1821
|
+
},
|
|
1822
|
+
/**
|
|
1823
|
+
*
|
|
1824
|
+
* @summary Update ArticleMedia.
|
|
1825
|
+
* @param {string} articleId
|
|
1826
|
+
* @param {string} mediaId
|
|
1827
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
1828
|
+
* @param {*} [options] Override http request option.
|
|
1829
|
+
* @throws {RequiredError}
|
|
1830
|
+
*/
|
|
1831
|
+
apiV1ArticlesArticleIdMediasMediaIdPut(articleId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
1832
|
+
return localVarFp.apiV1ArticlesArticleIdMediasMediaIdPut(articleId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
|
|
1833
|
+
},
|
|
1834
|
+
/**
|
|
1835
|
+
*
|
|
1836
|
+
* @summary Create ArticleMedia.
|
|
1837
|
+
* @param {string} articleId
|
|
1838
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
apiV1ArticlesArticleIdMediasPost(articleId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
1843
|
+
return localVarFp.apiV1ArticlesArticleIdMediasPost(articleId, createMediaCommand, options).then((request) => request(axios, basePath));
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
*
|
|
1847
|
+
* @summary Update Article.
|
|
1848
|
+
* @param {string} articleId
|
|
1849
|
+
* @param {UpdateArticleCommand} [updateArticleCommand]
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
apiV1ArticlesArticleIdPut(articleId: string, updateArticleCommand?: UpdateArticleCommand, options?: any): AxiosPromise<ArticleModel> {
|
|
1854
|
+
return localVarFp.apiV1ArticlesArticleIdPut(articleId, updateArticleCommand, options).then((request) => request(axios, basePath));
|
|
1855
|
+
},
|
|
1856
|
+
/**
|
|
1857
|
+
*
|
|
1858
|
+
* @summary Get all ArticleSource.
|
|
1859
|
+
* @param {string} articleId
|
|
1860
|
+
* @param {number} [page]
|
|
1861
|
+
* @param {number} [limit]
|
|
1862
|
+
* @param {Date} [lastRetrieved]
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
*/
|
|
1866
|
+
apiV1ArticlesArticleIdSourcesGet(articleId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleSourcesModel> {
|
|
1867
|
+
return localVarFp.apiV1ArticlesArticleIdSourcesGet(articleId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1868
|
+
},
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @summary Create ArticleSource.
|
|
1872
|
+
* @param {string} articleId
|
|
1873
|
+
* @param {CreateArticleSourceCommand} [createArticleSourceCommand]
|
|
1874
|
+
* @param {*} [options] Override http request option.
|
|
1875
|
+
* @throws {RequiredError}
|
|
1876
|
+
*/
|
|
1877
|
+
apiV1ArticlesArticleIdSourcesPost(articleId: string, createArticleSourceCommand?: CreateArticleSourceCommand, options?: any): AxiosPromise<SourceModel> {
|
|
1878
|
+
return localVarFp.apiV1ArticlesArticleIdSourcesPost(articleId, createArticleSourceCommand, options).then((request) => request(axios, basePath));
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @summary Delete ArticleSource.
|
|
1883
|
+
* @param {string} articleId
|
|
1884
|
+
* @param {string} sourceId
|
|
1885
|
+
* @param {*} [options] Override http request option.
|
|
1886
|
+
* @throws {RequiredError}
|
|
1887
|
+
*/
|
|
1888
|
+
apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId: string, sourceId: string, options?: any): AxiosPromise<boolean> {
|
|
1889
|
+
return localVarFp.apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId, sourceId, options).then((request) => request(axios, basePath));
|
|
1890
|
+
},
|
|
1891
|
+
/**
|
|
1892
|
+
*
|
|
1893
|
+
* @summary Get ArticleSource.
|
|
1894
|
+
* @param {string} articleId
|
|
1895
|
+
* @param {string} sourceId
|
|
1896
|
+
* @param {*} [options] Override http request option.
|
|
1897
|
+
* @throws {RequiredError}
|
|
1898
|
+
*/
|
|
1899
|
+
apiV1ArticlesArticleIdSourcesSourceIdGet(articleId: string, sourceId: string, options?: any): AxiosPromise<SourceModel> {
|
|
1900
|
+
return localVarFp.apiV1ArticlesArticleIdSourcesSourceIdGet(articleId, sourceId, options).then((request) => request(axios, basePath));
|
|
1901
|
+
},
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @summary Update ArticleSource.
|
|
1905
|
+
* @param {string} articleId
|
|
1906
|
+
* @param {string} sourceId
|
|
1907
|
+
* @param {UpdateArticleSourceCommand} [updateArticleSourceCommand]
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
*/
|
|
1911
|
+
apiV1ArticlesArticleIdSourcesSourceIdPut(articleId: string, sourceId: string, updateArticleSourceCommand?: UpdateArticleSourceCommand, options?: any): AxiosPromise<SourceModel> {
|
|
1912
|
+
return localVarFp.apiV1ArticlesArticleIdSourcesSourceIdPut(articleId, sourceId, updateArticleSourceCommand, options).then((request) => request(axios, basePath));
|
|
1913
|
+
},
|
|
1914
|
+
/**
|
|
1915
|
+
*
|
|
1916
|
+
* @summary GetAll ArticleTags.
|
|
1917
|
+
* @param {string} articleId
|
|
1918
|
+
* @param {string} [tagId]
|
|
1919
|
+
* @param {number} [page]
|
|
1920
|
+
* @param {number} [limit]
|
|
1921
|
+
* @param {Date} [lastRetrieved]
|
|
1922
|
+
* @param {*} [options] Override http request option.
|
|
1923
|
+
* @throws {RequiredError}
|
|
1924
|
+
*/
|
|
1925
|
+
apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleTagsModel> {
|
|
1926
|
+
return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1927
|
+
},
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @summary Create ArticleTag.
|
|
1931
|
+
* @param {string} articleId
|
|
1932
|
+
* @param {CreateArticleTagCommand} [createArticleTagCommand]
|
|
1933
|
+
* @param {*} [options] Override http request option.
|
|
1934
|
+
* @throws {RequiredError}
|
|
1935
|
+
*/
|
|
1936
|
+
apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: any): AxiosPromise<ArticleTagModel> {
|
|
1937
|
+
return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(axios, basePath));
|
|
1938
|
+
},
|
|
1939
|
+
/**
|
|
1940
|
+
*
|
|
1941
|
+
* @summary Delete ArticleTag.
|
|
1942
|
+
* @param {string} articleId
|
|
1943
|
+
* @param {string} tagId
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, options?: any): AxiosPromise<boolean> {
|
|
1948
|
+
return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, options).then((request) => request(axios, basePath));
|
|
1949
|
+
},
|
|
1950
|
+
/**
|
|
1951
|
+
*
|
|
1952
|
+
* @summary Get ArticleTag.
|
|
1953
|
+
* @param {string} articleId
|
|
1954
|
+
* @param {string} tagId
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: any): AxiosPromise<ArticleTagModel> {
|
|
1959
|
+
return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(axios, basePath));
|
|
1960
|
+
},
|
|
1961
|
+
/**
|
|
1962
|
+
*
|
|
1963
|
+
* @summary Get all Articles.
|
|
1964
|
+
* @param {string} [id]
|
|
1965
|
+
* @param {string} [name]
|
|
1966
|
+
* @param {string} [description]
|
|
1967
|
+
* @param {MarketingType} [marketingType]
|
|
1968
|
+
* @param {string} [userId]
|
|
1969
|
+
* @param {string} [userName]
|
|
1970
|
+
* @param {string} [hospitalId]
|
|
1971
|
+
* @param {string} [hospitalName]
|
|
1972
|
+
* @param {string} [countryId]
|
|
1973
|
+
* @param {string} [tag]
|
|
1974
|
+
* @param {string} [exceptArticleId]
|
|
1975
|
+
* @param {string} [exceptHospitalId]
|
|
1976
|
+
* @param {string} [contributorId]
|
|
1977
|
+
* @param {string} [languageCode]
|
|
1978
|
+
* @param {boolean} [showHidden]
|
|
1979
|
+
* @param {number} [page]
|
|
1980
|
+
* @param {number} [limit]
|
|
1981
|
+
* @param {Date} [lastRetrieved]
|
|
1982
|
+
* @param {*} [options] Override http request option.
|
|
1983
|
+
* @throws {RequiredError}
|
|
1984
|
+
*/
|
|
1985
|
+
apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
|
|
1986
|
+
return localVarFp.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1987
|
+
},
|
|
1988
|
+
/**
|
|
1989
|
+
*
|
|
1990
|
+
* @summary Create a Article.
|
|
1991
|
+
* @param {CreateArticleCommand} [createArticleCommand]
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
*/
|
|
1995
|
+
apiV1ArticlesPost(createArticleCommand?: CreateArticleCommand, options?: any): AxiosPromise<ArticleModel> {
|
|
1996
|
+
return localVarFp.apiV1ArticlesPost(createArticleCommand, options).then((request) => request(axios, basePath));
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @summary Get Article by slug.
|
|
2001
|
+
* @param {string} slug
|
|
2002
|
+
* @param {string} [languageCode]
|
|
2003
|
+
* @param {boolean} [returnDefaultValue]
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
*/
|
|
2007
|
+
apiV1ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ArticleModel> {
|
|
2008
|
+
return localVarFp.apiV1ArticlesSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
2009
|
+
},
|
|
2010
|
+
};
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* ArticlesApi - object-oriented interface
|
|
2015
|
+
* @export
|
|
2016
|
+
* @class ArticlesApi
|
|
2017
|
+
* @extends {BaseAPI}
|
|
2018
|
+
*/
|
|
2019
|
+
export class ArticlesApi extends BaseAPI {
|
|
2020
|
+
/**
|
|
2021
|
+
*
|
|
2022
|
+
* @summary Delete ArticleContributor.
|
|
2023
|
+
* @param {string} articleId
|
|
2024
|
+
* @param {string} contributorId
|
|
2025
|
+
* @param {*} [options] Override http request option.
|
|
2026
|
+
* @throws {RequiredError}
|
|
2027
|
+
* @memberof ArticlesApi
|
|
2028
|
+
*/
|
|
2029
|
+
public apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId: string, contributorId: string, options?: AxiosRequestConfig) {
|
|
2030
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsContributorIdDelete(articleId, contributorId, options).then((request) => request(this.axios, this.basePath));
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
*
|
|
2035
|
+
* @summary Get ArticleContributor.
|
|
2036
|
+
* @param {string} articleId
|
|
2037
|
+
* @param {string} contributorId
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
* @memberof ArticlesApi
|
|
2041
|
+
*/
|
|
2042
|
+
public apiV1ArticlesArticleIdContributorsContributorIdGet(articleId: string, contributorId: string, options?: AxiosRequestConfig) {
|
|
2043
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsContributorIdGet(articleId, contributorId, options).then((request) => request(this.axios, this.basePath));
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
*
|
|
2048
|
+
* @summary Update ArticleContributor.
|
|
2049
|
+
* @param {string} articleId
|
|
2050
|
+
* @param {string} contributorId
|
|
2051
|
+
* @param {UpdateArticleContributorCommand} [updateArticleContributorCommand]
|
|
2052
|
+
* @param {*} [options] Override http request option.
|
|
2053
|
+
* @throws {RequiredError}
|
|
2054
|
+
* @memberof ArticlesApi
|
|
2055
|
+
*/
|
|
2056
|
+
public apiV1ArticlesArticleIdContributorsContributorIdPut(articleId: string, contributorId: string, updateArticleContributorCommand?: UpdateArticleContributorCommand, options?: AxiosRequestConfig) {
|
|
2057
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsContributorIdPut(articleId, contributorId, updateArticleContributorCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
*
|
|
2062
|
+
* @summary GetAll ArticleContributors.
|
|
2063
|
+
* @param {string} articleId
|
|
2064
|
+
* @param {string} [articleName]
|
|
2065
|
+
* @param {string} [contributorId]
|
|
2066
|
+
* @param {string} [contributorName]
|
|
2067
|
+
* @param {string} [email]
|
|
2068
|
+
* @param {string} [website]
|
|
2069
|
+
* @param {ContributionType} [contributionType]
|
|
2070
|
+
* @param {string} [languageCode]
|
|
2071
|
+
* @param {boolean} [showHidden]
|
|
2072
|
+
* @param {number} [page]
|
|
2073
|
+
* @param {number} [limit]
|
|
2074
|
+
* @param {Date} [lastRetrieved]
|
|
2075
|
+
* @param {*} [options] Override http request option.
|
|
2076
|
+
* @throws {RequiredError}
|
|
2077
|
+
* @memberof ArticlesApi
|
|
2078
|
+
*/
|
|
2079
|
+
public apiV1ArticlesArticleIdContributorsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, website?: string, contributionType?: ContributionType, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2080
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, website, contributionType, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
*
|
|
2085
|
+
* @summary Create ArticleContributor.
|
|
2086
|
+
* @param {string} articleId
|
|
2087
|
+
* @param {CreateArticleContributorCommand} [createArticleContributorCommand]
|
|
2088
|
+
* @param {*} [options] Override http request option.
|
|
2089
|
+
* @throws {RequiredError}
|
|
2090
|
+
* @memberof ArticlesApi
|
|
2091
|
+
*/
|
|
2092
|
+
public apiV1ArticlesArticleIdContributorsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig) {
|
|
2093
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsPost(articleId, createArticleContributorCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
*
|
|
2098
|
+
* @summary Delete Article.
|
|
2099
|
+
* @param {string} articleId
|
|
2100
|
+
* @param {boolean} [isPermanent]
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
* @memberof ArticlesApi
|
|
2104
|
+
*/
|
|
2105
|
+
public apiV1ArticlesArticleIdDelete(articleId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
2106
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdDelete(articleId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @summary Get Article.
|
|
2112
|
+
* @param {string} articleId
|
|
2113
|
+
* @param {string} [languageCode]
|
|
2114
|
+
* @param {boolean} [returnDefaultValue]
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
* @memberof ArticlesApi
|
|
2118
|
+
*/
|
|
2119
|
+
public apiV1ArticlesArticleIdGet(articleId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
2120
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdGet(articleId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
*
|
|
2125
|
+
* @summary Get all ArticleMedias.
|
|
2126
|
+
* @param {string} articleId
|
|
2127
|
+
* @param {string} [id]
|
|
2128
|
+
* @param {MediaType} [mediaType]
|
|
2129
|
+
* @param {number} [page]
|
|
2130
|
+
* @param {number} [limit]
|
|
2131
|
+
* @param {Date} [lastRetrieved]
|
|
2132
|
+
* @param {*} [options] Override http request option.
|
|
2133
|
+
* @throws {RequiredError}
|
|
2134
|
+
* @memberof ArticlesApi
|
|
2135
|
+
*/
|
|
2136
|
+
public apiV1ArticlesArticleIdMediasGet(articleId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2137
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdMediasGet(articleId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
*
|
|
2142
|
+
* @summary Delete ArticleMedia
|
|
2143
|
+
* @param {string} articleId
|
|
2144
|
+
* @param {string} mediaId
|
|
2145
|
+
* @param {*} [options] Override http request option.
|
|
2146
|
+
* @throws {RequiredError}
|
|
2147
|
+
* @memberof ArticlesApi
|
|
2148
|
+
*/
|
|
2149
|
+
public apiV1ArticlesArticleIdMediasMediaIdDelete(articleId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
2150
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdMediasMediaIdDelete(articleId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
*
|
|
2155
|
+
* @summary Get ArticleMedia.
|
|
2156
|
+
* @param {string} articleId
|
|
2157
|
+
* @param {string} mediaId
|
|
2158
|
+
* @param {*} [options] Override http request option.
|
|
2159
|
+
* @throws {RequiredError}
|
|
2160
|
+
* @memberof ArticlesApi
|
|
2161
|
+
*/
|
|
2162
|
+
public apiV1ArticlesArticleIdMediasMediaIdGet(articleId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
2163
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdMediasMediaIdGet(articleId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
*
|
|
2168
|
+
* @summary Update ArticleMedia.
|
|
2169
|
+
* @param {string} articleId
|
|
2170
|
+
* @param {string} mediaId
|
|
2171
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
2172
|
+
* @param {*} [options] Override http request option.
|
|
2173
|
+
* @throws {RequiredError}
|
|
2174
|
+
* @memberof ArticlesApi
|
|
2175
|
+
*/
|
|
2176
|
+
public apiV1ArticlesArticleIdMediasMediaIdPut(articleId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
|
|
2177
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdMediasMediaIdPut(articleId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
*
|
|
2182
|
+
* @summary Create ArticleMedia.
|
|
2183
|
+
* @param {string} articleId
|
|
2184
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
2185
|
+
* @param {*} [options] Override http request option.
|
|
2186
|
+
* @throws {RequiredError}
|
|
2187
|
+
* @memberof ArticlesApi
|
|
2188
|
+
*/
|
|
2189
|
+
public apiV1ArticlesArticleIdMediasPost(articleId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
|
|
2190
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdMediasPost(articleId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
*
|
|
2195
|
+
* @summary Update Article.
|
|
2196
|
+
* @param {string} articleId
|
|
2197
|
+
* @param {UpdateArticleCommand} [updateArticleCommand]
|
|
2198
|
+
* @param {*} [options] Override http request option.
|
|
2199
|
+
* @throws {RequiredError}
|
|
2200
|
+
* @memberof ArticlesApi
|
|
2201
|
+
*/
|
|
2202
|
+
public apiV1ArticlesArticleIdPut(articleId: string, updateArticleCommand?: UpdateArticleCommand, options?: AxiosRequestConfig) {
|
|
2203
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdPut(articleId, updateArticleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
*
|
|
2208
|
+
* @summary Get all ArticleSource.
|
|
2209
|
+
* @param {string} articleId
|
|
2210
|
+
* @param {number} [page]
|
|
2211
|
+
* @param {number} [limit]
|
|
2212
|
+
* @param {Date} [lastRetrieved]
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
* @memberof ArticlesApi
|
|
2216
|
+
*/
|
|
2217
|
+
public apiV1ArticlesArticleIdSourcesGet(articleId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2218
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdSourcesGet(articleId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
*
|
|
2223
|
+
* @summary Create ArticleSource.
|
|
2224
|
+
* @param {string} articleId
|
|
2225
|
+
* @param {CreateArticleSourceCommand} [createArticleSourceCommand]
|
|
2226
|
+
* @param {*} [options] Override http request option.
|
|
2227
|
+
* @throws {RequiredError}
|
|
2228
|
+
* @memberof ArticlesApi
|
|
2229
|
+
*/
|
|
2230
|
+
public apiV1ArticlesArticleIdSourcesPost(articleId: string, createArticleSourceCommand?: CreateArticleSourceCommand, options?: AxiosRequestConfig) {
|
|
2231
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdSourcesPost(articleId, createArticleSourceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @summary Delete ArticleSource.
|
|
2237
|
+
* @param {string} articleId
|
|
2238
|
+
* @param {string} sourceId
|
|
2239
|
+
* @param {*} [options] Override http request option.
|
|
2240
|
+
* @throws {RequiredError}
|
|
2241
|
+
* @memberof ArticlesApi
|
|
2242
|
+
*/
|
|
2243
|
+
public apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId: string, sourceId: string, options?: AxiosRequestConfig) {
|
|
2244
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdSourcesSourceIdDelete(articleId, sourceId, options).then((request) => request(this.axios, this.basePath));
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
*
|
|
2249
|
+
* @summary Get ArticleSource.
|
|
2250
|
+
* @param {string} articleId
|
|
2251
|
+
* @param {string} sourceId
|
|
2252
|
+
* @param {*} [options] Override http request option.
|
|
2253
|
+
* @throws {RequiredError}
|
|
2254
|
+
* @memberof ArticlesApi
|
|
2255
|
+
*/
|
|
2256
|
+
public apiV1ArticlesArticleIdSourcesSourceIdGet(articleId: string, sourceId: string, options?: AxiosRequestConfig) {
|
|
2257
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdSourcesSourceIdGet(articleId, sourceId, options).then((request) => request(this.axios, this.basePath));
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
*
|
|
2262
|
+
* @summary Update ArticleSource.
|
|
2263
|
+
* @param {string} articleId
|
|
2264
|
+
* @param {string} sourceId
|
|
2265
|
+
* @param {UpdateArticleSourceCommand} [updateArticleSourceCommand]
|
|
2266
|
+
* @param {*} [options] Override http request option.
|
|
2267
|
+
* @throws {RequiredError}
|
|
2268
|
+
* @memberof ArticlesApi
|
|
2269
|
+
*/
|
|
2270
|
+
public apiV1ArticlesArticleIdSourcesSourceIdPut(articleId: string, sourceId: string, updateArticleSourceCommand?: UpdateArticleSourceCommand, options?: AxiosRequestConfig) {
|
|
2271
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdSourcesSourceIdPut(articleId, sourceId, updateArticleSourceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
*
|
|
2276
|
+
* @summary GetAll ArticleTags.
|
|
2277
|
+
* @param {string} articleId
|
|
2278
|
+
* @param {string} [tagId]
|
|
2279
|
+
* @param {number} [page]
|
|
2280
|
+
* @param {number} [limit]
|
|
2281
|
+
* @param {Date} [lastRetrieved]
|
|
2282
|
+
* @param {*} [options] Override http request option.
|
|
2283
|
+
* @throws {RequiredError}
|
|
2284
|
+
* @memberof ArticlesApi
|
|
2285
|
+
*/
|
|
2286
|
+
public apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2287
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @summary Create ArticleTag.
|
|
2293
|
+
* @param {string} articleId
|
|
2294
|
+
* @param {CreateArticleTagCommand} [createArticleTagCommand]
|
|
2295
|
+
* @param {*} [options] Override http request option.
|
|
2296
|
+
* @throws {RequiredError}
|
|
2297
|
+
* @memberof ArticlesApi
|
|
2298
|
+
*/
|
|
2299
|
+
public apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig) {
|
|
2300
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
*
|
|
2305
|
+
* @summary Delete ArticleTag.
|
|
2306
|
+
* @param {string} articleId
|
|
2307
|
+
* @param {string} tagId
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
* @memberof ArticlesApi
|
|
2311
|
+
*/
|
|
2312
|
+
public apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, options?: AxiosRequestConfig) {
|
|
2313
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, options).then((request) => request(this.axios, this.basePath));
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @summary Get ArticleTag.
|
|
2319
|
+
* @param {string} articleId
|
|
2320
|
+
* @param {string} tagId
|
|
2321
|
+
* @param {*} [options] Override http request option.
|
|
2322
|
+
* @throws {RequiredError}
|
|
2323
|
+
* @memberof ArticlesApi
|
|
2324
|
+
*/
|
|
2325
|
+
public apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig) {
|
|
2326
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(this.axios, this.basePath));
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
*
|
|
2331
|
+
* @summary Get all Articles.
|
|
2332
|
+
* @param {string} [id]
|
|
2333
|
+
* @param {string} [name]
|
|
2334
|
+
* @param {string} [description]
|
|
2335
|
+
* @param {MarketingType} [marketingType]
|
|
2336
|
+
* @param {string} [userId]
|
|
2337
|
+
* @param {string} [userName]
|
|
2338
|
+
* @param {string} [hospitalId]
|
|
2339
|
+
* @param {string} [hospitalName]
|
|
2340
|
+
* @param {string} [countryId]
|
|
2341
|
+
* @param {string} [tag]
|
|
2342
|
+
* @param {string} [exceptArticleId]
|
|
2343
|
+
* @param {string} [exceptHospitalId]
|
|
2344
|
+
* @param {string} [contributorId]
|
|
2345
|
+
* @param {string} [languageCode]
|
|
2346
|
+
* @param {boolean} [showHidden]
|
|
2347
|
+
* @param {number} [page]
|
|
2348
|
+
* @param {number} [limit]
|
|
2349
|
+
* @param {Date} [lastRetrieved]
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
* @memberof ArticlesApi
|
|
2353
|
+
*/
|
|
2354
|
+
public apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2355
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
*
|
|
2360
|
+
* @summary Create a Article.
|
|
2361
|
+
* @param {CreateArticleCommand} [createArticleCommand]
|
|
2362
|
+
* @param {*} [options] Override http request option.
|
|
2363
|
+
* @throws {RequiredError}
|
|
2364
|
+
* @memberof ArticlesApi
|
|
2365
|
+
*/
|
|
2366
|
+
public apiV1ArticlesPost(createArticleCommand?: CreateArticleCommand, options?: AxiosRequestConfig) {
|
|
2367
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesPost(createArticleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Get Article by slug.
|
|
2373
|
+
* @param {string} slug
|
|
2374
|
+
* @param {string} [languageCode]
|
|
2375
|
+
* @param {boolean} [returnDefaultValue]
|
|
2376
|
+
* @param {*} [options] Override http request option.
|
|
2377
|
+
* @throws {RequiredError}
|
|
2378
|
+
* @memberof ArticlesApi
|
|
2379
|
+
*/
|
|
2380
|
+
public apiV1ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
2381
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
2382
|
+
}
|
|
2383
|
+
}
|