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,1090 @@
|
|
|
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 { ContributorModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ContributorSnsHandlesModel } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ContributorsModel } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CreateContributorCommand } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { CreateContributorSnsHandleCommand } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ProblemDetails } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { SnsHandleModel } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { SnsType } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { UpdateContributorCommand } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { UpdateContributorSnsHandleCommand } from '../models';
|
|
43
|
+
/**
|
|
44
|
+
* ContributorsApi - axios parameter creator
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export const ContributorsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48
|
+
return {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Delete Contributor.
|
|
52
|
+
* @param {string} contributorId
|
|
53
|
+
* @param {boolean} [isPermanent]
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
apiV1ContributorsContributorIdDelete: async (contributorId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
59
|
+
assertParamExists('apiV1ContributorsContributorIdDelete', 'contributorId', contributorId)
|
|
60
|
+
const localVarPath = `/api/v1/contributors/{contributorId}`
|
|
61
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
62
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64
|
+
let baseOptions;
|
|
65
|
+
if (configuration) {
|
|
66
|
+
baseOptions = configuration.baseOptions;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
70
|
+
const localVarHeaderParameter = {} as any;
|
|
71
|
+
const localVarQueryParameter = {} as any;
|
|
72
|
+
|
|
73
|
+
// authentication oauth2 required
|
|
74
|
+
// oauth required
|
|
75
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
76
|
+
|
|
77
|
+
if (isPermanent !== undefined) {
|
|
78
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @summary Get Contributor.
|
|
95
|
+
* @param {string} contributorId
|
|
96
|
+
* @param {string} [languageCode]
|
|
97
|
+
* @param {boolean} [returnDefaultValue]
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
apiV1ContributorsContributorIdGet: async (contributorId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
103
|
+
assertParamExists('apiV1ContributorsContributorIdGet', 'contributorId', contributorId)
|
|
104
|
+
const localVarPath = `/api/v1/contributors/{contributorId}`
|
|
105
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
106
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
108
|
+
let baseOptions;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication oauth2 required
|
|
118
|
+
// oauth required
|
|
119
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
120
|
+
|
|
121
|
+
if (languageCode !== undefined) {
|
|
122
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (returnDefaultValue !== undefined) {
|
|
126
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
url: toPathString(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @summary Get all ContributorHandles.
|
|
143
|
+
* @param {string} contributorId
|
|
144
|
+
* @param {string} [contributorId2]
|
|
145
|
+
* @param {string} [id]
|
|
146
|
+
* @param {SnsType} [snsType]
|
|
147
|
+
* @param {string} [handle]
|
|
148
|
+
* @param {number} [page]
|
|
149
|
+
* @param {number} [limit]
|
|
150
|
+
* @param {Date} [lastRetrieved]
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
apiV1ContributorsContributorIdHandlesGet: async (contributorId: string, contributorId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
155
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
156
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesGet', 'contributorId', contributorId)
|
|
157
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles`
|
|
158
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
161
|
+
let baseOptions;
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
167
|
+
const localVarHeaderParameter = {} as any;
|
|
168
|
+
const localVarQueryParameter = {} as any;
|
|
169
|
+
|
|
170
|
+
// authentication oauth2 required
|
|
171
|
+
// oauth required
|
|
172
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
173
|
+
|
|
174
|
+
if (contributorId2 !== undefined) {
|
|
175
|
+
localVarQueryParameter['ContributorId'] = contributorId2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (id !== undefined) {
|
|
179
|
+
localVarQueryParameter['Id'] = id;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (snsType !== undefined) {
|
|
183
|
+
localVarQueryParameter['SnsType'] = snsType;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (handle !== undefined) {
|
|
187
|
+
localVarQueryParameter['Handle'] = handle;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (page !== undefined) {
|
|
191
|
+
localVarQueryParameter['page'] = page;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (limit !== undefined) {
|
|
195
|
+
localVarQueryParameter['limit'] = limit;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (lastRetrieved !== undefined) {
|
|
199
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
200
|
+
(lastRetrieved as any).toISOString() :
|
|
201
|
+
lastRetrieved;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
209
|
+
|
|
210
|
+
return {
|
|
211
|
+
url: toPathString(localVarUrlObj),
|
|
212
|
+
options: localVarRequestOptions,
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary Delete ContributorHandle.
|
|
218
|
+
* @param {string} contributorId
|
|
219
|
+
* @param {string} handleId
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
apiV1ContributorsContributorIdHandlesHandleIdDelete: async (contributorId: string, handleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
224
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
225
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdDelete', 'contributorId', contributorId)
|
|
226
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
227
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdDelete', 'handleId', handleId)
|
|
228
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles/{handleId}`
|
|
229
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
|
|
230
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
231
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
232
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
233
|
+
let baseOptions;
|
|
234
|
+
if (configuration) {
|
|
235
|
+
baseOptions = configuration.baseOptions;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
239
|
+
const localVarHeaderParameter = {} as any;
|
|
240
|
+
const localVarQueryParameter = {} as any;
|
|
241
|
+
|
|
242
|
+
// authentication oauth2 required
|
|
243
|
+
// oauth required
|
|
244
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
251
|
+
|
|
252
|
+
return {
|
|
253
|
+
url: toPathString(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary Get ContributorHandle.
|
|
260
|
+
* @param {string} contributorId
|
|
261
|
+
* @param {string} handleId
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiV1ContributorsContributorIdHandlesHandleIdGet: async (contributorId: string, handleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
266
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
267
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdGet', 'contributorId', contributorId)
|
|
268
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
269
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdGet', 'handleId', handleId)
|
|
270
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles/{handleId}`
|
|
271
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
|
|
272
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
275
|
+
let baseOptions;
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
281
|
+
const localVarHeaderParameter = {} as any;
|
|
282
|
+
const localVarQueryParameter = {} as any;
|
|
283
|
+
|
|
284
|
+
// authentication oauth2 required
|
|
285
|
+
// oauth required
|
|
286
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
293
|
+
|
|
294
|
+
return {
|
|
295
|
+
url: toPathString(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @summary Update ContributorHandle.
|
|
302
|
+
* @param {string} contributorId
|
|
303
|
+
* @param {string} handleId
|
|
304
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: async (contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
309
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
310
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId)
|
|
311
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
312
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId)
|
|
313
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles/{handleId}`
|
|
314
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
|
|
315
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
318
|
+
let baseOptions;
|
|
319
|
+
if (configuration) {
|
|
320
|
+
baseOptions = configuration.baseOptions;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
324
|
+
const localVarHeaderParameter = {} as any;
|
|
325
|
+
const localVarQueryParameter = {} as any;
|
|
326
|
+
|
|
327
|
+
// authentication oauth2 required
|
|
328
|
+
// oauth required
|
|
329
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
334
|
+
|
|
335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
338
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration)
|
|
339
|
+
|
|
340
|
+
return {
|
|
341
|
+
url: toPathString(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions,
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @summary Get ContributorHandle.
|
|
348
|
+
* @param {string} contributorId
|
|
349
|
+
* @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
apiV1ContributorsContributorIdHandlesPost: async (contributorId: string, createContributorSnsHandleCommand?: CreateContributorSnsHandleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
354
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
355
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesPost', 'contributorId', contributorId)
|
|
356
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles`
|
|
357
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
366
|
+
const localVarHeaderParameter = {} as any;
|
|
367
|
+
const localVarQueryParameter = {} as any;
|
|
368
|
+
|
|
369
|
+
// authentication oauth2 required
|
|
370
|
+
// oauth required
|
|
371
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
376
|
+
|
|
377
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
380
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContributorSnsHandleCommand, localVarRequestOptions, configuration)
|
|
381
|
+
|
|
382
|
+
return {
|
|
383
|
+
url: toPathString(localVarUrlObj),
|
|
384
|
+
options: localVarRequestOptions,
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @summary Update Contributor.
|
|
390
|
+
* @param {string} contributorId
|
|
391
|
+
* @param {UpdateContributorCommand} [updateContributorCommand]
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
apiV1ContributorsContributorIdPut: async (contributorId: string, updateContributorCommand?: UpdateContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
396
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
397
|
+
assertParamExists('apiV1ContributorsContributorIdPut', 'contributorId', contributorId)
|
|
398
|
+
const localVarPath = `/api/v1/contributors/{contributorId}`
|
|
399
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
402
|
+
let baseOptions;
|
|
403
|
+
if (configuration) {
|
|
404
|
+
baseOptions = configuration.baseOptions;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
408
|
+
const localVarHeaderParameter = {} as any;
|
|
409
|
+
const localVarQueryParameter = {} as any;
|
|
410
|
+
|
|
411
|
+
// authentication oauth2 required
|
|
412
|
+
// oauth required
|
|
413
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
418
|
+
|
|
419
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
422
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContributorCommand, localVarRequestOptions, configuration)
|
|
423
|
+
|
|
424
|
+
return {
|
|
425
|
+
url: toPathString(localVarUrlObj),
|
|
426
|
+
options: localVarRequestOptions,
|
|
427
|
+
};
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @summary Get all Contributors.
|
|
432
|
+
* @param {string} [id]
|
|
433
|
+
* @param {string} [name]
|
|
434
|
+
* @param {string} [email]
|
|
435
|
+
* @param {string} [website]
|
|
436
|
+
* @param {string} [hospitalId]
|
|
437
|
+
* @param {boolean} [interviewerOnly]
|
|
438
|
+
* @param {boolean} [showHidden]
|
|
439
|
+
* @param {string} [languageCode]
|
|
440
|
+
* @param {boolean} [returnDefaultValue]
|
|
441
|
+
* @param {number} [page]
|
|
442
|
+
* @param {number} [limit]
|
|
443
|
+
* @param {Date} [lastRetrieved]
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
apiV1ContributorsGet: async (id?: string, name?: string, email?: string, website?: string, hospitalId?: string, interviewerOnly?: boolean, showHidden?: boolean, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
448
|
+
const localVarPath = `/api/v1/contributors`;
|
|
449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
450
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
451
|
+
let baseOptions;
|
|
452
|
+
if (configuration) {
|
|
453
|
+
baseOptions = configuration.baseOptions;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
457
|
+
const localVarHeaderParameter = {} as any;
|
|
458
|
+
const localVarQueryParameter = {} as any;
|
|
459
|
+
|
|
460
|
+
// authentication oauth2 required
|
|
461
|
+
// oauth required
|
|
462
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
463
|
+
|
|
464
|
+
if (id !== undefined) {
|
|
465
|
+
localVarQueryParameter['Id'] = id;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (name !== undefined) {
|
|
469
|
+
localVarQueryParameter['Name'] = name;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (email !== undefined) {
|
|
473
|
+
localVarQueryParameter['Email'] = email;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (website !== undefined) {
|
|
477
|
+
localVarQueryParameter['Website'] = website;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (hospitalId !== undefined) {
|
|
481
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
if (interviewerOnly !== undefined) {
|
|
485
|
+
localVarQueryParameter['InterviewerOnly'] = interviewerOnly;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (showHidden !== undefined) {
|
|
489
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (languageCode !== undefined) {
|
|
493
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (returnDefaultValue !== undefined) {
|
|
497
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (page !== undefined) {
|
|
501
|
+
localVarQueryParameter['page'] = page;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (limit !== undefined) {
|
|
505
|
+
localVarQueryParameter['limit'] = limit;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (lastRetrieved !== undefined) {
|
|
509
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
510
|
+
(lastRetrieved as any).toISOString() :
|
|
511
|
+
lastRetrieved;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
518
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
519
|
+
|
|
520
|
+
return {
|
|
521
|
+
url: toPathString(localVarUrlObj),
|
|
522
|
+
options: localVarRequestOptions,
|
|
523
|
+
};
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @summary Create a Contributor.
|
|
528
|
+
* @param {CreateContributorCommand} [createContributorCommand]
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
apiV1ContributorsPost: async (createContributorCommand?: CreateContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
533
|
+
const localVarPath = `/api/v1/contributors`;
|
|
534
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
535
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
536
|
+
let baseOptions;
|
|
537
|
+
if (configuration) {
|
|
538
|
+
baseOptions = configuration.baseOptions;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
542
|
+
const localVarHeaderParameter = {} as any;
|
|
543
|
+
const localVarQueryParameter = {} as any;
|
|
544
|
+
|
|
545
|
+
// authentication oauth2 required
|
|
546
|
+
// oauth required
|
|
547
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
552
|
+
|
|
553
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
555
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
556
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContributorCommand, localVarRequestOptions, configuration)
|
|
557
|
+
|
|
558
|
+
return {
|
|
559
|
+
url: toPathString(localVarUrlObj),
|
|
560
|
+
options: localVarRequestOptions,
|
|
561
|
+
};
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @summary Get Contributor by slug.
|
|
566
|
+
* @param {string} slug
|
|
567
|
+
* @param {string} [languageCode]
|
|
568
|
+
* @param {boolean} [returnDefaultValue]
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
apiV1ContributorsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
573
|
+
// verify required parameter 'slug' is not null or undefined
|
|
574
|
+
assertParamExists('apiV1ContributorsSlugGet', 'slug', slug)
|
|
575
|
+
const localVarPath = `/api/v1/contributors/{slug}`
|
|
576
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
578
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
579
|
+
let baseOptions;
|
|
580
|
+
if (configuration) {
|
|
581
|
+
baseOptions = configuration.baseOptions;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
585
|
+
const localVarHeaderParameter = {} as any;
|
|
586
|
+
const localVarQueryParameter = {} as any;
|
|
587
|
+
|
|
588
|
+
// authentication oauth2 required
|
|
589
|
+
// oauth required
|
|
590
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
591
|
+
|
|
592
|
+
if (languageCode !== undefined) {
|
|
593
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (returnDefaultValue !== undefined) {
|
|
597
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
603
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
604
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
605
|
+
|
|
606
|
+
return {
|
|
607
|
+
url: toPathString(localVarUrlObj),
|
|
608
|
+
options: localVarRequestOptions,
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* ContributorsApi - functional programming interface
|
|
616
|
+
* @export
|
|
617
|
+
*/
|
|
618
|
+
export const ContributorsApiFp = function(configuration?: Configuration) {
|
|
619
|
+
const localVarAxiosParamCreator = ContributorsApiAxiosParamCreator(configuration)
|
|
620
|
+
return {
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @summary Delete Contributor.
|
|
624
|
+
* @param {string} contributorId
|
|
625
|
+
* @param {boolean} [isPermanent]
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
async apiV1ContributorsContributorIdDelete(contributorId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
630
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdDelete(contributorId, isPermanent, options);
|
|
631
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
632
|
+
},
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @summary Get Contributor.
|
|
636
|
+
* @param {string} contributorId
|
|
637
|
+
* @param {string} [languageCode]
|
|
638
|
+
* @param {boolean} [returnDefaultValue]
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
async apiV1ContributorsContributorIdGet(contributorId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdGet(contributorId, languageCode, returnDefaultValue, options);
|
|
644
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @summary Get all ContributorHandles.
|
|
649
|
+
* @param {string} contributorId
|
|
650
|
+
* @param {string} [contributorId2]
|
|
651
|
+
* @param {string} [id]
|
|
652
|
+
* @param {SnsType} [snsType]
|
|
653
|
+
* @param {string} [handle]
|
|
654
|
+
* @param {number} [page]
|
|
655
|
+
* @param {number} [limit]
|
|
656
|
+
* @param {Date} [lastRetrieved]
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
async apiV1ContributorsContributorIdHandlesGet(contributorId: string, contributorId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorSnsHandlesModel>> {
|
|
661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesGet(contributorId, contributorId2, id, snsType, handle, page, limit, lastRetrieved, options);
|
|
662
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @summary Delete ContributorHandle.
|
|
667
|
+
* @param {string} contributorId
|
|
668
|
+
* @param {string} handleId
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
async apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId: string, handleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId, handleId, options);
|
|
674
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @summary Get ContributorHandle.
|
|
679
|
+
* @param {string} contributorId
|
|
680
|
+
* @param {string} handleId
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
async apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId: string, handleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options);
|
|
686
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @summary Update ContributorHandle.
|
|
691
|
+
* @param {string} contributorId
|
|
692
|
+
* @param {string} handleId
|
|
693
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
async apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options);
|
|
699
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Get ContributorHandle.
|
|
704
|
+
* @param {string} contributorId
|
|
705
|
+
* @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
async apiV1ContributorsContributorIdHandlesPost(contributorId: string, createContributorSnsHandleCommand?: CreateContributorSnsHandleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
710
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesPost(contributorId, createContributorSnsHandleCommand, options);
|
|
711
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
712
|
+
},
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @summary Update Contributor.
|
|
716
|
+
* @param {string} contributorId
|
|
717
|
+
* @param {UpdateContributorCommand} [updateContributorCommand]
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
async apiV1ContributorsContributorIdPut(contributorId: string, updateContributorCommand?: UpdateContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdPut(contributorId, updateContributorCommand, options);
|
|
723
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
724
|
+
},
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @summary Get all Contributors.
|
|
728
|
+
* @param {string} [id]
|
|
729
|
+
* @param {string} [name]
|
|
730
|
+
* @param {string} [email]
|
|
731
|
+
* @param {string} [website]
|
|
732
|
+
* @param {string} [hospitalId]
|
|
733
|
+
* @param {boolean} [interviewerOnly]
|
|
734
|
+
* @param {boolean} [showHidden]
|
|
735
|
+
* @param {string} [languageCode]
|
|
736
|
+
* @param {boolean} [returnDefaultValue]
|
|
737
|
+
* @param {number} [page]
|
|
738
|
+
* @param {number} [limit]
|
|
739
|
+
* @param {Date} [lastRetrieved]
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
async apiV1ContributorsGet(id?: string, name?: string, email?: string, website?: string, hospitalId?: string, interviewerOnly?: boolean, showHidden?: boolean, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorsModel>> {
|
|
744
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsGet(id, name, email, website, hospitalId, interviewerOnly, showHidden, languageCode, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
745
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
746
|
+
},
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @summary Create a Contributor.
|
|
750
|
+
* @param {CreateContributorCommand} [createContributorCommand]
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
async apiV1ContributorsPost(createContributorCommand?: CreateContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsPost(createContributorCommand, options);
|
|
756
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
*
|
|
760
|
+
* @summary Get Contributor by slug.
|
|
761
|
+
* @param {string} slug
|
|
762
|
+
* @param {string} [languageCode]
|
|
763
|
+
* @param {boolean} [returnDefaultValue]
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
async apiV1ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
768
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
769
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
770
|
+
},
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* ContributorsApi - factory interface
|
|
776
|
+
* @export
|
|
777
|
+
*/
|
|
778
|
+
export const ContributorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
779
|
+
const localVarFp = ContributorsApiFp(configuration)
|
|
780
|
+
return {
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @summary Delete Contributor.
|
|
784
|
+
* @param {string} contributorId
|
|
785
|
+
* @param {boolean} [isPermanent]
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
*/
|
|
789
|
+
apiV1ContributorsContributorIdDelete(contributorId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
790
|
+
return localVarFp.apiV1ContributorsContributorIdDelete(contributorId, isPermanent, options).then((request) => request(axios, basePath));
|
|
791
|
+
},
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @summary Get Contributor.
|
|
795
|
+
* @param {string} contributorId
|
|
796
|
+
* @param {string} [languageCode]
|
|
797
|
+
* @param {boolean} [returnDefaultValue]
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
apiV1ContributorsContributorIdGet(contributorId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ContributorModel> {
|
|
802
|
+
return localVarFp.apiV1ContributorsContributorIdGet(contributorId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
803
|
+
},
|
|
804
|
+
/**
|
|
805
|
+
*
|
|
806
|
+
* @summary Get all ContributorHandles.
|
|
807
|
+
* @param {string} contributorId
|
|
808
|
+
* @param {string} [contributorId2]
|
|
809
|
+
* @param {string} [id]
|
|
810
|
+
* @param {SnsType} [snsType]
|
|
811
|
+
* @param {string} [handle]
|
|
812
|
+
* @param {number} [page]
|
|
813
|
+
* @param {number} [limit]
|
|
814
|
+
* @param {Date} [lastRetrieved]
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
apiV1ContributorsContributorIdHandlesGet(contributorId: string, contributorId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ContributorSnsHandlesModel> {
|
|
819
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesGet(contributorId, contributorId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @summary Delete ContributorHandle.
|
|
824
|
+
* @param {string} contributorId
|
|
825
|
+
* @param {string} handleId
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId: string, handleId: string, options?: any): AxiosPromise<boolean> {
|
|
830
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId, handleId, options).then((request) => request(axios, basePath));
|
|
831
|
+
},
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @summary Get ContributorHandle.
|
|
835
|
+
* @param {string} contributorId
|
|
836
|
+
* @param {string} handleId
|
|
837
|
+
* @param {*} [options] Override http request option.
|
|
838
|
+
* @throws {RequiredError}
|
|
839
|
+
*/
|
|
840
|
+
apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
|
|
841
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(axios, basePath));
|
|
842
|
+
},
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @summary Update ContributorHandle.
|
|
846
|
+
* @param {string} contributorId
|
|
847
|
+
* @param {string} handleId
|
|
848
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: any): AxiosPromise<SnsHandleModel> {
|
|
853
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(axios, basePath));
|
|
854
|
+
},
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @summary Get ContributorHandle.
|
|
858
|
+
* @param {string} contributorId
|
|
859
|
+
* @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
|
|
860
|
+
* @param {*} [options] Override http request option.
|
|
861
|
+
* @throws {RequiredError}
|
|
862
|
+
*/
|
|
863
|
+
apiV1ContributorsContributorIdHandlesPost(contributorId: string, createContributorSnsHandleCommand?: CreateContributorSnsHandleCommand, options?: any): AxiosPromise<SnsHandleModel> {
|
|
864
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesPost(contributorId, createContributorSnsHandleCommand, options).then((request) => request(axios, basePath));
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary Update Contributor.
|
|
869
|
+
* @param {string} contributorId
|
|
870
|
+
* @param {UpdateContributorCommand} [updateContributorCommand]
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
apiV1ContributorsContributorIdPut(contributorId: string, updateContributorCommand?: UpdateContributorCommand, options?: any): AxiosPromise<ContributorModel> {
|
|
875
|
+
return localVarFp.apiV1ContributorsContributorIdPut(contributorId, updateContributorCommand, options).then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @summary Get all Contributors.
|
|
880
|
+
* @param {string} [id]
|
|
881
|
+
* @param {string} [name]
|
|
882
|
+
* @param {string} [email]
|
|
883
|
+
* @param {string} [website]
|
|
884
|
+
* @param {string} [hospitalId]
|
|
885
|
+
* @param {boolean} [interviewerOnly]
|
|
886
|
+
* @param {boolean} [showHidden]
|
|
887
|
+
* @param {string} [languageCode]
|
|
888
|
+
* @param {boolean} [returnDefaultValue]
|
|
889
|
+
* @param {number} [page]
|
|
890
|
+
* @param {number} [limit]
|
|
891
|
+
* @param {Date} [lastRetrieved]
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
*/
|
|
895
|
+
apiV1ContributorsGet(id?: string, name?: string, email?: string, website?: string, hospitalId?: string, interviewerOnly?: boolean, showHidden?: boolean, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ContributorsModel> {
|
|
896
|
+
return localVarFp.apiV1ContributorsGet(id, name, email, website, hospitalId, interviewerOnly, showHidden, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @summary Create a Contributor.
|
|
901
|
+
* @param {CreateContributorCommand} [createContributorCommand]
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
apiV1ContributorsPost(createContributorCommand?: CreateContributorCommand, options?: any): AxiosPromise<ContributorModel> {
|
|
906
|
+
return localVarFp.apiV1ContributorsPost(createContributorCommand, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary Get Contributor by slug.
|
|
911
|
+
* @param {string} slug
|
|
912
|
+
* @param {string} [languageCode]
|
|
913
|
+
* @param {boolean} [returnDefaultValue]
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
apiV1ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ContributorModel> {
|
|
918
|
+
return localVarFp.apiV1ContributorsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* ContributorsApi - object-oriented interface
|
|
925
|
+
* @export
|
|
926
|
+
* @class ContributorsApi
|
|
927
|
+
* @extends {BaseAPI}
|
|
928
|
+
*/
|
|
929
|
+
export class ContributorsApi extends BaseAPI {
|
|
930
|
+
/**
|
|
931
|
+
*
|
|
932
|
+
* @summary Delete Contributor.
|
|
933
|
+
* @param {string} contributorId
|
|
934
|
+
* @param {boolean} [isPermanent]
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
* @memberof ContributorsApi
|
|
938
|
+
*/
|
|
939
|
+
public apiV1ContributorsContributorIdDelete(contributorId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
|
|
940
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdDelete(contributorId, isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @summary Get Contributor.
|
|
946
|
+
* @param {string} contributorId
|
|
947
|
+
* @param {string} [languageCode]
|
|
948
|
+
* @param {boolean} [returnDefaultValue]
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
* @memberof ContributorsApi
|
|
952
|
+
*/
|
|
953
|
+
public apiV1ContributorsContributorIdGet(contributorId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
954
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdGet(contributorId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @summary Get all ContributorHandles.
|
|
960
|
+
* @param {string} contributorId
|
|
961
|
+
* @param {string} [contributorId2]
|
|
962
|
+
* @param {string} [id]
|
|
963
|
+
* @param {SnsType} [snsType]
|
|
964
|
+
* @param {string} [handle]
|
|
965
|
+
* @param {number} [page]
|
|
966
|
+
* @param {number} [limit]
|
|
967
|
+
* @param {Date} [lastRetrieved]
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
* @memberof ContributorsApi
|
|
971
|
+
*/
|
|
972
|
+
public apiV1ContributorsContributorIdHandlesGet(contributorId: string, contributorId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
973
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesGet(contributorId, contributorId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
*
|
|
978
|
+
* @summary Delete ContributorHandle.
|
|
979
|
+
* @param {string} contributorId
|
|
980
|
+
* @param {string} handleId
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
* @memberof ContributorsApi
|
|
984
|
+
*/
|
|
985
|
+
public apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId: string, handleId: string, options?: AxiosRequestConfig) {
|
|
986
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdDelete(contributorId, handleId, options).then((request) => request(this.axios, this.basePath));
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
*
|
|
991
|
+
* @summary Get ContributorHandle.
|
|
992
|
+
* @param {string} contributorId
|
|
993
|
+
* @param {string} handleId
|
|
994
|
+
* @param {*} [options] Override http request option.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
* @memberof ContributorsApi
|
|
997
|
+
*/
|
|
998
|
+
public apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId: string, handleId: string, options?: AxiosRequestConfig) {
|
|
999
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(this.axios, this.basePath));
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @summary Update ContributorHandle.
|
|
1005
|
+
* @param {string} contributorId
|
|
1006
|
+
* @param {string} handleId
|
|
1007
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
1008
|
+
* @param {*} [options] Override http request option.
|
|
1009
|
+
* @throws {RequiredError}
|
|
1010
|
+
* @memberof ContributorsApi
|
|
1011
|
+
*/
|
|
1012
|
+
public apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig) {
|
|
1013
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @summary Get ContributorHandle.
|
|
1019
|
+
* @param {string} contributorId
|
|
1020
|
+
* @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
* @memberof ContributorsApi
|
|
1024
|
+
*/
|
|
1025
|
+
public apiV1ContributorsContributorIdHandlesPost(contributorId: string, createContributorSnsHandleCommand?: CreateContributorSnsHandleCommand, options?: AxiosRequestConfig) {
|
|
1026
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesPost(contributorId, createContributorSnsHandleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @summary Update Contributor.
|
|
1032
|
+
* @param {string} contributorId
|
|
1033
|
+
* @param {UpdateContributorCommand} [updateContributorCommand]
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
* @memberof ContributorsApi
|
|
1037
|
+
*/
|
|
1038
|
+
public apiV1ContributorsContributorIdPut(contributorId: string, updateContributorCommand?: UpdateContributorCommand, options?: AxiosRequestConfig) {
|
|
1039
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdPut(contributorId, updateContributorCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @summary Get all Contributors.
|
|
1045
|
+
* @param {string} [id]
|
|
1046
|
+
* @param {string} [name]
|
|
1047
|
+
* @param {string} [email]
|
|
1048
|
+
* @param {string} [website]
|
|
1049
|
+
* @param {string} [hospitalId]
|
|
1050
|
+
* @param {boolean} [interviewerOnly]
|
|
1051
|
+
* @param {boolean} [showHidden]
|
|
1052
|
+
* @param {string} [languageCode]
|
|
1053
|
+
* @param {boolean} [returnDefaultValue]
|
|
1054
|
+
* @param {number} [page]
|
|
1055
|
+
* @param {number} [limit]
|
|
1056
|
+
* @param {Date} [lastRetrieved]
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
* @memberof ContributorsApi
|
|
1060
|
+
*/
|
|
1061
|
+
public apiV1ContributorsGet(id?: string, name?: string, email?: string, website?: string, hospitalId?: string, interviewerOnly?: boolean, showHidden?: boolean, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
1062
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsGet(id, name, email, website, hospitalId, interviewerOnly, showHidden, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary Create a Contributor.
|
|
1068
|
+
* @param {CreateContributorCommand} [createContributorCommand]
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
* @memberof ContributorsApi
|
|
1072
|
+
*/
|
|
1073
|
+
public apiV1ContributorsPost(createContributorCommand?: CreateContributorCommand, options?: AxiosRequestConfig) {
|
|
1074
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsPost(createContributorCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @summary Get Contributor by slug.
|
|
1080
|
+
* @param {string} slug
|
|
1081
|
+
* @param {string} [languageCode]
|
|
1082
|
+
* @param {boolean} [returnDefaultValue]
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
* @memberof ContributorsApi
|
|
1086
|
+
*/
|
|
1087
|
+
public apiV1ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
1088
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1089
|
+
}
|
|
1090
|
+
}
|