ch-admin-api-client-typescript 4.9.3 → 4.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +414 -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/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 +1894 -0
- package/src/api/doctor-affiliations-api.ts +1136 -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 +7513 -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 +60 -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/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-hospital-consultation-timetable-model.ts +45 -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-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 +120 -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 +81 -0
- package/src/models/create-deal-package-command.ts +63 -0
- package/src/models/create-deal-service-command.ts +42 -0
- package/src/models/create-doctor-affiliation-command.ts +123 -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 +171 -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 +114 -0
- package/src/models/create-hospital-sns-handle-command.ts +39 -0
- package/src/models/create-hospital-specialty-command.ts +99 -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 +120 -0
- package/src/models/deal-item-simple-model.ts +54 -0
- package/src/models/deal-model.ts +144 -0
- package/src/models/deal-package-item-model.ts +108 -0
- package/src/models/deal-package-model.ts +120 -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 +132 -0
- package/src/models/doctor-affiliation-model.ts +177 -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 +147 -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 +222 -0
- package/src/models/hospital-service-item-model.ts +156 -0
- package/src/models/hospital-service-model.ts +219 -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 +132 -0
- package/src/models/hospital-specialty-model.ts +192 -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 +361 -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 +48 -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-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-header-navigation-item-model.ts +54 -0
- package/src/models/save-header-navigations-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/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 +87 -0
- package/src/models/update-deal-package-command.ts +63 -0
- package/src/models/update-deal-service-command.ts +30 -0
- package/src/models/update-doctor-affiliation-command.ts +123 -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 +183 -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 +126 -0
- package/src/models/update-hospital-sns-handle-command.ts +39 -0
- package/src/models/update-hospital-specialty-command.ts +105 -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,1894 @@
|
|
|
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 { CreateDealCommand } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateDealPackageCommand } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreateDealServiceCommand } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { DealModel } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { DealPackageModel } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { DealPackagesModel } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { DealServiceModel } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { DealServicesModel } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { DealsModel } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { DealsSimpleModel } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { MarketingType } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { ProblemDetails } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { UpdateDealCommand } from '../models';
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
import { UpdateDealPackageCommand } from '../models';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import { UpdateDealServiceCommand } from '../models';
|
|
53
|
+
/**
|
|
54
|
+
* DealsApi - axios parameter creator
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
export const DealsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58
|
+
return {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @summary Delete deal.
|
|
62
|
+
* @param {string} dealId
|
|
63
|
+
* @param {boolean} [isPermanent]
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
apiV1DealsDealIdDelete: async (dealId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
69
|
+
assertParamExists('apiV1DealsDealIdDelete', 'dealId', dealId)
|
|
70
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
71
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
72
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
74
|
+
let baseOptions;
|
|
75
|
+
if (configuration) {
|
|
76
|
+
baseOptions = configuration.baseOptions;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
80
|
+
const localVarHeaderParameter = {} as any;
|
|
81
|
+
const localVarQueryParameter = {} as any;
|
|
82
|
+
|
|
83
|
+
// authentication oauth2 required
|
|
84
|
+
// oauth required
|
|
85
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
86
|
+
|
|
87
|
+
if (isPermanent !== undefined) {
|
|
88
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
url: toPathString(localVarUrlObj),
|
|
99
|
+
options: localVarRequestOptions,
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary Get deal.
|
|
105
|
+
* @param {string} dealId
|
|
106
|
+
* @param {string} [languageCode]
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
apiV1DealsDealIdGet: async (dealId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
111
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
112
|
+
assertParamExists('apiV1DealsDealIdGet', 'dealId', dealId)
|
|
113
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
114
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
123
|
+
const localVarHeaderParameter = {} as any;
|
|
124
|
+
const localVarQueryParameter = {} as any;
|
|
125
|
+
|
|
126
|
+
// authentication oauth2 required
|
|
127
|
+
// oauth required
|
|
128
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
129
|
+
|
|
130
|
+
if (languageCode !== undefined) {
|
|
131
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Get all DealPackage.
|
|
148
|
+
* @param {string} dealId
|
|
149
|
+
* @param {string} [relatedDealPackageId]
|
|
150
|
+
* @param {string} [dealName]
|
|
151
|
+
* @param {string} [name]
|
|
152
|
+
* @param {string} [countryId]
|
|
153
|
+
* @param {string} [hospitalId]
|
|
154
|
+
* @param {string} [hospitalName]
|
|
155
|
+
* @param {string} [languageCode]
|
|
156
|
+
* @param {boolean} [showHidden]
|
|
157
|
+
* @param {number} [page]
|
|
158
|
+
* @param {number} [limit]
|
|
159
|
+
* @param {Date} [lastRetrieved]
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
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> => {
|
|
164
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
165
|
+
assertParamExists('apiV1DealsDealIdPackagesGet', 'dealId', dealId)
|
|
166
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages`
|
|
167
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
176
|
+
const localVarHeaderParameter = {} as any;
|
|
177
|
+
const localVarQueryParameter = {} as any;
|
|
178
|
+
|
|
179
|
+
// authentication oauth2 required
|
|
180
|
+
// oauth required
|
|
181
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
182
|
+
|
|
183
|
+
if (relatedDealPackageId !== undefined) {
|
|
184
|
+
localVarQueryParameter['RelatedDealPackageId'] = relatedDealPackageId;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (dealName !== undefined) {
|
|
188
|
+
localVarQueryParameter['DealName'] = dealName;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (name !== undefined) {
|
|
192
|
+
localVarQueryParameter['Name'] = name;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (countryId !== undefined) {
|
|
196
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (hospitalId !== undefined) {
|
|
200
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (hospitalName !== undefined) {
|
|
204
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (languageCode !== undefined) {
|
|
208
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (showHidden !== undefined) {
|
|
212
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (page !== undefined) {
|
|
216
|
+
localVarQueryParameter['page'] = page;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (limit !== undefined) {
|
|
220
|
+
localVarQueryParameter['limit'] = limit;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (lastRetrieved !== undefined) {
|
|
224
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
225
|
+
(lastRetrieved as any).toISOString() :
|
|
226
|
+
lastRetrieved;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
234
|
+
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Delete DealPackage.
|
|
243
|
+
* @param {string} dealId
|
|
244
|
+
* @param {string} packageId
|
|
245
|
+
* @param {boolean} [isPermanent]
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
apiV1DealsDealIdPackagesPackageIdDelete: async (dealId: string, packageId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
250
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
251
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdDelete', 'dealId', dealId)
|
|
252
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
253
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdDelete', 'packageId', packageId)
|
|
254
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
255
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
256
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
259
|
+
let baseOptions;
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
265
|
+
const localVarHeaderParameter = {} as any;
|
|
266
|
+
const localVarQueryParameter = {} as any;
|
|
267
|
+
|
|
268
|
+
// authentication oauth2 required
|
|
269
|
+
// oauth required
|
|
270
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
271
|
+
|
|
272
|
+
if (isPermanent !== undefined) {
|
|
273
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
281
|
+
|
|
282
|
+
return {
|
|
283
|
+
url: toPathString(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @summary Get DealPackage.
|
|
290
|
+
* @param {string} dealId
|
|
291
|
+
* @param {string} packageId
|
|
292
|
+
* @param {string} [languageCode]
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
apiV1DealsDealIdPackagesPackageIdGet: async (dealId: string, packageId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
297
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
298
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdGet', 'dealId', dealId)
|
|
299
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
300
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdGet', 'packageId', packageId)
|
|
301
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
302
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
303
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
306
|
+
let baseOptions;
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
312
|
+
const localVarHeaderParameter = {} as any;
|
|
313
|
+
const localVarQueryParameter = {} as any;
|
|
314
|
+
|
|
315
|
+
// authentication oauth2 required
|
|
316
|
+
// oauth required
|
|
317
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
318
|
+
|
|
319
|
+
if (languageCode !== undefined) {
|
|
320
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
327
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
328
|
+
|
|
329
|
+
return {
|
|
330
|
+
url: toPathString(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions,
|
|
332
|
+
};
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @summary Update DealPackage.
|
|
337
|
+
* @param {string} dealId
|
|
338
|
+
* @param {string} packageId
|
|
339
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
apiV1DealsDealIdPackagesPackageIdPut: async (dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
345
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdPut', 'dealId', dealId)
|
|
346
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
347
|
+
assertParamExists('apiV1DealsDealIdPackagesPackageIdPut', 'packageId', packageId)
|
|
348
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}`
|
|
349
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
350
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
353
|
+
let baseOptions;
|
|
354
|
+
if (configuration) {
|
|
355
|
+
baseOptions = configuration.baseOptions;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
359
|
+
const localVarHeaderParameter = {} as any;
|
|
360
|
+
const localVarQueryParameter = {} as any;
|
|
361
|
+
|
|
362
|
+
// authentication oauth2 required
|
|
363
|
+
// oauth required
|
|
364
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
369
|
+
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
373
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealPackageCommand, localVarRequestOptions, configuration)
|
|
374
|
+
|
|
375
|
+
return {
|
|
376
|
+
url: toPathString(localVarUrlObj),
|
|
377
|
+
options: localVarRequestOptions,
|
|
378
|
+
};
|
|
379
|
+
},
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @summary Create DealPackage.
|
|
383
|
+
* @param {string} dealId
|
|
384
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
apiV1DealsDealIdPackagesPost: async (dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
390
|
+
assertParamExists('apiV1DealsDealIdPackagesPost', 'dealId', dealId)
|
|
391
|
+
const localVarPath = `/api/v1/deals/{dealId}/packages`
|
|
392
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
395
|
+
let baseOptions;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
401
|
+
const localVarHeaderParameter = {} as any;
|
|
402
|
+
const localVarQueryParameter = {} as any;
|
|
403
|
+
|
|
404
|
+
// authentication oauth2 required
|
|
405
|
+
// oauth required
|
|
406
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
411
|
+
|
|
412
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
413
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
414
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
415
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealPackageCommand, localVarRequestOptions, configuration)
|
|
416
|
+
|
|
417
|
+
return {
|
|
418
|
+
url: toPathString(localVarUrlObj),
|
|
419
|
+
options: localVarRequestOptions,
|
|
420
|
+
};
|
|
421
|
+
},
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @summary Update deal.
|
|
425
|
+
* @param {string} dealId
|
|
426
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
apiV1DealsDealIdPut: async (dealId: string, updateDealCommand?: UpdateDealCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
431
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
432
|
+
assertParamExists('apiV1DealsDealIdPut', 'dealId', dealId)
|
|
433
|
+
const localVarPath = `/api/v1/deals/{dealId}`
|
|
434
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
435
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
436
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
437
|
+
let baseOptions;
|
|
438
|
+
if (configuration) {
|
|
439
|
+
baseOptions = configuration.baseOptions;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
443
|
+
const localVarHeaderParameter = {} as any;
|
|
444
|
+
const localVarQueryParameter = {} as any;
|
|
445
|
+
|
|
446
|
+
// authentication oauth2 required
|
|
447
|
+
// oauth required
|
|
448
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
453
|
+
|
|
454
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
455
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
456
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
457
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealCommand, localVarRequestOptions, configuration)
|
|
458
|
+
|
|
459
|
+
return {
|
|
460
|
+
url: toPathString(localVarUrlObj),
|
|
461
|
+
options: localVarRequestOptions,
|
|
462
|
+
};
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Get all DealService.
|
|
467
|
+
* @param {string} dealId
|
|
468
|
+
* @param {string} [languageCode]
|
|
469
|
+
* @param {number} [page]
|
|
470
|
+
* @param {number} [limit]
|
|
471
|
+
* @param {Date} [lastRetrieved]
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
apiV1DealsDealIdServicesGet: async (dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
476
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
477
|
+
assertParamExists('apiV1DealsDealIdServicesGet', 'dealId', dealId)
|
|
478
|
+
const localVarPath = `/api/v1/deals/{dealId}/services`
|
|
479
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
488
|
+
const localVarHeaderParameter = {} as any;
|
|
489
|
+
const localVarQueryParameter = {} as any;
|
|
490
|
+
|
|
491
|
+
// authentication oauth2 required
|
|
492
|
+
// oauth required
|
|
493
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
494
|
+
|
|
495
|
+
if (languageCode !== undefined) {
|
|
496
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
if (page !== undefined) {
|
|
500
|
+
localVarQueryParameter['page'] = page;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
if (limit !== undefined) {
|
|
504
|
+
localVarQueryParameter['limit'] = limit;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
if (lastRetrieved !== undefined) {
|
|
508
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
509
|
+
(lastRetrieved as any).toISOString() :
|
|
510
|
+
lastRetrieved;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
518
|
+
|
|
519
|
+
return {
|
|
520
|
+
url: toPathString(localVarUrlObj),
|
|
521
|
+
options: localVarRequestOptions,
|
|
522
|
+
};
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @summary Create DealService.
|
|
527
|
+
* @param {string} dealId
|
|
528
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
apiV1DealsDealIdServicesPost: async (dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
533
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
534
|
+
assertParamExists('apiV1DealsDealIdServicesPost', 'dealId', dealId)
|
|
535
|
+
const localVarPath = `/api/v1/deals/{dealId}/services`
|
|
536
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
537
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
538
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
539
|
+
let baseOptions;
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
545
|
+
const localVarHeaderParameter = {} as any;
|
|
546
|
+
const localVarQueryParameter = {} as any;
|
|
547
|
+
|
|
548
|
+
// authentication oauth2 required
|
|
549
|
+
// oauth required
|
|
550
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
555
|
+
|
|
556
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
559
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealServiceCommand, localVarRequestOptions, configuration)
|
|
560
|
+
|
|
561
|
+
return {
|
|
562
|
+
url: toPathString(localVarUrlObj),
|
|
563
|
+
options: localVarRequestOptions,
|
|
564
|
+
};
|
|
565
|
+
},
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @summary Delete DealService.
|
|
569
|
+
* @param {string} dealId
|
|
570
|
+
* @param {string} serviceId
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
apiV1DealsDealIdServicesServiceIdDelete: async (dealId: string, serviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
575
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
576
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdDelete', 'dealId', dealId)
|
|
577
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
578
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdDelete', 'serviceId', serviceId)
|
|
579
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
580
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
581
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
583
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
584
|
+
let baseOptions;
|
|
585
|
+
if (configuration) {
|
|
586
|
+
baseOptions = configuration.baseOptions;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
590
|
+
const localVarHeaderParameter = {} as any;
|
|
591
|
+
const localVarQueryParameter = {} as any;
|
|
592
|
+
|
|
593
|
+
// authentication oauth2 required
|
|
594
|
+
// oauth required
|
|
595
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
600
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
602
|
+
|
|
603
|
+
return {
|
|
604
|
+
url: toPathString(localVarUrlObj),
|
|
605
|
+
options: localVarRequestOptions,
|
|
606
|
+
};
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary Get DealService.
|
|
611
|
+
* @param {string} dealId
|
|
612
|
+
* @param {string} serviceId
|
|
613
|
+
* @param {string} [languageCode]
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
apiV1DealsDealIdServicesServiceIdGet: async (dealId: string, serviceId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
618
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
619
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdGet', 'dealId', dealId)
|
|
620
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
621
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdGet', 'serviceId', serviceId)
|
|
622
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
623
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
624
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
625
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
626
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
627
|
+
let baseOptions;
|
|
628
|
+
if (configuration) {
|
|
629
|
+
baseOptions = configuration.baseOptions;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
633
|
+
const localVarHeaderParameter = {} as any;
|
|
634
|
+
const localVarQueryParameter = {} as any;
|
|
635
|
+
|
|
636
|
+
// authentication oauth2 required
|
|
637
|
+
// oauth required
|
|
638
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
639
|
+
|
|
640
|
+
if (languageCode !== undefined) {
|
|
641
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
648
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
649
|
+
|
|
650
|
+
return {
|
|
651
|
+
url: toPathString(localVarUrlObj),
|
|
652
|
+
options: localVarRequestOptions,
|
|
653
|
+
};
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @summary Update DealService.
|
|
658
|
+
* @param {string} dealId
|
|
659
|
+
* @param {string} serviceId
|
|
660
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
apiV1DealsDealIdServicesServiceIdPut: async (dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
665
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
666
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdPut', 'dealId', dealId)
|
|
667
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
668
|
+
assertParamExists('apiV1DealsDealIdServicesServiceIdPut', 'serviceId', serviceId)
|
|
669
|
+
const localVarPath = `/api/v1/deals/{dealId}/services/{serviceId}`
|
|
670
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
671
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
672
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
673
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
674
|
+
let baseOptions;
|
|
675
|
+
if (configuration) {
|
|
676
|
+
baseOptions = configuration.baseOptions;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
680
|
+
const localVarHeaderParameter = {} as any;
|
|
681
|
+
const localVarQueryParameter = {} as any;
|
|
682
|
+
|
|
683
|
+
// authentication oauth2 required
|
|
684
|
+
// oauth required
|
|
685
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
690
|
+
|
|
691
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
693
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
694
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDealServiceCommand, localVarRequestOptions, configuration)
|
|
695
|
+
|
|
696
|
+
return {
|
|
697
|
+
url: toPathString(localVarUrlObj),
|
|
698
|
+
options: localVarRequestOptions,
|
|
699
|
+
};
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Get all deals.
|
|
704
|
+
* @param {string} [id]
|
|
705
|
+
* @param {string} [name]
|
|
706
|
+
* @param {MarketingType} [marketingType]
|
|
707
|
+
* @param {string} [countryId]
|
|
708
|
+
* @param {string} [hospitalId]
|
|
709
|
+
* @param {string} [hospitalName]
|
|
710
|
+
* @param {string} [specialtyId]
|
|
711
|
+
* @param {string} [specialtyName]
|
|
712
|
+
* @param {string} [specialtyTypeId]
|
|
713
|
+
* @param {string} [specialtyTypeName]
|
|
714
|
+
* @param {string} [serviceId]
|
|
715
|
+
* @param {string} [serviceName]
|
|
716
|
+
* @param {string} [exceptHospitalId]
|
|
717
|
+
* @param {string} [exceptDealId]
|
|
718
|
+
* @param {Array<string>} [ids]
|
|
719
|
+
* @param {number} [serviceDuration]
|
|
720
|
+
* @param {string} [languageCode]
|
|
721
|
+
* @param {boolean} [showHidden]
|
|
722
|
+
* @param {boolean} [returnDefaultValue]
|
|
723
|
+
* @param {number} [page]
|
|
724
|
+
* @param {number} [limit]
|
|
725
|
+
* @param {Date} [lastRetrieved]
|
|
726
|
+
* @param {*} [options] Override http request option.
|
|
727
|
+
* @throws {RequiredError}
|
|
728
|
+
*/
|
|
729
|
+
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> => {
|
|
730
|
+
const localVarPath = `/api/v1/deals`;
|
|
731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
733
|
+
let baseOptions;
|
|
734
|
+
if (configuration) {
|
|
735
|
+
baseOptions = configuration.baseOptions;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
739
|
+
const localVarHeaderParameter = {} as any;
|
|
740
|
+
const localVarQueryParameter = {} as any;
|
|
741
|
+
|
|
742
|
+
// authentication oauth2 required
|
|
743
|
+
// oauth required
|
|
744
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
745
|
+
|
|
746
|
+
if (id !== undefined) {
|
|
747
|
+
localVarQueryParameter['Id'] = id;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (name !== undefined) {
|
|
751
|
+
localVarQueryParameter['Name'] = name;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
if (marketingType !== undefined) {
|
|
755
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
if (countryId !== undefined) {
|
|
759
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (hospitalId !== undefined) {
|
|
763
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
if (hospitalName !== undefined) {
|
|
767
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (specialtyId !== undefined) {
|
|
771
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
if (specialtyName !== undefined) {
|
|
775
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
if (specialtyTypeId !== undefined) {
|
|
779
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
if (specialtyTypeName !== undefined) {
|
|
783
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
if (serviceId !== undefined) {
|
|
787
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
if (serviceName !== undefined) {
|
|
791
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
if (exceptHospitalId !== undefined) {
|
|
795
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (exceptDealId !== undefined) {
|
|
799
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
if (ids) {
|
|
803
|
+
localVarQueryParameter['Ids'] = ids;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
if (serviceDuration !== undefined) {
|
|
807
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
if (languageCode !== undefined) {
|
|
811
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
if (showHidden !== undefined) {
|
|
815
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (returnDefaultValue !== undefined) {
|
|
819
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
if (page !== undefined) {
|
|
823
|
+
localVarQueryParameter['page'] = page;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
if (limit !== undefined) {
|
|
827
|
+
localVarQueryParameter['limit'] = limit;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
if (lastRetrieved !== undefined) {
|
|
831
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
832
|
+
(lastRetrieved as any).toISOString() :
|
|
833
|
+
lastRetrieved;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
839
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
840
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
841
|
+
|
|
842
|
+
return {
|
|
843
|
+
url: toPathString(localVarUrlObj),
|
|
844
|
+
options: localVarRequestOptions,
|
|
845
|
+
};
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
*
|
|
849
|
+
* @summary Create a deal.
|
|
850
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
apiV1DealsPost: async (createDealCommand?: CreateDealCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
855
|
+
const localVarPath = `/api/v1/deals`;
|
|
856
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
857
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
858
|
+
let baseOptions;
|
|
859
|
+
if (configuration) {
|
|
860
|
+
baseOptions = configuration.baseOptions;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
864
|
+
const localVarHeaderParameter = {} as any;
|
|
865
|
+
const localVarQueryParameter = {} as any;
|
|
866
|
+
|
|
867
|
+
// authentication oauth2 required
|
|
868
|
+
// oauth required
|
|
869
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
874
|
+
|
|
875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
877
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
878
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDealCommand, localVarRequestOptions, configuration)
|
|
879
|
+
|
|
880
|
+
return {
|
|
881
|
+
url: toPathString(localVarUrlObj),
|
|
882
|
+
options: localVarRequestOptions,
|
|
883
|
+
};
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @summary Get all deals.
|
|
888
|
+
* @param {string} [id]
|
|
889
|
+
* @param {string} [name]
|
|
890
|
+
* @param {MarketingType} [marketingType]
|
|
891
|
+
* @param {string} [countryId]
|
|
892
|
+
* @param {string} [hospitalId]
|
|
893
|
+
* @param {string} [hospitalName]
|
|
894
|
+
* @param {string} [specialtyId]
|
|
895
|
+
* @param {string} [specialtyName]
|
|
896
|
+
* @param {string} [specialtyTypeId]
|
|
897
|
+
* @param {string} [specialtyTypeName]
|
|
898
|
+
* @param {string} [serviceId]
|
|
899
|
+
* @param {string} [serviceName]
|
|
900
|
+
* @param {string} [exceptHospitalId]
|
|
901
|
+
* @param {string} [exceptDealId]
|
|
902
|
+
* @param {Array<string>} [ids]
|
|
903
|
+
* @param {number} [serviceDuration]
|
|
904
|
+
* @param {string} [languageCode]
|
|
905
|
+
* @param {boolean} [showHidden]
|
|
906
|
+
* @param {boolean} [returnDefaultValue]
|
|
907
|
+
* @param {number} [page]
|
|
908
|
+
* @param {number} [limit]
|
|
909
|
+
* @param {Date} [lastRetrieved]
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
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> => {
|
|
914
|
+
const localVarPath = `/api/v1/deals/simple`;
|
|
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: 'GET', ...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
|
+
if (id !== undefined) {
|
|
931
|
+
localVarQueryParameter['Id'] = id;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (name !== undefined) {
|
|
935
|
+
localVarQueryParameter['Name'] = name;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (marketingType !== undefined) {
|
|
939
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (countryId !== undefined) {
|
|
943
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (hospitalId !== undefined) {
|
|
947
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
if (hospitalName !== undefined) {
|
|
951
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
if (specialtyId !== undefined) {
|
|
955
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
if (specialtyName !== undefined) {
|
|
959
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
if (specialtyTypeId !== undefined) {
|
|
963
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
if (specialtyTypeName !== undefined) {
|
|
967
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
if (serviceId !== undefined) {
|
|
971
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
if (serviceName !== undefined) {
|
|
975
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
if (exceptHospitalId !== undefined) {
|
|
979
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (exceptDealId !== undefined) {
|
|
983
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
if (ids) {
|
|
987
|
+
localVarQueryParameter['Ids'] = ids;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (serviceDuration !== undefined) {
|
|
991
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
if (languageCode !== undefined) {
|
|
995
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
if (showHidden !== undefined) {
|
|
999
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
if (returnDefaultValue !== undefined) {
|
|
1003
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
if (page !== undefined) {
|
|
1007
|
+
localVarQueryParameter['page'] = page;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
if (limit !== undefined) {
|
|
1011
|
+
localVarQueryParameter['limit'] = limit;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
if (lastRetrieved !== undefined) {
|
|
1015
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1016
|
+
(lastRetrieved as any).toISOString() :
|
|
1017
|
+
lastRetrieved;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1024
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1025
|
+
|
|
1026
|
+
return {
|
|
1027
|
+
url: toPathString(localVarUrlObj),
|
|
1028
|
+
options: localVarRequestOptions,
|
|
1029
|
+
};
|
|
1030
|
+
},
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @summary Get deal by slug.
|
|
1034
|
+
* @param {string} slug
|
|
1035
|
+
* @param {string} [languageCode]
|
|
1036
|
+
* @param {boolean} [returnDefaultValue]
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
*/
|
|
1040
|
+
apiV1DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1041
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1042
|
+
assertParamExists('apiV1DealsSlugGet', 'slug', slug)
|
|
1043
|
+
const localVarPath = `/api/v1/deals/{slug}`
|
|
1044
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1045
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1046
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1047
|
+
let baseOptions;
|
|
1048
|
+
if (configuration) {
|
|
1049
|
+
baseOptions = configuration.baseOptions;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1053
|
+
const localVarHeaderParameter = {} as any;
|
|
1054
|
+
const localVarQueryParameter = {} as any;
|
|
1055
|
+
|
|
1056
|
+
// authentication oauth2 required
|
|
1057
|
+
// oauth required
|
|
1058
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
1059
|
+
|
|
1060
|
+
if (languageCode !== undefined) {
|
|
1061
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
if (returnDefaultValue !== undefined) {
|
|
1065
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1071
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1072
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1073
|
+
|
|
1074
|
+
return {
|
|
1075
|
+
url: toPathString(localVarUrlObj),
|
|
1076
|
+
options: localVarRequestOptions,
|
|
1077
|
+
};
|
|
1078
|
+
},
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* DealsApi - functional programming interface
|
|
1084
|
+
* @export
|
|
1085
|
+
*/
|
|
1086
|
+
export const DealsApiFp = function(configuration?: Configuration) {
|
|
1087
|
+
const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
|
|
1088
|
+
return {
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @summary Delete deal.
|
|
1092
|
+
* @param {string} dealId
|
|
1093
|
+
* @param {boolean} [isPermanent]
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
*/
|
|
1097
|
+
async apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdDelete(dealId, isPermanent, options);
|
|
1099
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1100
|
+
},
|
|
1101
|
+
/**
|
|
1102
|
+
*
|
|
1103
|
+
* @summary Get deal.
|
|
1104
|
+
* @param {string} dealId
|
|
1105
|
+
* @param {string} [languageCode]
|
|
1106
|
+
* @param {*} [options] Override http request option.
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
*/
|
|
1109
|
+
async apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1110
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, languageCode, options);
|
|
1111
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1112
|
+
},
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @summary Get all DealPackage.
|
|
1116
|
+
* @param {string} dealId
|
|
1117
|
+
* @param {string} [relatedDealPackageId]
|
|
1118
|
+
* @param {string} [dealName]
|
|
1119
|
+
* @param {string} [name]
|
|
1120
|
+
* @param {string} [countryId]
|
|
1121
|
+
* @param {string} [hospitalId]
|
|
1122
|
+
* @param {string} [hospitalName]
|
|
1123
|
+
* @param {string} [languageCode]
|
|
1124
|
+
* @param {boolean} [showHidden]
|
|
1125
|
+
* @param {number} [page]
|
|
1126
|
+
* @param {number} [limit]
|
|
1127
|
+
* @param {Date} [lastRetrieved]
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
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>> {
|
|
1132
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
1133
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1134
|
+
},
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Delete DealPackage.
|
|
1138
|
+
* @param {string} dealId
|
|
1139
|
+
* @param {string} packageId
|
|
1140
|
+
* @param {boolean} [isPermanent]
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
*/
|
|
1144
|
+
async apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1145
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options);
|
|
1146
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1147
|
+
},
|
|
1148
|
+
/**
|
|
1149
|
+
*
|
|
1150
|
+
* @summary Get DealPackage.
|
|
1151
|
+
* @param {string} dealId
|
|
1152
|
+
* @param {string} packageId
|
|
1153
|
+
* @param {string} [languageCode]
|
|
1154
|
+
* @param {*} [options] Override http request option.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
*/
|
|
1157
|
+
async apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options);
|
|
1159
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1160
|
+
},
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
* @summary Update DealPackage.
|
|
1164
|
+
* @param {string} dealId
|
|
1165
|
+
* @param {string} packageId
|
|
1166
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
*/
|
|
1170
|
+
async apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options);
|
|
1172
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1173
|
+
},
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @summary Create DealPackage.
|
|
1177
|
+
* @param {string} dealId
|
|
1178
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
async apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
1183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options);
|
|
1184
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1185
|
+
},
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @summary Update deal.
|
|
1189
|
+
* @param {string} dealId
|
|
1190
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
async apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPut(dealId, updateDealCommand, options);
|
|
1196
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1197
|
+
},
|
|
1198
|
+
/**
|
|
1199
|
+
*
|
|
1200
|
+
* @summary Get all DealService.
|
|
1201
|
+
* @param {string} dealId
|
|
1202
|
+
* @param {string} [languageCode]
|
|
1203
|
+
* @param {number} [page]
|
|
1204
|
+
* @param {number} [limit]
|
|
1205
|
+
* @param {Date} [lastRetrieved]
|
|
1206
|
+
* @param {*} [options] Override http request option.
|
|
1207
|
+
* @throws {RequiredError}
|
|
1208
|
+
*/
|
|
1209
|
+
async apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServicesModel>> {
|
|
1210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options);
|
|
1211
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1212
|
+
},
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @summary Create DealService.
|
|
1216
|
+
* @param {string} dealId
|
|
1217
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
async apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options);
|
|
1223
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1224
|
+
},
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
* @summary Delete DealService.
|
|
1228
|
+
* @param {string} dealId
|
|
1229
|
+
* @param {string} serviceId
|
|
1230
|
+
* @param {*} [options] Override http request option.
|
|
1231
|
+
* @throws {RequiredError}
|
|
1232
|
+
*/
|
|
1233
|
+
async apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options);
|
|
1235
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1236
|
+
},
|
|
1237
|
+
/**
|
|
1238
|
+
*
|
|
1239
|
+
* @summary Get DealService.
|
|
1240
|
+
* @param {string} dealId
|
|
1241
|
+
* @param {string} serviceId
|
|
1242
|
+
* @param {string} [languageCode]
|
|
1243
|
+
* @param {*} [options] Override http request option.
|
|
1244
|
+
* @throws {RequiredError}
|
|
1245
|
+
*/
|
|
1246
|
+
async apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options);
|
|
1248
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1249
|
+
},
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @summary Update DealService.
|
|
1253
|
+
* @param {string} dealId
|
|
1254
|
+
* @param {string} serviceId
|
|
1255
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
1256
|
+
* @param {*} [options] Override http request option.
|
|
1257
|
+
* @throws {RequiredError}
|
|
1258
|
+
*/
|
|
1259
|
+
async apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
|
|
1260
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options);
|
|
1261
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1262
|
+
},
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary Get all deals.
|
|
1266
|
+
* @param {string} [id]
|
|
1267
|
+
* @param {string} [name]
|
|
1268
|
+
* @param {MarketingType} [marketingType]
|
|
1269
|
+
* @param {string} [countryId]
|
|
1270
|
+
* @param {string} [hospitalId]
|
|
1271
|
+
* @param {string} [hospitalName]
|
|
1272
|
+
* @param {string} [specialtyId]
|
|
1273
|
+
* @param {string} [specialtyName]
|
|
1274
|
+
* @param {string} [specialtyTypeId]
|
|
1275
|
+
* @param {string} [specialtyTypeName]
|
|
1276
|
+
* @param {string} [serviceId]
|
|
1277
|
+
* @param {string} [serviceName]
|
|
1278
|
+
* @param {string} [exceptHospitalId]
|
|
1279
|
+
* @param {string} [exceptDealId]
|
|
1280
|
+
* @param {Array<string>} [ids]
|
|
1281
|
+
* @param {number} [serviceDuration]
|
|
1282
|
+
* @param {string} [languageCode]
|
|
1283
|
+
* @param {boolean} [showHidden]
|
|
1284
|
+
* @param {boolean} [returnDefaultValue]
|
|
1285
|
+
* @param {number} [page]
|
|
1286
|
+
* @param {number} [limit]
|
|
1287
|
+
* @param {Date} [lastRetrieved]
|
|
1288
|
+
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
*/
|
|
1291
|
+
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>> {
|
|
1292
|
+
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);
|
|
1293
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1294
|
+
},
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @summary Create a deal.
|
|
1298
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
*/
|
|
1302
|
+
async apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsPost(createDealCommand, options);
|
|
1304
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1305
|
+
},
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @summary Get all deals.
|
|
1309
|
+
* @param {string} [id]
|
|
1310
|
+
* @param {string} [name]
|
|
1311
|
+
* @param {MarketingType} [marketingType]
|
|
1312
|
+
* @param {string} [countryId]
|
|
1313
|
+
* @param {string} [hospitalId]
|
|
1314
|
+
* @param {string} [hospitalName]
|
|
1315
|
+
* @param {string} [specialtyId]
|
|
1316
|
+
* @param {string} [specialtyName]
|
|
1317
|
+
* @param {string} [specialtyTypeId]
|
|
1318
|
+
* @param {string} [specialtyTypeName]
|
|
1319
|
+
* @param {string} [serviceId]
|
|
1320
|
+
* @param {string} [serviceName]
|
|
1321
|
+
* @param {string} [exceptHospitalId]
|
|
1322
|
+
* @param {string} [exceptDealId]
|
|
1323
|
+
* @param {Array<string>} [ids]
|
|
1324
|
+
* @param {number} [serviceDuration]
|
|
1325
|
+
* @param {string} [languageCode]
|
|
1326
|
+
* @param {boolean} [showHidden]
|
|
1327
|
+
* @param {boolean} [returnDefaultValue]
|
|
1328
|
+
* @param {number} [page]
|
|
1329
|
+
* @param {number} [limit]
|
|
1330
|
+
* @param {Date} [lastRetrieved]
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
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>> {
|
|
1335
|
+
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);
|
|
1336
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1337
|
+
},
|
|
1338
|
+
/**
|
|
1339
|
+
*
|
|
1340
|
+
* @summary Get deal by slug.
|
|
1341
|
+
* @param {string} slug
|
|
1342
|
+
* @param {string} [languageCode]
|
|
1343
|
+
* @param {boolean} [returnDefaultValue]
|
|
1344
|
+
* @param {*} [options] Override http request option.
|
|
1345
|
+
* @throws {RequiredError}
|
|
1346
|
+
*/
|
|
1347
|
+
async apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
1348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
1349
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1350
|
+
},
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* DealsApi - factory interface
|
|
1356
|
+
* @export
|
|
1357
|
+
*/
|
|
1358
|
+
export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1359
|
+
const localVarFp = DealsApiFp(configuration)
|
|
1360
|
+
return {
|
|
1361
|
+
/**
|
|
1362
|
+
*
|
|
1363
|
+
* @summary Delete deal.
|
|
1364
|
+
* @param {string} dealId
|
|
1365
|
+
* @param {boolean} [isPermanent]
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
*/
|
|
1369
|
+
apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
1370
|
+
return localVarFp.apiV1DealsDealIdDelete(dealId, isPermanent, options).then((request) => request(axios, basePath));
|
|
1371
|
+
},
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @summary Get deal.
|
|
1375
|
+
* @param {string} dealId
|
|
1376
|
+
* @param {string} [languageCode]
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: any): AxiosPromise<DealModel> {
|
|
1381
|
+
return localVarFp.apiV1DealsDealIdGet(dealId, languageCode, options).then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @summary Get all DealPackage.
|
|
1386
|
+
* @param {string} dealId
|
|
1387
|
+
* @param {string} [relatedDealPackageId]
|
|
1388
|
+
* @param {string} [dealName]
|
|
1389
|
+
* @param {string} [name]
|
|
1390
|
+
* @param {string} [countryId]
|
|
1391
|
+
* @param {string} [hospitalId]
|
|
1392
|
+
* @param {string} [hospitalName]
|
|
1393
|
+
* @param {string} [languageCode]
|
|
1394
|
+
* @param {boolean} [showHidden]
|
|
1395
|
+
* @param {number} [page]
|
|
1396
|
+
* @param {number} [limit]
|
|
1397
|
+
* @param {Date} [lastRetrieved]
|
|
1398
|
+
* @param {*} [options] Override http request option.
|
|
1399
|
+
* @throws {RequiredError}
|
|
1400
|
+
*/
|
|
1401
|
+
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> {
|
|
1402
|
+
return localVarFp.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
*
|
|
1406
|
+
* @summary Delete DealPackage.
|
|
1407
|
+
* @param {string} dealId
|
|
1408
|
+
* @param {string} packageId
|
|
1409
|
+
* @param {boolean} [isPermanent]
|
|
1410
|
+
* @param {*} [options] Override http request option.
|
|
1411
|
+
* @throws {RequiredError}
|
|
1412
|
+
*/
|
|
1413
|
+
apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
1414
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options).then((request) => request(axios, basePath));
|
|
1415
|
+
},
|
|
1416
|
+
/**
|
|
1417
|
+
*
|
|
1418
|
+
* @summary Get DealPackage.
|
|
1419
|
+
* @param {string} dealId
|
|
1420
|
+
* @param {string} packageId
|
|
1421
|
+
* @param {string} [languageCode]
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
*/
|
|
1425
|
+
apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: any): AxiosPromise<DealPackageModel> {
|
|
1426
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(axios, basePath));
|
|
1427
|
+
},
|
|
1428
|
+
/**
|
|
1429
|
+
*
|
|
1430
|
+
* @summary Update DealPackage.
|
|
1431
|
+
* @param {string} dealId
|
|
1432
|
+
* @param {string} packageId
|
|
1433
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
1434
|
+
* @param {*} [options] Override http request option.
|
|
1435
|
+
* @throws {RequiredError}
|
|
1436
|
+
*/
|
|
1437
|
+
apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: any): AxiosPromise<DealPackageModel> {
|
|
1438
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options).then((request) => request(axios, basePath));
|
|
1439
|
+
},
|
|
1440
|
+
/**
|
|
1441
|
+
*
|
|
1442
|
+
* @summary Create DealPackage.
|
|
1443
|
+
* @param {string} dealId
|
|
1444
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
*/
|
|
1448
|
+
apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: any): AxiosPromise<DealPackageModel> {
|
|
1449
|
+
return localVarFp.apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options).then((request) => request(axios, basePath));
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @summary Update deal.
|
|
1454
|
+
* @param {string} dealId
|
|
1455
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
1460
|
+
return localVarFp.apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(axios, basePath));
|
|
1461
|
+
},
|
|
1462
|
+
/**
|
|
1463
|
+
*
|
|
1464
|
+
* @summary Get all DealService.
|
|
1465
|
+
* @param {string} dealId
|
|
1466
|
+
* @param {string} [languageCode]
|
|
1467
|
+
* @param {number} [page]
|
|
1468
|
+
* @param {number} [limit]
|
|
1469
|
+
* @param {Date} [lastRetrieved]
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealServicesModel> {
|
|
1474
|
+
return localVarFp.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1475
|
+
},
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @summary Create DealService.
|
|
1479
|
+
* @param {string} dealId
|
|
1480
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
*/
|
|
1484
|
+
apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: any): AxiosPromise<DealServiceModel> {
|
|
1485
|
+
return localVarFp.apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options).then((request) => request(axios, basePath));
|
|
1486
|
+
},
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @summary Delete DealService.
|
|
1490
|
+
* @param {string} dealId
|
|
1491
|
+
* @param {string} serviceId
|
|
1492
|
+
* @param {*} [options] Override http request option.
|
|
1493
|
+
* @throws {RequiredError}
|
|
1494
|
+
*/
|
|
1495
|
+
apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: any): AxiosPromise<boolean> {
|
|
1496
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options).then((request) => request(axios, basePath));
|
|
1497
|
+
},
|
|
1498
|
+
/**
|
|
1499
|
+
*
|
|
1500
|
+
* @summary Get DealService.
|
|
1501
|
+
* @param {string} dealId
|
|
1502
|
+
* @param {string} serviceId
|
|
1503
|
+
* @param {string} [languageCode]
|
|
1504
|
+
* @param {*} [options] Override http request option.
|
|
1505
|
+
* @throws {RequiredError}
|
|
1506
|
+
*/
|
|
1507
|
+
apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: any): AxiosPromise<DealServiceModel> {
|
|
1508
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then((request) => request(axios, basePath));
|
|
1509
|
+
},
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @summary Update DealService.
|
|
1513
|
+
* @param {string} dealId
|
|
1514
|
+
* @param {string} serviceId
|
|
1515
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
1516
|
+
* @param {*} [options] Override http request option.
|
|
1517
|
+
* @throws {RequiredError}
|
|
1518
|
+
*/
|
|
1519
|
+
apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: any): AxiosPromise<DealServiceModel> {
|
|
1520
|
+
return localVarFp.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options).then((request) => request(axios, basePath));
|
|
1521
|
+
},
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @summary Get all deals.
|
|
1525
|
+
* @param {string} [id]
|
|
1526
|
+
* @param {string} [name]
|
|
1527
|
+
* @param {MarketingType} [marketingType]
|
|
1528
|
+
* @param {string} [countryId]
|
|
1529
|
+
* @param {string} [hospitalId]
|
|
1530
|
+
* @param {string} [hospitalName]
|
|
1531
|
+
* @param {string} [specialtyId]
|
|
1532
|
+
* @param {string} [specialtyName]
|
|
1533
|
+
* @param {string} [specialtyTypeId]
|
|
1534
|
+
* @param {string} [specialtyTypeName]
|
|
1535
|
+
* @param {string} [serviceId]
|
|
1536
|
+
* @param {string} [serviceName]
|
|
1537
|
+
* @param {string} [exceptHospitalId]
|
|
1538
|
+
* @param {string} [exceptDealId]
|
|
1539
|
+
* @param {Array<string>} [ids]
|
|
1540
|
+
* @param {number} [serviceDuration]
|
|
1541
|
+
* @param {string} [languageCode]
|
|
1542
|
+
* @param {boolean} [showHidden]
|
|
1543
|
+
* @param {boolean} [returnDefaultValue]
|
|
1544
|
+
* @param {number} [page]
|
|
1545
|
+
* @param {number} [limit]
|
|
1546
|
+
* @param {Date} [lastRetrieved]
|
|
1547
|
+
* @param {*} [options] Override http request option.
|
|
1548
|
+
* @throws {RequiredError}
|
|
1549
|
+
*/
|
|
1550
|
+
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> {
|
|
1551
|
+
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));
|
|
1552
|
+
},
|
|
1553
|
+
/**
|
|
1554
|
+
*
|
|
1555
|
+
* @summary Create a deal.
|
|
1556
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
1561
|
+
return localVarFp.apiV1DealsPost(createDealCommand, options).then((request) => request(axios, basePath));
|
|
1562
|
+
},
|
|
1563
|
+
/**
|
|
1564
|
+
*
|
|
1565
|
+
* @summary Get all deals.
|
|
1566
|
+
* @param {string} [id]
|
|
1567
|
+
* @param {string} [name]
|
|
1568
|
+
* @param {MarketingType} [marketingType]
|
|
1569
|
+
* @param {string} [countryId]
|
|
1570
|
+
* @param {string} [hospitalId]
|
|
1571
|
+
* @param {string} [hospitalName]
|
|
1572
|
+
* @param {string} [specialtyId]
|
|
1573
|
+
* @param {string} [specialtyName]
|
|
1574
|
+
* @param {string} [specialtyTypeId]
|
|
1575
|
+
* @param {string} [specialtyTypeName]
|
|
1576
|
+
* @param {string} [serviceId]
|
|
1577
|
+
* @param {string} [serviceName]
|
|
1578
|
+
* @param {string} [exceptHospitalId]
|
|
1579
|
+
* @param {string} [exceptDealId]
|
|
1580
|
+
* @param {Array<string>} [ids]
|
|
1581
|
+
* @param {number} [serviceDuration]
|
|
1582
|
+
* @param {string} [languageCode]
|
|
1583
|
+
* @param {boolean} [showHidden]
|
|
1584
|
+
* @param {boolean} [returnDefaultValue]
|
|
1585
|
+
* @param {number} [page]
|
|
1586
|
+
* @param {number} [limit]
|
|
1587
|
+
* @param {Date} [lastRetrieved]
|
|
1588
|
+
* @param {*} [options] Override http request option.
|
|
1589
|
+
* @throws {RequiredError}
|
|
1590
|
+
*/
|
|
1591
|
+
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> {
|
|
1592
|
+
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));
|
|
1593
|
+
},
|
|
1594
|
+
/**
|
|
1595
|
+
*
|
|
1596
|
+
* @summary Get deal by slug.
|
|
1597
|
+
* @param {string} slug
|
|
1598
|
+
* @param {string} [languageCode]
|
|
1599
|
+
* @param {boolean} [returnDefaultValue]
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
1604
|
+
return localVarFp.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1605
|
+
},
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* DealsApi - object-oriented interface
|
|
1611
|
+
* @export
|
|
1612
|
+
* @class DealsApi
|
|
1613
|
+
* @extends {BaseAPI}
|
|
1614
|
+
*/
|
|
1615
|
+
export class DealsApi extends BaseAPI {
|
|
1616
|
+
/**
|
|
1617
|
+
*
|
|
1618
|
+
* @summary Delete deal.
|
|
1619
|
+
* @param {string} dealId
|
|
1620
|
+
* @param {boolean} [isPermanent]
|
|
1621
|
+
* @param {*} [options] Override http request option.
|
|
1622
|
+
* @throws {RequiredError}
|
|
1623
|
+
* @memberof DealsApi
|
|
1624
|
+
*/
|
|
1625
|
+
public apiV1DealsDealIdDelete(dealId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
1626
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdDelete(dealId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @summary Get deal.
|
|
1632
|
+
* @param {string} dealId
|
|
1633
|
+
* @param {string} [languageCode]
|
|
1634
|
+
* @param {*} [options] Override http request option.
|
|
1635
|
+
* @throws {RequiredError}
|
|
1636
|
+
* @memberof DealsApi
|
|
1637
|
+
*/
|
|
1638
|
+
public apiV1DealsDealIdGet(dealId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
1639
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @summary Get all DealPackage.
|
|
1645
|
+
* @param {string} dealId
|
|
1646
|
+
* @param {string} [relatedDealPackageId]
|
|
1647
|
+
* @param {string} [dealName]
|
|
1648
|
+
* @param {string} [name]
|
|
1649
|
+
* @param {string} [countryId]
|
|
1650
|
+
* @param {string} [hospitalId]
|
|
1651
|
+
* @param {string} [hospitalName]
|
|
1652
|
+
* @param {string} [languageCode]
|
|
1653
|
+
* @param {boolean} [showHidden]
|
|
1654
|
+
* @param {number} [page]
|
|
1655
|
+
* @param {number} [limit]
|
|
1656
|
+
* @param {Date} [lastRetrieved]
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
* @memberof DealsApi
|
|
1660
|
+
*/
|
|
1661
|
+
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) {
|
|
1662
|
+
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));
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @summary Delete DealPackage.
|
|
1668
|
+
* @param {string} dealId
|
|
1669
|
+
* @param {string} packageId
|
|
1670
|
+
* @param {boolean} [isPermanent]
|
|
1671
|
+
* @param {*} [options] Override http request option.
|
|
1672
|
+
* @throws {RequiredError}
|
|
1673
|
+
* @memberof DealsApi
|
|
1674
|
+
*/
|
|
1675
|
+
public apiV1DealsDealIdPackagesPackageIdDelete(dealId: string, packageId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
1676
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdDelete(dealId, packageId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
*
|
|
1681
|
+
* @summary Get DealPackage.
|
|
1682
|
+
* @param {string} dealId
|
|
1683
|
+
* @param {string} packageId
|
|
1684
|
+
* @param {string} [languageCode]
|
|
1685
|
+
* @param {*} [options] Override http request option.
|
|
1686
|
+
* @throws {RequiredError}
|
|
1687
|
+
* @memberof DealsApi
|
|
1688
|
+
*/
|
|
1689
|
+
public apiV1DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
1690
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
*
|
|
1695
|
+
* @summary Update DealPackage.
|
|
1696
|
+
* @param {string} dealId
|
|
1697
|
+
* @param {string} packageId
|
|
1698
|
+
* @param {UpdateDealPackageCommand} [updateDealPackageCommand]
|
|
1699
|
+
* @param {*} [options] Override http request option.
|
|
1700
|
+
* @throws {RequiredError}
|
|
1701
|
+
* @memberof DealsApi
|
|
1702
|
+
*/
|
|
1703
|
+
public apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig) {
|
|
1704
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
*
|
|
1709
|
+
* @summary Create DealPackage.
|
|
1710
|
+
* @param {string} dealId
|
|
1711
|
+
* @param {CreateDealPackageCommand} [createDealPackageCommand]
|
|
1712
|
+
* @param {*} [options] Override http request option.
|
|
1713
|
+
* @throws {RequiredError}
|
|
1714
|
+
* @memberof DealsApi
|
|
1715
|
+
*/
|
|
1716
|
+
public apiV1DealsDealIdPackagesPost(dealId: string, createDealPackageCommand?: CreateDealPackageCommand, options?: AxiosRequestConfig) {
|
|
1717
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPost(dealId, createDealPackageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* @summary Update deal.
|
|
1723
|
+
* @param {string} dealId
|
|
1724
|
+
* @param {UpdateDealCommand} [updateDealCommand]
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
* @memberof DealsApi
|
|
1728
|
+
*/
|
|
1729
|
+
public apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig) {
|
|
1730
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @summary Get all DealService.
|
|
1736
|
+
* @param {string} dealId
|
|
1737
|
+
* @param {string} [languageCode]
|
|
1738
|
+
* @param {number} [page]
|
|
1739
|
+
* @param {number} [limit]
|
|
1740
|
+
* @param {Date} [lastRetrieved]
|
|
1741
|
+
* @param {*} [options] Override http request option.
|
|
1742
|
+
* @throws {RequiredError}
|
|
1743
|
+
* @memberof DealsApi
|
|
1744
|
+
*/
|
|
1745
|
+
public apiV1DealsDealIdServicesGet(dealId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
1746
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
*
|
|
1751
|
+
* @summary Create DealService.
|
|
1752
|
+
* @param {string} dealId
|
|
1753
|
+
* @param {CreateDealServiceCommand} [createDealServiceCommand]
|
|
1754
|
+
* @param {*} [options] Override http request option.
|
|
1755
|
+
* @throws {RequiredError}
|
|
1756
|
+
* @memberof DealsApi
|
|
1757
|
+
*/
|
|
1758
|
+
public apiV1DealsDealIdServicesPost(dealId: string, createDealServiceCommand?: CreateDealServiceCommand, options?: AxiosRequestConfig) {
|
|
1759
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesPost(dealId, createDealServiceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @summary Delete DealService.
|
|
1765
|
+
* @param {string} dealId
|
|
1766
|
+
* @param {string} serviceId
|
|
1767
|
+
* @param {*} [options] Override http request option.
|
|
1768
|
+
* @throws {RequiredError}
|
|
1769
|
+
* @memberof DealsApi
|
|
1770
|
+
*/
|
|
1771
|
+
public apiV1DealsDealIdServicesServiceIdDelete(dealId: string, serviceId: string, options?: AxiosRequestConfig) {
|
|
1772
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdDelete(dealId, serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
*
|
|
1777
|
+
* @summary Get DealService.
|
|
1778
|
+
* @param {string} dealId
|
|
1779
|
+
* @param {string} serviceId
|
|
1780
|
+
* @param {string} [languageCode]
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
* @memberof DealsApi
|
|
1784
|
+
*/
|
|
1785
|
+
public apiV1DealsDealIdServicesServiceIdGet(dealId: string, serviceId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
1786
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @summary Update DealService.
|
|
1792
|
+
* @param {string} dealId
|
|
1793
|
+
* @param {string} serviceId
|
|
1794
|
+
* @param {UpdateDealServiceCommand} [updateDealServiceCommand]
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
* @memberof DealsApi
|
|
1798
|
+
*/
|
|
1799
|
+
public apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig) {
|
|
1800
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
*
|
|
1805
|
+
* @summary Get all deals.
|
|
1806
|
+
* @param {string} [id]
|
|
1807
|
+
* @param {string} [name]
|
|
1808
|
+
* @param {MarketingType} [marketingType]
|
|
1809
|
+
* @param {string} [countryId]
|
|
1810
|
+
* @param {string} [hospitalId]
|
|
1811
|
+
* @param {string} [hospitalName]
|
|
1812
|
+
* @param {string} [specialtyId]
|
|
1813
|
+
* @param {string} [specialtyName]
|
|
1814
|
+
* @param {string} [specialtyTypeId]
|
|
1815
|
+
* @param {string} [specialtyTypeName]
|
|
1816
|
+
* @param {string} [serviceId]
|
|
1817
|
+
* @param {string} [serviceName]
|
|
1818
|
+
* @param {string} [exceptHospitalId]
|
|
1819
|
+
* @param {string} [exceptDealId]
|
|
1820
|
+
* @param {Array<string>} [ids]
|
|
1821
|
+
* @param {number} [serviceDuration]
|
|
1822
|
+
* @param {string} [languageCode]
|
|
1823
|
+
* @param {boolean} [showHidden]
|
|
1824
|
+
* @param {boolean} [returnDefaultValue]
|
|
1825
|
+
* @param {number} [page]
|
|
1826
|
+
* @param {number} [limit]
|
|
1827
|
+
* @param {Date} [lastRetrieved]
|
|
1828
|
+
* @param {*} [options] Override http request option.
|
|
1829
|
+
* @throws {RequiredError}
|
|
1830
|
+
* @memberof DealsApi
|
|
1831
|
+
*/
|
|
1832
|
+
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) {
|
|
1833
|
+
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));
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
*
|
|
1838
|
+
* @summary Create a deal.
|
|
1839
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
1840
|
+
* @param {*} [options] Override http request option.
|
|
1841
|
+
* @throws {RequiredError}
|
|
1842
|
+
* @memberof DealsApi
|
|
1843
|
+
*/
|
|
1844
|
+
public apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: AxiosRequestConfig) {
|
|
1845
|
+
return DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
*
|
|
1850
|
+
* @summary Get all deals.
|
|
1851
|
+
* @param {string} [id]
|
|
1852
|
+
* @param {string} [name]
|
|
1853
|
+
* @param {MarketingType} [marketingType]
|
|
1854
|
+
* @param {string} [countryId]
|
|
1855
|
+
* @param {string} [hospitalId]
|
|
1856
|
+
* @param {string} [hospitalName]
|
|
1857
|
+
* @param {string} [specialtyId]
|
|
1858
|
+
* @param {string} [specialtyName]
|
|
1859
|
+
* @param {string} [specialtyTypeId]
|
|
1860
|
+
* @param {string} [specialtyTypeName]
|
|
1861
|
+
* @param {string} [serviceId]
|
|
1862
|
+
* @param {string} [serviceName]
|
|
1863
|
+
* @param {string} [exceptHospitalId]
|
|
1864
|
+
* @param {string} [exceptDealId]
|
|
1865
|
+
* @param {Array<string>} [ids]
|
|
1866
|
+
* @param {number} [serviceDuration]
|
|
1867
|
+
* @param {string} [languageCode]
|
|
1868
|
+
* @param {boolean} [showHidden]
|
|
1869
|
+
* @param {boolean} [returnDefaultValue]
|
|
1870
|
+
* @param {number} [page]
|
|
1871
|
+
* @param {number} [limit]
|
|
1872
|
+
* @param {Date} [lastRetrieved]
|
|
1873
|
+
* @param {*} [options] Override http request option.
|
|
1874
|
+
* @throws {RequiredError}
|
|
1875
|
+
* @memberof DealsApi
|
|
1876
|
+
*/
|
|
1877
|
+
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) {
|
|
1878
|
+
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));
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
*
|
|
1883
|
+
* @summary Get deal by slug.
|
|
1884
|
+
* @param {string} slug
|
|
1885
|
+
* @param {string} [languageCode]
|
|
1886
|
+
* @param {boolean} [returnDefaultValue]
|
|
1887
|
+
* @param {*} [options] Override http request option.
|
|
1888
|
+
* @throws {RequiredError}
|
|
1889
|
+
* @memberof DealsApi
|
|
1890
|
+
*/
|
|
1891
|
+
public apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
1892
|
+
return DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1893
|
+
}
|
|
1894
|
+
}
|