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,2728 @@
|
|
|
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 { AppointmentTimetableOverridesModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { AppointmentTimetablesModel } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BatchAppointmentTimetablesResultModel } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { BatchDealAppointmentTimetablesCommand } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { BatchDealPackageAppointmentTimetablesCommand } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { CreateDealCommand } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { CreateDealPackageCommand } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { CreateDealServiceCommand } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { DayOfWeek } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { DealModel } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { DealPackageModel } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { DealPackagesModel } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { DealServiceModel } from '../models';
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
import { DealServicesModel } from '../models';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import { DealsModel } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import { DealsSimpleModel } from '../models';
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
import { MarketingType } from '../models';
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
import { ProblemDetails } from '../models';
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
import { SaveAppointmentTimetableOverridesResultModel } from '../models';
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
import { SaveDealAppointmentTimetableOverridesCommand } from '../models';
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import { SaveDealPackageAppointmentTimetableOverridesCommand } from '../models';
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
import { UpdateDealCommand } from '../models';
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
import { UpdateDealPackageCommand } from '../models';
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
import { UpdateDealServiceCommand } from '../models';
|
|
71
|
+
/**
|
|
72
|
+
* DealsApi - axios parameter creator
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DealsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
76
|
+
return {
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
80
|
+
* @param {string} dealId
|
|
81
|
+
* @param {boolean} [includesPreviousItems]
|
|
82
|
+
* @param {Date} [startDate]
|
|
83
|
+
* @param {Date} [endDate]
|
|
84
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
85
|
+
* @param {number} [page]
|
|
86
|
+
* @param {number} [limit]
|
|
87
|
+
* @param {Date} [lastRetrieved]
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
apiV1DealsDealIdAppointmenttimetableoverridesGet: async (dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
93
|
+
assertParamExists('apiV1DealsDealIdAppointmenttimetableoverridesGet', 'dealId', dealId)
|
|
94
|
+
const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetableoverrides`
|
|
95
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication oauth2 required
|
|
108
|
+
// oauth required
|
|
109
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
110
|
+
|
|
111
|
+
if (includesPreviousItems !== undefined) {
|
|
112
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (startDate !== undefined) {
|
|
116
|
+
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
117
|
+
(startDate as any).toISOString() :
|
|
118
|
+
startDate;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (endDate !== undefined) {
|
|
122
|
+
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
123
|
+
(endDate as any).toISOString() :
|
|
124
|
+
endDate;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (dayOfWeek !== undefined) {
|
|
128
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (page !== undefined) {
|
|
132
|
+
localVarQueryParameter['page'] = page;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (limit !== undefined) {
|
|
136
|
+
localVarQueryParameter['limit'] = limit;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (lastRetrieved !== undefined) {
|
|
140
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
141
|
+
(lastRetrieved as any).toISOString() :
|
|
142
|
+
lastRetrieved;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
url: toPathString(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary Save Deal appointment timetable overrides
|
|
159
|
+
* @param {string} dealId
|
|
160
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
apiV1DealsDealIdAppointmenttimetableoverridesPost: async (dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
166
|
+
assertParamExists('apiV1DealsDealIdAppointmenttimetableoverridesPost', 'dealId', dealId)
|
|
167
|
+
const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetableoverrides`
|
|
168
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
171
|
+
let baseOptions;
|
|
172
|
+
if (configuration) {
|
|
173
|
+
baseOptions = configuration.baseOptions;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
177
|
+
const localVarHeaderParameter = {} as any;
|
|
178
|
+
const localVarQueryParameter = {} as any;
|
|
179
|
+
|
|
180
|
+
// authentication oauth2 required
|
|
181
|
+
// oauth required
|
|
182
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
187
|
+
|
|
188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
191
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveDealAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration)
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
url: toPathString(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @summary Add, update and delete deal appointment timetable
|
|
201
|
+
* @param {string} dealId
|
|
202
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
apiV1DealsDealIdAppointmenttimetablesBatchPost: async (dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
208
|
+
assertParamExists('apiV1DealsDealIdAppointmenttimetablesBatchPost', 'dealId', dealId)
|
|
209
|
+
const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetables/batch`
|
|
210
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
219
|
+
const localVarHeaderParameter = {} as any;
|
|
220
|
+
const localVarQueryParameter = {} as any;
|
|
221
|
+
|
|
222
|
+
// authentication oauth2 required
|
|
223
|
+
// oauth required
|
|
224
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
229
|
+
|
|
230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
233
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchDealAppointmentTimetablesCommand, localVarRequestOptions, configuration)
|
|
234
|
+
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Get deal appointment timetables
|
|
243
|
+
* @param {string} dealId
|
|
244
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
245
|
+
* @param {number} [page]
|
|
246
|
+
* @param {number} [limit]
|
|
247
|
+
* @param {Date} [lastRetrieved]
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
apiV1DealsDealIdAppointmenttimetablesGet: async (dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
252
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
253
|
+
assertParamExists('apiV1DealsDealIdAppointmenttimetablesGet', 'dealId', dealId)
|
|
254
|
+
const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetables`
|
|
255
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
256
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
257
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
258
|
+
let baseOptions;
|
|
259
|
+
if (configuration) {
|
|
260
|
+
baseOptions = configuration.baseOptions;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
264
|
+
const localVarHeaderParameter = {} as any;
|
|
265
|
+
const localVarQueryParameter = {} as any;
|
|
266
|
+
|
|
267
|
+
// authentication oauth2 required
|
|
268
|
+
// oauth required
|
|
269
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
270
|
+
|
|
271
|
+
if (dayOfWeek !== undefined) {
|
|
272
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
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 Delete deal.
|
|
303
|
+
* @param {string} dealId
|
|
304
|
+
* @param {boolean} [isPermanent]
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
apiV1DealsDealIdDelete: async (dealId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
309
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
310
|
+
assertParamExists('apiV1DealsDealIdDelete', 'dealId', dealId)
|
|
311
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
312
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
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: 'DELETE', ...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
|
+
if (isPermanent !== undefined) {
|
|
329
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
335
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
337
|
+
|
|
338
|
+
return {
|
|
339
|
+
url: toPathString(localVarUrlObj),
|
|
340
|
+
options: localVarRequestOptions,
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @summary Get deal.
|
|
346
|
+
* @param {string} dealId
|
|
347
|
+
* @param {string} [languageCode]
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
apiV1DealsDealIdGet: async (dealId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
352
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
353
|
+
assertParamExists('apiV1DealsDealIdGet', 'dealId', dealId)
|
|
354
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
355
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
|
+
let baseOptions;
|
|
359
|
+
if (configuration) {
|
|
360
|
+
baseOptions = configuration.baseOptions;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
364
|
+
const localVarHeaderParameter = {} as any;
|
|
365
|
+
const localVarQueryParameter = {} as any;
|
|
366
|
+
|
|
367
|
+
// authentication oauth2 required
|
|
368
|
+
// oauth required
|
|
369
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
370
|
+
|
|
371
|
+
if (languageCode !== undefined) {
|
|
372
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
380
|
+
|
|
381
|
+
return {
|
|
382
|
+
url: toPathString(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions,
|
|
384
|
+
};
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @summary Get all DealPackage.
|
|
389
|
+
* @param {string} dealId
|
|
390
|
+
* @param {string} [relatedDealPackageId]
|
|
391
|
+
* @param {string} [dealName]
|
|
392
|
+
* @param {string} [name]
|
|
393
|
+
* @param {string} [countryId]
|
|
394
|
+
* @param {string} [hospitalId]
|
|
395
|
+
* @param {string} [hospitalName]
|
|
396
|
+
* @param {string} [languageCode]
|
|
397
|
+
* @param {boolean} [showHidden]
|
|
398
|
+
* @param {number} [page]
|
|
399
|
+
* @param {number} [limit]
|
|
400
|
+
* @param {Date} [lastRetrieved]
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
apiV1DealsDealIdPackagesGet: async (dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
405
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
406
|
+
assertParamExists('apiV1DealsDealIdPackagesGet', 'dealId', dealId)
|
|
407
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages`
|
|
408
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
409
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
410
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
411
|
+
let baseOptions;
|
|
412
|
+
if (configuration) {
|
|
413
|
+
baseOptions = configuration.baseOptions;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
417
|
+
const localVarHeaderParameter = {} as any;
|
|
418
|
+
const localVarQueryParameter = {} as any;
|
|
419
|
+
|
|
420
|
+
// authentication oauth2 required
|
|
421
|
+
// oauth required
|
|
422
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
423
|
+
|
|
424
|
+
if (relatedDealPackageId !== undefined) {
|
|
425
|
+
localVarQueryParameter['RelatedDealPackageId'] = relatedDealPackageId;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (dealName !== undefined) {
|
|
429
|
+
localVarQueryParameter['DealName'] = dealName;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (name !== undefined) {
|
|
433
|
+
localVarQueryParameter['Name'] = name;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (countryId !== undefined) {
|
|
437
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (hospitalId !== undefined) {
|
|
441
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (hospitalName !== undefined) {
|
|
445
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (languageCode !== undefined) {
|
|
449
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if (showHidden !== undefined) {
|
|
453
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (page !== undefined) {
|
|
457
|
+
localVarQueryParameter['page'] = page;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (limit !== undefined) {
|
|
461
|
+
localVarQueryParameter['limit'] = limit;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (lastRetrieved !== undefined) {
|
|
465
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
466
|
+
(lastRetrieved as any).toISOString() :
|
|
467
|
+
lastRetrieved;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
474
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
url: toPathString(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
484
|
+
* @param {string} dealId
|
|
485
|
+
* @param {string} packageId
|
|
486
|
+
* @param {boolean} [includesPreviousItems]
|
|
487
|
+
* @param {Date} [startDate]
|
|
488
|
+
* @param {Date} [endDate]
|
|
489
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
490
|
+
* @param {number} [page]
|
|
491
|
+
* @param {number} [limit]
|
|
492
|
+
* @param {Date} [lastRetrieved]
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet: async (dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
497
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
498
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'dealId', dealId)
|
|
499
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
500
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'packageId', packageId)
|
|
501
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides`
|
|
502
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
503
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
506
|
+
let baseOptions;
|
|
507
|
+
if (configuration) {
|
|
508
|
+
baseOptions = configuration.baseOptions;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
512
|
+
const localVarHeaderParameter = {} as any;
|
|
513
|
+
const localVarQueryParameter = {} as any;
|
|
514
|
+
|
|
515
|
+
// authentication oauth2 required
|
|
516
|
+
// oauth required
|
|
517
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
518
|
+
|
|
519
|
+
if (includesPreviousItems !== undefined) {
|
|
520
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
if (startDate !== undefined) {
|
|
524
|
+
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
525
|
+
(startDate as any).toISOString() :
|
|
526
|
+
startDate;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
if (endDate !== undefined) {
|
|
530
|
+
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
531
|
+
(endDate as any).toISOString() :
|
|
532
|
+
endDate;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (dayOfWeek !== undefined) {
|
|
536
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
if (page !== undefined) {
|
|
540
|
+
localVarQueryParameter['page'] = page;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (limit !== undefined) {
|
|
544
|
+
localVarQueryParameter['limit'] = limit;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if (lastRetrieved !== undefined) {
|
|
548
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
549
|
+
(lastRetrieved as any).toISOString() :
|
|
550
|
+
lastRetrieved;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
557
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
558
|
+
|
|
559
|
+
return {
|
|
560
|
+
url: toPathString(localVarUrlObj),
|
|
561
|
+
options: localVarRequestOptions,
|
|
562
|
+
};
|
|
563
|
+
},
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
567
|
+
* @param {string} dealId
|
|
568
|
+
* @param {string} packageId
|
|
569
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost: async (dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
574
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
575
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'dealId', dealId)
|
|
576
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
577
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'packageId', packageId)
|
|
578
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides`
|
|
579
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
580
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
581
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
582
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
583
|
+
let baseOptions;
|
|
584
|
+
if (configuration) {
|
|
585
|
+
baseOptions = configuration.baseOptions;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
589
|
+
const localVarHeaderParameter = {} as any;
|
|
590
|
+
const localVarQueryParameter = {} as any;
|
|
591
|
+
|
|
592
|
+
// authentication oauth2 required
|
|
593
|
+
// oauth required
|
|
594
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
599
|
+
|
|
600
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
601
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
602
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
603
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveDealPackageAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration)
|
|
604
|
+
|
|
605
|
+
return {
|
|
606
|
+
url: toPathString(localVarUrlObj),
|
|
607
|
+
options: localVarRequestOptions,
|
|
608
|
+
};
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
613
|
+
* @param {string} dealId
|
|
614
|
+
* @param {string} packageId
|
|
615
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost: async (dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
620
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
621
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'dealId', dealId)
|
|
622
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
623
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'packageId', packageId)
|
|
624
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables/batch`
|
|
625
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
626
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
629
|
+
let baseOptions;
|
|
630
|
+
if (configuration) {
|
|
631
|
+
baseOptions = configuration.baseOptions;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
635
|
+
const localVarHeaderParameter = {} as any;
|
|
636
|
+
const localVarQueryParameter = {} as any;
|
|
637
|
+
|
|
638
|
+
// authentication oauth2 required
|
|
639
|
+
// oauth required
|
|
640
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
645
|
+
|
|
646
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
648
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
649
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchDealPackageAppointmentTimetablesCommand, localVarRequestOptions, configuration)
|
|
650
|
+
|
|
651
|
+
return {
|
|
652
|
+
url: toPathString(localVarUrlObj),
|
|
653
|
+
options: localVarRequestOptions,
|
|
654
|
+
};
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @summary Get DealPackage appointment timetables
|
|
659
|
+
* @param {string} dealId
|
|
660
|
+
* @param {string} packageId
|
|
661
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
662
|
+
* @param {number} [page]
|
|
663
|
+
* @param {number} [limit]
|
|
664
|
+
* @param {Date} [lastRetrieved]
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet: async (dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
669
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
670
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'dealId', dealId)
|
|
671
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
672
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'packageId', packageId)
|
|
673
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables`
|
|
674
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
675
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
676
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
677
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
678
|
+
let baseOptions;
|
|
679
|
+
if (configuration) {
|
|
680
|
+
baseOptions = configuration.baseOptions;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
684
|
+
const localVarHeaderParameter = {} as any;
|
|
685
|
+
const localVarQueryParameter = {} as any;
|
|
686
|
+
|
|
687
|
+
// authentication oauth2 required
|
|
688
|
+
// oauth required
|
|
689
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
690
|
+
|
|
691
|
+
if (dayOfWeek !== undefined) {
|
|
692
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (page !== undefined) {
|
|
696
|
+
localVarQueryParameter['page'] = page;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if (limit !== undefined) {
|
|
700
|
+
localVarQueryParameter['limit'] = limit;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
if (lastRetrieved !== undefined) {
|
|
704
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
705
|
+
(lastRetrieved as any).toISOString() :
|
|
706
|
+
lastRetrieved;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
713
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
714
|
+
|
|
715
|
+
return {
|
|
716
|
+
url: toPathString(localVarUrlObj),
|
|
717
|
+
options: localVarRequestOptions,
|
|
718
|
+
};
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary Delete DealPackage.
|
|
723
|
+
* @param {string} dealId
|
|
724
|
+
* @param {string} packageId
|
|
725
|
+
* @param {boolean} [isPermanent]
|
|
726
|
+
* @param {*} [options] Override http request option.
|
|
727
|
+
* @throws {RequiredError}
|
|
728
|
+
*/
|
|
729
|
+
apiV1DealsDealIdPackagesPackageIdDelete: async (dealId: string, packageId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
730
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
731
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdDelete', 'dealId', dealId)
|
|
732
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
733
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdDelete', 'packageId', packageId)
|
|
734
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
735
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
736
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
739
|
+
let baseOptions;
|
|
740
|
+
if (configuration) {
|
|
741
|
+
baseOptions = configuration.baseOptions;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
745
|
+
const localVarHeaderParameter = {} as any;
|
|
746
|
+
const localVarQueryParameter = {} as any;
|
|
747
|
+
|
|
748
|
+
// authentication oauth2 required
|
|
749
|
+
// oauth required
|
|
750
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
751
|
+
|
|
752
|
+
if (isPermanent !== undefined) {
|
|
753
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
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 Get DealPackage.
|
|
770
|
+
* @param {string} dealId
|
|
771
|
+
* @param {string} packageId
|
|
772
|
+
* @param {string} [languageCode]
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
apiV1DealsDealIdPackagesPackageIdGet: async (dealId: string, packageId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
777
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
778
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdGet', 'dealId', dealId)
|
|
779
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
780
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdGet', 'packageId', packageId)
|
|
781
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
782
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
783
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
784
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
785
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
786
|
+
let baseOptions;
|
|
787
|
+
if (configuration) {
|
|
788
|
+
baseOptions = configuration.baseOptions;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
792
|
+
const localVarHeaderParameter = {} as any;
|
|
793
|
+
const localVarQueryParameter = {} as any;
|
|
794
|
+
|
|
795
|
+
// authentication oauth2 required
|
|
796
|
+
// oauth required
|
|
797
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
798
|
+
|
|
799
|
+
if (languageCode !== undefined) {
|
|
800
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
806
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
807
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
808
|
+
|
|
809
|
+
return {
|
|
810
|
+
url: toPathString(localVarUrlObj),
|
|
811
|
+
options: localVarRequestOptions,
|
|
812
|
+
};
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @summary Update DealPackage.
|
|
817
|
+
* @param {string} dealId
|
|
818
|
+
* @param {string} packageId
|
|
819
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
apiV1DealsDealIdPackagesPackageIdPut: async (dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
824
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
825
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdPut', 'dealId', dealId)
|
|
826
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
827
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdPut', 'packageId', packageId)
|
|
828
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
829
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
830
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
831
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
833
|
+
let baseOptions;
|
|
834
|
+
if (configuration) {
|
|
835
|
+
baseOptions = configuration.baseOptions;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
839
|
+
const localVarHeaderParameter = {} as any;
|
|
840
|
+
const localVarQueryParameter = {} as any;
|
|
841
|
+
|
|
842
|
+
// authentication oauth2 required
|
|
843
|
+
// oauth required
|
|
844
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
849
|
+
|
|
850
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
851
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
852
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
853
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealPackageCommand, localVarRequestOptions, configuration)
|
|
854
|
+
|
|
855
|
+
return {
|
|
856
|
+
url: toPathString(localVarUrlObj),
|
|
857
|
+
options: localVarRequestOptions,
|
|
858
|
+
};
|
|
859
|
+
},
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @summary Create DealPackage.
|
|
863
|
+
* @param {string} dealId
|
|
864
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
apiV1DealsDealIdPackagesPost: async (dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
869
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
870
|
+
assertParamExists('apiV1DealsDealIdPackagesPost', 'dealId', dealId)
|
|
871
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages`
|
|
872
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
874
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
875
|
+
let baseOptions;
|
|
876
|
+
if (configuration) {
|
|
877
|
+
baseOptions = configuration.baseOptions;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
881
|
+
const localVarHeaderParameter = {} as any;
|
|
882
|
+
const localVarQueryParameter = {} as any;
|
|
883
|
+
|
|
884
|
+
// authentication oauth2 required
|
|
885
|
+
// oauth required
|
|
886
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
891
|
+
|
|
892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
894
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
895
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealPackageCommand, localVarRequestOptions, configuration)
|
|
896
|
+
|
|
897
|
+
return {
|
|
898
|
+
url: toPathString(localVarUrlObj),
|
|
899
|
+
options: localVarRequestOptions,
|
|
900
|
+
};
|
|
901
|
+
},
|
|
902
|
+
/**
|
|
903
|
+
*
|
|
904
|
+
* @summary Update deal.
|
|
905
|
+
* @param {string} dealId
|
|
906
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
apiV1DealsDealIdPut: async (dealId: string, updateDealCommand?: UpdateDealCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
911
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
912
|
+
assertParamExists('apiV1DealsDealIdPut', 'dealId', dealId)
|
|
913
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
914
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
915
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
916
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
917
|
+
let baseOptions;
|
|
918
|
+
if (configuration) {
|
|
919
|
+
baseOptions = configuration.baseOptions;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
923
|
+
const localVarHeaderParameter = {} as any;
|
|
924
|
+
const localVarQueryParameter = {} as any;
|
|
925
|
+
|
|
926
|
+
// authentication oauth2 required
|
|
927
|
+
// oauth required
|
|
928
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
933
|
+
|
|
934
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
936
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
937
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealCommand, localVarRequestOptions, configuration)
|
|
938
|
+
|
|
939
|
+
return {
|
|
940
|
+
url: toPathString(localVarUrlObj),
|
|
941
|
+
options: localVarRequestOptions,
|
|
942
|
+
};
|
|
943
|
+
},
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @summary Get all DealService.
|
|
947
|
+
* @param {string} dealId
|
|
948
|
+
* @param {string} [languageCode]
|
|
949
|
+
* @param {number} [page]
|
|
950
|
+
* @param {number} [limit]
|
|
951
|
+
* @param {Date} [lastRetrieved]
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
apiV1DealsDealIdServicesGet: async (dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
956
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
957
|
+
assertParamExists('apiV1DealsDealIdServicesGet', 'dealId', dealId)
|
|
958
|
+
const localVarPath = `/api/v1/deals/{dealId}/services`
|
|
959
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
960
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
961
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
962
|
+
let baseOptions;
|
|
963
|
+
if (configuration) {
|
|
964
|
+
baseOptions = configuration.baseOptions;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
968
|
+
const localVarHeaderParameter = {} as any;
|
|
969
|
+
const localVarQueryParameter = {} as any;
|
|
970
|
+
|
|
971
|
+
// authentication oauth2 required
|
|
972
|
+
// oauth required
|
|
973
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
974
|
+
|
|
975
|
+
if (languageCode !== undefined) {
|
|
976
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
if (page !== undefined) {
|
|
980
|
+
localVarQueryParameter['page'] = page;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
if (limit !== undefined) {
|
|
984
|
+
localVarQueryParameter['limit'] = limit;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
if (lastRetrieved !== undefined) {
|
|
988
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
989
|
+
(lastRetrieved as any).toISOString() :
|
|
990
|
+
lastRetrieved;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
996
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
997
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
998
|
+
|
|
999
|
+
return {
|
|
1000
|
+
url: toPathString(localVarUrlObj),
|
|
1001
|
+
options: localVarRequestOptions,
|
|
1002
|
+
};
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @summary Create DealService.
|
|
1007
|
+
* @param {string} dealId
|
|
1008
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
apiV1DealsDealIdServicesPost: async (dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1013
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
1014
|
+
assertParamExists('apiV1DealsDealIdServicesPost', 'dealId', dealId)
|
|
1015
|
+
const localVarPath = `/api/v1/deals/{dealId}/services`
|
|
1016
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
1017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1019
|
+
let baseOptions;
|
|
1020
|
+
if (configuration) {
|
|
1021
|
+
baseOptions = configuration.baseOptions;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1025
|
+
const localVarHeaderParameter = {} as any;
|
|
1026
|
+
const localVarQueryParameter = {} as any;
|
|
1027
|
+
|
|
1028
|
+
// authentication oauth2 required
|
|
1029
|
+
// oauth required
|
|
1030
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1035
|
+
|
|
1036
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1038
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1039
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealServiceCommand, localVarRequestOptions, configuration)
|
|
1040
|
+
|
|
1041
|
+
return {
|
|
1042
|
+
url: toPathString(localVarUrlObj),
|
|
1043
|
+
options: localVarRequestOptions,
|
|
1044
|
+
};
|
|
1045
|
+
},
|
|
1046
|
+
/**
|
|
1047
|
+
*
|
|
1048
|
+
* @summary Delete DealService.
|
|
1049
|
+
* @param {string} dealId
|
|
1050
|
+
* @param {string} serviceId
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
apiV1DealsDealIdServicesServiceIdDelete: async (dealId: string, serviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1055
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
1056
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdDelete', 'dealId', dealId)
|
|
1057
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
1058
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdDelete', 'serviceId', serviceId)
|
|
1059
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
1060
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
1061
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
1062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1063
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1064
|
+
let baseOptions;
|
|
1065
|
+
if (configuration) {
|
|
1066
|
+
baseOptions = configuration.baseOptions;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1070
|
+
const localVarHeaderParameter = {} as any;
|
|
1071
|
+
const localVarQueryParameter = {} as any;
|
|
1072
|
+
|
|
1073
|
+
// authentication oauth2 required
|
|
1074
|
+
// oauth required
|
|
1075
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1081
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1082
|
+
|
|
1083
|
+
return {
|
|
1084
|
+
url: toPathString(localVarUrlObj),
|
|
1085
|
+
options: localVarRequestOptions,
|
|
1086
|
+
};
|
|
1087
|
+
},
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary Get DealService.
|
|
1091
|
+
* @param {string} dealId
|
|
1092
|
+
* @param {string} serviceId
|
|
1093
|
+
* @param {string} [languageCode]
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
*/
|
|
1097
|
+
apiV1DealsDealIdServicesServiceIdGet: async (dealId: string, serviceId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1098
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
1099
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdGet', 'dealId', dealId)
|
|
1100
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
1101
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdGet', 'serviceId', serviceId)
|
|
1102
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
1103
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
1104
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
1105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1107
|
+
let baseOptions;
|
|
1108
|
+
if (configuration) {
|
|
1109
|
+
baseOptions = configuration.baseOptions;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1113
|
+
const localVarHeaderParameter = {} as any;
|
|
1114
|
+
const localVarQueryParameter = {} as any;
|
|
1115
|
+
|
|
1116
|
+
// authentication oauth2 required
|
|
1117
|
+
// oauth required
|
|
1118
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1119
|
+
|
|
1120
|
+
if (languageCode !== undefined) {
|
|
1121
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1129
|
+
|
|
1130
|
+
return {
|
|
1131
|
+
url: toPathString(localVarUrlObj),
|
|
1132
|
+
options: localVarRequestOptions,
|
|
1133
|
+
};
|
|
1134
|
+
},
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Update DealService.
|
|
1138
|
+
* @param {string} dealId
|
|
1139
|
+
* @param {string} serviceId
|
|
1140
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
*/
|
|
1144
|
+
apiV1DealsDealIdServicesServiceIdPut: async (dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1145
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
1146
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdPut', 'dealId', dealId)
|
|
1147
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
1148
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdPut', 'serviceId', serviceId)
|
|
1149
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
1150
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
1151
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
1152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1154
|
+
let baseOptions;
|
|
1155
|
+
if (configuration) {
|
|
1156
|
+
baseOptions = configuration.baseOptions;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1160
|
+
const localVarHeaderParameter = {} as any;
|
|
1161
|
+
const localVarQueryParameter = {} as any;
|
|
1162
|
+
|
|
1163
|
+
// authentication oauth2 required
|
|
1164
|
+
// oauth required
|
|
1165
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1170
|
+
|
|
1171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1173
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1174
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealServiceCommand, localVarRequestOptions, configuration)
|
|
1175
|
+
|
|
1176
|
+
return {
|
|
1177
|
+
url: toPathString(localVarUrlObj),
|
|
1178
|
+
options: localVarRequestOptions,
|
|
1179
|
+
};
|
|
1180
|
+
},
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @summary Get all deals.
|
|
1184
|
+
* @param {string} [id]
|
|
1185
|
+
* @param {string} [name]
|
|
1186
|
+
* @param {MarketingType} [marketingType]
|
|
1187
|
+
* @param {string} [countryId]
|
|
1188
|
+
* @param {string} [hospitalId]
|
|
1189
|
+
* @param {string} [hospitalName]
|
|
1190
|
+
* @param {string} [specialtyId]
|
|
1191
|
+
* @param {string} [specialtyName]
|
|
1192
|
+
* @param {string} [specialtyTypeId]
|
|
1193
|
+
* @param {string} [specialtyTypeName]
|
|
1194
|
+
* @param {string} [serviceId]
|
|
1195
|
+
* @param {string} [serviceName]
|
|
1196
|
+
* @param {string} [exceptHospitalId]
|
|
1197
|
+
* @param {string} [exceptDealId]
|
|
1198
|
+
* @param {Array<string>} [ids]
|
|
1199
|
+
* @param {number} [serviceDuration]
|
|
1200
|
+
* @param {string} [languageCode]
|
|
1201
|
+
* @param {boolean} [showHidden]
|
|
1202
|
+
* @param {boolean} [returnDefaultValue]
|
|
1203
|
+
* @param {number} [page]
|
|
1204
|
+
* @param {number} [limit]
|
|
1205
|
+
* @param {Date} [lastRetrieved]
|
|
1206
|
+
* @param {*} [options] Override http request option.
|
|
1207
|
+
* @throws {RequiredError}
|
|
1208
|
+
*/
|
|
1209
|
+
apiV1DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1210
|
+
const localVarPath = `/api/v1/deals`;
|
|
1211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1213
|
+
let baseOptions;
|
|
1214
|
+
if (configuration) {
|
|
1215
|
+
baseOptions = configuration.baseOptions;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1219
|
+
const localVarHeaderParameter = {} as any;
|
|
1220
|
+
const localVarQueryParameter = {} as any;
|
|
1221
|
+
|
|
1222
|
+
// authentication oauth2 required
|
|
1223
|
+
// oauth required
|
|
1224
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1225
|
+
|
|
1226
|
+
if (id !== undefined) {
|
|
1227
|
+
localVarQueryParameter['Id'] = id;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
if (name !== undefined) {
|
|
1231
|
+
localVarQueryParameter['Name'] = name;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
if (marketingType !== undefined) {
|
|
1235
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
if (countryId !== undefined) {
|
|
1239
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
if (hospitalId !== undefined) {
|
|
1243
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
if (hospitalName !== undefined) {
|
|
1247
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
if (specialtyId !== undefined) {
|
|
1251
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
if (specialtyName !== undefined) {
|
|
1255
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
if (specialtyTypeId !== undefined) {
|
|
1259
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
if (specialtyTypeName !== undefined) {
|
|
1263
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
if (serviceId !== undefined) {
|
|
1267
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
if (serviceName !== undefined) {
|
|
1271
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (exceptHospitalId !== undefined) {
|
|
1275
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (exceptDealId !== undefined) {
|
|
1279
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
if (ids) {
|
|
1283
|
+
localVarQueryParameter['Ids'] = ids;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
if (serviceDuration !== undefined) {
|
|
1287
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
if (languageCode !== undefined) {
|
|
1291
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
if (showHidden !== undefined) {
|
|
1295
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (returnDefaultValue !== undefined) {
|
|
1299
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
if (page !== undefined) {
|
|
1303
|
+
localVarQueryParameter['page'] = page;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
if (limit !== undefined) {
|
|
1307
|
+
localVarQueryParameter['limit'] = limit;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
if (lastRetrieved !== undefined) {
|
|
1311
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1312
|
+
(lastRetrieved as any).toISOString() :
|
|
1313
|
+
lastRetrieved;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1321
|
+
|
|
1322
|
+
return {
|
|
1323
|
+
url: toPathString(localVarUrlObj),
|
|
1324
|
+
options: localVarRequestOptions,
|
|
1325
|
+
};
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
*
|
|
1329
|
+
* @summary Create a deal.
|
|
1330
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
apiV1DealsPost: async (createDealCommand?: CreateDealCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1335
|
+
const localVarPath = `/api/v1/deals`;
|
|
1336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1338
|
+
let baseOptions;
|
|
1339
|
+
if (configuration) {
|
|
1340
|
+
baseOptions = configuration.baseOptions;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1344
|
+
const localVarHeaderParameter = {} as any;
|
|
1345
|
+
const localVarQueryParameter = {} as any;
|
|
1346
|
+
|
|
1347
|
+
// authentication oauth2 required
|
|
1348
|
+
// oauth required
|
|
1349
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1354
|
+
|
|
1355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1358
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealCommand, localVarRequestOptions, configuration)
|
|
1359
|
+
|
|
1360
|
+
return {
|
|
1361
|
+
url: toPathString(localVarUrlObj),
|
|
1362
|
+
options: localVarRequestOptions,
|
|
1363
|
+
};
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Get all deals.
|
|
1368
|
+
* @param {string} [id]
|
|
1369
|
+
* @param {string} [name]
|
|
1370
|
+
* @param {MarketingType} [marketingType]
|
|
1371
|
+
* @param {string} [countryId]
|
|
1372
|
+
* @param {string} [hospitalId]
|
|
1373
|
+
* @param {string} [hospitalName]
|
|
1374
|
+
* @param {string} [specialtyId]
|
|
1375
|
+
* @param {string} [specialtyName]
|
|
1376
|
+
* @param {string} [specialtyTypeId]
|
|
1377
|
+
* @param {string} [specialtyTypeName]
|
|
1378
|
+
* @param {string} [serviceId]
|
|
1379
|
+
* @param {string} [serviceName]
|
|
1380
|
+
* @param {string} [exceptHospitalId]
|
|
1381
|
+
* @param {string} [exceptDealId]
|
|
1382
|
+
* @param {Array<string>} [ids]
|
|
1383
|
+
* @param {number} [serviceDuration]
|
|
1384
|
+
* @param {string} [languageCode]
|
|
1385
|
+
* @param {boolean} [showHidden]
|
|
1386
|
+
* @param {boolean} [returnDefaultValue]
|
|
1387
|
+
* @param {number} [page]
|
|
1388
|
+
* @param {number} [limit]
|
|
1389
|
+
* @param {Date} [lastRetrieved]
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @throws {RequiredError}
|
|
1392
|
+
*/
|
|
1393
|
+
apiV1DealsSimpleGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1394
|
+
const localVarPath = `/api/v1/deals/simple`;
|
|
1395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1397
|
+
let baseOptions;
|
|
1398
|
+
if (configuration) {
|
|
1399
|
+
baseOptions = configuration.baseOptions;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1403
|
+
const localVarHeaderParameter = {} as any;
|
|
1404
|
+
const localVarQueryParameter = {} as any;
|
|
1405
|
+
|
|
1406
|
+
// authentication oauth2 required
|
|
1407
|
+
// oauth required
|
|
1408
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1409
|
+
|
|
1410
|
+
if (id !== undefined) {
|
|
1411
|
+
localVarQueryParameter['Id'] = id;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
if (name !== undefined) {
|
|
1415
|
+
localVarQueryParameter['Name'] = name;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
if (marketingType !== undefined) {
|
|
1419
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
if (countryId !== undefined) {
|
|
1423
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
if (hospitalId !== undefined) {
|
|
1427
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
if (hospitalName !== undefined) {
|
|
1431
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
if (specialtyId !== undefined) {
|
|
1435
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
if (specialtyName !== undefined) {
|
|
1439
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
if (specialtyTypeId !== undefined) {
|
|
1443
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
if (specialtyTypeName !== undefined) {
|
|
1447
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
if (serviceId !== undefined) {
|
|
1451
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (serviceName !== undefined) {
|
|
1455
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
if (exceptHospitalId !== undefined) {
|
|
1459
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
if (exceptDealId !== undefined) {
|
|
1463
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
if (ids) {
|
|
1467
|
+
localVarQueryParameter['Ids'] = ids;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
if (serviceDuration !== undefined) {
|
|
1471
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
if (languageCode !== undefined) {
|
|
1475
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
if (showHidden !== undefined) {
|
|
1479
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
if (returnDefaultValue !== undefined) {
|
|
1483
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (page !== undefined) {
|
|
1487
|
+
localVarQueryParameter['page'] = page;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
if (limit !== undefined) {
|
|
1491
|
+
localVarQueryParameter['limit'] = limit;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
if (lastRetrieved !== undefined) {
|
|
1495
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1496
|
+
(lastRetrieved as any).toISOString() :
|
|
1497
|
+
lastRetrieved;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1504
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1505
|
+
|
|
1506
|
+
return {
|
|
1507
|
+
url: toPathString(localVarUrlObj),
|
|
1508
|
+
options: localVarRequestOptions,
|
|
1509
|
+
};
|
|
1510
|
+
},
|
|
1511
|
+
/**
|
|
1512
|
+
*
|
|
1513
|
+
* @summary Get deal by slug.
|
|
1514
|
+
* @param {string} slug
|
|
1515
|
+
* @param {string} [languageCode]
|
|
1516
|
+
* @param {boolean} [returnDefaultValue]
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
*/
|
|
1520
|
+
apiV1DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1521
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1522
|
+
assertParamExists('apiV1DealsSlugGet', 'slug', slug)
|
|
1523
|
+
const localVarPath = `/api/v1/deals/{slug}`
|
|
1524
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1525
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1526
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1527
|
+
let baseOptions;
|
|
1528
|
+
if (configuration) {
|
|
1529
|
+
baseOptions = configuration.baseOptions;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1533
|
+
const localVarHeaderParameter = {} as any;
|
|
1534
|
+
const localVarQueryParameter = {} as any;
|
|
1535
|
+
|
|
1536
|
+
// authentication oauth2 required
|
|
1537
|
+
// oauth required
|
|
1538
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1539
|
+
|
|
1540
|
+
if (languageCode !== undefined) {
|
|
1541
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
if (returnDefaultValue !== undefined) {
|
|
1545
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1552
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1553
|
+
|
|
1554
|
+
return {
|
|
1555
|
+
url: toPathString(localVarUrlObj),
|
|
1556
|
+
options: localVarRequestOptions,
|
|
1557
|
+
};
|
|
1558
|
+
},
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* DealsApi - functional programming interface
|
|
1564
|
+
* @export
|
|
1565
|
+
*/
|
|
1566
|
+
export const DealsApiFp = function(configuration?: Configuration) {
|
|
1567
|
+
const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
|
|
1568
|
+
return {
|
|
1569
|
+
/**
|
|
1570
|
+
*
|
|
1571
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
1572
|
+
* @param {string} dealId
|
|
1573
|
+
* @param {boolean} [includesPreviousItems]
|
|
1574
|
+
* @param {Date} [startDate]
|
|
1575
|
+
* @param {Date} [endDate]
|
|
1576
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1577
|
+
* @param {number} [page]
|
|
1578
|
+
* @param {number} [limit]
|
|
1579
|
+
* @param {Date} [lastRetrieved]
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
async apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetableOverridesModel>> {
|
|
1584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options);
|
|
1585
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1586
|
+
},
|
|
1587
|
+
/**
|
|
1588
|
+
*
|
|
1589
|
+
* @summary Save Deal appointment timetable overrides
|
|
1590
|
+
* @param {string} dealId
|
|
1591
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
1592
|
+
* @param {*} [options] Override http request option.
|
|
1593
|
+
* @throws {RequiredError}
|
|
1594
|
+
*/
|
|
1595
|
+
async apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SaveAppointmentTimetableOverridesResultModel>> {
|
|
1596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options);
|
|
1597
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @summary Add, update and delete deal appointment timetable
|
|
1602
|
+
* @param {string} dealId
|
|
1603
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
1604
|
+
* @param {*} [options] Override http request option.
|
|
1605
|
+
* @throws {RequiredError}
|
|
1606
|
+
*/
|
|
1607
|
+
async apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchAppointmentTimetablesResultModel>> {
|
|
1608
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options);
|
|
1609
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1610
|
+
},
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @summary Get deal appointment timetables
|
|
1614
|
+
* @param {string} dealId
|
|
1615
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1616
|
+
* @param {number} [page]
|
|
1617
|
+
* @param {number} [limit]
|
|
1618
|
+
* @param {Date} [lastRetrieved]
|
|
1619
|
+
* @param {*} [options] Override http request option.
|
|
1620
|
+
* @throws {RequiredError}
|
|
1621
|
+
*/
|
|
1622
|
+
async apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
|
|
1623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options);
|
|
1624
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1625
|
+
},
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @summary Delete deal.
|
|
1629
|
+
* @param {string} dealId
|
|
1630
|
+
* @param {boolean} [isPermanent]
|
|
1631
|
+
* @param {*} [options] Override http request option.
|
|
1632
|
+
* @throws {RequiredError}
|
|
1633
|
+
*/
|
|
1634
|
+
async apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1635
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdDelete(dealId, isPermanent, options);
|
|
1636
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1637
|
+
},
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @summary Get deal.
|
|
1641
|
+
* @param {string} dealId
|
|
1642
|
+
* @param {string} [languageCode]
|
|
1643
|
+
* @param {*} [options] Override http request option.
|
|
1644
|
+
* @throws {RequiredError}
|
|
1645
|
+
*/
|
|
1646
|
+
async apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1647
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, languageCode, options);
|
|
1648
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1649
|
+
},
|
|
1650
|
+
/**
|
|
1651
|
+
*
|
|
1652
|
+
* @summary Get all DealPackage.
|
|
1653
|
+
* @param {string} dealId
|
|
1654
|
+
* @param {string} [relatedDealPackageId]
|
|
1655
|
+
* @param {string} [dealName]
|
|
1656
|
+
* @param {string} [name]
|
|
1657
|
+
* @param {string} [countryId]
|
|
1658
|
+
* @param {string} [hospitalId]
|
|
1659
|
+
* @param {string} [hospitalName]
|
|
1660
|
+
* @param {string} [languageCode]
|
|
1661
|
+
* @param {boolean} [showHidden]
|
|
1662
|
+
* @param {number} [page]
|
|
1663
|
+
* @param {number} [limit]
|
|
1664
|
+
* @param {Date} [lastRetrieved]
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
async apiV1DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackagesModel>> {
|
|
1669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
1670
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1671
|
+
},
|
|
1672
|
+
/**
|
|
1673
|
+
*
|
|
1674
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
1675
|
+
* @param {string} dealId
|
|
1676
|
+
* @param {string} packageId
|
|
1677
|
+
* @param {boolean} [includesPreviousItems]
|
|
1678
|
+
* @param {Date} [startDate]
|
|
1679
|
+
* @param {Date} [endDate]
|
|
1680
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1681
|
+
* @param {number} [page]
|
|
1682
|
+
* @param {number} [limit]
|
|
1683
|
+
* @param {Date} [lastRetrieved]
|
|
1684
|
+
* @param {*} [options] Override http request option.
|
|
1685
|
+
* @throws {RequiredError}
|
|
1686
|
+
*/
|
|
1687
|
+
async apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetableOverridesModel>> {
|
|
1688
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options);
|
|
1689
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1690
|
+
},
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
1694
|
+
* @param {string} dealId
|
|
1695
|
+
* @param {string} packageId
|
|
1696
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
1697
|
+
* @param {*} [options] Override http request option.
|
|
1698
|
+
* @throws {RequiredError}
|
|
1699
|
+
*/
|
|
1700
|
+
async apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SaveAppointmentTimetableOverridesResultModel>> {
|
|
1701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options);
|
|
1702
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1703
|
+
},
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
1707
|
+
* @param {string} dealId
|
|
1708
|
+
* @param {string} packageId
|
|
1709
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
1710
|
+
* @param {*} [options] Override http request option.
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
*/
|
|
1713
|
+
async apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchAppointmentTimetablesResultModel>> {
|
|
1714
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options);
|
|
1715
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1716
|
+
},
|
|
1717
|
+
/**
|
|
1718
|
+
*
|
|
1719
|
+
* @summary Get DealPackage appointment timetables
|
|
1720
|
+
* @param {string} dealId
|
|
1721
|
+
* @param {string} packageId
|
|
1722
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1723
|
+
* @param {number} [page]
|
|
1724
|
+
* @param {number} [limit]
|
|
1725
|
+
* @param {Date} [lastRetrieved]
|
|
1726
|
+
* @param {*} [options] Override http request option.
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
*/
|
|
1729
|
+
async apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
|
|
1730
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options);
|
|
1731
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1732
|
+
},
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @summary Delete DealPackage.
|
|
1736
|
+
* @param {string} dealId
|
|
1737
|
+
* @param {string} packageId
|
|
1738
|
+
* @param {boolean} [isPermanent]
|
|
1739
|
+
* @param {*} [options] Override http request option.
|
|
1740
|
+
* @throws {RequiredError}
|
|
1741
|
+
*/
|
|
1742
|
+
async apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options);
|
|
1744
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1745
|
+
},
|
|
1746
|
+
/**
|
|
1747
|
+
*
|
|
1748
|
+
* @summary Get DealPackage.
|
|
1749
|
+
* @param {string} dealId
|
|
1750
|
+
* @param {string} packageId
|
|
1751
|
+
* @param {string} [languageCode]
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
*/
|
|
1755
|
+
async apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options);
|
|
1757
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1758
|
+
},
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @summary Update DealPackage.
|
|
1762
|
+
* @param {string} dealId
|
|
1763
|
+
* @param {string} packageId
|
|
1764
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
1765
|
+
* @param {*} [options] Override http request option.
|
|
1766
|
+
* @throws {RequiredError}
|
|
1767
|
+
*/
|
|
1768
|
+
async apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options);
|
|
1770
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1771
|
+
},
|
|
1772
|
+
/**
|
|
1773
|
+
*
|
|
1774
|
+
* @summary Create DealPackage.
|
|
1775
|
+
* @param {string} dealId
|
|
1776
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
*/
|
|
1780
|
+
async apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options);
|
|
1782
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1783
|
+
},
|
|
1784
|
+
/**
|
|
1785
|
+
*
|
|
1786
|
+
* @summary Update deal.
|
|
1787
|
+
* @param {string} dealId
|
|
1788
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
*/
|
|
1792
|
+
async apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPut(dealId, updateDealCommand, options);
|
|
1794
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1795
|
+
},
|
|
1796
|
+
/**
|
|
1797
|
+
*
|
|
1798
|
+
* @summary Get all DealService.
|
|
1799
|
+
* @param {string} dealId
|
|
1800
|
+
* @param {string} [languageCode]
|
|
1801
|
+
* @param {number} [page]
|
|
1802
|
+
* @param {number} [limit]
|
|
1803
|
+
* @param {Date} [lastRetrieved]
|
|
1804
|
+
* @param {*} [options] Override http request option.
|
|
1805
|
+
* @throws {RequiredError}
|
|
1806
|
+
*/
|
|
1807
|
+
async apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServicesModel>> {
|
|
1808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options);
|
|
1809
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1810
|
+
},
|
|
1811
|
+
/**
|
|
1812
|
+
*
|
|
1813
|
+
* @summary Create DealService.
|
|
1814
|
+
* @param {string} dealId
|
|
1815
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
1816
|
+
* @param {*} [options] Override http request option.
|
|
1817
|
+
* @throws {RequiredError}
|
|
1818
|
+
*/
|
|
1819
|
+
async apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options);
|
|
1821
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1822
|
+
},
|
|
1823
|
+
/**
|
|
1824
|
+
*
|
|
1825
|
+
* @summary Delete DealService.
|
|
1826
|
+
* @param {string} dealId
|
|
1827
|
+
* @param {string} serviceId
|
|
1828
|
+
* @param {*} [options] Override http request option.
|
|
1829
|
+
* @throws {RequiredError}
|
|
1830
|
+
*/
|
|
1831
|
+
async apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1832
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options);
|
|
1833
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1834
|
+
},
|
|
1835
|
+
/**
|
|
1836
|
+
*
|
|
1837
|
+
* @summary Get DealService.
|
|
1838
|
+
* @param {string} dealId
|
|
1839
|
+
* @param {string} serviceId
|
|
1840
|
+
* @param {string} [languageCode]
|
|
1841
|
+
* @param {*} [options] Override http request option.
|
|
1842
|
+
* @throws {RequiredError}
|
|
1843
|
+
*/
|
|
1844
|
+
async apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options);
|
|
1846
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1847
|
+
},
|
|
1848
|
+
/**
|
|
1849
|
+
*
|
|
1850
|
+
* @summary Update DealService.
|
|
1851
|
+
* @param {string} dealId
|
|
1852
|
+
* @param {string} serviceId
|
|
1853
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
1854
|
+
* @param {*} [options] Override http request option.
|
|
1855
|
+
* @throws {RequiredError}
|
|
1856
|
+
*/
|
|
1857
|
+
async apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1858
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options);
|
|
1859
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1860
|
+
},
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Get all deals.
|
|
1864
|
+
* @param {string} [id]
|
|
1865
|
+
* @param {string} [name]
|
|
1866
|
+
* @param {MarketingType} [marketingType]
|
|
1867
|
+
* @param {string} [countryId]
|
|
1868
|
+
* @param {string} [hospitalId]
|
|
1869
|
+
* @param {string} [hospitalName]
|
|
1870
|
+
* @param {string} [specialtyId]
|
|
1871
|
+
* @param {string} [specialtyName]
|
|
1872
|
+
* @param {string} [specialtyTypeId]
|
|
1873
|
+
* @param {string} [specialtyTypeName]
|
|
1874
|
+
* @param {string} [serviceId]
|
|
1875
|
+
* @param {string} [serviceName]
|
|
1876
|
+
* @param {string} [exceptHospitalId]
|
|
1877
|
+
* @param {string} [exceptDealId]
|
|
1878
|
+
* @param {Array<string>} [ids]
|
|
1879
|
+
* @param {number} [serviceDuration]
|
|
1880
|
+
* @param {string} [languageCode]
|
|
1881
|
+
* @param {boolean} [showHidden]
|
|
1882
|
+
* @param {boolean} [returnDefaultValue]
|
|
1883
|
+
* @param {number} [page]
|
|
1884
|
+
* @param {number} [limit]
|
|
1885
|
+
* @param {Date} [lastRetrieved]
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
async apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
1890
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
1891
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1892
|
+
},
|
|
1893
|
+
/**
|
|
1894
|
+
*
|
|
1895
|
+
* @summary Create a deal.
|
|
1896
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
async apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1901
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsPost(createDealCommand, options);
|
|
1902
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1903
|
+
},
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @summary Get all deals.
|
|
1907
|
+
* @param {string} [id]
|
|
1908
|
+
* @param {string} [name]
|
|
1909
|
+
* @param {MarketingType} [marketingType]
|
|
1910
|
+
* @param {string} [countryId]
|
|
1911
|
+
* @param {string} [hospitalId]
|
|
1912
|
+
* @param {string} [hospitalName]
|
|
1913
|
+
* @param {string} [specialtyId]
|
|
1914
|
+
* @param {string} [specialtyName]
|
|
1915
|
+
* @param {string} [specialtyTypeId]
|
|
1916
|
+
* @param {string} [specialtyTypeName]
|
|
1917
|
+
* @param {string} [serviceId]
|
|
1918
|
+
* @param {string} [serviceName]
|
|
1919
|
+
* @param {string} [exceptHospitalId]
|
|
1920
|
+
* @param {string} [exceptDealId]
|
|
1921
|
+
* @param {Array<string>} [ids]
|
|
1922
|
+
* @param {number} [serviceDuration]
|
|
1923
|
+
* @param {string} [languageCode]
|
|
1924
|
+
* @param {boolean} [showHidden]
|
|
1925
|
+
* @param {boolean} [returnDefaultValue]
|
|
1926
|
+
* @param {number} [page]
|
|
1927
|
+
* @param {number} [limit]
|
|
1928
|
+
* @param {Date} [lastRetrieved]
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
*/
|
|
1932
|
+
async apiV1DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsSimpleModel>> {
|
|
1933
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
1934
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1935
|
+
},
|
|
1936
|
+
/**
|
|
1937
|
+
*
|
|
1938
|
+
* @summary Get deal by slug.
|
|
1939
|
+
* @param {string} slug
|
|
1940
|
+
* @param {string} [languageCode]
|
|
1941
|
+
* @param {boolean} [returnDefaultValue]
|
|
1942
|
+
* @param {*} [options] Override http request option.
|
|
1943
|
+
* @throws {RequiredError}
|
|
1944
|
+
*/
|
|
1945
|
+
async apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1946
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
1947
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1948
|
+
},
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* DealsApi - factory interface
|
|
1954
|
+
* @export
|
|
1955
|
+
*/
|
|
1956
|
+
export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1957
|
+
const localVarFp = DealsApiFp(configuration)
|
|
1958
|
+
return {
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
1962
|
+
* @param {string} dealId
|
|
1963
|
+
* @param {boolean} [includesPreviousItems]
|
|
1964
|
+
* @param {Date} [startDate]
|
|
1965
|
+
* @param {Date} [endDate]
|
|
1966
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1967
|
+
* @param {number} [page]
|
|
1968
|
+
* @param {number} [limit]
|
|
1969
|
+
* @param {Date} [lastRetrieved]
|
|
1970
|
+
* @param {*} [options] Override http request option.
|
|
1971
|
+
* @throws {RequiredError}
|
|
1972
|
+
*/
|
|
1973
|
+
apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetableOverridesModel> {
|
|
1974
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1975
|
+
},
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @summary Save Deal appointment timetable overrides
|
|
1979
|
+
* @param {string} dealId
|
|
1980
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
1981
|
+
* @param {*} [options] Override http request option.
|
|
1982
|
+
* @throws {RequiredError}
|
|
1983
|
+
*/
|
|
1984
|
+
apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: any): AxiosPromise<SaveAppointmentTimetableOverridesResultModel> {
|
|
1985
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then((request) => request(axios, basePath));
|
|
1986
|
+
},
|
|
1987
|
+
/**
|
|
1988
|
+
*
|
|
1989
|
+
* @summary Add, update and delete deal appointment timetable
|
|
1990
|
+
* @param {string} dealId
|
|
1991
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
*/
|
|
1995
|
+
apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: any): AxiosPromise<BatchAppointmentTimetablesResultModel> {
|
|
1996
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then((request) => request(axios, basePath));
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @summary Get deal appointment timetables
|
|
2001
|
+
* @param {string} dealId
|
|
2002
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2003
|
+
* @param {number} [page]
|
|
2004
|
+
* @param {number} [limit]
|
|
2005
|
+
* @param {Date} [lastRetrieved]
|
|
2006
|
+
* @param {*} [options] Override http request option.
|
|
2007
|
+
* @throws {RequiredError}
|
|
2008
|
+
*/
|
|
2009
|
+
apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetablesModel> {
|
|
2010
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2011
|
+
},
|
|
2012
|
+
/**
|
|
2013
|
+
*
|
|
2014
|
+
* @summary Delete deal.
|
|
2015
|
+
* @param {string} dealId
|
|
2016
|
+
* @param {boolean} [isPermanent]
|
|
2017
|
+
* @param {*} [options] Override http request option.
|
|
2018
|
+
* @throws {RequiredError}
|
|
2019
|
+
*/
|
|
2020
|
+
apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
2021
|
+
return localVarFp.apiV1DealsDealIdDelete(dealId, isPermanent, options).then((request) => request(axios, basePath));
|
|
2022
|
+
},
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @summary Get deal.
|
|
2026
|
+
* @param {string} dealId
|
|
2027
|
+
* @param {string} [languageCode]
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: any): AxiosPromise<DealModel> {
|
|
2032
|
+
return localVarFp.apiV1DealsDealIdGet(dealId, languageCode, options).then((request) => request(axios, basePath));
|
|
2033
|
+
},
|
|
2034
|
+
/**
|
|
2035
|
+
*
|
|
2036
|
+
* @summary Get all DealPackage.
|
|
2037
|
+
* @param {string} dealId
|
|
2038
|
+
* @param {string} [relatedDealPackageId]
|
|
2039
|
+
* @param {string} [dealName]
|
|
2040
|
+
* @param {string} [name]
|
|
2041
|
+
* @param {string} [countryId]
|
|
2042
|
+
* @param {string} [hospitalId]
|
|
2043
|
+
* @param {string} [hospitalName]
|
|
2044
|
+
* @param {string} [languageCode]
|
|
2045
|
+
* @param {boolean} [showHidden]
|
|
2046
|
+
* @param {number} [page]
|
|
2047
|
+
* @param {number} [limit]
|
|
2048
|
+
* @param {Date} [lastRetrieved]
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
*/
|
|
2052
|
+
apiV1DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealPackagesModel> {
|
|
2053
|
+
return localVarFp.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2054
|
+
},
|
|
2055
|
+
/**
|
|
2056
|
+
*
|
|
2057
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
2058
|
+
* @param {string} dealId
|
|
2059
|
+
* @param {string} packageId
|
|
2060
|
+
* @param {boolean} [includesPreviousItems]
|
|
2061
|
+
* @param {Date} [startDate]
|
|
2062
|
+
* @param {Date} [endDate]
|
|
2063
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2064
|
+
* @param {number} [page]
|
|
2065
|
+
* @param {number} [limit]
|
|
2066
|
+
* @param {Date} [lastRetrieved]
|
|
2067
|
+
* @param {*} [options] Override http request option.
|
|
2068
|
+
* @throws {RequiredError}
|
|
2069
|
+
*/
|
|
2070
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetableOverridesModel> {
|
|
2071
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2072
|
+
},
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
2076
|
+
* @param {string} dealId
|
|
2077
|
+
* @param {string} packageId
|
|
2078
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
*/
|
|
2082
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: any): AxiosPromise<SaveAppointmentTimetableOverridesResultModel> {
|
|
2083
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then((request) => request(axios, basePath));
|
|
2084
|
+
},
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
2088
|
+
* @param {string} dealId
|
|
2089
|
+
* @param {string} packageId
|
|
2090
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
*/
|
|
2094
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: any): AxiosPromise<BatchAppointmentTimetablesResultModel> {
|
|
2095
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then((request) => request(axios, basePath));
|
|
2096
|
+
},
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @summary Get DealPackage appointment timetables
|
|
2100
|
+
* @param {string} dealId
|
|
2101
|
+
* @param {string} packageId
|
|
2102
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2103
|
+
* @param {number} [page]
|
|
2104
|
+
* @param {number} [limit]
|
|
2105
|
+
* @param {Date} [lastRetrieved]
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetablesModel> {
|
|
2110
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2111
|
+
},
|
|
2112
|
+
/**
|
|
2113
|
+
*
|
|
2114
|
+
* @summary Delete DealPackage.
|
|
2115
|
+
* @param {string} dealId
|
|
2116
|
+
* @param {string} packageId
|
|
2117
|
+
* @param {boolean} [isPermanent]
|
|
2118
|
+
* @param {*} [options] Override http request option.
|
|
2119
|
+
* @throws {RequiredError}
|
|
2120
|
+
*/
|
|
2121
|
+
apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
2122
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options).then((request) => request(axios, basePath));
|
|
2123
|
+
},
|
|
2124
|
+
/**
|
|
2125
|
+
*
|
|
2126
|
+
* @summary Get DealPackage.
|
|
2127
|
+
* @param {string} dealId
|
|
2128
|
+
* @param {string} packageId
|
|
2129
|
+
* @param {string} [languageCode]
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
*/
|
|
2133
|
+
apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: any): AxiosPromise<DealPackageModel> {
|
|
2134
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(axios, basePath));
|
|
2135
|
+
},
|
|
2136
|
+
/**
|
|
2137
|
+
*
|
|
2138
|
+
* @summary Update DealPackage.
|
|
2139
|
+
* @param {string} dealId
|
|
2140
|
+
* @param {string} packageId
|
|
2141
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: any): AxiosPromise<DealPackageModel> {
|
|
2146
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options).then((request) => request(axios, basePath));
|
|
2147
|
+
},
|
|
2148
|
+
/**
|
|
2149
|
+
*
|
|
2150
|
+
* @summary Create DealPackage.
|
|
2151
|
+
* @param {string} dealId
|
|
2152
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
2153
|
+
* @param {*} [options] Override http request option.
|
|
2154
|
+
* @throws {RequiredError}
|
|
2155
|
+
*/
|
|
2156
|
+
apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: any): AxiosPromise<DealPackageModel> {
|
|
2157
|
+
return localVarFp.apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options).then((request) => request(axios, basePath));
|
|
2158
|
+
},
|
|
2159
|
+
/**
|
|
2160
|
+
*
|
|
2161
|
+
* @summary Update deal.
|
|
2162
|
+
* @param {string} dealId
|
|
2163
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
2164
|
+
* @param {*} [options] Override http request option.
|
|
2165
|
+
* @throws {RequiredError}
|
|
2166
|
+
*/
|
|
2167
|
+
apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
2168
|
+
return localVarFp.apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(axios, basePath));
|
|
2169
|
+
},
|
|
2170
|
+
/**
|
|
2171
|
+
*
|
|
2172
|
+
* @summary Get all DealService.
|
|
2173
|
+
* @param {string} dealId
|
|
2174
|
+
* @param {string} [languageCode]
|
|
2175
|
+
* @param {number} [page]
|
|
2176
|
+
* @param {number} [limit]
|
|
2177
|
+
* @param {Date} [lastRetrieved]
|
|
2178
|
+
* @param {*} [options] Override http request option.
|
|
2179
|
+
* @throws {RequiredError}
|
|
2180
|
+
*/
|
|
2181
|
+
apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealServicesModel> {
|
|
2182
|
+
return localVarFp.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
*
|
|
2186
|
+
* @summary Create DealService.
|
|
2187
|
+
* @param {string} dealId
|
|
2188
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
2189
|
+
* @param {*} [options] Override http request option.
|
|
2190
|
+
* @throws {RequiredError}
|
|
2191
|
+
*/
|
|
2192
|
+
apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: any): AxiosPromise<DealServiceModel> {
|
|
2193
|
+
return localVarFp.apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options).then((request) => request(axios, basePath));
|
|
2194
|
+
},
|
|
2195
|
+
/**
|
|
2196
|
+
*
|
|
2197
|
+
* @summary Delete DealService.
|
|
2198
|
+
* @param {string} dealId
|
|
2199
|
+
* @param {string} serviceId
|
|
2200
|
+
* @param {*} [options] Override http request option.
|
|
2201
|
+
* @throws {RequiredError}
|
|
2202
|
+
*/
|
|
2203
|
+
apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: any): AxiosPromise<boolean> {
|
|
2204
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options).then((request) => request(axios, basePath));
|
|
2205
|
+
},
|
|
2206
|
+
/**
|
|
2207
|
+
*
|
|
2208
|
+
* @summary Get DealService.
|
|
2209
|
+
* @param {string} dealId
|
|
2210
|
+
* @param {string} serviceId
|
|
2211
|
+
* @param {string} [languageCode]
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: any): AxiosPromise<DealServiceModel> {
|
|
2216
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then((request) => request(axios, basePath));
|
|
2217
|
+
},
|
|
2218
|
+
/**
|
|
2219
|
+
*
|
|
2220
|
+
* @summary Update DealService.
|
|
2221
|
+
* @param {string} dealId
|
|
2222
|
+
* @param {string} serviceId
|
|
2223
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
*/
|
|
2227
|
+
apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: any): AxiosPromise<DealServiceModel> {
|
|
2228
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options).then((request) => request(axios, basePath));
|
|
2229
|
+
},
|
|
2230
|
+
/**
|
|
2231
|
+
*
|
|
2232
|
+
* @summary Get all deals.
|
|
2233
|
+
* @param {string} [id]
|
|
2234
|
+
* @param {string} [name]
|
|
2235
|
+
* @param {MarketingType} [marketingType]
|
|
2236
|
+
* @param {string} [countryId]
|
|
2237
|
+
* @param {string} [hospitalId]
|
|
2238
|
+
* @param {string} [hospitalName]
|
|
2239
|
+
* @param {string} [specialtyId]
|
|
2240
|
+
* @param {string} [specialtyName]
|
|
2241
|
+
* @param {string} [specialtyTypeId]
|
|
2242
|
+
* @param {string} [specialtyTypeName]
|
|
2243
|
+
* @param {string} [serviceId]
|
|
2244
|
+
* @param {string} [serviceName]
|
|
2245
|
+
* @param {string} [exceptHospitalId]
|
|
2246
|
+
* @param {string} [exceptDealId]
|
|
2247
|
+
* @param {Array<string>} [ids]
|
|
2248
|
+
* @param {number} [serviceDuration]
|
|
2249
|
+
* @param {string} [languageCode]
|
|
2250
|
+
* @param {boolean} [showHidden]
|
|
2251
|
+
* @param {boolean} [returnDefaultValue]
|
|
2252
|
+
* @param {number} [page]
|
|
2253
|
+
* @param {number} [limit]
|
|
2254
|
+
* @param {Date} [lastRetrieved]
|
|
2255
|
+
* @param {*} [options] Override http request option.
|
|
2256
|
+
* @throws {RequiredError}
|
|
2257
|
+
*/
|
|
2258
|
+
apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
2259
|
+
return localVarFp.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2260
|
+
},
|
|
2261
|
+
/**
|
|
2262
|
+
*
|
|
2263
|
+
* @summary Create a deal.
|
|
2264
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
2265
|
+
* @param {*} [options] Override http request option.
|
|
2266
|
+
* @throws {RequiredError}
|
|
2267
|
+
*/
|
|
2268
|
+
apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
2269
|
+
return localVarFp.apiV1DealsPost(createDealCommand, options).then((request) => request(axios, basePath));
|
|
2270
|
+
},
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @summary Get all deals.
|
|
2274
|
+
* @param {string} [id]
|
|
2275
|
+
* @param {string} [name]
|
|
2276
|
+
* @param {MarketingType} [marketingType]
|
|
2277
|
+
* @param {string} [countryId]
|
|
2278
|
+
* @param {string} [hospitalId]
|
|
2279
|
+
* @param {string} [hospitalName]
|
|
2280
|
+
* @param {string} [specialtyId]
|
|
2281
|
+
* @param {string} [specialtyName]
|
|
2282
|
+
* @param {string} [specialtyTypeId]
|
|
2283
|
+
* @param {string} [specialtyTypeName]
|
|
2284
|
+
* @param {string} [serviceId]
|
|
2285
|
+
* @param {string} [serviceName]
|
|
2286
|
+
* @param {string} [exceptHospitalId]
|
|
2287
|
+
* @param {string} [exceptDealId]
|
|
2288
|
+
* @param {Array<string>} [ids]
|
|
2289
|
+
* @param {number} [serviceDuration]
|
|
2290
|
+
* @param {string} [languageCode]
|
|
2291
|
+
* @param {boolean} [showHidden]
|
|
2292
|
+
* @param {boolean} [returnDefaultValue]
|
|
2293
|
+
* @param {number} [page]
|
|
2294
|
+
* @param {number} [limit]
|
|
2295
|
+
* @param {Date} [lastRetrieved]
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
apiV1DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsSimpleModel> {
|
|
2300
|
+
return localVarFp.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @summary Get deal by slug.
|
|
2305
|
+
* @param {string} slug
|
|
2306
|
+
* @param {string} [languageCode]
|
|
2307
|
+
* @param {boolean} [returnDefaultValue]
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
*/
|
|
2311
|
+
apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
2312
|
+
return localVarFp.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
2313
|
+
},
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* DealsApi - object-oriented interface
|
|
2319
|
+
* @export
|
|
2320
|
+
* @class DealsApi
|
|
2321
|
+
* @extends {BaseAPI}
|
|
2322
|
+
*/
|
|
2323
|
+
export class DealsApi extends BaseAPI {
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
2327
|
+
* @param {string} dealId
|
|
2328
|
+
* @param {boolean} [includesPreviousItems]
|
|
2329
|
+
* @param {Date} [startDate]
|
|
2330
|
+
* @param {Date} [endDate]
|
|
2331
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2332
|
+
* @param {number} [page]
|
|
2333
|
+
* @param {number} [limit]
|
|
2334
|
+
* @param {Date} [lastRetrieved]
|
|
2335
|
+
* @param {*} [options] Override http request option.
|
|
2336
|
+
* @throws {RequiredError}
|
|
2337
|
+
* @memberof DealsApi
|
|
2338
|
+
*/
|
|
2339
|
+
public apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2340
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @summary Save Deal appointment timetable overrides
|
|
2346
|
+
* @param {string} dealId
|
|
2347
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
2348
|
+
* @param {*} [options] Override http request option.
|
|
2349
|
+
* @throws {RequiredError}
|
|
2350
|
+
* @memberof DealsApi
|
|
2351
|
+
*/
|
|
2352
|
+
public apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig) {
|
|
2353
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Add, update and delete deal appointment timetable
|
|
2359
|
+
* @param {string} dealId
|
|
2360
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
* @memberof DealsApi
|
|
2364
|
+
*/
|
|
2365
|
+
public apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: AxiosRequestConfig) {
|
|
2366
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
*
|
|
2371
|
+
* @summary Get deal appointment timetables
|
|
2372
|
+
* @param {string} dealId
|
|
2373
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2374
|
+
* @param {number} [page]
|
|
2375
|
+
* @param {number} [limit]
|
|
2376
|
+
* @param {Date} [lastRetrieved]
|
|
2377
|
+
* @param {*} [options] Override http request option.
|
|
2378
|
+
* @throws {RequiredError}
|
|
2379
|
+
* @memberof DealsApi
|
|
2380
|
+
*/
|
|
2381
|
+
public apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2382
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
*
|
|
2387
|
+
* @summary Delete deal.
|
|
2388
|
+
* @param {string} dealId
|
|
2389
|
+
* @param {boolean} [isPermanent]
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
* @memberof DealsApi
|
|
2393
|
+
*/
|
|
2394
|
+
public apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
2395
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdDelete(dealId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
*
|
|
2400
|
+
* @summary Get deal.
|
|
2401
|
+
* @param {string} dealId
|
|
2402
|
+
* @param {string} [languageCode]
|
|
2403
|
+
* @param {*} [options] Override http request option.
|
|
2404
|
+
* @throws {RequiredError}
|
|
2405
|
+
* @memberof DealsApi
|
|
2406
|
+
*/
|
|
2407
|
+
public apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
2408
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
*
|
|
2413
|
+
* @summary Get all DealPackage.
|
|
2414
|
+
* @param {string} dealId
|
|
2415
|
+
* @param {string} [relatedDealPackageId]
|
|
2416
|
+
* @param {string} [dealName]
|
|
2417
|
+
* @param {string} [name]
|
|
2418
|
+
* @param {string} [countryId]
|
|
2419
|
+
* @param {string} [hospitalId]
|
|
2420
|
+
* @param {string} [hospitalName]
|
|
2421
|
+
* @param {string} [languageCode]
|
|
2422
|
+
* @param {boolean} [showHidden]
|
|
2423
|
+
* @param {number} [page]
|
|
2424
|
+
* @param {number} [limit]
|
|
2425
|
+
* @param {Date} [lastRetrieved]
|
|
2426
|
+
* @param {*} [options] Override http request option.
|
|
2427
|
+
* @throws {RequiredError}
|
|
2428
|
+
* @memberof DealsApi
|
|
2429
|
+
*/
|
|
2430
|
+
public apiV1DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2431
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
2437
|
+
* @param {string} dealId
|
|
2438
|
+
* @param {string} packageId
|
|
2439
|
+
* @param {boolean} [includesPreviousItems]
|
|
2440
|
+
* @param {Date} [startDate]
|
|
2441
|
+
* @param {Date} [endDate]
|
|
2442
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2443
|
+
* @param {number} [page]
|
|
2444
|
+
* @param {number} [limit]
|
|
2445
|
+
* @param {Date} [lastRetrieved]
|
|
2446
|
+
* @param {*} [options] Override http request option.
|
|
2447
|
+
* @throws {RequiredError}
|
|
2448
|
+
* @memberof DealsApi
|
|
2449
|
+
*/
|
|
2450
|
+
public apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2451
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
*
|
|
2456
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
2457
|
+
* @param {string} dealId
|
|
2458
|
+
* @param {string} packageId
|
|
2459
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
2460
|
+
* @param {*} [options] Override http request option.
|
|
2461
|
+
* @throws {RequiredError}
|
|
2462
|
+
* @memberof DealsApi
|
|
2463
|
+
*/
|
|
2464
|
+
public apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig) {
|
|
2465
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
*
|
|
2470
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
2471
|
+
* @param {string} dealId
|
|
2472
|
+
* @param {string} packageId
|
|
2473
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
2474
|
+
* @param {*} [options] Override http request option.
|
|
2475
|
+
* @throws {RequiredError}
|
|
2476
|
+
* @memberof DealsApi
|
|
2477
|
+
*/
|
|
2478
|
+
public apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: AxiosRequestConfig) {
|
|
2479
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @summary Get DealPackage appointment timetables
|
|
2485
|
+
* @param {string} dealId
|
|
2486
|
+
* @param {string} packageId
|
|
2487
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2488
|
+
* @param {number} [page]
|
|
2489
|
+
* @param {number} [limit]
|
|
2490
|
+
* @param {Date} [lastRetrieved]
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
* @memberof DealsApi
|
|
2494
|
+
*/
|
|
2495
|
+
public apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2496
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
*
|
|
2501
|
+
* @summary Delete DealPackage.
|
|
2502
|
+
* @param {string} dealId
|
|
2503
|
+
* @param {string} packageId
|
|
2504
|
+
* @param {boolean} [isPermanent]
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
* @memberof DealsApi
|
|
2508
|
+
*/
|
|
2509
|
+
public apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
2510
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
*
|
|
2515
|
+
* @summary Get DealPackage.
|
|
2516
|
+
* @param {string} dealId
|
|
2517
|
+
* @param {string} packageId
|
|
2518
|
+
* @param {string} [languageCode]
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
* @memberof DealsApi
|
|
2522
|
+
*/
|
|
2523
|
+
public apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
2524
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
*
|
|
2529
|
+
* @summary Update DealPackage.
|
|
2530
|
+
* @param {string} dealId
|
|
2531
|
+
* @param {string} packageId
|
|
2532
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
* @memberof DealsApi
|
|
2536
|
+
*/
|
|
2537
|
+
public apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig) {
|
|
2538
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
*
|
|
2543
|
+
* @summary Create DealPackage.
|
|
2544
|
+
* @param {string} dealId
|
|
2545
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
* @memberof DealsApi
|
|
2549
|
+
*/
|
|
2550
|
+
public apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: AxiosRequestConfig) {
|
|
2551
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @summary Update deal.
|
|
2557
|
+
* @param {string} dealId
|
|
2558
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
2559
|
+
* @param {*} [options] Override http request option.
|
|
2560
|
+
* @throws {RequiredError}
|
|
2561
|
+
* @memberof DealsApi
|
|
2562
|
+
*/
|
|
2563
|
+
public apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig) {
|
|
2564
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
*
|
|
2569
|
+
* @summary Get all DealService.
|
|
2570
|
+
* @param {string} dealId
|
|
2571
|
+
* @param {string} [languageCode]
|
|
2572
|
+
* @param {number} [page]
|
|
2573
|
+
* @param {number} [limit]
|
|
2574
|
+
* @param {Date} [lastRetrieved]
|
|
2575
|
+
* @param {*} [options] Override http request option.
|
|
2576
|
+
* @throws {RequiredError}
|
|
2577
|
+
* @memberof DealsApi
|
|
2578
|
+
*/
|
|
2579
|
+
public apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2580
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
*
|
|
2585
|
+
* @summary Create DealService.
|
|
2586
|
+
* @param {string} dealId
|
|
2587
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
2588
|
+
* @param {*} [options] Override http request option.
|
|
2589
|
+
* @throws {RequiredError}
|
|
2590
|
+
* @memberof DealsApi
|
|
2591
|
+
*/
|
|
2592
|
+
public apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: AxiosRequestConfig) {
|
|
2593
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
*
|
|
2598
|
+
* @summary Delete DealService.
|
|
2599
|
+
* @param {string} dealId
|
|
2600
|
+
* @param {string} serviceId
|
|
2601
|
+
* @param {*} [options] Override http request option.
|
|
2602
|
+
* @throws {RequiredError}
|
|
2603
|
+
* @memberof DealsApi
|
|
2604
|
+
*/
|
|
2605
|
+
public apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: AxiosRequestConfig) {
|
|
2606
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
/**
|
|
2610
|
+
*
|
|
2611
|
+
* @summary Get DealService.
|
|
2612
|
+
* @param {string} dealId
|
|
2613
|
+
* @param {string} serviceId
|
|
2614
|
+
* @param {string} [languageCode]
|
|
2615
|
+
* @param {*} [options] Override http request option.
|
|
2616
|
+
* @throws {RequiredError}
|
|
2617
|
+
* @memberof DealsApi
|
|
2618
|
+
*/
|
|
2619
|
+
public apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
2620
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
*
|
|
2625
|
+
* @summary Update DealService.
|
|
2626
|
+
* @param {string} dealId
|
|
2627
|
+
* @param {string} serviceId
|
|
2628
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
* @memberof DealsApi
|
|
2632
|
+
*/
|
|
2633
|
+
public apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig) {
|
|
2634
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
*
|
|
2639
|
+
* @summary Get all deals.
|
|
2640
|
+
* @param {string} [id]
|
|
2641
|
+
* @param {string} [name]
|
|
2642
|
+
* @param {MarketingType} [marketingType]
|
|
2643
|
+
* @param {string} [countryId]
|
|
2644
|
+
* @param {string} [hospitalId]
|
|
2645
|
+
* @param {string} [hospitalName]
|
|
2646
|
+
* @param {string} [specialtyId]
|
|
2647
|
+
* @param {string} [specialtyName]
|
|
2648
|
+
* @param {string} [specialtyTypeId]
|
|
2649
|
+
* @param {string} [specialtyTypeName]
|
|
2650
|
+
* @param {string} [serviceId]
|
|
2651
|
+
* @param {string} [serviceName]
|
|
2652
|
+
* @param {string} [exceptHospitalId]
|
|
2653
|
+
* @param {string} [exceptDealId]
|
|
2654
|
+
* @param {Array<string>} [ids]
|
|
2655
|
+
* @param {number} [serviceDuration]
|
|
2656
|
+
* @param {string} [languageCode]
|
|
2657
|
+
* @param {boolean} [showHidden]
|
|
2658
|
+
* @param {boolean} [returnDefaultValue]
|
|
2659
|
+
* @param {number} [page]
|
|
2660
|
+
* @param {number} [limit]
|
|
2661
|
+
* @param {Date} [lastRetrieved]
|
|
2662
|
+
* @param {*} [options] Override http request option.
|
|
2663
|
+
* @throws {RequiredError}
|
|
2664
|
+
* @memberof DealsApi
|
|
2665
|
+
*/
|
|
2666
|
+
public apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2667
|
+
return DealsApiFp(this.configuration).apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
*
|
|
2672
|
+
* @summary Create a deal.
|
|
2673
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
* @memberof DealsApi
|
|
2677
|
+
*/
|
|
2678
|
+
public apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: AxiosRequestConfig) {
|
|
2679
|
+
return DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
*
|
|
2684
|
+
* @summary Get all deals.
|
|
2685
|
+
* @param {string} [id]
|
|
2686
|
+
* @param {string} [name]
|
|
2687
|
+
* @param {MarketingType} [marketingType]
|
|
2688
|
+
* @param {string} [countryId]
|
|
2689
|
+
* @param {string} [hospitalId]
|
|
2690
|
+
* @param {string} [hospitalName]
|
|
2691
|
+
* @param {string} [specialtyId]
|
|
2692
|
+
* @param {string} [specialtyName]
|
|
2693
|
+
* @param {string} [specialtyTypeId]
|
|
2694
|
+
* @param {string} [specialtyTypeName]
|
|
2695
|
+
* @param {string} [serviceId]
|
|
2696
|
+
* @param {string} [serviceName]
|
|
2697
|
+
* @param {string} [exceptHospitalId]
|
|
2698
|
+
* @param {string} [exceptDealId]
|
|
2699
|
+
* @param {Array<string>} [ids]
|
|
2700
|
+
* @param {number} [serviceDuration]
|
|
2701
|
+
* @param {string} [languageCode]
|
|
2702
|
+
* @param {boolean} [showHidden]
|
|
2703
|
+
* @param {boolean} [returnDefaultValue]
|
|
2704
|
+
* @param {number} [page]
|
|
2705
|
+
* @param {number} [limit]
|
|
2706
|
+
* @param {Date} [lastRetrieved]
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
* @memberof DealsApi
|
|
2710
|
+
*/
|
|
2711
|
+
public apiV1DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, serviceId?: string, serviceName?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
2712
|
+
return DealsApiFp(this.configuration).apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceId, serviceName, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
*
|
|
2717
|
+
* @summary Get deal by slug.
|
|
2718
|
+
* @param {string} slug
|
|
2719
|
+
* @param {string} [languageCode]
|
|
2720
|
+
* @param {boolean} [returnDefaultValue]
|
|
2721
|
+
* @param {*} [options] Override http request option.
|
|
2722
|
+
* @throws {RequiredError}
|
|
2723
|
+
* @memberof DealsApi
|
|
2724
|
+
*/
|
|
2725
|
+
public apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
2726
|
+
return DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
2727
|
+
}
|
|
2728
|
+
}
|