ch-admin-api-client-typescript 2.1.2 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +1204 -115
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1861 -204
- package/package.json +1 -1
- package/src/api.ts +2074 -255
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -193,6 +193,33 @@ var MediaType;
|
|
|
193
193
|
MediaType["Youtube"] = "Youtube";
|
|
194
194
|
MediaType["Document"] = "Document";
|
|
195
195
|
})(MediaType = exports.MediaType || (exports.MediaType = {}));
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @export
|
|
199
|
+
* @enum {string}
|
|
200
|
+
*/
|
|
201
|
+
var NotificationCode;
|
|
202
|
+
(function (NotificationCode) {
|
|
203
|
+
NotificationCode["WelcomeEmail"] = "WelcomeEmail";
|
|
204
|
+
NotificationCode["DirectMessageSent"] = "DirectMessageSent";
|
|
205
|
+
NotificationCode["BookingNew"] = "BookingNew";
|
|
206
|
+
NotificationCode["BookingUpdated"] = "BookingUpdated";
|
|
207
|
+
NotificationCode["BookingRejected"] = "BookingRejected";
|
|
208
|
+
NotificationCode["BookingApproved"] = "BookingApproved";
|
|
209
|
+
NotificationCode["BookingPaid"] = "BookingPaid";
|
|
210
|
+
NotificationCode["BookingCanceled"] = "BookingCanceled";
|
|
211
|
+
NotificationCode["BookingRefundRequested"] = "BookingRefundRequested";
|
|
212
|
+
NotificationCode["BookingRefunded"] = "BookingRefunded";
|
|
213
|
+
NotificationCode["ConsultationNew"] = "ConsultationNew";
|
|
214
|
+
NotificationCode["ConsultationUpdated"] = "ConsultationUpdated";
|
|
215
|
+
NotificationCode["ConsultationRejected"] = "ConsultationRejected";
|
|
216
|
+
NotificationCode["ConsultationApproved"] = "ConsultationApproved";
|
|
217
|
+
NotificationCode["ConsultationPaid"] = "ConsultationPaid";
|
|
218
|
+
NotificationCode["ConsultationCanceled"] = "ConsultationCanceled";
|
|
219
|
+
NotificationCode["ConsultationRefundRequested"] = "ConsultationRefundRequested";
|
|
220
|
+
NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
|
|
221
|
+
NotificationCode["ConsultationReady"] = "ConsultationReady";
|
|
222
|
+
})(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
|
|
196
223
|
/**
|
|
197
224
|
*
|
|
198
225
|
* @export
|
|
@@ -1014,7 +1041,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1014
1041
|
*
|
|
1015
1042
|
* @summary GetAll ArticleContributors.
|
|
1016
1043
|
* @param {string} articleId
|
|
1017
|
-
* @param {string} [articleId2]
|
|
1018
1044
|
* @param {string} [articleName]
|
|
1019
1045
|
* @param {string} [contributorId]
|
|
1020
1046
|
* @param {string} [contributorName]
|
|
@@ -1028,7 +1054,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1028
1054
|
* @param {*} [options] Override http request option.
|
|
1029
1055
|
* @throws {RequiredError}
|
|
1030
1056
|
*/
|
|
1031
|
-
apiV1ArticlesArticleIdContributorsGet: function (articleId,
|
|
1057
|
+
apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
1032
1058
|
if (options === void 0) { options = {}; }
|
|
1033
1059
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1034
1060
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1053,9 +1079,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1053
1079
|
// authentication oauth2 required
|
|
1054
1080
|
// oauth required
|
|
1055
1081
|
_a.sent();
|
|
1056
|
-
if (articleId2 !== undefined) {
|
|
1057
|
-
localVarQueryParameter['ArticleId'] = articleId2;
|
|
1058
|
-
}
|
|
1059
1082
|
if (articleName !== undefined) {
|
|
1060
1083
|
localVarQueryParameter['ArticleName'] = articleName;
|
|
1061
1084
|
}
|
|
@@ -1787,7 +1810,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1787
1810
|
*
|
|
1788
1811
|
* @summary GetAll ArticleContributors.
|
|
1789
1812
|
* @param {string} articleId
|
|
1790
|
-
* @param {string} [articleId2]
|
|
1791
1813
|
* @param {string} [articleName]
|
|
1792
1814
|
* @param {string} [contributorId]
|
|
1793
1815
|
* @param {string} [contributorName]
|
|
@@ -1801,7 +1823,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1801
1823
|
* @param {*} [options] Override http request option.
|
|
1802
1824
|
* @throws {RequiredError}
|
|
1803
1825
|
*/
|
|
1804
|
-
apiV1ArticlesArticleIdTagsGet: function (articleId,
|
|
1826
|
+
apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
1805
1827
|
if (options === void 0) { options = {}; }
|
|
1806
1828
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1807
1829
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1826,9 +1848,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1826
1848
|
// authentication oauth2 required
|
|
1827
1849
|
// oauth required
|
|
1828
1850
|
_a.sent();
|
|
1829
|
-
if (articleId2 !== undefined) {
|
|
1830
|
-
localVarQueryParameter['ArticleId'] = articleId2;
|
|
1831
|
-
}
|
|
1832
1851
|
if (articleName !== undefined) {
|
|
1833
1852
|
localVarQueryParameter['ArticleName'] = articleName;
|
|
1834
1853
|
}
|
|
@@ -2298,7 +2317,6 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2298
2317
|
*
|
|
2299
2318
|
* @summary GetAll ArticleContributors.
|
|
2300
2319
|
* @param {string} articleId
|
|
2301
|
-
* @param {string} [articleId2]
|
|
2302
2320
|
* @param {string} [articleName]
|
|
2303
2321
|
* @param {string} [contributorId]
|
|
2304
2322
|
* @param {string} [contributorName]
|
|
@@ -2312,12 +2330,12 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2312
2330
|
* @param {*} [options] Override http request option.
|
|
2313
2331
|
* @throws {RequiredError}
|
|
2314
2332
|
*/
|
|
2315
|
-
apiV1ArticlesArticleIdContributorsGet: function (articleId,
|
|
2333
|
+
apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
2316
2334
|
return __awaiter(this, void 0, void 0, function () {
|
|
2317
2335
|
var localVarAxiosArgs;
|
|
2318
2336
|
return __generator(this, function (_a) {
|
|
2319
2337
|
switch (_a.label) {
|
|
2320
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
2338
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
|
|
2321
2339
|
case 1:
|
|
2322
2340
|
localVarAxiosArgs = _a.sent();
|
|
2323
2341
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2630,7 +2648,6 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2630
2648
|
*
|
|
2631
2649
|
* @summary GetAll ArticleContributors.
|
|
2632
2650
|
* @param {string} articleId
|
|
2633
|
-
* @param {string} [articleId2]
|
|
2634
2651
|
* @param {string} [articleName]
|
|
2635
2652
|
* @param {string} [contributorId]
|
|
2636
2653
|
* @param {string} [contributorName]
|
|
@@ -2644,12 +2661,12 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2644
2661
|
* @param {*} [options] Override http request option.
|
|
2645
2662
|
* @throws {RequiredError}
|
|
2646
2663
|
*/
|
|
2647
|
-
apiV1ArticlesArticleIdTagsGet: function (articleId,
|
|
2664
|
+
apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
2648
2665
|
return __awaiter(this, void 0, void 0, function () {
|
|
2649
2666
|
var localVarAxiosArgs;
|
|
2650
2667
|
return __generator(this, function (_a) {
|
|
2651
2668
|
switch (_a.label) {
|
|
2652
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId,
|
|
2669
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
|
|
2653
2670
|
case 1:
|
|
2654
2671
|
localVarAxiosArgs = _a.sent();
|
|
2655
2672
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2846,7 +2863,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
2846
2863
|
*
|
|
2847
2864
|
* @summary GetAll ArticleContributors.
|
|
2848
2865
|
* @param {string} articleId
|
|
2849
|
-
* @param {string} [articleId2]
|
|
2850
2866
|
* @param {string} [articleName]
|
|
2851
2867
|
* @param {string} [contributorId]
|
|
2852
2868
|
* @param {string} [contributorName]
|
|
@@ -2860,8 +2876,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
2860
2876
|
* @param {*} [options] Override http request option.
|
|
2861
2877
|
* @throws {RequiredError}
|
|
2862
2878
|
*/
|
|
2863
|
-
apiV1ArticlesArticleIdContributorsGet: function (articleId,
|
|
2864
|
-
return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
2879
|
+
apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
2880
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2865
2881
|
},
|
|
2866
2882
|
/**
|
|
2867
2883
|
*
|
|
@@ -3028,7 +3044,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3028
3044
|
*
|
|
3029
3045
|
* @summary GetAll ArticleContributors.
|
|
3030
3046
|
* @param {string} articleId
|
|
3031
|
-
* @param {string} [articleId2]
|
|
3032
3047
|
* @param {string} [articleName]
|
|
3033
3048
|
* @param {string} [contributorId]
|
|
3034
3049
|
* @param {string} [contributorName]
|
|
@@ -3042,8 +3057,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3042
3057
|
* @param {*} [options] Override http request option.
|
|
3043
3058
|
* @throws {RequiredError}
|
|
3044
3059
|
*/
|
|
3045
|
-
apiV1ArticlesArticleIdTagsGet: function (articleId,
|
|
3046
|
-
return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId,
|
|
3060
|
+
apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
3061
|
+
return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3047
3062
|
},
|
|
3048
3063
|
/**
|
|
3049
3064
|
*
|
|
@@ -3184,7 +3199,6 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3184
3199
|
*
|
|
3185
3200
|
* @summary GetAll ArticleContributors.
|
|
3186
3201
|
* @param {string} articleId
|
|
3187
|
-
* @param {string} [articleId2]
|
|
3188
3202
|
* @param {string} [articleName]
|
|
3189
3203
|
* @param {string} [contributorId]
|
|
3190
3204
|
* @param {string} [contributorName]
|
|
@@ -3199,9 +3213,9 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3199
3213
|
* @throws {RequiredError}
|
|
3200
3214
|
* @memberof ArticlesApi
|
|
3201
3215
|
*/
|
|
3202
|
-
ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId,
|
|
3216
|
+
ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
3203
3217
|
var _this = this;
|
|
3204
|
-
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
3218
|
+
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3205
3219
|
};
|
|
3206
3220
|
/**
|
|
3207
3221
|
*
|
|
@@ -3396,7 +3410,6 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3396
3410
|
*
|
|
3397
3411
|
* @summary GetAll ArticleContributors.
|
|
3398
3412
|
* @param {string} articleId
|
|
3399
|
-
* @param {string} [articleId2]
|
|
3400
3413
|
* @param {string} [articleName]
|
|
3401
3414
|
* @param {string} [contributorId]
|
|
3402
3415
|
* @param {string} [contributorName]
|
|
@@ -3411,9 +3424,9 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3411
3424
|
* @throws {RequiredError}
|
|
3412
3425
|
* @memberof ArticlesApi
|
|
3413
3426
|
*/
|
|
3414
|
-
ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId,
|
|
3427
|
+
ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
|
|
3415
3428
|
var _this = this;
|
|
3416
|
-
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId,
|
|
3429
|
+
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3417
3430
|
};
|
|
3418
3431
|
/**
|
|
3419
3432
|
*
|
|
@@ -4997,6 +5010,56 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
4997
5010
|
});
|
|
4998
5011
|
});
|
|
4999
5012
|
},
|
|
5013
|
+
/**
|
|
5014
|
+
*
|
|
5015
|
+
* @summary Update ContributorHandle.
|
|
5016
|
+
* @param {string} contributorId
|
|
5017
|
+
* @param {string} handleId
|
|
5018
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
5019
|
+
* @param {*} [options] Override http request option.
|
|
5020
|
+
* @throws {RequiredError}
|
|
5021
|
+
*/
|
|
5022
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
|
|
5023
|
+
if (options === void 0) { options = {}; }
|
|
5024
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5025
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5026
|
+
return __generator(this, function (_a) {
|
|
5027
|
+
switch (_a.label) {
|
|
5028
|
+
case 0:
|
|
5029
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
5030
|
+
common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId);
|
|
5031
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
5032
|
+
common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId);
|
|
5033
|
+
localVarPath = "/api/v1/contributors/{contributorId}/handles/{handleId}"
|
|
5034
|
+
.replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
|
|
5035
|
+
.replace("{" + "handleId" + "}", encodeURIComponent(String(handleId)));
|
|
5036
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5037
|
+
if (configuration) {
|
|
5038
|
+
baseOptions = configuration.baseOptions;
|
|
5039
|
+
}
|
|
5040
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
5041
|
+
localVarHeaderParameter = {};
|
|
5042
|
+
localVarQueryParameter = {};
|
|
5043
|
+
// authentication oauth2 required
|
|
5044
|
+
// oauth required
|
|
5045
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5046
|
+
case 1:
|
|
5047
|
+
// authentication oauth2 required
|
|
5048
|
+
// oauth required
|
|
5049
|
+
_a.sent();
|
|
5050
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5051
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5052
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5053
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5054
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration);
|
|
5055
|
+
return [2 /*return*/, {
|
|
5056
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5057
|
+
options: localVarRequestOptions,
|
|
5058
|
+
}];
|
|
5059
|
+
}
|
|
5060
|
+
});
|
|
5061
|
+
});
|
|
5062
|
+
},
|
|
5000
5063
|
/**
|
|
5001
5064
|
*
|
|
5002
5065
|
* @summary Get ContributorHandle.
|
|
@@ -5386,6 +5449,28 @@ exports.ContributorsApiFp = function (configuration) {
|
|
|
5386
5449
|
});
|
|
5387
5450
|
});
|
|
5388
5451
|
},
|
|
5452
|
+
/**
|
|
5453
|
+
*
|
|
5454
|
+
* @summary Update ContributorHandle.
|
|
5455
|
+
* @param {string} contributorId
|
|
5456
|
+
* @param {string} handleId
|
|
5457
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
5458
|
+
* @param {*} [options] Override http request option.
|
|
5459
|
+
* @throws {RequiredError}
|
|
5460
|
+
*/
|
|
5461
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
|
|
5462
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5463
|
+
var localVarAxiosArgs;
|
|
5464
|
+
return __generator(this, function (_a) {
|
|
5465
|
+
switch (_a.label) {
|
|
5466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options)];
|
|
5467
|
+
case 1:
|
|
5468
|
+
localVarAxiosArgs = _a.sent();
|
|
5469
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5470
|
+
}
|
|
5471
|
+
});
|
|
5472
|
+
});
|
|
5473
|
+
},
|
|
5389
5474
|
/**
|
|
5390
5475
|
*
|
|
5391
5476
|
* @summary Get ContributorHandle.
|
|
@@ -5569,6 +5654,18 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
5569
5654
|
apiV1ContributorsContributorIdHandlesHandleIdGet: function (contributorId, handleId, options) {
|
|
5570
5655
|
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(axios, basePath); });
|
|
5571
5656
|
},
|
|
5657
|
+
/**
|
|
5658
|
+
*
|
|
5659
|
+
* @summary Update ContributorHandle.
|
|
5660
|
+
* @param {string} contributorId
|
|
5661
|
+
* @param {string} handleId
|
|
5662
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
5663
|
+
* @param {*} [options] Override http request option.
|
|
5664
|
+
* @throws {RequiredError}
|
|
5665
|
+
*/
|
|
5666
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
|
|
5667
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
5668
|
+
},
|
|
5572
5669
|
/**
|
|
5573
5670
|
*
|
|
5574
5671
|
* @summary Get ContributorHandle.
|
|
@@ -5716,6 +5813,20 @@ var ContributorsApi = /** @class */ (function (_super) {
|
|
|
5716
5813
|
var _this = this;
|
|
5717
5814
|
return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5718
5815
|
};
|
|
5816
|
+
/**
|
|
5817
|
+
*
|
|
5818
|
+
* @summary Update ContributorHandle.
|
|
5819
|
+
* @param {string} contributorId
|
|
5820
|
+
* @param {string} handleId
|
|
5821
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
5822
|
+
* @param {*} [options] Override http request option.
|
|
5823
|
+
* @throws {RequiredError}
|
|
5824
|
+
* @memberof ContributorsApi
|
|
5825
|
+
*/
|
|
5826
|
+
ContributorsApi.prototype.apiV1ContributorsContributorIdHandlesHandleIdPut = function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
|
|
5827
|
+
var _this = this;
|
|
5828
|
+
return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5829
|
+
};
|
|
5719
5830
|
/**
|
|
5720
5831
|
*
|
|
5721
5832
|
* @summary Get ContributorHandle.
|
|
@@ -8571,6 +8682,98 @@ exports.DealsApi = DealsApi;
|
|
|
8571
8682
|
exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
8572
8683
|
var _this = this;
|
|
8573
8684
|
return {
|
|
8685
|
+
/**
|
|
8686
|
+
*
|
|
8687
|
+
* @summary Delete DoctorAffiliation.
|
|
8688
|
+
* @param {string} doctorId
|
|
8689
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
8690
|
+
* @param {*} [options] Override http request option.
|
|
8691
|
+
* @throws {RequiredError}
|
|
8692
|
+
*/
|
|
8693
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
8694
|
+
if (options === void 0) { options = {}; }
|
|
8695
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8696
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8697
|
+
return __generator(this, function (_a) {
|
|
8698
|
+
switch (_a.label) {
|
|
8699
|
+
case 0:
|
|
8700
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
8701
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsDelete', 'doctorId', doctorId);
|
|
8702
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
|
|
8703
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
8704
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8705
|
+
if (configuration) {
|
|
8706
|
+
baseOptions = configuration.baseOptions;
|
|
8707
|
+
}
|
|
8708
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
8709
|
+
localVarHeaderParameter = {};
|
|
8710
|
+
localVarQueryParameter = {};
|
|
8711
|
+
// authentication oauth2 required
|
|
8712
|
+
// oauth required
|
|
8713
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
8714
|
+
case 1:
|
|
8715
|
+
// authentication oauth2 required
|
|
8716
|
+
// oauth required
|
|
8717
|
+
_a.sent();
|
|
8718
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8719
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8720
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8721
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8722
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteDoctorAffiliationCommand, localVarRequestOptions, configuration);
|
|
8723
|
+
return [2 /*return*/, {
|
|
8724
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
8725
|
+
options: localVarRequestOptions,
|
|
8726
|
+
}];
|
|
8727
|
+
}
|
|
8728
|
+
});
|
|
8729
|
+
});
|
|
8730
|
+
},
|
|
8731
|
+
/**
|
|
8732
|
+
*
|
|
8733
|
+
* @summary Create DoctorAffiliation.
|
|
8734
|
+
* @param {string} doctorId
|
|
8735
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
8736
|
+
* @param {*} [options] Override http request option.
|
|
8737
|
+
* @throws {RequiredError}
|
|
8738
|
+
*/
|
|
8739
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
8740
|
+
if (options === void 0) { options = {}; }
|
|
8741
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8742
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8743
|
+
return __generator(this, function (_a) {
|
|
8744
|
+
switch (_a.label) {
|
|
8745
|
+
case 0:
|
|
8746
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
8747
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsPost', 'doctorId', doctorId);
|
|
8748
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
|
|
8749
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
8750
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8751
|
+
if (configuration) {
|
|
8752
|
+
baseOptions = configuration.baseOptions;
|
|
8753
|
+
}
|
|
8754
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8755
|
+
localVarHeaderParameter = {};
|
|
8756
|
+
localVarQueryParameter = {};
|
|
8757
|
+
// authentication oauth2 required
|
|
8758
|
+
// oauth required
|
|
8759
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
8760
|
+
case 1:
|
|
8761
|
+
// authentication oauth2 required
|
|
8762
|
+
// oauth required
|
|
8763
|
+
_a.sent();
|
|
8764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8765
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8766
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8767
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8768
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorAffiliationCommand, localVarRequestOptions, configuration);
|
|
8769
|
+
return [2 /*return*/, {
|
|
8770
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
8771
|
+
options: localVarRequestOptions,
|
|
8772
|
+
}];
|
|
8773
|
+
}
|
|
8774
|
+
});
|
|
8775
|
+
});
|
|
8776
|
+
},
|
|
8574
8777
|
/**
|
|
8575
8778
|
*
|
|
8576
8779
|
* @summary Delete DoctorCertificate.
|
|
@@ -9773,7 +9976,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9773
9976
|
*
|
|
9774
9977
|
* @summary Get All DoctorSpecialties.
|
|
9775
9978
|
* @param {string} doctorId
|
|
9776
|
-
* @param {string} [doctorId2]
|
|
9777
9979
|
* @param {string} [doctorName]
|
|
9778
9980
|
* @param {string} [specialtyId]
|
|
9779
9981
|
* @param {string} [specialtyName]
|
|
@@ -9783,7 +9985,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9783
9985
|
* @param {*} [options] Override http request option.
|
|
9784
9986
|
* @throws {RequiredError}
|
|
9785
9987
|
*/
|
|
9786
|
-
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId,
|
|
9988
|
+
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
|
|
9787
9989
|
if (options === void 0) { options = {}; }
|
|
9788
9990
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9789
9991
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9808,9 +10010,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9808
10010
|
// authentication oauth2 required
|
|
9809
10011
|
// oauth required
|
|
9810
10012
|
_a.sent();
|
|
9811
|
-
if (doctorId2 !== undefined) {
|
|
9812
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
9813
|
-
}
|
|
9814
10013
|
if (doctorName !== undefined) {
|
|
9815
10014
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
9816
10015
|
}
|
|
@@ -9842,6 +10041,52 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9842
10041
|
});
|
|
9843
10042
|
});
|
|
9844
10043
|
},
|
|
10044
|
+
/**
|
|
10045
|
+
*
|
|
10046
|
+
* @summary Link a doctor to a specialty.
|
|
10047
|
+
* @param {string} doctorId
|
|
10048
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
10049
|
+
* @param {*} [options] Override http request option.
|
|
10050
|
+
* @throws {RequiredError}
|
|
10051
|
+
*/
|
|
10052
|
+
apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
|
|
10053
|
+
if (options === void 0) { options = {}; }
|
|
10054
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10055
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10056
|
+
return __generator(this, function (_a) {
|
|
10057
|
+
switch (_a.label) {
|
|
10058
|
+
case 0:
|
|
10059
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
10060
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId);
|
|
10061
|
+
localVarPath = "/api/v1/doctors/{doctorId}/specialties"
|
|
10062
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
10063
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10064
|
+
if (configuration) {
|
|
10065
|
+
baseOptions = configuration.baseOptions;
|
|
10066
|
+
}
|
|
10067
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10068
|
+
localVarHeaderParameter = {};
|
|
10069
|
+
localVarQueryParameter = {};
|
|
10070
|
+
// authentication oauth2 required
|
|
10071
|
+
// oauth required
|
|
10072
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
10073
|
+
case 1:
|
|
10074
|
+
// authentication oauth2 required
|
|
10075
|
+
// oauth required
|
|
10076
|
+
_a.sent();
|
|
10077
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10078
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10079
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10080
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10081
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration);
|
|
10082
|
+
return [2 /*return*/, {
|
|
10083
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10084
|
+
options: localVarRequestOptions,
|
|
10085
|
+
}];
|
|
10086
|
+
}
|
|
10087
|
+
});
|
|
10088
|
+
});
|
|
10089
|
+
},
|
|
9845
10090
|
/**
|
|
9846
10091
|
*
|
|
9847
10092
|
* @summary Remove link between the doctor and the specialty.
|
|
@@ -9938,13 +10183,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9938
10183
|
},
|
|
9939
10184
|
/**
|
|
9940
10185
|
*
|
|
9941
|
-
* @summary
|
|
10186
|
+
* @summary Update DoctorSpecialty.
|
|
9942
10187
|
* @param {string} doctorId
|
|
9943
10188
|
* @param {string} specialtyId
|
|
10189
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
9944
10190
|
* @param {*} [options] Override http request option.
|
|
9945
10191
|
* @throws {RequiredError}
|
|
9946
10192
|
*/
|
|
9947
|
-
|
|
10193
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
|
|
9948
10194
|
if (options === void 0) { options = {}; }
|
|
9949
10195
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9950
10196
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9952,9 +10198,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9952
10198
|
switch (_a.label) {
|
|
9953
10199
|
case 0:
|
|
9954
10200
|
// verify required parameter 'doctorId' is not null or undefined
|
|
9955
|
-
common_1.assertParamExists('
|
|
10201
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId);
|
|
9956
10202
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
9957
|
-
common_1.assertParamExists('
|
|
10203
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
|
|
9958
10204
|
localVarPath = "/api/v1/doctors/{doctorId}/specialties/{specialtyId}"
|
|
9959
10205
|
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
9960
10206
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
@@ -9962,7 +10208,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9962
10208
|
if (configuration) {
|
|
9963
10209
|
baseOptions = configuration.baseOptions;
|
|
9964
10210
|
}
|
|
9965
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
10211
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
9966
10212
|
localVarHeaderParameter = {};
|
|
9967
10213
|
localVarQueryParameter = {};
|
|
9968
10214
|
// authentication oauth2 required
|
|
@@ -9972,9 +10218,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9972
10218
|
// authentication oauth2 required
|
|
9973
10219
|
// oauth required
|
|
9974
10220
|
_a.sent();
|
|
10221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9975
10222
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9976
10223
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9977
10224
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10225
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration);
|
|
9978
10226
|
return [2 /*return*/, {
|
|
9979
10227
|
url: common_1.toPathString(localVarUrlObj),
|
|
9980
10228
|
options: localVarRequestOptions,
|
|
@@ -9985,7 +10233,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9985
10233
|
},
|
|
9986
10234
|
/**
|
|
9987
10235
|
*
|
|
9988
|
-
* @summary Get all
|
|
10236
|
+
* @summary Get all Doctors.
|
|
9989
10237
|
* @param {string} [countryId]
|
|
9990
10238
|
* @param {string} [hospitalId]
|
|
9991
10239
|
* @param {MarketingType} [marketingType]
|
|
@@ -10202,6 +10450,48 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10202
10450
|
exports.DoctorsApiFp = function (configuration) {
|
|
10203
10451
|
var localVarAxiosParamCreator = exports.DoctorsApiAxiosParamCreator(configuration);
|
|
10204
10452
|
return {
|
|
10453
|
+
/**
|
|
10454
|
+
*
|
|
10455
|
+
* @summary Delete DoctorAffiliation.
|
|
10456
|
+
* @param {string} doctorId
|
|
10457
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
10458
|
+
* @param {*} [options] Override http request option.
|
|
10459
|
+
* @throws {RequiredError}
|
|
10460
|
+
*/
|
|
10461
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
10462
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10463
|
+
var localVarAxiosArgs;
|
|
10464
|
+
return __generator(this, function (_a) {
|
|
10465
|
+
switch (_a.label) {
|
|
10466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options)];
|
|
10467
|
+
case 1:
|
|
10468
|
+
localVarAxiosArgs = _a.sent();
|
|
10469
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10470
|
+
}
|
|
10471
|
+
});
|
|
10472
|
+
});
|
|
10473
|
+
},
|
|
10474
|
+
/**
|
|
10475
|
+
*
|
|
10476
|
+
* @summary Create DoctorAffiliation.
|
|
10477
|
+
* @param {string} doctorId
|
|
10478
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
10479
|
+
* @param {*} [options] Override http request option.
|
|
10480
|
+
* @throws {RequiredError}
|
|
10481
|
+
*/
|
|
10482
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
10483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10484
|
+
var localVarAxiosArgs;
|
|
10485
|
+
return __generator(this, function (_a) {
|
|
10486
|
+
switch (_a.label) {
|
|
10487
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options)];
|
|
10488
|
+
case 1:
|
|
10489
|
+
localVarAxiosArgs = _a.sent();
|
|
10490
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10491
|
+
}
|
|
10492
|
+
});
|
|
10493
|
+
});
|
|
10494
|
+
},
|
|
10205
10495
|
/**
|
|
10206
10496
|
*
|
|
10207
10497
|
* @summary Delete DoctorCertificate.
|
|
@@ -10717,7 +11007,6 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10717
11007
|
*
|
|
10718
11008
|
* @summary Get All DoctorSpecialties.
|
|
10719
11009
|
* @param {string} doctorId
|
|
10720
|
-
* @param {string} [doctorId2]
|
|
10721
11010
|
* @param {string} [doctorName]
|
|
10722
11011
|
* @param {string} [specialtyId]
|
|
10723
11012
|
* @param {string} [specialtyName]
|
|
@@ -10727,12 +11016,12 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10727
11016
|
* @param {*} [options] Override http request option.
|
|
10728
11017
|
* @throws {RequiredError}
|
|
10729
11018
|
*/
|
|
10730
|
-
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId,
|
|
11019
|
+
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
|
|
10731
11020
|
return __awaiter(this, void 0, void 0, function () {
|
|
10732
11021
|
var localVarAxiosArgs;
|
|
10733
11022
|
return __generator(this, function (_a) {
|
|
10734
11023
|
switch (_a.label) {
|
|
10735
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
11024
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
|
|
10736
11025
|
case 1:
|
|
10737
11026
|
localVarAxiosArgs = _a.sent();
|
|
10738
11027
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10742,13 +11031,34 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10742
11031
|
},
|
|
10743
11032
|
/**
|
|
10744
11033
|
*
|
|
10745
|
-
* @summary
|
|
11034
|
+
* @summary Link a doctor to a specialty.
|
|
10746
11035
|
* @param {string} doctorId
|
|
10747
|
-
* @param {
|
|
11036
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
10748
11037
|
* @param {*} [options] Override http request option.
|
|
10749
11038
|
* @throws {RequiredError}
|
|
10750
11039
|
*/
|
|
10751
|
-
|
|
11040
|
+
apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
|
|
11041
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11042
|
+
var localVarAxiosArgs;
|
|
11043
|
+
return __generator(this, function (_a) {
|
|
11044
|
+
switch (_a.label) {
|
|
11045
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options)];
|
|
11046
|
+
case 1:
|
|
11047
|
+
localVarAxiosArgs = _a.sent();
|
|
11048
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11049
|
+
}
|
|
11050
|
+
});
|
|
11051
|
+
});
|
|
11052
|
+
},
|
|
11053
|
+
/**
|
|
11054
|
+
*
|
|
11055
|
+
* @summary Remove link between the doctor and the specialty.
|
|
11056
|
+
* @param {string} doctorId
|
|
11057
|
+
* @param {string} specialtyId
|
|
11058
|
+
* @param {*} [options] Override http request option.
|
|
11059
|
+
* @throws {RequiredError}
|
|
11060
|
+
*/
|
|
11061
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdDelete: function (doctorId, specialtyId, options) {
|
|
10752
11062
|
return __awaiter(this, void 0, void 0, function () {
|
|
10753
11063
|
var localVarAxiosArgs;
|
|
10754
11064
|
return __generator(this, function (_a) {
|
|
@@ -10784,18 +11094,19 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10784
11094
|
},
|
|
10785
11095
|
/**
|
|
10786
11096
|
*
|
|
10787
|
-
* @summary
|
|
11097
|
+
* @summary Update DoctorSpecialty.
|
|
10788
11098
|
* @param {string} doctorId
|
|
10789
11099
|
* @param {string} specialtyId
|
|
11100
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
10790
11101
|
* @param {*} [options] Override http request option.
|
|
10791
11102
|
* @throws {RequiredError}
|
|
10792
11103
|
*/
|
|
10793
|
-
|
|
11104
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
|
|
10794
11105
|
return __awaiter(this, void 0, void 0, function () {
|
|
10795
11106
|
var localVarAxiosArgs;
|
|
10796
11107
|
return __generator(this, function (_a) {
|
|
10797
11108
|
switch (_a.label) {
|
|
10798
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
11109
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options)];
|
|
10799
11110
|
case 1:
|
|
10800
11111
|
localVarAxiosArgs = _a.sent();
|
|
10801
11112
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10805,7 +11116,7 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10805
11116
|
},
|
|
10806
11117
|
/**
|
|
10807
11118
|
*
|
|
10808
|
-
* @summary Get all
|
|
11119
|
+
* @summary Get all Doctors.
|
|
10809
11120
|
* @param {string} [countryId]
|
|
10810
11121
|
* @param {string} [hospitalId]
|
|
10811
11122
|
* @param {MarketingType} [marketingType]
|
|
@@ -10891,6 +11202,28 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10891
11202
|
exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
10892
11203
|
var localVarFp = exports.DoctorsApiFp(configuration);
|
|
10893
11204
|
return {
|
|
11205
|
+
/**
|
|
11206
|
+
*
|
|
11207
|
+
* @summary Delete DoctorAffiliation.
|
|
11208
|
+
* @param {string} doctorId
|
|
11209
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
11210
|
+
* @param {*} [options] Override http request option.
|
|
11211
|
+
* @throws {RequiredError}
|
|
11212
|
+
*/
|
|
11213
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
11214
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11215
|
+
},
|
|
11216
|
+
/**
|
|
11217
|
+
*
|
|
11218
|
+
* @summary Create DoctorAffiliation.
|
|
11219
|
+
* @param {string} doctorId
|
|
11220
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
11221
|
+
* @param {*} [options] Override http request option.
|
|
11222
|
+
* @throws {RequiredError}
|
|
11223
|
+
*/
|
|
11224
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
11225
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11226
|
+
},
|
|
10894
11227
|
/**
|
|
10895
11228
|
*
|
|
10896
11229
|
* @summary Delete DoctorCertificate.
|
|
@@ -11176,7 +11509,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
11176
11509
|
*
|
|
11177
11510
|
* @summary Get All DoctorSpecialties.
|
|
11178
11511
|
* @param {string} doctorId
|
|
11179
|
-
* @param {string} [doctorId2]
|
|
11180
11512
|
* @param {string} [doctorName]
|
|
11181
11513
|
* @param {string} [specialtyId]
|
|
11182
11514
|
* @param {string} [specialtyName]
|
|
@@ -11186,8 +11518,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
11186
11518
|
* @param {*} [options] Override http request option.
|
|
11187
11519
|
* @throws {RequiredError}
|
|
11188
11520
|
*/
|
|
11189
|
-
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId,
|
|
11190
|
-
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
11521
|
+
apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
|
|
11522
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
11523
|
+
},
|
|
11524
|
+
/**
|
|
11525
|
+
*
|
|
11526
|
+
* @summary Link a doctor to a specialty.
|
|
11527
|
+
* @param {string} doctorId
|
|
11528
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
11529
|
+
* @param {*} [options] Override http request option.
|
|
11530
|
+
* @throws {RequiredError}
|
|
11531
|
+
*/
|
|
11532
|
+
apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
|
|
11533
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11191
11534
|
},
|
|
11192
11535
|
/**
|
|
11193
11536
|
*
|
|
@@ -11213,18 +11556,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
11213
11556
|
},
|
|
11214
11557
|
/**
|
|
11215
11558
|
*
|
|
11216
|
-
* @summary
|
|
11559
|
+
* @summary Update DoctorSpecialty.
|
|
11217
11560
|
* @param {string} doctorId
|
|
11218
11561
|
* @param {string} specialtyId
|
|
11562
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
11219
11563
|
* @param {*} [options] Override http request option.
|
|
11220
11564
|
* @throws {RequiredError}
|
|
11221
11565
|
*/
|
|
11222
|
-
|
|
11223
|
-
return localVarFp.
|
|
11566
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
|
|
11567
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11224
11568
|
},
|
|
11225
11569
|
/**
|
|
11226
11570
|
*
|
|
11227
|
-
* @summary Get all
|
|
11571
|
+
* @summary Get all Doctors.
|
|
11228
11572
|
* @param {string} [countryId]
|
|
11229
11573
|
* @param {string} [hospitalId]
|
|
11230
11574
|
* @param {MarketingType} [marketingType]
|
|
@@ -11284,6 +11628,32 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11284
11628
|
function DoctorsApi() {
|
|
11285
11629
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11286
11630
|
}
|
|
11631
|
+
/**
|
|
11632
|
+
*
|
|
11633
|
+
* @summary Delete DoctorAffiliation.
|
|
11634
|
+
* @param {string} doctorId
|
|
11635
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
11636
|
+
* @param {*} [options] Override http request option.
|
|
11637
|
+
* @throws {RequiredError}
|
|
11638
|
+
* @memberof DoctorsApi
|
|
11639
|
+
*/
|
|
11640
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsDelete = function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
11641
|
+
var _this = this;
|
|
11642
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11643
|
+
};
|
|
11644
|
+
/**
|
|
11645
|
+
*
|
|
11646
|
+
* @summary Create DoctorAffiliation.
|
|
11647
|
+
* @param {string} doctorId
|
|
11648
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
11649
|
+
* @param {*} [options] Override http request option.
|
|
11650
|
+
* @throws {RequiredError}
|
|
11651
|
+
* @memberof DoctorsApi
|
|
11652
|
+
*/
|
|
11653
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsPost = function (doctorId, createDoctorAffiliationCommand, options) {
|
|
11654
|
+
var _this = this;
|
|
11655
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11656
|
+
};
|
|
11287
11657
|
/**
|
|
11288
11658
|
*
|
|
11289
11659
|
* @summary Delete DoctorCertificate.
|
|
@@ -11615,7 +11985,6 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11615
11985
|
*
|
|
11616
11986
|
* @summary Get All DoctorSpecialties.
|
|
11617
11987
|
* @param {string} doctorId
|
|
11618
|
-
* @param {string} [doctorId2]
|
|
11619
11988
|
* @param {string} [doctorName]
|
|
11620
11989
|
* @param {string} [specialtyId]
|
|
11621
11990
|
* @param {string} [specialtyName]
|
|
@@ -11626,9 +11995,22 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11626
11995
|
* @throws {RequiredError}
|
|
11627
11996
|
* @memberof DoctorsApi
|
|
11628
11997
|
*/
|
|
11629
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId,
|
|
11998
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
|
|
11630
11999
|
var _this = this;
|
|
11631
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
12000
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12001
|
+
};
|
|
12002
|
+
/**
|
|
12003
|
+
*
|
|
12004
|
+
* @summary Link a doctor to a specialty.
|
|
12005
|
+
* @param {string} doctorId
|
|
12006
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
12007
|
+
* @param {*} [options] Override http request option.
|
|
12008
|
+
* @throws {RequiredError}
|
|
12009
|
+
* @memberof DoctorsApi
|
|
12010
|
+
*/
|
|
12011
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesPost = function (doctorId, createDoctorSpecialtyCommand, options) {
|
|
12012
|
+
var _this = this;
|
|
12013
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11632
12014
|
};
|
|
11633
12015
|
/**
|
|
11634
12016
|
*
|
|
@@ -11658,20 +12040,21 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11658
12040
|
};
|
|
11659
12041
|
/**
|
|
11660
12042
|
*
|
|
11661
|
-
* @summary
|
|
12043
|
+
* @summary Update DoctorSpecialty.
|
|
11662
12044
|
* @param {string} doctorId
|
|
11663
12045
|
* @param {string} specialtyId
|
|
12046
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
11664
12047
|
* @param {*} [options] Override http request option.
|
|
11665
12048
|
* @throws {RequiredError}
|
|
11666
12049
|
* @memberof DoctorsApi
|
|
11667
12050
|
*/
|
|
11668
|
-
DoctorsApi.prototype.
|
|
12051
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut = function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
|
|
11669
12052
|
var _this = this;
|
|
11670
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
12053
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11671
12054
|
};
|
|
11672
12055
|
/**
|
|
11673
12056
|
*
|
|
11674
|
-
* @summary Get all
|
|
12057
|
+
* @summary Get all Doctors.
|
|
11675
12058
|
* @param {string} [countryId]
|
|
11676
12059
|
* @param {string} [hospitalId]
|
|
11677
12060
|
* @param {MarketingType} [marketingType]
|
|
@@ -11937,9 +12320,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
11937
12320
|
},
|
|
11938
12321
|
/**
|
|
11939
12322
|
*
|
|
11940
|
-
* @summary Get all
|
|
11941
|
-
* @param {string}
|
|
11942
|
-
* @param {string} [hospitalId]
|
|
12323
|
+
* @summary Get all HospitalAccreditations.
|
|
12324
|
+
* @param {string} hospitalId
|
|
11943
12325
|
* @param {string} [hospitalName]
|
|
11944
12326
|
* @param {string} [accreditationId]
|
|
11945
12327
|
* @param {string} [accreditationName]
|
|
@@ -11949,17 +12331,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
11949
12331
|
* @param {*} [options] Override http request option.
|
|
11950
12332
|
* @throws {RequiredError}
|
|
11951
12333
|
*/
|
|
11952
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
12334
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
11953
12335
|
if (options === void 0) { options = {}; }
|
|
11954
12336
|
return __awaiter(_this, void 0, void 0, function () {
|
|
11955
12337
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11956
12338
|
return __generator(this, function (_a) {
|
|
11957
12339
|
switch (_a.label) {
|
|
11958
12340
|
case 0:
|
|
11959
|
-
// verify required parameter '
|
|
11960
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', '
|
|
12341
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
12342
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId', hospitalId);
|
|
11961
12343
|
localVarPath = "/api/v1/hospitals/{hospitalId}/accreditations"
|
|
11962
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(
|
|
12344
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
11963
12345
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11964
12346
|
if (configuration) {
|
|
11965
12347
|
baseOptions = configuration.baseOptions;
|
|
@@ -11974,9 +12356,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
11974
12356
|
// authentication oauth2 required
|
|
11975
12357
|
// oauth required
|
|
11976
12358
|
_a.sent();
|
|
11977
|
-
if (hospitalId !== undefined) {
|
|
11978
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
11979
|
-
}
|
|
11980
12359
|
if (hospitalName !== undefined) {
|
|
11981
12360
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
11982
12361
|
}
|
|
@@ -13205,13 +13584,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
13205
13584
|
/**
|
|
13206
13585
|
*
|
|
13207
13586
|
* @summary Get all HospitalServices.
|
|
13208
|
-
* @param {string}
|
|
13587
|
+
* @param {string} hospitalId
|
|
13588
|
+
* @param {string} [hospitalName]
|
|
13589
|
+
* @param {string} [hospitalSlug]
|
|
13209
13590
|
* @param {string} [id]
|
|
13210
13591
|
* @param {string} [name]
|
|
13211
13592
|
* @param {string} [description]
|
|
13212
|
-
* @param {string} [hospitalId]
|
|
13213
|
-
* @param {string} [hospitalName]
|
|
13214
|
-
* @param {string} [hospitalSlug]
|
|
13215
13593
|
* @param {string} [specialtyId]
|
|
13216
13594
|
* @param {string} [specialtyTypeId]
|
|
13217
13595
|
* @param {string} [specialtyTypeName]
|
|
@@ -13225,17 +13603,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
13225
13603
|
* @param {*} [options] Override http request option.
|
|
13226
13604
|
* @throws {RequiredError}
|
|
13227
13605
|
*/
|
|
13228
|
-
apiV1HospitalsHospitalIdServicesGet: function (
|
|
13606
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
|
|
13229
13607
|
if (options === void 0) { options = {}; }
|
|
13230
13608
|
return __awaiter(_this, void 0, void 0, function () {
|
|
13231
13609
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
13232
13610
|
return __generator(this, function (_a) {
|
|
13233
13611
|
switch (_a.label) {
|
|
13234
13612
|
case 0:
|
|
13235
|
-
// verify required parameter '
|
|
13236
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdServicesGet', '
|
|
13613
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
13614
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdServicesGet', 'hospitalId', hospitalId);
|
|
13237
13615
|
localVarPath = "/api/v1/hospitals/{hospitalId}/services"
|
|
13238
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(
|
|
13616
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
13239
13617
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13240
13618
|
if (configuration) {
|
|
13241
13619
|
baseOptions = configuration.baseOptions;
|
|
@@ -13250,6 +13628,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
13250
13628
|
// authentication oauth2 required
|
|
13251
13629
|
// oauth required
|
|
13252
13630
|
_a.sent();
|
|
13631
|
+
if (hospitalName !== undefined) {
|
|
13632
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
13633
|
+
}
|
|
13634
|
+
if (hospitalSlug !== undefined) {
|
|
13635
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
13636
|
+
}
|
|
13253
13637
|
if (id !== undefined) {
|
|
13254
13638
|
localVarQueryParameter['Id'] = id;
|
|
13255
13639
|
}
|
|
@@ -13259,15 +13643,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
13259
13643
|
if (description !== undefined) {
|
|
13260
13644
|
localVarQueryParameter['Description'] = description;
|
|
13261
13645
|
}
|
|
13262
|
-
if (hospitalId !== undefined) {
|
|
13263
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
13264
|
-
}
|
|
13265
|
-
if (hospitalName !== undefined) {
|
|
13266
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
13267
|
-
}
|
|
13268
|
-
if (hospitalSlug !== undefined) {
|
|
13269
|
-
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
13270
|
-
}
|
|
13271
13646
|
if (specialtyId !== undefined) {
|
|
13272
13647
|
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
13273
13648
|
}
|
|
@@ -13734,6 +14109,56 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
13734
14109
|
});
|
|
13735
14110
|
});
|
|
13736
14111
|
},
|
|
14112
|
+
/**
|
|
14113
|
+
*
|
|
14114
|
+
* @summary Update HospitalSpecialty.
|
|
14115
|
+
* @param {string} hospitalId
|
|
14116
|
+
* @param {string} specialtyId
|
|
14117
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
14118
|
+
* @param {*} [options] Override http request option.
|
|
14119
|
+
* @throws {RequiredError}
|
|
14120
|
+
*/
|
|
14121
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
|
|
14122
|
+
if (options === void 0) { options = {}; }
|
|
14123
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14124
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14125
|
+
return __generator(this, function (_a) {
|
|
14126
|
+
switch (_a.label) {
|
|
14127
|
+
case 0:
|
|
14128
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
14129
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
|
|
14130
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
14131
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
|
|
14132
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
14133
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
14134
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
14135
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14136
|
+
if (configuration) {
|
|
14137
|
+
baseOptions = configuration.baseOptions;
|
|
14138
|
+
}
|
|
14139
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14140
|
+
localVarHeaderParameter = {};
|
|
14141
|
+
localVarQueryParameter = {};
|
|
14142
|
+
// authentication oauth2 required
|
|
14143
|
+
// oauth required
|
|
14144
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14145
|
+
case 1:
|
|
14146
|
+
// authentication oauth2 required
|
|
14147
|
+
// oauth required
|
|
14148
|
+
_a.sent();
|
|
14149
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14150
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14151
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14152
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14153
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
14154
|
+
return [2 /*return*/, {
|
|
14155
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14156
|
+
options: localVarRequestOptions,
|
|
14157
|
+
}];
|
|
14158
|
+
}
|
|
14159
|
+
});
|
|
14160
|
+
});
|
|
14161
|
+
},
|
|
13737
14162
|
/**
|
|
13738
14163
|
*
|
|
13739
14164
|
* @summary Create Hospital.
|
|
@@ -13911,9 +14336,8 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
13911
14336
|
},
|
|
13912
14337
|
/**
|
|
13913
14338
|
*
|
|
13914
|
-
* @summary Get all
|
|
13915
|
-
* @param {string}
|
|
13916
|
-
* @param {string} [hospitalId]
|
|
14339
|
+
* @summary Get all HospitalAccreditations.
|
|
14340
|
+
* @param {string} hospitalId
|
|
13917
14341
|
* @param {string} [hospitalName]
|
|
13918
14342
|
* @param {string} [accreditationId]
|
|
13919
14343
|
* @param {string} [accreditationName]
|
|
@@ -13923,12 +14347,12 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
13923
14347
|
* @param {*} [options] Override http request option.
|
|
13924
14348
|
* @throws {RequiredError}
|
|
13925
14349
|
*/
|
|
13926
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
14350
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
13927
14351
|
return __awaiter(this, void 0, void 0, function () {
|
|
13928
14352
|
var localVarAxiosArgs;
|
|
13929
14353
|
return __generator(this, function (_a) {
|
|
13930
14354
|
switch (_a.label) {
|
|
13931
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
14355
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options)];
|
|
13932
14356
|
case 1:
|
|
13933
14357
|
localVarAxiosArgs = _a.sent();
|
|
13934
14358
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14450,13 +14874,12 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
14450
14874
|
/**
|
|
14451
14875
|
*
|
|
14452
14876
|
* @summary Get all HospitalServices.
|
|
14453
|
-
* @param {string}
|
|
14877
|
+
* @param {string} hospitalId
|
|
14878
|
+
* @param {string} [hospitalName]
|
|
14879
|
+
* @param {string} [hospitalSlug]
|
|
14454
14880
|
* @param {string} [id]
|
|
14455
14881
|
* @param {string} [name]
|
|
14456
14882
|
* @param {string} [description]
|
|
14457
|
-
* @param {string} [hospitalId]
|
|
14458
|
-
* @param {string} [hospitalName]
|
|
14459
|
-
* @param {string} [hospitalSlug]
|
|
14460
14883
|
* @param {string} [specialtyId]
|
|
14461
14884
|
* @param {string} [specialtyTypeId]
|
|
14462
14885
|
* @param {string} [specialtyTypeName]
|
|
@@ -14470,12 +14893,12 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
14470
14893
|
* @param {*} [options] Override http request option.
|
|
14471
14894
|
* @throws {RequiredError}
|
|
14472
14895
|
*/
|
|
14473
|
-
apiV1HospitalsHospitalIdServicesGet: function (
|
|
14896
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
|
|
14474
14897
|
return __awaiter(this, void 0, void 0, function () {
|
|
14475
14898
|
var localVarAxiosArgs;
|
|
14476
14899
|
return __generator(this, function (_a) {
|
|
14477
14900
|
switch (_a.label) {
|
|
14478
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(
|
|
14901
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
|
|
14479
14902
|
case 1:
|
|
14480
14903
|
localVarAxiosArgs = _a.sent();
|
|
14481
14904
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14662,6 +15085,28 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
14662
15085
|
});
|
|
14663
15086
|
});
|
|
14664
15087
|
},
|
|
15088
|
+
/**
|
|
15089
|
+
*
|
|
15090
|
+
* @summary Update HospitalSpecialty.
|
|
15091
|
+
* @param {string} hospitalId
|
|
15092
|
+
* @param {string} specialtyId
|
|
15093
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
15094
|
+
* @param {*} [options] Override http request option.
|
|
15095
|
+
* @throws {RequiredError}
|
|
15096
|
+
*/
|
|
15097
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
|
|
15098
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15099
|
+
var localVarAxiosArgs;
|
|
15100
|
+
return __generator(this, function (_a) {
|
|
15101
|
+
switch (_a.label) {
|
|
15102
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
|
|
15103
|
+
case 1:
|
|
15104
|
+
localVarAxiosArgs = _a.sent();
|
|
15105
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15106
|
+
}
|
|
15107
|
+
});
|
|
15108
|
+
});
|
|
15109
|
+
},
|
|
14665
15110
|
/**
|
|
14666
15111
|
*
|
|
14667
15112
|
* @summary Create Hospital.
|
|
@@ -14761,9 +15206,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
14761
15206
|
},
|
|
14762
15207
|
/**
|
|
14763
15208
|
*
|
|
14764
|
-
* @summary Get all
|
|
14765
|
-
* @param {string}
|
|
14766
|
-
* @param {string} [hospitalId]
|
|
15209
|
+
* @summary Get all HospitalAccreditations.
|
|
15210
|
+
* @param {string} hospitalId
|
|
14767
15211
|
* @param {string} [hospitalName]
|
|
14768
15212
|
* @param {string} [accreditationId]
|
|
14769
15213
|
* @param {string} [accreditationName]
|
|
@@ -14773,8 +15217,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
14773
15217
|
* @param {*} [options] Override http request option.
|
|
14774
15218
|
* @throws {RequiredError}
|
|
14775
15219
|
*/
|
|
14776
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
14777
|
-
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
15220
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
15221
|
+
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14778
15222
|
},
|
|
14779
15223
|
/**
|
|
14780
15224
|
*
|
|
@@ -15060,13 +15504,12 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
15060
15504
|
/**
|
|
15061
15505
|
*
|
|
15062
15506
|
* @summary Get all HospitalServices.
|
|
15063
|
-
* @param {string}
|
|
15507
|
+
* @param {string} hospitalId
|
|
15508
|
+
* @param {string} [hospitalName]
|
|
15509
|
+
* @param {string} [hospitalSlug]
|
|
15064
15510
|
* @param {string} [id]
|
|
15065
15511
|
* @param {string} [name]
|
|
15066
15512
|
* @param {string} [description]
|
|
15067
|
-
* @param {string} [hospitalId]
|
|
15068
|
-
* @param {string} [hospitalName]
|
|
15069
|
-
* @param {string} [hospitalSlug]
|
|
15070
15513
|
* @param {string} [specialtyId]
|
|
15071
15514
|
* @param {string} [specialtyTypeId]
|
|
15072
15515
|
* @param {string} [specialtyTypeName]
|
|
@@ -15080,8 +15523,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
15080
15523
|
* @param {*} [options] Override http request option.
|
|
15081
15524
|
* @throws {RequiredError}
|
|
15082
15525
|
*/
|
|
15083
|
-
apiV1HospitalsHospitalIdServicesGet: function (
|
|
15084
|
-
return localVarFp.apiV1HospitalsHospitalIdServicesGet(
|
|
15526
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
|
|
15527
|
+
return localVarFp.apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
15085
15528
|
},
|
|
15086
15529
|
/**
|
|
15087
15530
|
*
|
|
@@ -15182,6 +15625,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
15182
15625
|
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
|
|
15183
15626
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
|
|
15184
15627
|
},
|
|
15628
|
+
/**
|
|
15629
|
+
*
|
|
15630
|
+
* @summary Update HospitalSpecialty.
|
|
15631
|
+
* @param {string} hospitalId
|
|
15632
|
+
* @param {string} specialtyId
|
|
15633
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
15634
|
+
* @param {*} [options] Override http request option.
|
|
15635
|
+
* @throws {RequiredError}
|
|
15636
|
+
*/
|
|
15637
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
|
|
15638
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15639
|
+
},
|
|
15185
15640
|
/**
|
|
15186
15641
|
*
|
|
15187
15642
|
* @summary Create Hospital.
|
|
@@ -15271,9 +15726,8 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15271
15726
|
};
|
|
15272
15727
|
/**
|
|
15273
15728
|
*
|
|
15274
|
-
* @summary Get all
|
|
15275
|
-
* @param {string}
|
|
15276
|
-
* @param {string} [hospitalId]
|
|
15729
|
+
* @summary Get all HospitalAccreditations.
|
|
15730
|
+
* @param {string} hospitalId
|
|
15277
15731
|
* @param {string} [hospitalName]
|
|
15278
15732
|
* @param {string} [accreditationId]
|
|
15279
15733
|
* @param {string} [accreditationName]
|
|
@@ -15284,9 +15738,9 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15284
15738
|
* @throws {RequiredError}
|
|
15285
15739
|
* @memberof HospitalsApi
|
|
15286
15740
|
*/
|
|
15287
|
-
HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (
|
|
15741
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
15288
15742
|
var _this = this;
|
|
15289
|
-
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(
|
|
15743
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15290
15744
|
};
|
|
15291
15745
|
/**
|
|
15292
15746
|
*
|
|
@@ -15618,13 +16072,12 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15618
16072
|
/**
|
|
15619
16073
|
*
|
|
15620
16074
|
* @summary Get all HospitalServices.
|
|
15621
|
-
* @param {string}
|
|
16075
|
+
* @param {string} hospitalId
|
|
16076
|
+
* @param {string} [hospitalName]
|
|
16077
|
+
* @param {string} [hospitalSlug]
|
|
15622
16078
|
* @param {string} [id]
|
|
15623
16079
|
* @param {string} [name]
|
|
15624
16080
|
* @param {string} [description]
|
|
15625
|
-
* @param {string} [hospitalId]
|
|
15626
|
-
* @param {string} [hospitalName]
|
|
15627
|
-
* @param {string} [hospitalSlug]
|
|
15628
16081
|
* @param {string} [specialtyId]
|
|
15629
16082
|
* @param {string} [specialtyTypeId]
|
|
15630
16083
|
* @param {string} [specialtyTypeName]
|
|
@@ -15639,9 +16092,9 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15639
16092
|
* @throws {RequiredError}
|
|
15640
16093
|
* @memberof HospitalsApi
|
|
15641
16094
|
*/
|
|
15642
|
-
HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesGet = function (
|
|
16095
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesGet = function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
|
|
15643
16096
|
var _this = this;
|
|
15644
|
-
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(
|
|
16097
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15645
16098
|
};
|
|
15646
16099
|
/**
|
|
15647
16100
|
*
|
|
@@ -15758,6 +16211,20 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15758
16211
|
var _this = this;
|
|
15759
16212
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15760
16213
|
};
|
|
16214
|
+
/**
|
|
16215
|
+
*
|
|
16216
|
+
* @summary Update HospitalSpecialty.
|
|
16217
|
+
* @param {string} hospitalId
|
|
16218
|
+
* @param {string} specialtyId
|
|
16219
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
16220
|
+
* @param {*} [options] Override http request option.
|
|
16221
|
+
* @throws {RequiredError}
|
|
16222
|
+
* @memberof HospitalsApi
|
|
16223
|
+
*/
|
|
16224
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
|
|
16225
|
+
var _this = this;
|
|
16226
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16227
|
+
};
|
|
15761
16228
|
/**
|
|
15762
16229
|
*
|
|
15763
16230
|
* @summary Create Hospital.
|
|
@@ -15787,47 +16254,30 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15787
16254
|
}(base_1.BaseAPI));
|
|
15788
16255
|
exports.HospitalsApi = HospitalsApi;
|
|
15789
16256
|
/**
|
|
15790
|
-
*
|
|
16257
|
+
* ImagesApi - axios parameter creator
|
|
15791
16258
|
* @export
|
|
15792
16259
|
*/
|
|
15793
|
-
exports.
|
|
16260
|
+
exports.ImagesApiAxiosParamCreator = function (configuration) {
|
|
15794
16261
|
var _this = this;
|
|
15795
16262
|
return {
|
|
15796
16263
|
/**
|
|
15797
|
-
*
|
|
15798
|
-
* @summary Get all services.
|
|
15799
|
-
* @param {string} [id]
|
|
15800
|
-
* @param {string} [name]
|
|
15801
|
-
* @param {string} [description]
|
|
15802
|
-
* @param {string} [hospitalId]
|
|
15803
|
-
* @param {string} [hospitalName]
|
|
15804
|
-
* @param {string} [hospitalSlug]
|
|
15805
|
-
* @param {string} [specialtyId]
|
|
15806
|
-
* @param {string} [specialtyTypeId]
|
|
15807
|
-
* @param {string} [specialtyTypeName]
|
|
15808
|
-
* @param {MarketingType} [marketingType]
|
|
15809
|
-
* @param {Procedure} [procedure]
|
|
15810
|
-
* @param {Date} [created]
|
|
15811
|
-
* @param {string} [languageCode]
|
|
15812
|
-
* @param {number} [page]
|
|
15813
|
-
* @param {number} [limit]
|
|
15814
|
-
* @param {Date} [lastRetrieved]
|
|
16264
|
+
*
|
|
15815
16265
|
* @param {*} [options] Override http request option.
|
|
15816
16266
|
* @throws {RequiredError}
|
|
15817
16267
|
*/
|
|
15818
|
-
|
|
16268
|
+
apiV1ImagesPost: function (options) {
|
|
15819
16269
|
if (options === void 0) { options = {}; }
|
|
15820
16270
|
return __awaiter(_this, void 0, void 0, function () {
|
|
15821
16271
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15822
16272
|
return __generator(this, function (_a) {
|
|
15823
16273
|
switch (_a.label) {
|
|
15824
16274
|
case 0:
|
|
15825
|
-
localVarPath = "/api/v1/
|
|
16275
|
+
localVarPath = "/api/v1/images";
|
|
15826
16276
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15827
16277
|
if (configuration) {
|
|
15828
16278
|
baseOptions = configuration.baseOptions;
|
|
15829
16279
|
}
|
|
15830
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
16280
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
15831
16281
|
localVarHeaderParameter = {};
|
|
15832
16282
|
localVarQueryParameter = {};
|
|
15833
16283
|
// authentication oauth2 required
|
|
@@ -15837,28 +16287,740 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
15837
16287
|
// authentication oauth2 required
|
|
15838
16288
|
// oauth required
|
|
15839
16289
|
_a.sent();
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
}
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
16290
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16291
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16292
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16293
|
+
return [2 /*return*/, {
|
|
16294
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16295
|
+
options: localVarRequestOptions,
|
|
16296
|
+
}];
|
|
16297
|
+
}
|
|
16298
|
+
});
|
|
16299
|
+
});
|
|
16300
|
+
},
|
|
16301
|
+
};
|
|
16302
|
+
};
|
|
16303
|
+
/**
|
|
16304
|
+
* ImagesApi - functional programming interface
|
|
16305
|
+
* @export
|
|
16306
|
+
*/
|
|
16307
|
+
exports.ImagesApiFp = function (configuration) {
|
|
16308
|
+
var localVarAxiosParamCreator = exports.ImagesApiAxiosParamCreator(configuration);
|
|
16309
|
+
return {
|
|
16310
|
+
/**
|
|
16311
|
+
*
|
|
16312
|
+
* @param {*} [options] Override http request option.
|
|
16313
|
+
* @throws {RequiredError}
|
|
16314
|
+
*/
|
|
16315
|
+
apiV1ImagesPost: function (options) {
|
|
16316
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16317
|
+
var localVarAxiosArgs;
|
|
16318
|
+
return __generator(this, function (_a) {
|
|
16319
|
+
switch (_a.label) {
|
|
16320
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ImagesPost(options)];
|
|
16321
|
+
case 1:
|
|
16322
|
+
localVarAxiosArgs = _a.sent();
|
|
16323
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16324
|
+
}
|
|
16325
|
+
});
|
|
16326
|
+
});
|
|
16327
|
+
},
|
|
16328
|
+
};
|
|
16329
|
+
};
|
|
16330
|
+
/**
|
|
16331
|
+
* ImagesApi - factory interface
|
|
16332
|
+
* @export
|
|
16333
|
+
*/
|
|
16334
|
+
exports.ImagesApiFactory = function (configuration, basePath, axios) {
|
|
16335
|
+
var localVarFp = exports.ImagesApiFp(configuration);
|
|
16336
|
+
return {
|
|
16337
|
+
/**
|
|
16338
|
+
*
|
|
16339
|
+
* @param {*} [options] Override http request option.
|
|
16340
|
+
* @throws {RequiredError}
|
|
16341
|
+
*/
|
|
16342
|
+
apiV1ImagesPost: function (options) {
|
|
16343
|
+
return localVarFp.apiV1ImagesPost(options).then(function (request) { return request(axios, basePath); });
|
|
16344
|
+
},
|
|
16345
|
+
};
|
|
16346
|
+
};
|
|
16347
|
+
/**
|
|
16348
|
+
* ImagesApi - object-oriented interface
|
|
16349
|
+
* @export
|
|
16350
|
+
* @class ImagesApi
|
|
16351
|
+
* @extends {BaseAPI}
|
|
16352
|
+
*/
|
|
16353
|
+
var ImagesApi = /** @class */ (function (_super) {
|
|
16354
|
+
__extends(ImagesApi, _super);
|
|
16355
|
+
function ImagesApi() {
|
|
16356
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16357
|
+
}
|
|
16358
|
+
/**
|
|
16359
|
+
*
|
|
16360
|
+
* @param {*} [options] Override http request option.
|
|
16361
|
+
* @throws {RequiredError}
|
|
16362
|
+
* @memberof ImagesApi
|
|
16363
|
+
*/
|
|
16364
|
+
ImagesApi.prototype.apiV1ImagesPost = function (options) {
|
|
16365
|
+
var _this = this;
|
|
16366
|
+
return exports.ImagesApiFp(this.configuration).apiV1ImagesPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16367
|
+
};
|
|
16368
|
+
return ImagesApi;
|
|
16369
|
+
}(base_1.BaseAPI));
|
|
16370
|
+
exports.ImagesApi = ImagesApi;
|
|
16371
|
+
/**
|
|
16372
|
+
* LanguagesApi - axios parameter creator
|
|
16373
|
+
* @export
|
|
16374
|
+
*/
|
|
16375
|
+
exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
16376
|
+
var _this = this;
|
|
16377
|
+
return {
|
|
16378
|
+
/**
|
|
16379
|
+
*
|
|
16380
|
+
* @summary Get Language by code.
|
|
16381
|
+
* @param {string} code
|
|
16382
|
+
* @param {*} [options] Override http request option.
|
|
16383
|
+
* @throws {RequiredError}
|
|
16384
|
+
*/
|
|
16385
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16386
|
+
if (options === void 0) { options = {}; }
|
|
16387
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16388
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16389
|
+
return __generator(this, function (_a) {
|
|
16390
|
+
switch (_a.label) {
|
|
16391
|
+
case 0:
|
|
16392
|
+
// verify required parameter 'code' is not null or undefined
|
|
16393
|
+
common_1.assertParamExists('apiV1LanguagesCodeGet', 'code', code);
|
|
16394
|
+
localVarPath = "/api/v1/languages/{code}"
|
|
16395
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
16396
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16397
|
+
if (configuration) {
|
|
16398
|
+
baseOptions = configuration.baseOptions;
|
|
16399
|
+
}
|
|
16400
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16401
|
+
localVarHeaderParameter = {};
|
|
16402
|
+
localVarQueryParameter = {};
|
|
16403
|
+
// authentication oauth2 required
|
|
16404
|
+
// oauth required
|
|
16405
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16406
|
+
case 1:
|
|
16407
|
+
// authentication oauth2 required
|
|
16408
|
+
// oauth required
|
|
16409
|
+
_a.sent();
|
|
16410
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16411
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16412
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16413
|
+
return [2 /*return*/, {
|
|
16414
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16415
|
+
options: localVarRequestOptions,
|
|
16416
|
+
}];
|
|
16417
|
+
}
|
|
16418
|
+
});
|
|
16419
|
+
});
|
|
16420
|
+
},
|
|
16421
|
+
/**
|
|
16422
|
+
*
|
|
16423
|
+
* @summary Get all Languages.
|
|
16424
|
+
* @param {string} [id]
|
|
16425
|
+
* @param {string} [name]
|
|
16426
|
+
* @param {string} [code]
|
|
16427
|
+
* @param {string} [description]
|
|
16428
|
+
* @param {number} [page]
|
|
16429
|
+
* @param {number} [limit]
|
|
16430
|
+
* @param {Date} [lastRetrieved]
|
|
16431
|
+
* @param {*} [options] Override http request option.
|
|
16432
|
+
* @throws {RequiredError}
|
|
16433
|
+
*/
|
|
16434
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16435
|
+
if (options === void 0) { options = {}; }
|
|
16436
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16437
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16438
|
+
return __generator(this, function (_a) {
|
|
16439
|
+
switch (_a.label) {
|
|
16440
|
+
case 0:
|
|
16441
|
+
localVarPath = "/api/v1/languages";
|
|
16442
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16443
|
+
if (configuration) {
|
|
16444
|
+
baseOptions = configuration.baseOptions;
|
|
16445
|
+
}
|
|
16446
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16447
|
+
localVarHeaderParameter = {};
|
|
16448
|
+
localVarQueryParameter = {};
|
|
16449
|
+
// authentication oauth2 required
|
|
16450
|
+
// oauth required
|
|
16451
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16452
|
+
case 1:
|
|
16453
|
+
// authentication oauth2 required
|
|
16454
|
+
// oauth required
|
|
16455
|
+
_a.sent();
|
|
16456
|
+
if (id !== undefined) {
|
|
16457
|
+
localVarQueryParameter['Id'] = id;
|
|
16458
|
+
}
|
|
16459
|
+
if (name !== undefined) {
|
|
16460
|
+
localVarQueryParameter['Name'] = name;
|
|
16461
|
+
}
|
|
16462
|
+
if (code !== undefined) {
|
|
16463
|
+
localVarQueryParameter['Code'] = code;
|
|
16464
|
+
}
|
|
16465
|
+
if (description !== undefined) {
|
|
16466
|
+
localVarQueryParameter['Description'] = description;
|
|
16467
|
+
}
|
|
16468
|
+
if (page !== undefined) {
|
|
16469
|
+
localVarQueryParameter['page'] = page;
|
|
16470
|
+
}
|
|
16471
|
+
if (limit !== undefined) {
|
|
16472
|
+
localVarQueryParameter['limit'] = limit;
|
|
16473
|
+
}
|
|
16474
|
+
if (lastRetrieved !== undefined) {
|
|
16475
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16476
|
+
lastRetrieved.toISOString() :
|
|
16477
|
+
lastRetrieved;
|
|
16478
|
+
}
|
|
16479
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16480
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16481
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16482
|
+
return [2 /*return*/, {
|
|
16483
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16484
|
+
options: localVarRequestOptions,
|
|
16485
|
+
}];
|
|
16486
|
+
}
|
|
16487
|
+
});
|
|
16488
|
+
});
|
|
16489
|
+
},
|
|
16490
|
+
/**
|
|
16491
|
+
*
|
|
16492
|
+
* @summary Get Language.
|
|
16493
|
+
* @param {string} id
|
|
16494
|
+
* @param {*} [options] Override http request option.
|
|
16495
|
+
* @throws {RequiredError}
|
|
16496
|
+
*/
|
|
16497
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16498
|
+
if (options === void 0) { options = {}; }
|
|
16499
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16500
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16501
|
+
return __generator(this, function (_a) {
|
|
16502
|
+
switch (_a.label) {
|
|
16503
|
+
case 0:
|
|
16504
|
+
// verify required parameter 'id' is not null or undefined
|
|
16505
|
+
common_1.assertParamExists('apiV1LanguagesIdGet', 'id', id);
|
|
16506
|
+
localVarPath = "/api/v1/languages/{id}"
|
|
16507
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
16508
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16509
|
+
if (configuration) {
|
|
16510
|
+
baseOptions = configuration.baseOptions;
|
|
16511
|
+
}
|
|
16512
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16513
|
+
localVarHeaderParameter = {};
|
|
16514
|
+
localVarQueryParameter = {};
|
|
16515
|
+
// authentication oauth2 required
|
|
16516
|
+
// oauth required
|
|
16517
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16518
|
+
case 1:
|
|
16519
|
+
// authentication oauth2 required
|
|
16520
|
+
// oauth required
|
|
16521
|
+
_a.sent();
|
|
16522
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16523
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16524
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16525
|
+
return [2 /*return*/, {
|
|
16526
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16527
|
+
options: localVarRequestOptions,
|
|
16528
|
+
}];
|
|
16529
|
+
}
|
|
16530
|
+
});
|
|
16531
|
+
});
|
|
16532
|
+
},
|
|
16533
|
+
};
|
|
16534
|
+
};
|
|
16535
|
+
/**
|
|
16536
|
+
* LanguagesApi - functional programming interface
|
|
16537
|
+
* @export
|
|
16538
|
+
*/
|
|
16539
|
+
exports.LanguagesApiFp = function (configuration) {
|
|
16540
|
+
var localVarAxiosParamCreator = exports.LanguagesApiAxiosParamCreator(configuration);
|
|
16541
|
+
return {
|
|
16542
|
+
/**
|
|
16543
|
+
*
|
|
16544
|
+
* @summary Get Language by code.
|
|
16545
|
+
* @param {string} code
|
|
16546
|
+
* @param {*} [options] Override http request option.
|
|
16547
|
+
* @throws {RequiredError}
|
|
16548
|
+
*/
|
|
16549
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16551
|
+
var localVarAxiosArgs;
|
|
16552
|
+
return __generator(this, function (_a) {
|
|
16553
|
+
switch (_a.label) {
|
|
16554
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options)];
|
|
16555
|
+
case 1:
|
|
16556
|
+
localVarAxiosArgs = _a.sent();
|
|
16557
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16558
|
+
}
|
|
16559
|
+
});
|
|
16560
|
+
});
|
|
16561
|
+
},
|
|
16562
|
+
/**
|
|
16563
|
+
*
|
|
16564
|
+
* @summary Get all Languages.
|
|
16565
|
+
* @param {string} [id]
|
|
16566
|
+
* @param {string} [name]
|
|
16567
|
+
* @param {string} [code]
|
|
16568
|
+
* @param {string} [description]
|
|
16569
|
+
* @param {number} [page]
|
|
16570
|
+
* @param {number} [limit]
|
|
16571
|
+
* @param {Date} [lastRetrieved]
|
|
16572
|
+
* @param {*} [options] Override http request option.
|
|
16573
|
+
* @throws {RequiredError}
|
|
16574
|
+
*/
|
|
16575
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16576
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16577
|
+
var localVarAxiosArgs;
|
|
16578
|
+
return __generator(this, function (_a) {
|
|
16579
|
+
switch (_a.label) {
|
|
16580
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options)];
|
|
16581
|
+
case 1:
|
|
16582
|
+
localVarAxiosArgs = _a.sent();
|
|
16583
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16584
|
+
}
|
|
16585
|
+
});
|
|
16586
|
+
});
|
|
16587
|
+
},
|
|
16588
|
+
/**
|
|
16589
|
+
*
|
|
16590
|
+
* @summary Get Language.
|
|
16591
|
+
* @param {string} id
|
|
16592
|
+
* @param {*} [options] Override http request option.
|
|
16593
|
+
* @throws {RequiredError}
|
|
16594
|
+
*/
|
|
16595
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16596
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16597
|
+
var localVarAxiosArgs;
|
|
16598
|
+
return __generator(this, function (_a) {
|
|
16599
|
+
switch (_a.label) {
|
|
16600
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options)];
|
|
16601
|
+
case 1:
|
|
16602
|
+
localVarAxiosArgs = _a.sent();
|
|
16603
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16604
|
+
}
|
|
16605
|
+
});
|
|
16606
|
+
});
|
|
16607
|
+
},
|
|
16608
|
+
};
|
|
16609
|
+
};
|
|
16610
|
+
/**
|
|
16611
|
+
* LanguagesApi - factory interface
|
|
16612
|
+
* @export
|
|
16613
|
+
*/
|
|
16614
|
+
exports.LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
16615
|
+
var localVarFp = exports.LanguagesApiFp(configuration);
|
|
16616
|
+
return {
|
|
16617
|
+
/**
|
|
16618
|
+
*
|
|
16619
|
+
* @summary Get Language by code.
|
|
16620
|
+
* @param {string} code
|
|
16621
|
+
* @param {*} [options] Override http request option.
|
|
16622
|
+
* @throws {RequiredError}
|
|
16623
|
+
*/
|
|
16624
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16625
|
+
return localVarFp.apiV1LanguagesCodeGet(code, options).then(function (request) { return request(axios, basePath); });
|
|
16626
|
+
},
|
|
16627
|
+
/**
|
|
16628
|
+
*
|
|
16629
|
+
* @summary Get all Languages.
|
|
16630
|
+
* @param {string} [id]
|
|
16631
|
+
* @param {string} [name]
|
|
16632
|
+
* @param {string} [code]
|
|
16633
|
+
* @param {string} [description]
|
|
16634
|
+
* @param {number} [page]
|
|
16635
|
+
* @param {number} [limit]
|
|
16636
|
+
* @param {Date} [lastRetrieved]
|
|
16637
|
+
* @param {*} [options] Override http request option.
|
|
16638
|
+
* @throws {RequiredError}
|
|
16639
|
+
*/
|
|
16640
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16641
|
+
return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16642
|
+
},
|
|
16643
|
+
/**
|
|
16644
|
+
*
|
|
16645
|
+
* @summary Get Language.
|
|
16646
|
+
* @param {string} id
|
|
16647
|
+
* @param {*} [options] Override http request option.
|
|
16648
|
+
* @throws {RequiredError}
|
|
16649
|
+
*/
|
|
16650
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16651
|
+
return localVarFp.apiV1LanguagesIdGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
16652
|
+
},
|
|
16653
|
+
};
|
|
16654
|
+
};
|
|
16655
|
+
/**
|
|
16656
|
+
* LanguagesApi - object-oriented interface
|
|
16657
|
+
* @export
|
|
16658
|
+
* @class LanguagesApi
|
|
16659
|
+
* @extends {BaseAPI}
|
|
16660
|
+
*/
|
|
16661
|
+
var LanguagesApi = /** @class */ (function (_super) {
|
|
16662
|
+
__extends(LanguagesApi, _super);
|
|
16663
|
+
function LanguagesApi() {
|
|
16664
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16665
|
+
}
|
|
16666
|
+
/**
|
|
16667
|
+
*
|
|
16668
|
+
* @summary Get Language by code.
|
|
16669
|
+
* @param {string} code
|
|
16670
|
+
* @param {*} [options] Override http request option.
|
|
16671
|
+
* @throws {RequiredError}
|
|
16672
|
+
* @memberof LanguagesApi
|
|
16673
|
+
*/
|
|
16674
|
+
LanguagesApi.prototype.apiV1LanguagesCodeGet = function (code, options) {
|
|
16675
|
+
var _this = this;
|
|
16676
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16677
|
+
};
|
|
16678
|
+
/**
|
|
16679
|
+
*
|
|
16680
|
+
* @summary Get all Languages.
|
|
16681
|
+
* @param {string} [id]
|
|
16682
|
+
* @param {string} [name]
|
|
16683
|
+
* @param {string} [code]
|
|
16684
|
+
* @param {string} [description]
|
|
16685
|
+
* @param {number} [page]
|
|
16686
|
+
* @param {number} [limit]
|
|
16687
|
+
* @param {Date} [lastRetrieved]
|
|
16688
|
+
* @param {*} [options] Override http request option.
|
|
16689
|
+
* @throws {RequiredError}
|
|
16690
|
+
* @memberof LanguagesApi
|
|
16691
|
+
*/
|
|
16692
|
+
LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16693
|
+
var _this = this;
|
|
16694
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16695
|
+
};
|
|
16696
|
+
/**
|
|
16697
|
+
*
|
|
16698
|
+
* @summary Get Language.
|
|
16699
|
+
* @param {string} id
|
|
16700
|
+
* @param {*} [options] Override http request option.
|
|
16701
|
+
* @throws {RequiredError}
|
|
16702
|
+
* @memberof LanguagesApi
|
|
16703
|
+
*/
|
|
16704
|
+
LanguagesApi.prototype.apiV1LanguagesIdGet = function (id, options) {
|
|
16705
|
+
var _this = this;
|
|
16706
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16707
|
+
};
|
|
16708
|
+
return LanguagesApi;
|
|
16709
|
+
}(base_1.BaseAPI));
|
|
16710
|
+
exports.LanguagesApi = LanguagesApi;
|
|
16711
|
+
/**
|
|
16712
|
+
* NotificationsApi - axios parameter creator
|
|
16713
|
+
* @export
|
|
16714
|
+
*/
|
|
16715
|
+
exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
16716
|
+
var _this = this;
|
|
16717
|
+
return {
|
|
16718
|
+
/**
|
|
16719
|
+
*
|
|
16720
|
+
* @summary Check notification.
|
|
16721
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16722
|
+
* @param {*} [options] Override http request option.
|
|
16723
|
+
* @throws {RequiredError}
|
|
16724
|
+
*/
|
|
16725
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16726
|
+
if (options === void 0) { options = {}; }
|
|
16727
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16728
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16729
|
+
return __generator(this, function (_a) {
|
|
16730
|
+
switch (_a.label) {
|
|
16731
|
+
case 0:
|
|
16732
|
+
localVarPath = "/api/v1/notifications/check";
|
|
16733
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16734
|
+
if (configuration) {
|
|
16735
|
+
baseOptions = configuration.baseOptions;
|
|
16736
|
+
}
|
|
16737
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16738
|
+
localVarHeaderParameter = {};
|
|
16739
|
+
localVarQueryParameter = {};
|
|
16740
|
+
// authentication oauth2 required
|
|
16741
|
+
// oauth required
|
|
16742
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16743
|
+
case 1:
|
|
16744
|
+
// authentication oauth2 required
|
|
16745
|
+
// oauth required
|
|
16746
|
+
_a.sent();
|
|
16747
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16748
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16749
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16750
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16751
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
|
|
16752
|
+
return [2 /*return*/, {
|
|
16753
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16754
|
+
options: localVarRequestOptions,
|
|
16755
|
+
}];
|
|
16756
|
+
}
|
|
16757
|
+
});
|
|
16758
|
+
});
|
|
16759
|
+
},
|
|
16760
|
+
/**
|
|
16761
|
+
*
|
|
16762
|
+
* @summary Get all notifications.
|
|
16763
|
+
* @param {NotificationCode} [notificationCode]
|
|
16764
|
+
* @param {boolean} [unreadCountOnly]
|
|
16765
|
+
* @param {number} [page]
|
|
16766
|
+
* @param {number} [limit]
|
|
16767
|
+
* @param {Date} [lastRetrieved]
|
|
16768
|
+
* @param {*} [options] Override http request option.
|
|
16769
|
+
* @throws {RequiredError}
|
|
16770
|
+
*/
|
|
16771
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16772
|
+
if (options === void 0) { options = {}; }
|
|
16773
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16774
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16775
|
+
return __generator(this, function (_a) {
|
|
16776
|
+
switch (_a.label) {
|
|
16777
|
+
case 0:
|
|
16778
|
+
localVarPath = "/api/v1/notifications";
|
|
16779
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16780
|
+
if (configuration) {
|
|
16781
|
+
baseOptions = configuration.baseOptions;
|
|
16782
|
+
}
|
|
16783
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16784
|
+
localVarHeaderParameter = {};
|
|
16785
|
+
localVarQueryParameter = {};
|
|
16786
|
+
// authentication oauth2 required
|
|
16787
|
+
// oauth required
|
|
16788
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16789
|
+
case 1:
|
|
16790
|
+
// authentication oauth2 required
|
|
16791
|
+
// oauth required
|
|
16792
|
+
_a.sent();
|
|
16793
|
+
if (notificationCode !== undefined) {
|
|
16794
|
+
localVarQueryParameter['NotificationCode'] = notificationCode;
|
|
16795
|
+
}
|
|
16796
|
+
if (unreadCountOnly !== undefined) {
|
|
16797
|
+
localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
|
|
16798
|
+
}
|
|
16799
|
+
if (page !== undefined) {
|
|
16800
|
+
localVarQueryParameter['page'] = page;
|
|
16801
|
+
}
|
|
16802
|
+
if (limit !== undefined) {
|
|
16803
|
+
localVarQueryParameter['limit'] = limit;
|
|
16804
|
+
}
|
|
16805
|
+
if (lastRetrieved !== undefined) {
|
|
16806
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16807
|
+
lastRetrieved.toISOString() :
|
|
16808
|
+
lastRetrieved;
|
|
16809
|
+
}
|
|
16810
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16811
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16812
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16813
|
+
return [2 /*return*/, {
|
|
16814
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16815
|
+
options: localVarRequestOptions,
|
|
16816
|
+
}];
|
|
16817
|
+
}
|
|
16818
|
+
});
|
|
16819
|
+
});
|
|
16820
|
+
},
|
|
16821
|
+
};
|
|
16822
|
+
};
|
|
16823
|
+
/**
|
|
16824
|
+
* NotificationsApi - functional programming interface
|
|
16825
|
+
* @export
|
|
16826
|
+
*/
|
|
16827
|
+
exports.NotificationsApiFp = function (configuration) {
|
|
16828
|
+
var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
|
|
16829
|
+
return {
|
|
16830
|
+
/**
|
|
16831
|
+
*
|
|
16832
|
+
* @summary Check notification.
|
|
16833
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16834
|
+
* @param {*} [options] Override http request option.
|
|
16835
|
+
* @throws {RequiredError}
|
|
16836
|
+
*/
|
|
16837
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16838
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16839
|
+
var localVarAxiosArgs;
|
|
16840
|
+
return __generator(this, function (_a) {
|
|
16841
|
+
switch (_a.label) {
|
|
16842
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
|
|
16843
|
+
case 1:
|
|
16844
|
+
localVarAxiosArgs = _a.sent();
|
|
16845
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16846
|
+
}
|
|
16847
|
+
});
|
|
16848
|
+
});
|
|
16849
|
+
},
|
|
16850
|
+
/**
|
|
16851
|
+
*
|
|
16852
|
+
* @summary Get all notifications.
|
|
16853
|
+
* @param {NotificationCode} [notificationCode]
|
|
16854
|
+
* @param {boolean} [unreadCountOnly]
|
|
16855
|
+
* @param {number} [page]
|
|
16856
|
+
* @param {number} [limit]
|
|
16857
|
+
* @param {Date} [lastRetrieved]
|
|
16858
|
+
* @param {*} [options] Override http request option.
|
|
16859
|
+
* @throws {RequiredError}
|
|
16860
|
+
*/
|
|
16861
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16862
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16863
|
+
var localVarAxiosArgs;
|
|
16864
|
+
return __generator(this, function (_a) {
|
|
16865
|
+
switch (_a.label) {
|
|
16866
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
|
|
16867
|
+
case 1:
|
|
16868
|
+
localVarAxiosArgs = _a.sent();
|
|
16869
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16870
|
+
}
|
|
16871
|
+
});
|
|
16872
|
+
});
|
|
16873
|
+
},
|
|
16874
|
+
};
|
|
16875
|
+
};
|
|
16876
|
+
/**
|
|
16877
|
+
* NotificationsApi - factory interface
|
|
16878
|
+
* @export
|
|
16879
|
+
*/
|
|
16880
|
+
exports.NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
16881
|
+
var localVarFp = exports.NotificationsApiFp(configuration);
|
|
16882
|
+
return {
|
|
16883
|
+
/**
|
|
16884
|
+
*
|
|
16885
|
+
* @summary Check notification.
|
|
16886
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16887
|
+
* @param {*} [options] Override http request option.
|
|
16888
|
+
* @throws {RequiredError}
|
|
16889
|
+
*/
|
|
16890
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16891
|
+
return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
16892
|
+
},
|
|
16893
|
+
/**
|
|
16894
|
+
*
|
|
16895
|
+
* @summary Get all notifications.
|
|
16896
|
+
* @param {NotificationCode} [notificationCode]
|
|
16897
|
+
* @param {boolean} [unreadCountOnly]
|
|
16898
|
+
* @param {number} [page]
|
|
16899
|
+
* @param {number} [limit]
|
|
16900
|
+
* @param {Date} [lastRetrieved]
|
|
16901
|
+
* @param {*} [options] Override http request option.
|
|
16902
|
+
* @throws {RequiredError}
|
|
16903
|
+
*/
|
|
16904
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16905
|
+
return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16906
|
+
},
|
|
16907
|
+
};
|
|
16908
|
+
};
|
|
16909
|
+
/**
|
|
16910
|
+
* NotificationsApi - object-oriented interface
|
|
16911
|
+
* @export
|
|
16912
|
+
* @class NotificationsApi
|
|
16913
|
+
* @extends {BaseAPI}
|
|
16914
|
+
*/
|
|
16915
|
+
var NotificationsApi = /** @class */ (function (_super) {
|
|
16916
|
+
__extends(NotificationsApi, _super);
|
|
16917
|
+
function NotificationsApi() {
|
|
16918
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16919
|
+
}
|
|
16920
|
+
/**
|
|
16921
|
+
*
|
|
16922
|
+
* @summary Check notification.
|
|
16923
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16924
|
+
* @param {*} [options] Override http request option.
|
|
16925
|
+
* @throws {RequiredError}
|
|
16926
|
+
* @memberof NotificationsApi
|
|
16927
|
+
*/
|
|
16928
|
+
NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
|
|
16929
|
+
var _this = this;
|
|
16930
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16931
|
+
};
|
|
16932
|
+
/**
|
|
16933
|
+
*
|
|
16934
|
+
* @summary Get all notifications.
|
|
16935
|
+
* @param {NotificationCode} [notificationCode]
|
|
16936
|
+
* @param {boolean} [unreadCountOnly]
|
|
16937
|
+
* @param {number} [page]
|
|
16938
|
+
* @param {number} [limit]
|
|
16939
|
+
* @param {Date} [lastRetrieved]
|
|
16940
|
+
* @param {*} [options] Override http request option.
|
|
16941
|
+
* @throws {RequiredError}
|
|
16942
|
+
* @memberof NotificationsApi
|
|
16943
|
+
*/
|
|
16944
|
+
NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16945
|
+
var _this = this;
|
|
16946
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16947
|
+
};
|
|
16948
|
+
return NotificationsApi;
|
|
16949
|
+
}(base_1.BaseAPI));
|
|
16950
|
+
exports.NotificationsApi = NotificationsApi;
|
|
16951
|
+
/**
|
|
16952
|
+
* ServicesApi - axios parameter creator
|
|
16953
|
+
* @export
|
|
16954
|
+
*/
|
|
16955
|
+
exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
16956
|
+
var _this = this;
|
|
16957
|
+
return {
|
|
16958
|
+
/**
|
|
16959
|
+
* Sample request: GET /api/v1/hospitals/services
|
|
16960
|
+
* @summary Get all services.
|
|
16961
|
+
* @param {string} [id]
|
|
16962
|
+
* @param {string} [name]
|
|
16963
|
+
* @param {string} [description]
|
|
16964
|
+
* @param {string} [hospitalId]
|
|
16965
|
+
* @param {string} [hospitalName]
|
|
16966
|
+
* @param {string} [hospitalSlug]
|
|
16967
|
+
* @param {string} [specialtyId]
|
|
16968
|
+
* @param {string} [specialtyTypeId]
|
|
16969
|
+
* @param {string} [specialtyTypeName]
|
|
16970
|
+
* @param {MarketingType} [marketingType]
|
|
16971
|
+
* @param {Procedure} [procedure]
|
|
16972
|
+
* @param {Date} [created]
|
|
16973
|
+
* @param {string} [languageCode]
|
|
16974
|
+
* @param {number} [page]
|
|
16975
|
+
* @param {number} [limit]
|
|
16976
|
+
* @param {Date} [lastRetrieved]
|
|
16977
|
+
* @param {*} [options] Override http request option.
|
|
16978
|
+
* @throws {RequiredError}
|
|
16979
|
+
*/
|
|
16980
|
+
apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
|
|
16981
|
+
if (options === void 0) { options = {}; }
|
|
16982
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16983
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16984
|
+
return __generator(this, function (_a) {
|
|
16985
|
+
switch (_a.label) {
|
|
16986
|
+
case 0:
|
|
16987
|
+
localVarPath = "/api/v1/services";
|
|
16988
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16989
|
+
if (configuration) {
|
|
16990
|
+
baseOptions = configuration.baseOptions;
|
|
16991
|
+
}
|
|
16992
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16993
|
+
localVarHeaderParameter = {};
|
|
16994
|
+
localVarQueryParameter = {};
|
|
16995
|
+
// authentication oauth2 required
|
|
16996
|
+
// oauth required
|
|
16997
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16998
|
+
case 1:
|
|
16999
|
+
// authentication oauth2 required
|
|
17000
|
+
// oauth required
|
|
17001
|
+
_a.sent();
|
|
17002
|
+
if (id !== undefined) {
|
|
17003
|
+
localVarQueryParameter['Id'] = id;
|
|
17004
|
+
}
|
|
17005
|
+
if (name !== undefined) {
|
|
17006
|
+
localVarQueryParameter['Name'] = name;
|
|
17007
|
+
}
|
|
17008
|
+
if (description !== undefined) {
|
|
17009
|
+
localVarQueryParameter['Description'] = description;
|
|
17010
|
+
}
|
|
17011
|
+
if (hospitalId !== undefined) {
|
|
17012
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
17013
|
+
}
|
|
17014
|
+
if (hospitalName !== undefined) {
|
|
17015
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
17016
|
+
}
|
|
17017
|
+
if (hospitalSlug !== undefined) {
|
|
17018
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
17019
|
+
}
|
|
17020
|
+
if (specialtyId !== undefined) {
|
|
17021
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
17022
|
+
}
|
|
17023
|
+
if (specialtyTypeId !== undefined) {
|
|
15862
17024
|
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
15863
17025
|
}
|
|
15864
17026
|
if (specialtyTypeName !== undefined) {
|
|
@@ -16700,8 +17862,252 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16700
17862
|
if (languageCode !== undefined) {
|
|
16701
17863
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
16702
17864
|
}
|
|
16703
|
-
if (ids) {
|
|
16704
|
-
localVarQueryParameter['Ids'] = ids;
|
|
17865
|
+
if (ids) {
|
|
17866
|
+
localVarQueryParameter['Ids'] = ids;
|
|
17867
|
+
}
|
|
17868
|
+
if (page !== undefined) {
|
|
17869
|
+
localVarQueryParameter['page'] = page;
|
|
17870
|
+
}
|
|
17871
|
+
if (limit !== undefined) {
|
|
17872
|
+
localVarQueryParameter['limit'] = limit;
|
|
17873
|
+
}
|
|
17874
|
+
if (lastRetrieved !== undefined) {
|
|
17875
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
17876
|
+
lastRetrieved.toISOString() :
|
|
17877
|
+
lastRetrieved;
|
|
17878
|
+
}
|
|
17879
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17880
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17881
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17882
|
+
return [2 /*return*/, {
|
|
17883
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17884
|
+
options: localVarRequestOptions,
|
|
17885
|
+
}];
|
|
17886
|
+
}
|
|
17887
|
+
});
|
|
17888
|
+
});
|
|
17889
|
+
},
|
|
17890
|
+
/**
|
|
17891
|
+
*
|
|
17892
|
+
* @summary Create a Specialty.
|
|
17893
|
+
* @param {CreateSpecialtyCommand} [createSpecialtyCommand]
|
|
17894
|
+
* @param {*} [options] Override http request option.
|
|
17895
|
+
* @throws {RequiredError}
|
|
17896
|
+
*/
|
|
17897
|
+
apiV1SpecialtiesPost: function (createSpecialtyCommand, options) {
|
|
17898
|
+
if (options === void 0) { options = {}; }
|
|
17899
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17900
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17901
|
+
return __generator(this, function (_a) {
|
|
17902
|
+
switch (_a.label) {
|
|
17903
|
+
case 0:
|
|
17904
|
+
localVarPath = "/api/v1/specialties";
|
|
17905
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17906
|
+
if (configuration) {
|
|
17907
|
+
baseOptions = configuration.baseOptions;
|
|
17908
|
+
}
|
|
17909
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
17910
|
+
localVarHeaderParameter = {};
|
|
17911
|
+
localVarQueryParameter = {};
|
|
17912
|
+
// authentication oauth2 required
|
|
17913
|
+
// oauth required
|
|
17914
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17915
|
+
case 1:
|
|
17916
|
+
// authentication oauth2 required
|
|
17917
|
+
// oauth required
|
|
17918
|
+
_a.sent();
|
|
17919
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17920
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17921
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17922
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17923
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSpecialtyCommand, localVarRequestOptions, configuration);
|
|
17924
|
+
return [2 /*return*/, {
|
|
17925
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17926
|
+
options: localVarRequestOptions,
|
|
17927
|
+
}];
|
|
17928
|
+
}
|
|
17929
|
+
});
|
|
17930
|
+
});
|
|
17931
|
+
},
|
|
17932
|
+
/**
|
|
17933
|
+
*
|
|
17934
|
+
* @summary Get Specialty by slug.
|
|
17935
|
+
* @param {string} slug
|
|
17936
|
+
* @param {string} [languageCode]
|
|
17937
|
+
* @param {*} [options] Override http request option.
|
|
17938
|
+
* @throws {RequiredError}
|
|
17939
|
+
*/
|
|
17940
|
+
apiV1SpecialtiesSlugGet: function (slug, languageCode, options) {
|
|
17941
|
+
if (options === void 0) { options = {}; }
|
|
17942
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17943
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17944
|
+
return __generator(this, function (_a) {
|
|
17945
|
+
switch (_a.label) {
|
|
17946
|
+
case 0:
|
|
17947
|
+
// verify required parameter 'slug' is not null or undefined
|
|
17948
|
+
common_1.assertParamExists('apiV1SpecialtiesSlugGet', 'slug', slug);
|
|
17949
|
+
localVarPath = "/api/v1/specialties/{slug}"
|
|
17950
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
17951
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17952
|
+
if (configuration) {
|
|
17953
|
+
baseOptions = configuration.baseOptions;
|
|
17954
|
+
}
|
|
17955
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
17956
|
+
localVarHeaderParameter = {};
|
|
17957
|
+
localVarQueryParameter = {};
|
|
17958
|
+
// authentication oauth2 required
|
|
17959
|
+
// oauth required
|
|
17960
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17961
|
+
case 1:
|
|
17962
|
+
// authentication oauth2 required
|
|
17963
|
+
// oauth required
|
|
17964
|
+
_a.sent();
|
|
17965
|
+
if (languageCode !== undefined) {
|
|
17966
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
17967
|
+
}
|
|
17968
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17969
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17970
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17971
|
+
return [2 /*return*/, {
|
|
17972
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17973
|
+
options: localVarRequestOptions,
|
|
17974
|
+
}];
|
|
17975
|
+
}
|
|
17976
|
+
});
|
|
17977
|
+
});
|
|
17978
|
+
},
|
|
17979
|
+
/**
|
|
17980
|
+
*
|
|
17981
|
+
* @summary Delete Specialty.
|
|
17982
|
+
* @param {string} specialtyId
|
|
17983
|
+
* @param {*} [options] Override http request option.
|
|
17984
|
+
* @throws {RequiredError}
|
|
17985
|
+
*/
|
|
17986
|
+
apiV1SpecialtiesSpecialtyIdDelete: function (specialtyId, options) {
|
|
17987
|
+
if (options === void 0) { options = {}; }
|
|
17988
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17989
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17990
|
+
return __generator(this, function (_a) {
|
|
17991
|
+
switch (_a.label) {
|
|
17992
|
+
case 0:
|
|
17993
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
17994
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
|
|
17995
|
+
localVarPath = "/api/v1/specialties/{specialtyId}"
|
|
17996
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
17997
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17998
|
+
if (configuration) {
|
|
17999
|
+
baseOptions = configuration.baseOptions;
|
|
18000
|
+
}
|
|
18001
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
18002
|
+
localVarHeaderParameter = {};
|
|
18003
|
+
localVarQueryParameter = {};
|
|
18004
|
+
// authentication oauth2 required
|
|
18005
|
+
// oauth required
|
|
18006
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18007
|
+
case 1:
|
|
18008
|
+
// authentication oauth2 required
|
|
18009
|
+
// oauth required
|
|
18010
|
+
_a.sent();
|
|
18011
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18012
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18013
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18014
|
+
return [2 /*return*/, {
|
|
18015
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18016
|
+
options: localVarRequestOptions,
|
|
18017
|
+
}];
|
|
18018
|
+
}
|
|
18019
|
+
});
|
|
18020
|
+
});
|
|
18021
|
+
},
|
|
18022
|
+
/**
|
|
18023
|
+
*
|
|
18024
|
+
* @summary Get Specialty.
|
|
18025
|
+
* @param {string} specialtyId
|
|
18026
|
+
* @param {string} [languageCode]
|
|
18027
|
+
* @param {*} [options] Override http request option.
|
|
18028
|
+
* @throws {RequiredError}
|
|
18029
|
+
*/
|
|
18030
|
+
apiV1SpecialtiesSpecialtyIdGet: function (specialtyId, languageCode, options) {
|
|
18031
|
+
if (options === void 0) { options = {}; }
|
|
18032
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18033
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18034
|
+
return __generator(this, function (_a) {
|
|
18035
|
+
switch (_a.label) {
|
|
18036
|
+
case 0:
|
|
18037
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
18038
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
|
|
18039
|
+
localVarPath = "/api/v1/specialties/{specialtyId}"
|
|
18040
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
18041
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18042
|
+
if (configuration) {
|
|
18043
|
+
baseOptions = configuration.baseOptions;
|
|
18044
|
+
}
|
|
18045
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18046
|
+
localVarHeaderParameter = {};
|
|
18047
|
+
localVarQueryParameter = {};
|
|
18048
|
+
// authentication oauth2 required
|
|
18049
|
+
// oauth required
|
|
18050
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18051
|
+
case 1:
|
|
18052
|
+
// authentication oauth2 required
|
|
18053
|
+
// oauth required
|
|
18054
|
+
_a.sent();
|
|
18055
|
+
if (languageCode !== undefined) {
|
|
18056
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
18057
|
+
}
|
|
18058
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18059
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18060
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18061
|
+
return [2 /*return*/, {
|
|
18062
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18063
|
+
options: localVarRequestOptions,
|
|
18064
|
+
}];
|
|
18065
|
+
}
|
|
18066
|
+
});
|
|
18067
|
+
});
|
|
18068
|
+
},
|
|
18069
|
+
/**
|
|
18070
|
+
*
|
|
18071
|
+
* @summary Get all SpecialtyMedias.
|
|
18072
|
+
* @param {string} specialtyId
|
|
18073
|
+
* @param {string} [id]
|
|
18074
|
+
* @param {MediaType} [mediaType]
|
|
18075
|
+
* @param {number} [page]
|
|
18076
|
+
* @param {number} [limit]
|
|
18077
|
+
* @param {Date} [lastRetrieved]
|
|
18078
|
+
* @param {*} [options] Override http request option.
|
|
18079
|
+
* @throws {RequiredError}
|
|
18080
|
+
*/
|
|
18081
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
18082
|
+
if (options === void 0) { options = {}; }
|
|
18083
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18084
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18085
|
+
return __generator(this, function (_a) {
|
|
18086
|
+
switch (_a.label) {
|
|
18087
|
+
case 0:
|
|
18088
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
18089
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasGet', 'specialtyId', specialtyId);
|
|
18090
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias"
|
|
18091
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
18092
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18093
|
+
if (configuration) {
|
|
18094
|
+
baseOptions = configuration.baseOptions;
|
|
18095
|
+
}
|
|
18096
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18097
|
+
localVarHeaderParameter = {};
|
|
18098
|
+
localVarQueryParameter = {};
|
|
18099
|
+
// authentication oauth2 required
|
|
18100
|
+
// oauth required
|
|
18101
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18102
|
+
case 1:
|
|
18103
|
+
// authentication oauth2 required
|
|
18104
|
+
// oauth required
|
|
18105
|
+
_a.sent();
|
|
18106
|
+
if (id !== undefined) {
|
|
18107
|
+
localVarQueryParameter['Id'] = id;
|
|
18108
|
+
}
|
|
18109
|
+
if (mediaType !== undefined) {
|
|
18110
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
16705
18111
|
}
|
|
16706
18112
|
if (page !== undefined) {
|
|
16707
18113
|
localVarQueryParameter['page'] = page;
|
|
@@ -16727,24 +18133,31 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16727
18133
|
},
|
|
16728
18134
|
/**
|
|
16729
18135
|
*
|
|
16730
|
-
* @summary
|
|
16731
|
-
* @param {
|
|
18136
|
+
* @summary Delete SpecialtyMedia
|
|
18137
|
+
* @param {string} specialtyId
|
|
18138
|
+
* @param {string} mediaId
|
|
16732
18139
|
* @param {*} [options] Override http request option.
|
|
16733
18140
|
* @throws {RequiredError}
|
|
16734
18141
|
*/
|
|
16735
|
-
|
|
18142
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
16736
18143
|
if (options === void 0) { options = {}; }
|
|
16737
18144
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16738
18145
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16739
18146
|
return __generator(this, function (_a) {
|
|
16740
18147
|
switch (_a.label) {
|
|
16741
18148
|
case 0:
|
|
16742
|
-
|
|
18149
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
18150
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'specialtyId', specialtyId);
|
|
18151
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
18152
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
18153
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
18154
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
18155
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
16743
18156
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16744
18157
|
if (configuration) {
|
|
16745
18158
|
baseOptions = configuration.baseOptions;
|
|
16746
18159
|
}
|
|
16747
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
18160
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
16748
18161
|
localVarHeaderParameter = {};
|
|
16749
18162
|
localVarQueryParameter = {};
|
|
16750
18163
|
// authentication oauth2 required
|
|
@@ -16754,11 +18167,9 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16754
18167
|
// authentication oauth2 required
|
|
16755
18168
|
// oauth required
|
|
16756
18169
|
_a.sent();
|
|
16757
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16758
18170
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16759
18171
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16760
18172
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16761
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSpecialtyCommand, localVarRequestOptions, configuration);
|
|
16762
18173
|
return [2 /*return*/, {
|
|
16763
18174
|
url: common_1.toPathString(localVarUrlObj),
|
|
16764
18175
|
options: localVarRequestOptions,
|
|
@@ -16769,23 +18180,26 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16769
18180
|
},
|
|
16770
18181
|
/**
|
|
16771
18182
|
*
|
|
16772
|
-
* @summary Get
|
|
16773
|
-
* @param {string}
|
|
16774
|
-
* @param {string}
|
|
18183
|
+
* @summary Get SpecialtyMedia.
|
|
18184
|
+
* @param {string} specialtyId
|
|
18185
|
+
* @param {string} mediaId
|
|
16775
18186
|
* @param {*} [options] Override http request option.
|
|
16776
18187
|
* @throws {RequiredError}
|
|
16777
18188
|
*/
|
|
16778
|
-
|
|
18189
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
16779
18190
|
if (options === void 0) { options = {}; }
|
|
16780
18191
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16781
18192
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16782
18193
|
return __generator(this, function (_a) {
|
|
16783
18194
|
switch (_a.label) {
|
|
16784
18195
|
case 0:
|
|
16785
|
-
// verify required parameter '
|
|
16786
|
-
common_1.assertParamExists('
|
|
16787
|
-
|
|
16788
|
-
|
|
18196
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
18197
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'specialtyId', specialtyId);
|
|
18198
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
18199
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
18200
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
18201
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
18202
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
16789
18203
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16790
18204
|
if (configuration) {
|
|
16791
18205
|
baseOptions = configuration.baseOptions;
|
|
@@ -16800,9 +18214,6 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16800
18214
|
// authentication oauth2 required
|
|
16801
18215
|
// oauth required
|
|
16802
18216
|
_a.sent();
|
|
16803
|
-
if (languageCode !== undefined) {
|
|
16804
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
16805
|
-
}
|
|
16806
18217
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16807
18218
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16808
18219
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -16816,12 +18227,14 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16816
18227
|
},
|
|
16817
18228
|
/**
|
|
16818
18229
|
*
|
|
16819
|
-
* @summary
|
|
18230
|
+
* @summary Update SpecialtyMedia.
|
|
16820
18231
|
* @param {string} specialtyId
|
|
18232
|
+
* @param {string} mediaId
|
|
18233
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
16821
18234
|
* @param {*} [options] Override http request option.
|
|
16822
18235
|
* @throws {RequiredError}
|
|
16823
18236
|
*/
|
|
16824
|
-
|
|
18237
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
16825
18238
|
if (options === void 0) { options = {}; }
|
|
16826
18239
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16827
18240
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -16829,14 +18242,17 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16829
18242
|
switch (_a.label) {
|
|
16830
18243
|
case 0:
|
|
16831
18244
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
16832
|
-
common_1.assertParamExists('
|
|
16833
|
-
|
|
16834
|
-
|
|
18245
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'specialtyId', specialtyId);
|
|
18246
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
18247
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
18248
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
18249
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
18250
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
16835
18251
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16836
18252
|
if (configuration) {
|
|
16837
18253
|
baseOptions = configuration.baseOptions;
|
|
16838
18254
|
}
|
|
16839
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
18255
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
16840
18256
|
localVarHeaderParameter = {};
|
|
16841
18257
|
localVarQueryParameter = {};
|
|
16842
18258
|
// authentication oauth2 required
|
|
@@ -16846,9 +18262,11 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16846
18262
|
// authentication oauth2 required
|
|
16847
18263
|
// oauth required
|
|
16848
18264
|
_a.sent();
|
|
18265
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16849
18266
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16850
18267
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16851
18268
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18269
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
16852
18270
|
return [2 /*return*/, {
|
|
16853
18271
|
url: common_1.toPathString(localVarUrlObj),
|
|
16854
18272
|
options: localVarRequestOptions,
|
|
@@ -16859,13 +18277,13 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16859
18277
|
},
|
|
16860
18278
|
/**
|
|
16861
18279
|
*
|
|
16862
|
-
* @summary
|
|
18280
|
+
* @summary Create SpecialtyMedia.
|
|
16863
18281
|
* @param {string} specialtyId
|
|
16864
|
-
* @param {
|
|
18282
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
16865
18283
|
* @param {*} [options] Override http request option.
|
|
16866
18284
|
* @throws {RequiredError}
|
|
16867
18285
|
*/
|
|
16868
|
-
|
|
18286
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
16869
18287
|
if (options === void 0) { options = {}; }
|
|
16870
18288
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16871
18289
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -16873,14 +18291,14 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16873
18291
|
switch (_a.label) {
|
|
16874
18292
|
case 0:
|
|
16875
18293
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
16876
|
-
common_1.assertParamExists('
|
|
16877
|
-
localVarPath = "/api/v1/specialties/{specialtyId}"
|
|
18294
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasPost', 'specialtyId', specialtyId);
|
|
18295
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias"
|
|
16878
18296
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
16879
18297
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16880
18298
|
if (configuration) {
|
|
16881
18299
|
baseOptions = configuration.baseOptions;
|
|
16882
18300
|
}
|
|
16883
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
18301
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16884
18302
|
localVarHeaderParameter = {};
|
|
16885
18303
|
localVarQueryParameter = {};
|
|
16886
18304
|
// authentication oauth2 required
|
|
@@ -16890,12 +18308,11 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16890
18308
|
// authentication oauth2 required
|
|
16891
18309
|
// oauth required
|
|
16892
18310
|
_a.sent();
|
|
16893
|
-
|
|
16894
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
16895
|
-
}
|
|
18311
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16896
18312
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16897
18313
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16898
18314
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18315
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
16899
18316
|
return [2 /*return*/, {
|
|
16900
18317
|
url: common_1.toPathString(localVarUrlObj),
|
|
16901
18318
|
options: localVarRequestOptions,
|
|
@@ -17071,6 +18488,116 @@ exports.SpecialtiesApiFp = function (configuration) {
|
|
|
17071
18488
|
});
|
|
17072
18489
|
});
|
|
17073
18490
|
},
|
|
18491
|
+
/**
|
|
18492
|
+
*
|
|
18493
|
+
* @summary Get all SpecialtyMedias.
|
|
18494
|
+
* @param {string} specialtyId
|
|
18495
|
+
* @param {string} [id]
|
|
18496
|
+
* @param {MediaType} [mediaType]
|
|
18497
|
+
* @param {number} [page]
|
|
18498
|
+
* @param {number} [limit]
|
|
18499
|
+
* @param {Date} [lastRetrieved]
|
|
18500
|
+
* @param {*} [options] Override http request option.
|
|
18501
|
+
* @throws {RequiredError}
|
|
18502
|
+
*/
|
|
18503
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
18504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18505
|
+
var localVarAxiosArgs;
|
|
18506
|
+
return __generator(this, function (_a) {
|
|
18507
|
+
switch (_a.label) {
|
|
18508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
18509
|
+
case 1:
|
|
18510
|
+
localVarAxiosArgs = _a.sent();
|
|
18511
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18512
|
+
}
|
|
18513
|
+
});
|
|
18514
|
+
});
|
|
18515
|
+
},
|
|
18516
|
+
/**
|
|
18517
|
+
*
|
|
18518
|
+
* @summary Delete SpecialtyMedia
|
|
18519
|
+
* @param {string} specialtyId
|
|
18520
|
+
* @param {string} mediaId
|
|
18521
|
+
* @param {*} [options] Override http request option.
|
|
18522
|
+
* @throws {RequiredError}
|
|
18523
|
+
*/
|
|
18524
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
18525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18526
|
+
var localVarAxiosArgs;
|
|
18527
|
+
return __generator(this, function (_a) {
|
|
18528
|
+
switch (_a.label) {
|
|
18529
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options)];
|
|
18530
|
+
case 1:
|
|
18531
|
+
localVarAxiosArgs = _a.sent();
|
|
18532
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18533
|
+
}
|
|
18534
|
+
});
|
|
18535
|
+
});
|
|
18536
|
+
},
|
|
18537
|
+
/**
|
|
18538
|
+
*
|
|
18539
|
+
* @summary Get SpecialtyMedia.
|
|
18540
|
+
* @param {string} specialtyId
|
|
18541
|
+
* @param {string} mediaId
|
|
18542
|
+
* @param {*} [options] Override http request option.
|
|
18543
|
+
* @throws {RequiredError}
|
|
18544
|
+
*/
|
|
18545
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
18546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18547
|
+
var localVarAxiosArgs;
|
|
18548
|
+
return __generator(this, function (_a) {
|
|
18549
|
+
switch (_a.label) {
|
|
18550
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options)];
|
|
18551
|
+
case 1:
|
|
18552
|
+
localVarAxiosArgs = _a.sent();
|
|
18553
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18554
|
+
}
|
|
18555
|
+
});
|
|
18556
|
+
});
|
|
18557
|
+
},
|
|
18558
|
+
/**
|
|
18559
|
+
*
|
|
18560
|
+
* @summary Update SpecialtyMedia.
|
|
18561
|
+
* @param {string} specialtyId
|
|
18562
|
+
* @param {string} mediaId
|
|
18563
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
18564
|
+
* @param {*} [options] Override http request option.
|
|
18565
|
+
* @throws {RequiredError}
|
|
18566
|
+
*/
|
|
18567
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
18568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18569
|
+
var localVarAxiosArgs;
|
|
18570
|
+
return __generator(this, function (_a) {
|
|
18571
|
+
switch (_a.label) {
|
|
18572
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options)];
|
|
18573
|
+
case 1:
|
|
18574
|
+
localVarAxiosArgs = _a.sent();
|
|
18575
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18576
|
+
}
|
|
18577
|
+
});
|
|
18578
|
+
});
|
|
18579
|
+
},
|
|
18580
|
+
/**
|
|
18581
|
+
*
|
|
18582
|
+
* @summary Create SpecialtyMedia.
|
|
18583
|
+
* @param {string} specialtyId
|
|
18584
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
18585
|
+
* @param {*} [options] Override http request option.
|
|
18586
|
+
* @throws {RequiredError}
|
|
18587
|
+
*/
|
|
18588
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
18589
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18590
|
+
var localVarAxiosArgs;
|
|
18591
|
+
return __generator(this, function (_a) {
|
|
18592
|
+
switch (_a.label) {
|
|
18593
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options)];
|
|
18594
|
+
case 1:
|
|
18595
|
+
localVarAxiosArgs = _a.sent();
|
|
18596
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18597
|
+
}
|
|
18598
|
+
});
|
|
18599
|
+
});
|
|
18600
|
+
},
|
|
17074
18601
|
/**
|
|
17075
18602
|
*
|
|
17076
18603
|
* @summary Update Specialty.
|
|
@@ -17163,6 +18690,66 @@ exports.SpecialtiesApiFactory = function (configuration, basePath, axios) {
|
|
|
17163
18690
|
apiV1SpecialtiesSpecialtyIdGet: function (specialtyId, languageCode, options) {
|
|
17164
18691
|
return localVarFp.apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
17165
18692
|
},
|
|
18693
|
+
/**
|
|
18694
|
+
*
|
|
18695
|
+
* @summary Get all SpecialtyMedias.
|
|
18696
|
+
* @param {string} specialtyId
|
|
18697
|
+
* @param {string} [id]
|
|
18698
|
+
* @param {MediaType} [mediaType]
|
|
18699
|
+
* @param {number} [page]
|
|
18700
|
+
* @param {number} [limit]
|
|
18701
|
+
* @param {Date} [lastRetrieved]
|
|
18702
|
+
* @param {*} [options] Override http request option.
|
|
18703
|
+
* @throws {RequiredError}
|
|
18704
|
+
*/
|
|
18705
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
18706
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18707
|
+
},
|
|
18708
|
+
/**
|
|
18709
|
+
*
|
|
18710
|
+
* @summary Delete SpecialtyMedia
|
|
18711
|
+
* @param {string} specialtyId
|
|
18712
|
+
* @param {string} mediaId
|
|
18713
|
+
* @param {*} [options] Override http request option.
|
|
18714
|
+
* @throws {RequiredError}
|
|
18715
|
+
*/
|
|
18716
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
18717
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
18718
|
+
},
|
|
18719
|
+
/**
|
|
18720
|
+
*
|
|
18721
|
+
* @summary Get SpecialtyMedia.
|
|
18722
|
+
* @param {string} specialtyId
|
|
18723
|
+
* @param {string} mediaId
|
|
18724
|
+
* @param {*} [options] Override http request option.
|
|
18725
|
+
* @throws {RequiredError}
|
|
18726
|
+
*/
|
|
18727
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
18728
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
18729
|
+
},
|
|
18730
|
+
/**
|
|
18731
|
+
*
|
|
18732
|
+
* @summary Update SpecialtyMedia.
|
|
18733
|
+
* @param {string} specialtyId
|
|
18734
|
+
* @param {string} mediaId
|
|
18735
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
18736
|
+
* @param {*} [options] Override http request option.
|
|
18737
|
+
* @throws {RequiredError}
|
|
18738
|
+
*/
|
|
18739
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
18740
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
18741
|
+
},
|
|
18742
|
+
/**
|
|
18743
|
+
*
|
|
18744
|
+
* @summary Create SpecialtyMedia.
|
|
18745
|
+
* @param {string} specialtyId
|
|
18746
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
18747
|
+
* @param {*} [options] Override http request option.
|
|
18748
|
+
* @throws {RequiredError}
|
|
18749
|
+
*/
|
|
18750
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
18751
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
18752
|
+
},
|
|
17166
18753
|
/**
|
|
17167
18754
|
*
|
|
17168
18755
|
* @summary Update Specialty.
|
|
@@ -17259,6 +18846,76 @@ var SpecialtiesApi = /** @class */ (function (_super) {
|
|
|
17259
18846
|
var _this = this;
|
|
17260
18847
|
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17261
18848
|
};
|
|
18849
|
+
/**
|
|
18850
|
+
*
|
|
18851
|
+
* @summary Get all SpecialtyMedias.
|
|
18852
|
+
* @param {string} specialtyId
|
|
18853
|
+
* @param {string} [id]
|
|
18854
|
+
* @param {MediaType} [mediaType]
|
|
18855
|
+
* @param {number} [page]
|
|
18856
|
+
* @param {number} [limit]
|
|
18857
|
+
* @param {Date} [lastRetrieved]
|
|
18858
|
+
* @param {*} [options] Override http request option.
|
|
18859
|
+
* @throws {RequiredError}
|
|
18860
|
+
* @memberof SpecialtiesApi
|
|
18861
|
+
*/
|
|
18862
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasGet = function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
18863
|
+
var _this = this;
|
|
18864
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18865
|
+
};
|
|
18866
|
+
/**
|
|
18867
|
+
*
|
|
18868
|
+
* @summary Delete SpecialtyMedia
|
|
18869
|
+
* @param {string} specialtyId
|
|
18870
|
+
* @param {string} mediaId
|
|
18871
|
+
* @param {*} [options] Override http request option.
|
|
18872
|
+
* @throws {RequiredError}
|
|
18873
|
+
* @memberof SpecialtiesApi
|
|
18874
|
+
*/
|
|
18875
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete = function (specialtyId, mediaId, options) {
|
|
18876
|
+
var _this = this;
|
|
18877
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18878
|
+
};
|
|
18879
|
+
/**
|
|
18880
|
+
*
|
|
18881
|
+
* @summary Get SpecialtyMedia.
|
|
18882
|
+
* @param {string} specialtyId
|
|
18883
|
+
* @param {string} mediaId
|
|
18884
|
+
* @param {*} [options] Override http request option.
|
|
18885
|
+
* @throws {RequiredError}
|
|
18886
|
+
* @memberof SpecialtiesApi
|
|
18887
|
+
*/
|
|
18888
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet = function (specialtyId, mediaId, options) {
|
|
18889
|
+
var _this = this;
|
|
18890
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18891
|
+
};
|
|
18892
|
+
/**
|
|
18893
|
+
*
|
|
18894
|
+
* @summary Update SpecialtyMedia.
|
|
18895
|
+
* @param {string} specialtyId
|
|
18896
|
+
* @param {string} mediaId
|
|
18897
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
18898
|
+
* @param {*} [options] Override http request option.
|
|
18899
|
+
* @throws {RequiredError}
|
|
18900
|
+
* @memberof SpecialtiesApi
|
|
18901
|
+
*/
|
|
18902
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut = function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
18903
|
+
var _this = this;
|
|
18904
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18905
|
+
};
|
|
18906
|
+
/**
|
|
18907
|
+
*
|
|
18908
|
+
* @summary Create SpecialtyMedia.
|
|
18909
|
+
* @param {string} specialtyId
|
|
18910
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
18911
|
+
* @param {*} [options] Override http request option.
|
|
18912
|
+
* @throws {RequiredError}
|
|
18913
|
+
* @memberof SpecialtiesApi
|
|
18914
|
+
*/
|
|
18915
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasPost = function (specialtyId, createMediaCommand, options) {
|
|
18916
|
+
var _this = this;
|
|
18917
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18918
|
+
};
|
|
17262
18919
|
/**
|
|
17263
18920
|
*
|
|
17264
18921
|
* @summary Update Specialty.
|