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,1419 @@
|
|
|
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 { CreateFaqCommand } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateFaqTagCommand } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreateMediaCommand } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { FaqModel } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { FaqTagModel } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { FaqTagsModel } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { FaqsModel } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { MediaModel } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { MediaType } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { MediasModel } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { ProblemDetails } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { UpdateFaqCommand } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { UpdateMediaCommand } from '../models';
|
|
49
|
+
/**
|
|
50
|
+
* FaqsApi - axios parameter creator
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export const FaqsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
54
|
+
return {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary Delete faq.
|
|
58
|
+
* @param {string} faqId
|
|
59
|
+
* @param {boolean} [forceDelete]
|
|
60
|
+
* @param {boolean} [isPermanent]
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
apiV1FaqsFaqIdDelete: async (faqId: string, forceDelete?: boolean, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
66
|
+
assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId)
|
|
67
|
+
const localVarPath = `/api/v1/faqs/{faqId}`
|
|
68
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
77
|
+
const localVarHeaderParameter = {} as any;
|
|
78
|
+
const localVarQueryParameter = {} as any;
|
|
79
|
+
|
|
80
|
+
// authentication oauth2 required
|
|
81
|
+
// oauth required
|
|
82
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
83
|
+
|
|
84
|
+
if (forceDelete !== undefined) {
|
|
85
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (isPermanent !== undefined) {
|
|
89
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
url: toPathString(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Get faq.
|
|
106
|
+
* @param {string} faqId
|
|
107
|
+
* @param {string} [languageCode]
|
|
108
|
+
* @param {boolean} [returnDefaultValue]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1FaqsFaqIdGet: async (faqId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
113
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
114
|
+
assertParamExists('apiV1FaqsFaqIdGet', 'faqId', faqId)
|
|
115
|
+
const localVarPath = `/api/v1/faqs/{faqId}`
|
|
116
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
119
|
+
let baseOptions;
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
125
|
+
const localVarHeaderParameter = {} as any;
|
|
126
|
+
const localVarQueryParameter = {} as any;
|
|
127
|
+
|
|
128
|
+
// authentication oauth2 required
|
|
129
|
+
// oauth required
|
|
130
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
131
|
+
|
|
132
|
+
if (languageCode !== undefined) {
|
|
133
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (returnDefaultValue !== undefined) {
|
|
137
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Get all FaqMedias.
|
|
154
|
+
* @param {string} faqId
|
|
155
|
+
* @param {string} [id]
|
|
156
|
+
* @param {MediaType} [mediaType]
|
|
157
|
+
* @param {number} [page]
|
|
158
|
+
* @param {number} [limit]
|
|
159
|
+
* @param {Date} [lastRetrieved]
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
apiV1FaqsFaqIdMediasGet: async (faqId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
164
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
165
|
+
assertParamExists('apiV1FaqsFaqIdMediasGet', 'faqId', faqId)
|
|
166
|
+
const localVarPath = `/api/v1/faqs/{faqId}/medias`
|
|
167
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
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 (id !== undefined) {
|
|
184
|
+
localVarQueryParameter['Id'] = id;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (mediaType !== undefined) {
|
|
188
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (page !== undefined) {
|
|
192
|
+
localVarQueryParameter['page'] = page;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (limit !== undefined) {
|
|
196
|
+
localVarQueryParameter['limit'] = limit;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (lastRetrieved !== undefined) {
|
|
200
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
201
|
+
(lastRetrieved as any).toISOString() :
|
|
202
|
+
lastRetrieved;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
url: toPathString(localVarUrlObj),
|
|
213
|
+
options: localVarRequestOptions,
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @summary Delete FaqMedia
|
|
219
|
+
* @param {string} faqId
|
|
220
|
+
* @param {string} mediaId
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
apiV1FaqsFaqIdMediasMediaIdDelete: async (faqId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
225
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
226
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'faqId', faqId)
|
|
227
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
228
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'mediaId', mediaId)
|
|
229
|
+
const localVarPath = `/api/v1/faqs/{faqId}/medias/{mediaId}`
|
|
230
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)))
|
|
231
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
232
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
233
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
234
|
+
let baseOptions;
|
|
235
|
+
if (configuration) {
|
|
236
|
+
baseOptions = configuration.baseOptions;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
240
|
+
const localVarHeaderParameter = {} as any;
|
|
241
|
+
const localVarQueryParameter = {} as any;
|
|
242
|
+
|
|
243
|
+
// authentication oauth2 required
|
|
244
|
+
// oauth required
|
|
245
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
url: toPathString(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Get FaqMedia.
|
|
261
|
+
* @param {string} faqId
|
|
262
|
+
* @param {string} mediaId
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
apiV1FaqsFaqIdMediasMediaIdGet: async (faqId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
267
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
268
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'faqId', faqId)
|
|
269
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
270
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
271
|
+
const localVarPath = `/api/v1/faqs/{faqId}/medias/{mediaId}`
|
|
272
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)))
|
|
273
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
276
|
+
let baseOptions;
|
|
277
|
+
if (configuration) {
|
|
278
|
+
baseOptions = configuration.baseOptions;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
282
|
+
const localVarHeaderParameter = {} as any;
|
|
283
|
+
const localVarQueryParameter = {} as any;
|
|
284
|
+
|
|
285
|
+
// authentication oauth2 required
|
|
286
|
+
// oauth required
|
|
287
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
url: toPathString(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Update FaqMedia.
|
|
303
|
+
* @param {string} faqId
|
|
304
|
+
* @param {string} mediaId
|
|
305
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
apiV1FaqsFaqIdMediasMediaIdPut: async (faqId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
310
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
311
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'faqId', faqId)
|
|
312
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
313
|
+
assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'mediaId', mediaId)
|
|
314
|
+
const localVarPath = `/api/v1/faqs/{faqId}/medias/{mediaId}`
|
|
315
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)))
|
|
316
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
325
|
+
const localVarHeaderParameter = {} as any;
|
|
326
|
+
const localVarQueryParameter = {} as any;
|
|
327
|
+
|
|
328
|
+
// authentication oauth2 required
|
|
329
|
+
// oauth required
|
|
330
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
|
+
|
|
336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
339
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
url: toPathString(localVarUrlObj),
|
|
343
|
+
options: localVarRequestOptions,
|
|
344
|
+
};
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @summary Create FaqMedia.
|
|
349
|
+
* @param {string} faqId
|
|
350
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
apiV1FaqsFaqIdMediasPost: async (faqId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
355
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
356
|
+
assertParamExists('apiV1FaqsFaqIdMediasPost', 'faqId', faqId)
|
|
357
|
+
const localVarPath = `/api/v1/faqs/{faqId}/medias`
|
|
358
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
360
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
361
|
+
let baseOptions;
|
|
362
|
+
if (configuration) {
|
|
363
|
+
baseOptions = configuration.baseOptions;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
367
|
+
const localVarHeaderParameter = {} as any;
|
|
368
|
+
const localVarQueryParameter = {} as any;
|
|
369
|
+
|
|
370
|
+
// authentication oauth2 required
|
|
371
|
+
// oauth required
|
|
372
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
377
|
+
|
|
378
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
379
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
381
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
|
|
382
|
+
|
|
383
|
+
return {
|
|
384
|
+
url: toPathString(localVarUrlObj),
|
|
385
|
+
options: localVarRequestOptions,
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Update faq.
|
|
391
|
+
* @param {string} faqId
|
|
392
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
apiV1FaqsFaqIdPut: async (faqId: string, updateFaqCommand?: UpdateFaqCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
397
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
398
|
+
assertParamExists('apiV1FaqsFaqIdPut', 'faqId', faqId)
|
|
399
|
+
const localVarPath = `/api/v1/faqs/{faqId}`
|
|
400
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
409
|
+
const localVarHeaderParameter = {} as any;
|
|
410
|
+
const localVarQueryParameter = {} as any;
|
|
411
|
+
|
|
412
|
+
// authentication oauth2 required
|
|
413
|
+
// oauth required
|
|
414
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
|
|
420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFaqCommand, localVarRequestOptions, configuration)
|
|
424
|
+
|
|
425
|
+
return {
|
|
426
|
+
url: toPathString(localVarUrlObj),
|
|
427
|
+
options: localVarRequestOptions,
|
|
428
|
+
};
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @summary GetAll FaqTags.
|
|
433
|
+
* @param {string} faqId
|
|
434
|
+
* @param {string} [tagId]
|
|
435
|
+
* @param {number} [page]
|
|
436
|
+
* @param {number} [limit]
|
|
437
|
+
* @param {Date} [lastRetrieved]
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
apiV1FaqsFaqIdTagsGet: async (faqId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
442
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
443
|
+
assertParamExists('apiV1FaqsFaqIdTagsGet', 'faqId', faqId)
|
|
444
|
+
const localVarPath = `/api/v1/faqs/{faqId}/tags`
|
|
445
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
447
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
448
|
+
let baseOptions;
|
|
449
|
+
if (configuration) {
|
|
450
|
+
baseOptions = configuration.baseOptions;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
454
|
+
const localVarHeaderParameter = {} as any;
|
|
455
|
+
const localVarQueryParameter = {} as any;
|
|
456
|
+
|
|
457
|
+
// authentication oauth2 required
|
|
458
|
+
// oauth required
|
|
459
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
460
|
+
|
|
461
|
+
if (tagId !== undefined) {
|
|
462
|
+
localVarQueryParameter['TagId'] = tagId;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (page !== undefined) {
|
|
466
|
+
localVarQueryParameter['page'] = page;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (limit !== undefined) {
|
|
470
|
+
localVarQueryParameter['limit'] = limit;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if (lastRetrieved !== undefined) {
|
|
474
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
475
|
+
(lastRetrieved as any).toISOString() :
|
|
476
|
+
lastRetrieved;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
484
|
+
|
|
485
|
+
return {
|
|
486
|
+
url: toPathString(localVarUrlObj),
|
|
487
|
+
options: localVarRequestOptions,
|
|
488
|
+
};
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @summary Create FaqTag.
|
|
493
|
+
* @param {string} faqId
|
|
494
|
+
* @param {CreateFaqTagCommand} [createFaqTagCommand]
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
apiV1FaqsFaqIdTagsPost: async (faqId: string, createFaqTagCommand?: CreateFaqTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
499
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
500
|
+
assertParamExists('apiV1FaqsFaqIdTagsPost', 'faqId', faqId)
|
|
501
|
+
const localVarPath = `/api/v1/faqs/{faqId}/tags`
|
|
502
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
504
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
505
|
+
let baseOptions;
|
|
506
|
+
if (configuration) {
|
|
507
|
+
baseOptions = configuration.baseOptions;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
511
|
+
const localVarHeaderParameter = {} as any;
|
|
512
|
+
const localVarQueryParameter = {} as any;
|
|
513
|
+
|
|
514
|
+
// authentication oauth2 required
|
|
515
|
+
// oauth required
|
|
516
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
521
|
+
|
|
522
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
525
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFaqTagCommand, localVarRequestOptions, configuration)
|
|
526
|
+
|
|
527
|
+
return {
|
|
528
|
+
url: toPathString(localVarUrlObj),
|
|
529
|
+
options: localVarRequestOptions,
|
|
530
|
+
};
|
|
531
|
+
},
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @summary Delete FaqTag.
|
|
535
|
+
* @param {string} faqId
|
|
536
|
+
* @param {string} tagId
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
apiV1FaqsFaqIdTagsTagIdDelete: async (faqId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
541
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
542
|
+
assertParamExists('apiV1FaqsFaqIdTagsTagIdDelete', 'faqId', faqId)
|
|
543
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
544
|
+
assertParamExists('apiV1FaqsFaqIdTagsTagIdDelete', 'tagId', tagId)
|
|
545
|
+
const localVarPath = `/api/v1/faqs/{faqId}/tags/{tagId}`
|
|
546
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)))
|
|
547
|
+
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
|
548
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
549
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
550
|
+
let baseOptions;
|
|
551
|
+
if (configuration) {
|
|
552
|
+
baseOptions = configuration.baseOptions;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
556
|
+
const localVarHeaderParameter = {} as any;
|
|
557
|
+
const localVarQueryParameter = {} as any;
|
|
558
|
+
|
|
559
|
+
// authentication oauth2 required
|
|
560
|
+
// oauth required
|
|
561
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
567
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
568
|
+
|
|
569
|
+
return {
|
|
570
|
+
url: toPathString(localVarUrlObj),
|
|
571
|
+
options: localVarRequestOptions,
|
|
572
|
+
};
|
|
573
|
+
},
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary Get FaqTag.
|
|
577
|
+
* @param {string} faqId
|
|
578
|
+
* @param {string} tagId
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
apiV1FaqsFaqIdTagsTagIdGet: async (faqId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
583
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
584
|
+
assertParamExists('apiV1FaqsFaqIdTagsTagIdGet', 'faqId', faqId)
|
|
585
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
586
|
+
assertParamExists('apiV1FaqsFaqIdTagsTagIdGet', 'tagId', tagId)
|
|
587
|
+
const localVarPath = `/api/v1/faqs/{faqId}/tags/{tagId}`
|
|
588
|
+
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)))
|
|
589
|
+
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
|
590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
591
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
592
|
+
let baseOptions;
|
|
593
|
+
if (configuration) {
|
|
594
|
+
baseOptions = configuration.baseOptions;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
598
|
+
const localVarHeaderParameter = {} as any;
|
|
599
|
+
const localVarQueryParameter = {} as any;
|
|
600
|
+
|
|
601
|
+
// authentication oauth2 required
|
|
602
|
+
// oauth required
|
|
603
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
609
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
610
|
+
|
|
611
|
+
return {
|
|
612
|
+
url: toPathString(localVarUrlObj),
|
|
613
|
+
options: localVarRequestOptions,
|
|
614
|
+
};
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Get all Faqs.
|
|
619
|
+
* @param {string} [id]
|
|
620
|
+
* @param {string} [name]
|
|
621
|
+
* @param {string} [slug]
|
|
622
|
+
* @param {string} [categoryId]
|
|
623
|
+
* @param {string} [hospitalId]
|
|
624
|
+
* @param {string} [hospitalName]
|
|
625
|
+
* @param {string} [languageCode]
|
|
626
|
+
* @param {boolean} [showHidden]
|
|
627
|
+
* @param {boolean} [returnDefaultValue]
|
|
628
|
+
* @param {number} [page]
|
|
629
|
+
* @param {number} [limit]
|
|
630
|
+
* @param {Date} [lastRetrieved]
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
apiV1FaqsGet: async (id?: string, name?: string, slug?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
635
|
+
const localVarPath = `/api/v1/faqs`;
|
|
636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
638
|
+
let baseOptions;
|
|
639
|
+
if (configuration) {
|
|
640
|
+
baseOptions = configuration.baseOptions;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
644
|
+
const localVarHeaderParameter = {} as any;
|
|
645
|
+
const localVarQueryParameter = {} as any;
|
|
646
|
+
|
|
647
|
+
// authentication oauth2 required
|
|
648
|
+
// oauth required
|
|
649
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
650
|
+
|
|
651
|
+
if (id !== undefined) {
|
|
652
|
+
localVarQueryParameter['Id'] = id;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
if (name !== undefined) {
|
|
656
|
+
localVarQueryParameter['Name'] = name;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
if (slug !== undefined) {
|
|
660
|
+
localVarQueryParameter['Slug'] = slug;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
if (categoryId !== undefined) {
|
|
664
|
+
localVarQueryParameter['CategoryId'] = categoryId;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
if (hospitalId !== undefined) {
|
|
668
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
if (hospitalName !== undefined) {
|
|
672
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
if (languageCode !== undefined) {
|
|
676
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
if (showHidden !== undefined) {
|
|
680
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
if (returnDefaultValue !== undefined) {
|
|
684
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
if (page !== undefined) {
|
|
688
|
+
localVarQueryParameter['page'] = page;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (limit !== undefined) {
|
|
692
|
+
localVarQueryParameter['limit'] = limit;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (lastRetrieved !== undefined) {
|
|
696
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
697
|
+
(lastRetrieved as any).toISOString() :
|
|
698
|
+
lastRetrieved;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
704
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
705
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
706
|
+
|
|
707
|
+
return {
|
|
708
|
+
url: toPathString(localVarUrlObj),
|
|
709
|
+
options: localVarRequestOptions,
|
|
710
|
+
};
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @summary Create a faq.
|
|
715
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
apiV1FaqsPost: async (createFaqCommand?: CreateFaqCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
720
|
+
const localVarPath = `/api/v1/faqs`;
|
|
721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
723
|
+
let baseOptions;
|
|
724
|
+
if (configuration) {
|
|
725
|
+
baseOptions = configuration.baseOptions;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
729
|
+
const localVarHeaderParameter = {} as any;
|
|
730
|
+
const localVarQueryParameter = {} as any;
|
|
731
|
+
|
|
732
|
+
// authentication oauth2 required
|
|
733
|
+
// oauth required
|
|
734
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
739
|
+
|
|
740
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
742
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
743
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFaqCommand, localVarRequestOptions, configuration)
|
|
744
|
+
|
|
745
|
+
return {
|
|
746
|
+
url: toPathString(localVarUrlObj),
|
|
747
|
+
options: localVarRequestOptions,
|
|
748
|
+
};
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @summary Get faq by slug.
|
|
753
|
+
* @param {string} slug
|
|
754
|
+
* @param {string} [languageCode]
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
apiV1FaqsSlugGet: async (slug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
759
|
+
// verify required parameter 'slug' is not null or undefined
|
|
760
|
+
assertParamExists('apiV1FaqsSlugGet', 'slug', slug)
|
|
761
|
+
const localVarPath = `/api/v1/faqs/{slug}`
|
|
762
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
763
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
764
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
765
|
+
let baseOptions;
|
|
766
|
+
if (configuration) {
|
|
767
|
+
baseOptions = configuration.baseOptions;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
771
|
+
const localVarHeaderParameter = {} as any;
|
|
772
|
+
const localVarQueryParameter = {} as any;
|
|
773
|
+
|
|
774
|
+
// authentication oauth2 required
|
|
775
|
+
// oauth required
|
|
776
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
777
|
+
|
|
778
|
+
if (languageCode !== undefined) {
|
|
779
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
786
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
787
|
+
|
|
788
|
+
return {
|
|
789
|
+
url: toPathString(localVarUrlObj),
|
|
790
|
+
options: localVarRequestOptions,
|
|
791
|
+
};
|
|
792
|
+
},
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* FaqsApi - functional programming interface
|
|
798
|
+
* @export
|
|
799
|
+
*/
|
|
800
|
+
export const FaqsApiFp = function(configuration?: Configuration) {
|
|
801
|
+
const localVarAxiosParamCreator = FaqsApiAxiosParamCreator(configuration)
|
|
802
|
+
return {
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @summary Delete faq.
|
|
806
|
+
* @param {string} faqId
|
|
807
|
+
* @param {boolean} [forceDelete]
|
|
808
|
+
* @param {boolean} [isPermanent]
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
async apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, isPermanent, options);
|
|
814
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @summary Get faq.
|
|
819
|
+
* @param {string} faqId
|
|
820
|
+
* @param {string} [languageCode]
|
|
821
|
+
* @param {boolean} [returnDefaultValue]
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
*/
|
|
825
|
+
async apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
|
|
826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options);
|
|
827
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
*
|
|
831
|
+
* @summary Get all FaqMedias.
|
|
832
|
+
* @param {string} faqId
|
|
833
|
+
* @param {string} [id]
|
|
834
|
+
* @param {MediaType} [mediaType]
|
|
835
|
+
* @param {number} [page]
|
|
836
|
+
* @param {number} [limit]
|
|
837
|
+
* @param {Date} [lastRetrieved]
|
|
838
|
+
* @param {*} [options] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
*/
|
|
841
|
+
async apiV1FaqsFaqIdMediasGet(faqId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options);
|
|
843
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @summary Delete FaqMedia
|
|
848
|
+
* @param {string} faqId
|
|
849
|
+
* @param {string} mediaId
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
async apiV1FaqsFaqIdMediasMediaIdDelete(faqId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options);
|
|
855
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @summary Get FaqMedia.
|
|
860
|
+
* @param {string} faqId
|
|
861
|
+
* @param {string} mediaId
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
async apiV1FaqsFaqIdMediasMediaIdGet(faqId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
866
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options);
|
|
867
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
868
|
+
},
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @summary Update FaqMedia.
|
|
872
|
+
* @param {string} faqId
|
|
873
|
+
* @param {string} mediaId
|
|
874
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
async apiV1FaqsFaqIdMediasMediaIdPut(faqId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options);
|
|
880
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
881
|
+
},
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @summary Create FaqMedia.
|
|
885
|
+
* @param {string} faqId
|
|
886
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
async apiV1FaqsFaqIdMediasPost(faqId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options);
|
|
892
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
893
|
+
},
|
|
894
|
+
/**
|
|
895
|
+
*
|
|
896
|
+
* @summary Update faq.
|
|
897
|
+
* @param {string} faqId
|
|
898
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
async apiV1FaqsFaqIdPut(faqId: string, updateFaqCommand?: UpdateFaqCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
|
|
903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options);
|
|
904
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @summary GetAll FaqTags.
|
|
909
|
+
* @param {string} faqId
|
|
910
|
+
* @param {string} [tagId]
|
|
911
|
+
* @param {number} [page]
|
|
912
|
+
* @param {number} [limit]
|
|
913
|
+
* @param {Date} [lastRetrieved]
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
async apiV1FaqsFaqIdTagsGet(faqId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqTagsModel>> {
|
|
918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdTagsGet(faqId, tagId, page, limit, lastRetrieved, options);
|
|
919
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @summary Create FaqTag.
|
|
924
|
+
* @param {string} faqId
|
|
925
|
+
* @param {CreateFaqTagCommand} [createFaqTagCommand]
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
async apiV1FaqsFaqIdTagsPost(faqId: string, createFaqTagCommand?: CreateFaqTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqTagModel>> {
|
|
930
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdTagsPost(faqId, createFaqTagCommand, options);
|
|
931
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
932
|
+
},
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @summary Delete FaqTag.
|
|
936
|
+
* @param {string} faqId
|
|
937
|
+
* @param {string} tagId
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
async apiV1FaqsFaqIdTagsTagIdDelete(faqId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
942
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdTagsTagIdDelete(faqId, tagId, options);
|
|
943
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
944
|
+
},
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @summary Get FaqTag.
|
|
948
|
+
* @param {string} faqId
|
|
949
|
+
* @param {string} tagId
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
async apiV1FaqsFaqIdTagsTagIdGet(faqId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqTagModel>> {
|
|
954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdTagsTagIdGet(faqId, tagId, options);
|
|
955
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
956
|
+
},
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @summary Get all Faqs.
|
|
960
|
+
* @param {string} [id]
|
|
961
|
+
* @param {string} [name]
|
|
962
|
+
* @param {string} [slug]
|
|
963
|
+
* @param {string} [categoryId]
|
|
964
|
+
* @param {string} [hospitalId]
|
|
965
|
+
* @param {string} [hospitalName]
|
|
966
|
+
* @param {string} [languageCode]
|
|
967
|
+
* @param {boolean} [showHidden]
|
|
968
|
+
* @param {boolean} [returnDefaultValue]
|
|
969
|
+
* @param {number} [page]
|
|
970
|
+
* @param {number} [limit]
|
|
971
|
+
* @param {Date} [lastRetrieved]
|
|
972
|
+
* @param {*} [options] Override http request option.
|
|
973
|
+
* @throws {RequiredError}
|
|
974
|
+
*/
|
|
975
|
+
async apiV1FaqsGet(id?: string, name?: string, slug?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqsModel>> {
|
|
976
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsGet(id, name, slug, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
977
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
978
|
+
},
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @summary Create a faq.
|
|
982
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
async apiV1FaqsPost(createFaqCommand?: CreateFaqCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
|
|
987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsPost(createFaqCommand, options);
|
|
988
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
989
|
+
},
|
|
990
|
+
/**
|
|
991
|
+
*
|
|
992
|
+
* @summary Get faq by slug.
|
|
993
|
+
* @param {string} slug
|
|
994
|
+
* @param {string} [languageCode]
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
async apiV1FaqsSlugGet(slug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FaqModel>> {
|
|
999
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsSlugGet(slug, languageCode, options);
|
|
1000
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1001
|
+
},
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* FaqsApi - factory interface
|
|
1007
|
+
* @export
|
|
1008
|
+
*/
|
|
1009
|
+
export const FaqsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1010
|
+
const localVarFp = FaqsApiFp(configuration)
|
|
1011
|
+
return {
|
|
1012
|
+
/**
|
|
1013
|
+
*
|
|
1014
|
+
* @summary Delete faq.
|
|
1015
|
+
* @param {string} faqId
|
|
1016
|
+
* @param {boolean} [forceDelete]
|
|
1017
|
+
* @param {boolean} [isPermanent]
|
|
1018
|
+
* @param {*} [options] Override http request option.
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
*/
|
|
1021
|
+
apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
1022
|
+
return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, isPermanent, options).then((request) => request(axios, basePath));
|
|
1023
|
+
},
|
|
1024
|
+
/**
|
|
1025
|
+
*
|
|
1026
|
+
* @summary Get faq.
|
|
1027
|
+
* @param {string} faqId
|
|
1028
|
+
* @param {string} [languageCode]
|
|
1029
|
+
* @param {boolean} [returnDefaultValue]
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<FaqModel> {
|
|
1034
|
+
return localVarFp.apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @summary Get all FaqMedias.
|
|
1039
|
+
* @param {string} faqId
|
|
1040
|
+
* @param {string} [id]
|
|
1041
|
+
* @param {MediaType} [mediaType]
|
|
1042
|
+
* @param {number} [page]
|
|
1043
|
+
* @param {number} [limit]
|
|
1044
|
+
* @param {Date} [lastRetrieved]
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
apiV1FaqsFaqIdMediasGet(faqId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
1049
|
+
return localVarFp.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1050
|
+
},
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @summary Delete FaqMedia
|
|
1054
|
+
* @param {string} faqId
|
|
1055
|
+
* @param {string} mediaId
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
apiV1FaqsFaqIdMediasMediaIdDelete(faqId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
|
|
1060
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then((request) => request(axios, basePath));
|
|
1061
|
+
},
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @summary Get FaqMedia.
|
|
1065
|
+
* @param {string} faqId
|
|
1066
|
+
* @param {string} mediaId
|
|
1067
|
+
* @param {*} [options] Override http request option.
|
|
1068
|
+
* @throws {RequiredError}
|
|
1069
|
+
*/
|
|
1070
|
+
apiV1FaqsFaqIdMediasMediaIdGet(faqId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
1071
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then((request) => request(axios, basePath));
|
|
1072
|
+
},
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @summary Update FaqMedia.
|
|
1076
|
+
* @param {string} faqId
|
|
1077
|
+
* @param {string} mediaId
|
|
1078
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
*/
|
|
1082
|
+
apiV1FaqsFaqIdMediasMediaIdPut(faqId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
1083
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
|
|
1084
|
+
},
|
|
1085
|
+
/**
|
|
1086
|
+
*
|
|
1087
|
+
* @summary Create FaqMedia.
|
|
1088
|
+
* @param {string} faqId
|
|
1089
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
*/
|
|
1093
|
+
apiV1FaqsFaqIdMediasPost(faqId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
1094
|
+
return localVarFp.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then((request) => request(axios, basePath));
|
|
1095
|
+
},
|
|
1096
|
+
/**
|
|
1097
|
+
*
|
|
1098
|
+
* @summary Update faq.
|
|
1099
|
+
* @param {string} faqId
|
|
1100
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
apiV1FaqsFaqIdPut(faqId: string, updateFaqCommand?: UpdateFaqCommand, options?: any): AxiosPromise<FaqModel> {
|
|
1105
|
+
return localVarFp.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then((request) => request(axios, basePath));
|
|
1106
|
+
},
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @summary GetAll FaqTags.
|
|
1110
|
+
* @param {string} faqId
|
|
1111
|
+
* @param {string} [tagId]
|
|
1112
|
+
* @param {number} [page]
|
|
1113
|
+
* @param {number} [limit]
|
|
1114
|
+
* @param {Date} [lastRetrieved]
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
*/
|
|
1118
|
+
apiV1FaqsFaqIdTagsGet(faqId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqTagsModel> {
|
|
1119
|
+
return localVarFp.apiV1FaqsFaqIdTagsGet(faqId, tagId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1120
|
+
},
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @summary Create FaqTag.
|
|
1124
|
+
* @param {string} faqId
|
|
1125
|
+
* @param {CreateFaqTagCommand} [createFaqTagCommand]
|
|
1126
|
+
* @param {*} [options] Override http request option.
|
|
1127
|
+
* @throws {RequiredError}
|
|
1128
|
+
*/
|
|
1129
|
+
apiV1FaqsFaqIdTagsPost(faqId: string, createFaqTagCommand?: CreateFaqTagCommand, options?: any): AxiosPromise<FaqTagModel> {
|
|
1130
|
+
return localVarFp.apiV1FaqsFaqIdTagsPost(faqId, createFaqTagCommand, options).then((request) => request(axios, basePath));
|
|
1131
|
+
},
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @summary Delete FaqTag.
|
|
1135
|
+
* @param {string} faqId
|
|
1136
|
+
* @param {string} tagId
|
|
1137
|
+
* @param {*} [options] Override http request option.
|
|
1138
|
+
* @throws {RequiredError}
|
|
1139
|
+
*/
|
|
1140
|
+
apiV1FaqsFaqIdTagsTagIdDelete(faqId: string, tagId: string, options?: any): AxiosPromise<boolean> {
|
|
1141
|
+
return localVarFp.apiV1FaqsFaqIdTagsTagIdDelete(faqId, tagId, options).then((request) => request(axios, basePath));
|
|
1142
|
+
},
|
|
1143
|
+
/**
|
|
1144
|
+
*
|
|
1145
|
+
* @summary Get FaqTag.
|
|
1146
|
+
* @param {string} faqId
|
|
1147
|
+
* @param {string} tagId
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
apiV1FaqsFaqIdTagsTagIdGet(faqId: string, tagId: string, options?: any): AxiosPromise<FaqTagModel> {
|
|
1152
|
+
return localVarFp.apiV1FaqsFaqIdTagsTagIdGet(faqId, tagId, options).then((request) => request(axios, basePath));
|
|
1153
|
+
},
|
|
1154
|
+
/**
|
|
1155
|
+
*
|
|
1156
|
+
* @summary Get all Faqs.
|
|
1157
|
+
* @param {string} [id]
|
|
1158
|
+
* @param {string} [name]
|
|
1159
|
+
* @param {string} [slug]
|
|
1160
|
+
* @param {string} [categoryId]
|
|
1161
|
+
* @param {string} [hospitalId]
|
|
1162
|
+
* @param {string} [hospitalName]
|
|
1163
|
+
* @param {string} [languageCode]
|
|
1164
|
+
* @param {boolean} [showHidden]
|
|
1165
|
+
* @param {boolean} [returnDefaultValue]
|
|
1166
|
+
* @param {number} [page]
|
|
1167
|
+
* @param {number} [limit]
|
|
1168
|
+
* @param {Date} [lastRetrieved]
|
|
1169
|
+
* @param {*} [options] Override http request option.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
*/
|
|
1172
|
+
apiV1FaqsGet(id?: string, name?: string, slug?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FaqsModel> {
|
|
1173
|
+
return localVarFp.apiV1FaqsGet(id, name, slug, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1174
|
+
},
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @summary Create a faq.
|
|
1178
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
apiV1FaqsPost(createFaqCommand?: CreateFaqCommand, options?: any): AxiosPromise<FaqModel> {
|
|
1183
|
+
return localVarFp.apiV1FaqsPost(createFaqCommand, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @summary Get faq by slug.
|
|
1188
|
+
* @param {string} slug
|
|
1189
|
+
* @param {string} [languageCode]
|
|
1190
|
+
* @param {*} [options] Override http request option.
|
|
1191
|
+
* @throws {RequiredError}
|
|
1192
|
+
*/
|
|
1193
|
+
apiV1FaqsSlugGet(slug: string, languageCode?: string, options?: any): AxiosPromise<FaqModel> {
|
|
1194
|
+
return localVarFp.apiV1FaqsSlugGet(slug, languageCode, options).then((request) => request(axios, basePath));
|
|
1195
|
+
},
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* FaqsApi - object-oriented interface
|
|
1201
|
+
* @export
|
|
1202
|
+
* @class FaqsApi
|
|
1203
|
+
* @extends {BaseAPI}
|
|
1204
|
+
*/
|
|
1205
|
+
export class FaqsApi extends BaseAPI {
|
|
1206
|
+
/**
|
|
1207
|
+
*
|
|
1208
|
+
* @summary Delete faq.
|
|
1209
|
+
* @param {string} faqId
|
|
1210
|
+
* @param {boolean} [forceDelete]
|
|
1211
|
+
* @param {boolean} [isPermanent]
|
|
1212
|
+
* @param {*} [options] Override http request option.
|
|
1213
|
+
* @throws {RequiredError}
|
|
1214
|
+
* @memberof FaqsApi
|
|
1215
|
+
*/
|
|
1216
|
+
public apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
1217
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @summary Get faq.
|
|
1223
|
+
* @param {string} faqId
|
|
1224
|
+
* @param {string} [languageCode]
|
|
1225
|
+
* @param {boolean} [returnDefaultValue]
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
* @memberof FaqsApi
|
|
1229
|
+
*/
|
|
1230
|
+
public apiV1FaqsFaqIdGet(faqId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
1231
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdGet(faqId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @summary Get all FaqMedias.
|
|
1237
|
+
* @param {string} faqId
|
|
1238
|
+
* @param {string} [id]
|
|
1239
|
+
* @param {MediaType} [mediaType]
|
|
1240
|
+
* @param {number} [page]
|
|
1241
|
+
* @param {number} [limit]
|
|
1242
|
+
* @param {Date} [lastRetrieved]
|
|
1243
|
+
* @param {*} [options] Override http request option.
|
|
1244
|
+
* @throws {RequiredError}
|
|
1245
|
+
* @memberof FaqsApi
|
|
1246
|
+
*/
|
|
1247
|
+
public apiV1FaqsFaqIdMediasGet(faqId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
1248
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
*
|
|
1253
|
+
* @summary Delete FaqMedia
|
|
1254
|
+
* @param {string} faqId
|
|
1255
|
+
* @param {string} mediaId
|
|
1256
|
+
* @param {*} [options] Override http request option.
|
|
1257
|
+
* @throws {RequiredError}
|
|
1258
|
+
* @memberof FaqsApi
|
|
1259
|
+
*/
|
|
1260
|
+
public apiV1FaqsFaqIdMediasMediaIdDelete(faqId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
1261
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @summary Get FaqMedia.
|
|
1267
|
+
* @param {string} faqId
|
|
1268
|
+
* @param {string} mediaId
|
|
1269
|
+
* @param {*} [options] Override http request option.
|
|
1270
|
+
* @throws {RequiredError}
|
|
1271
|
+
* @memberof FaqsApi
|
|
1272
|
+
*/
|
|
1273
|
+
public apiV1FaqsFaqIdMediasMediaIdGet(faqId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
1274
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @summary Update FaqMedia.
|
|
1280
|
+
* @param {string} faqId
|
|
1281
|
+
* @param {string} mediaId
|
|
1282
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
1283
|
+
* @param {*} [options] Override http request option.
|
|
1284
|
+
* @throws {RequiredError}
|
|
1285
|
+
* @memberof FaqsApi
|
|
1286
|
+
*/
|
|
1287
|
+
public apiV1FaqsFaqIdMediasMediaIdPut(faqId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
|
|
1288
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
*
|
|
1293
|
+
* @summary Create FaqMedia.
|
|
1294
|
+
* @param {string} faqId
|
|
1295
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
1296
|
+
* @param {*} [options] Override http request option.
|
|
1297
|
+
* @throws {RequiredError}
|
|
1298
|
+
* @memberof FaqsApi
|
|
1299
|
+
*/
|
|
1300
|
+
public apiV1FaqsFaqIdMediasPost(faqId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
|
|
1301
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
*
|
|
1306
|
+
* @summary Update faq.
|
|
1307
|
+
* @param {string} faqId
|
|
1308
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
* @memberof FaqsApi
|
|
1312
|
+
*/
|
|
1313
|
+
public apiV1FaqsFaqIdPut(faqId: string, updateFaqCommand?: UpdateFaqCommand, options?: AxiosRequestConfig) {
|
|
1314
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @summary GetAll FaqTags.
|
|
1320
|
+
* @param {string} faqId
|
|
1321
|
+
* @param {string} [tagId]
|
|
1322
|
+
* @param {number} [page]
|
|
1323
|
+
* @param {number} [limit]
|
|
1324
|
+
* @param {Date} [lastRetrieved]
|
|
1325
|
+
* @param {*} [options] Override http request option.
|
|
1326
|
+
* @throws {RequiredError}
|
|
1327
|
+
* @memberof FaqsApi
|
|
1328
|
+
*/
|
|
1329
|
+
public apiV1FaqsFaqIdTagsGet(faqId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
1330
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdTagsGet(faqId, tagId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
*
|
|
1335
|
+
* @summary Create FaqTag.
|
|
1336
|
+
* @param {string} faqId
|
|
1337
|
+
* @param {CreateFaqTagCommand} [createFaqTagCommand]
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
* @memberof FaqsApi
|
|
1341
|
+
*/
|
|
1342
|
+
public apiV1FaqsFaqIdTagsPost(faqId: string, createFaqTagCommand?: CreateFaqTagCommand, options?: AxiosRequestConfig) {
|
|
1343
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdTagsPost(faqId, createFaqTagCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @summary Delete FaqTag.
|
|
1349
|
+
* @param {string} faqId
|
|
1350
|
+
* @param {string} tagId
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
* @memberof FaqsApi
|
|
1354
|
+
*/
|
|
1355
|
+
public apiV1FaqsFaqIdTagsTagIdDelete(faqId: string, tagId: string, options?: AxiosRequestConfig) {
|
|
1356
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdTagsTagIdDelete(faqId, tagId, options).then((request) => request(this.axios, this.basePath));
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @summary Get FaqTag.
|
|
1362
|
+
* @param {string} faqId
|
|
1363
|
+
* @param {string} tagId
|
|
1364
|
+
* @param {*} [options] Override http request option.
|
|
1365
|
+
* @throws {RequiredError}
|
|
1366
|
+
* @memberof FaqsApi
|
|
1367
|
+
*/
|
|
1368
|
+
public apiV1FaqsFaqIdTagsTagIdGet(faqId: string, tagId: string, options?: AxiosRequestConfig) {
|
|
1369
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdTagsTagIdGet(faqId, tagId, options).then((request) => request(this.axios, this.basePath));
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @summary Get all Faqs.
|
|
1375
|
+
* @param {string} [id]
|
|
1376
|
+
* @param {string} [name]
|
|
1377
|
+
* @param {string} [slug]
|
|
1378
|
+
* @param {string} [categoryId]
|
|
1379
|
+
* @param {string} [hospitalId]
|
|
1380
|
+
* @param {string} [hospitalName]
|
|
1381
|
+
* @param {string} [languageCode]
|
|
1382
|
+
* @param {boolean} [showHidden]
|
|
1383
|
+
* @param {boolean} [returnDefaultValue]
|
|
1384
|
+
* @param {number} [page]
|
|
1385
|
+
* @param {number} [limit]
|
|
1386
|
+
* @param {Date} [lastRetrieved]
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
* @memberof FaqsApi
|
|
1390
|
+
*/
|
|
1391
|
+
public apiV1FaqsGet(id?: string, name?: string, slug?: string, categoryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
1392
|
+
return FaqsApiFp(this.configuration).apiV1FaqsGet(id, name, slug, categoryId, hospitalId, hospitalName, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @summary Create a faq.
|
|
1398
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
* @memberof FaqsApi
|
|
1402
|
+
*/
|
|
1403
|
+
public apiV1FaqsPost(createFaqCommand?: CreateFaqCommand, options?: AxiosRequestConfig) {
|
|
1404
|
+
return FaqsApiFp(this.configuration).apiV1FaqsPost(createFaqCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
*
|
|
1409
|
+
* @summary Get faq by slug.
|
|
1410
|
+
* @param {string} slug
|
|
1411
|
+
* @param {string} [languageCode]
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
* @memberof FaqsApi
|
|
1415
|
+
*/
|
|
1416
|
+
public apiV1FaqsSlugGet(slug: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
1417
|
+
return FaqsApiFp(this.configuration).apiV1FaqsSlugGet(slug, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
+
}
|
|
1419
|
+
}
|