ch-admin-api-client-typescript 2.4.0 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +2509 -6295
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +949 -346
- package/package.json +1 -1
- package/src/api.ts +1333 -4800
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.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = 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.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = 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.
|
|
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.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = 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.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = 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.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = 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
|
|
@@ -109,17 +109,6 @@ var BookingStatus;
|
|
|
109
109
|
BookingStatus["RefundRequested"] = "RefundRequested";
|
|
110
110
|
BookingStatus["Refunded"] = "Refunded";
|
|
111
111
|
})(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @export
|
|
115
|
-
* @enum {string}
|
|
116
|
-
*/
|
|
117
|
-
var ChargeStatus;
|
|
118
|
-
(function (ChargeStatus) {
|
|
119
|
-
ChargeStatus["Pending"] = "Pending";
|
|
120
|
-
ChargeStatus["Succeeded"] = "Succeeded";
|
|
121
|
-
ChargeStatus["Failed"] = "Failed";
|
|
122
|
-
})(ChargeStatus = exports.ChargeStatus || (exports.ChargeStatus = {}));
|
|
123
112
|
/**
|
|
124
113
|
*
|
|
125
114
|
* @export
|
|
@@ -220,40 +209,6 @@ var NotificationCode;
|
|
|
220
209
|
NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
|
|
221
210
|
NotificationCode["ConsultationReady"] = "ConsultationReady";
|
|
222
211
|
})(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* @export
|
|
226
|
-
* @enum {string}
|
|
227
|
-
*/
|
|
228
|
-
var PaymentMethod;
|
|
229
|
-
(function (PaymentMethod) {
|
|
230
|
-
PaymentMethod["Stripe"] = "Stripe";
|
|
231
|
-
PaymentMethod["Paypal"] = "Paypal";
|
|
232
|
-
PaymentMethod["BankTransfer"] = "BankTransfer";
|
|
233
|
-
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
* @export
|
|
237
|
-
* @enum {string}
|
|
238
|
-
*/
|
|
239
|
-
var PaymentStatus;
|
|
240
|
-
(function (PaymentStatus) {
|
|
241
|
-
PaymentStatus["Unpaid"] = "Unpaid";
|
|
242
|
-
PaymentStatus["Paid"] = "Paid";
|
|
243
|
-
PaymentStatus["RefundRequested"] = "RefundRequested";
|
|
244
|
-
PaymentStatus["Refunded"] = "Refunded";
|
|
245
|
-
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* @export
|
|
249
|
-
* @enum {string}
|
|
250
|
-
*/
|
|
251
|
-
var Platform;
|
|
252
|
-
(function (Platform) {
|
|
253
|
-
Platform["Web"] = "Web";
|
|
254
|
-
Platform["IOs"] = "iOS";
|
|
255
|
-
Platform["Android"] = "Android";
|
|
256
|
-
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
257
212
|
/**
|
|
258
213
|
*
|
|
259
214
|
* @export
|
|
@@ -264,31 +219,6 @@ var Procedure;
|
|
|
264
219
|
Procedure["Treatment"] = "Treatment";
|
|
265
220
|
Procedure["Diagnostic"] = "Diagnostic";
|
|
266
221
|
})(Procedure = exports.Procedure || (exports.Procedure = {}));
|
|
267
|
-
/**
|
|
268
|
-
*
|
|
269
|
-
* @export
|
|
270
|
-
* @enum {string}
|
|
271
|
-
*/
|
|
272
|
-
var QuestionStatus;
|
|
273
|
-
(function (QuestionStatus) {
|
|
274
|
-
QuestionStatus["New"] = "New";
|
|
275
|
-
QuestionStatus["Answered"] = "Answered";
|
|
276
|
-
QuestionStatus["Replied"] = "Replied";
|
|
277
|
-
QuestionStatus["Archived"] = "Archived";
|
|
278
|
-
})(QuestionStatus = exports.QuestionStatus || (exports.QuestionStatus = {}));
|
|
279
|
-
/**
|
|
280
|
-
*
|
|
281
|
-
* @export
|
|
282
|
-
* @enum {string}
|
|
283
|
-
*/
|
|
284
|
-
var QuestionType;
|
|
285
|
-
(function (QuestionType) {
|
|
286
|
-
QuestionType["General"] = "General";
|
|
287
|
-
QuestionType["Health"] = "Health";
|
|
288
|
-
QuestionType["Treatment"] = "Treatment";
|
|
289
|
-
QuestionType["Travel"] = "Travel";
|
|
290
|
-
QuestionType["Consult"] = "Consult";
|
|
291
|
-
})(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
|
|
292
222
|
/**
|
|
293
223
|
*
|
|
294
224
|
* @export
|
|
@@ -312,17 +242,6 @@ var RefundPolicy;
|
|
|
312
242
|
RefundPolicy["Refundable"] = "Refundable";
|
|
313
243
|
RefundPolicy["PartialRefundable"] = "PartialRefundable";
|
|
314
244
|
})(RefundPolicy = exports.RefundPolicy || (exports.RefundPolicy = {}));
|
|
315
|
-
/**
|
|
316
|
-
*
|
|
317
|
-
* @export
|
|
318
|
-
* @enum {string}
|
|
319
|
-
*/
|
|
320
|
-
var RefundStatus;
|
|
321
|
-
(function (RefundStatus) {
|
|
322
|
-
RefundStatus["Pending"] = "Pending";
|
|
323
|
-
RefundStatus["Succeeded"] = "Succeeded";
|
|
324
|
-
RefundStatus["Failed"] = "Failed";
|
|
325
|
-
})(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {}));
|
|
326
245
|
/**
|
|
327
246
|
*
|
|
328
247
|
* @export
|
|
@@ -335,18 +254,6 @@ var RejectReason;
|
|
|
335
254
|
RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
|
|
336
255
|
RejectReason["OtherReason"] = "OtherReason";
|
|
337
256
|
})(RejectReason = exports.RejectReason || (exports.RejectReason = {}));
|
|
338
|
-
/**
|
|
339
|
-
*
|
|
340
|
-
* @export
|
|
341
|
-
* @enum {string}
|
|
342
|
-
*/
|
|
343
|
-
var ReviewCategory;
|
|
344
|
-
(function (ReviewCategory) {
|
|
345
|
-
ReviewCategory["Services"] = "Services";
|
|
346
|
-
ReviewCategory["Hospitality"] = "Hospitality";
|
|
347
|
-
ReviewCategory["Transfer"] = "Transfer";
|
|
348
|
-
ReviewCategory["Etc"] = "Etc";
|
|
349
|
-
})(ReviewCategory = exports.ReviewCategory || (exports.ReviewCategory = {}));
|
|
350
257
|
/**
|
|
351
258
|
*
|
|
352
259
|
* @export
|
|
@@ -368,16 +275,6 @@ var UserLocationType;
|
|
|
368
275
|
UserLocationType["LivesIn"] = "LivesIn";
|
|
369
276
|
UserLocationType["BirthPlace"] = "BirthPlace";
|
|
370
277
|
})(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
|
|
371
|
-
/**
|
|
372
|
-
*
|
|
373
|
-
* @export
|
|
374
|
-
* @enum {string}
|
|
375
|
-
*/
|
|
376
|
-
var VendorType;
|
|
377
|
-
(function (VendorType) {
|
|
378
|
-
VendorType["Stripe"] = "Stripe";
|
|
379
|
-
VendorType["WeChat"] = "WeChat";
|
|
380
|
-
})(VendorType = exports.VendorType || (exports.VendorType = {}));
|
|
381
278
|
/**
|
|
382
279
|
* AccreditationsApi - axios parameter creator
|
|
383
280
|
* @export
|
|
@@ -8118,13 +8015,14 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8118
8015
|
* @param {string} [description]
|
|
8119
8016
|
* @param {Date} [createdDate]
|
|
8120
8017
|
* @param {string} [languageCode]
|
|
8018
|
+
* @param {boolean} [showHidden]
|
|
8121
8019
|
* @param {number} [page]
|
|
8122
8020
|
* @param {number} [limit]
|
|
8123
8021
|
* @param {Date} [lastRetrieved]
|
|
8124
8022
|
* @param {*} [options] Override http request option.
|
|
8125
8023
|
* @throws {RequiredError}
|
|
8126
8024
|
*/
|
|
8127
|
-
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
|
|
8025
|
+
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
8128
8026
|
if (options === void 0) { options = {}; }
|
|
8129
8027
|
return __awaiter(_this, void 0, void 0, function () {
|
|
8130
8028
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -8163,6 +8061,9 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8163
8061
|
if (languageCode !== undefined) {
|
|
8164
8062
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
8165
8063
|
}
|
|
8064
|
+
if (showHidden !== undefined) {
|
|
8065
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
8066
|
+
}
|
|
8166
8067
|
if (page !== undefined) {
|
|
8167
8068
|
localVarQueryParameter['page'] = page;
|
|
8168
8069
|
}
|
|
@@ -8463,18 +8364,19 @@ exports.CountriesApiFp = function (configuration) {
|
|
|
8463
8364
|
* @param {string} [description]
|
|
8464
8365
|
* @param {Date} [createdDate]
|
|
8465
8366
|
* @param {string} [languageCode]
|
|
8367
|
+
* @param {boolean} [showHidden]
|
|
8466
8368
|
* @param {number} [page]
|
|
8467
8369
|
* @param {number} [limit]
|
|
8468
8370
|
* @param {Date} [lastRetrieved]
|
|
8469
8371
|
* @param {*} [options] Override http request option.
|
|
8470
8372
|
* @throws {RequiredError}
|
|
8471
8373
|
*/
|
|
8472
|
-
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
|
|
8374
|
+
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
8473
8375
|
return __awaiter(this, void 0, void 0, function () {
|
|
8474
8376
|
var localVarAxiosArgs;
|
|
8475
8377
|
return __generator(this, function (_a) {
|
|
8476
8378
|
switch (_a.label) {
|
|
8477
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options)];
|
|
8379
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
8478
8380
|
case 1:
|
|
8479
8381
|
localVarAxiosArgs = _a.sent();
|
|
8480
8382
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8632,14 +8534,15 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
|
|
|
8632
8534
|
* @param {string} [description]
|
|
8633
8535
|
* @param {Date} [createdDate]
|
|
8634
8536
|
* @param {string} [languageCode]
|
|
8537
|
+
* @param {boolean} [showHidden]
|
|
8635
8538
|
* @param {number} [page]
|
|
8636
8539
|
* @param {number} [limit]
|
|
8637
8540
|
* @param {Date} [lastRetrieved]
|
|
8638
8541
|
* @param {*} [options] Override http request option.
|
|
8639
8542
|
* @throws {RequiredError}
|
|
8640
8543
|
*/
|
|
8641
|
-
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
|
|
8642
|
-
return localVarFp.apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
8544
|
+
apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
8545
|
+
return localVarFp.apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
8643
8546
|
},
|
|
8644
8547
|
/**
|
|
8645
8548
|
*
|
|
@@ -8791,6 +8694,7 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
8791
8694
|
* @param {string} [description]
|
|
8792
8695
|
* @param {Date} [createdDate]
|
|
8793
8696
|
* @param {string} [languageCode]
|
|
8697
|
+
* @param {boolean} [showHidden]
|
|
8794
8698
|
* @param {number} [page]
|
|
8795
8699
|
* @param {number} [limit]
|
|
8796
8700
|
* @param {Date} [lastRetrieved]
|
|
@@ -8798,9 +8702,9 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
8798
8702
|
* @throws {RequiredError}
|
|
8799
8703
|
* @memberof CountriesApi
|
|
8800
8704
|
*/
|
|
8801
|
-
CountriesApi.prototype.apiV1CountriesGet = function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
|
|
8705
|
+
CountriesApi.prototype.apiV1CountriesGet = function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
8802
8706
|
var _this = this;
|
|
8803
|
-
return exports.CountriesApiFp(this.configuration).apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8707
|
+
return exports.CountriesApiFp(this.configuration).apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8804
8708
|
};
|
|
8805
8709
|
/**
|
|
8806
8710
|
*
|
|
@@ -10492,13 +10396,16 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10492
10396
|
return {
|
|
10493
10397
|
/**
|
|
10494
10398
|
*
|
|
10495
|
-
* @summary
|
|
10399
|
+
* @summary Get all doctor affiliations.
|
|
10496
10400
|
* @param {string} doctorId
|
|
10497
|
-
* @param {
|
|
10401
|
+
* @param {string} [hospitalName]
|
|
10402
|
+
* @param {number} [page]
|
|
10403
|
+
* @param {number} [limit]
|
|
10404
|
+
* @param {Date} [lastRetrieved]
|
|
10498
10405
|
* @param {*} [options] Override http request option.
|
|
10499
10406
|
* @throws {RequiredError}
|
|
10500
10407
|
*/
|
|
10501
|
-
|
|
10408
|
+
apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
|
|
10502
10409
|
if (options === void 0) { options = {}; }
|
|
10503
10410
|
return __awaiter(_this, void 0, void 0, function () {
|
|
10504
10411
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -10506,13 +10413,74 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10506
10413
|
switch (_a.label) {
|
|
10507
10414
|
case 0:
|
|
10508
10415
|
// verify required parameter 'doctorId' is not null or undefined
|
|
10509
|
-
common_1.assertParamExists('
|
|
10416
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsGet', 'doctorId', doctorId);
|
|
10510
10417
|
localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
|
|
10511
10418
|
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
10512
10419
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10513
10420
|
if (configuration) {
|
|
10514
10421
|
baseOptions = configuration.baseOptions;
|
|
10515
10422
|
}
|
|
10423
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10424
|
+
localVarHeaderParameter = {};
|
|
10425
|
+
localVarQueryParameter = {};
|
|
10426
|
+
// authentication oauth2 required
|
|
10427
|
+
// oauth required
|
|
10428
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
10429
|
+
case 1:
|
|
10430
|
+
// authentication oauth2 required
|
|
10431
|
+
// oauth required
|
|
10432
|
+
_a.sent();
|
|
10433
|
+
if (hospitalName !== undefined) {
|
|
10434
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
10435
|
+
}
|
|
10436
|
+
if (page !== undefined) {
|
|
10437
|
+
localVarQueryParameter['page'] = page;
|
|
10438
|
+
}
|
|
10439
|
+
if (limit !== undefined) {
|
|
10440
|
+
localVarQueryParameter['limit'] = limit;
|
|
10441
|
+
}
|
|
10442
|
+
if (lastRetrieved !== undefined) {
|
|
10443
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10444
|
+
lastRetrieved.toISOString() :
|
|
10445
|
+
lastRetrieved;
|
|
10446
|
+
}
|
|
10447
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10448
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10449
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10450
|
+
return [2 /*return*/, {
|
|
10451
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10452
|
+
options: localVarRequestOptions,
|
|
10453
|
+
}];
|
|
10454
|
+
}
|
|
10455
|
+
});
|
|
10456
|
+
});
|
|
10457
|
+
},
|
|
10458
|
+
/**
|
|
10459
|
+
*
|
|
10460
|
+
* @summary Delete doctor affiliation.
|
|
10461
|
+
* @param {string} doctorId
|
|
10462
|
+
* @param {string} hospitalId
|
|
10463
|
+
* @param {*} [options] Override http request option.
|
|
10464
|
+
* @throws {RequiredError}
|
|
10465
|
+
*/
|
|
10466
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
|
|
10467
|
+
if (options === void 0) { options = {}; }
|
|
10468
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10469
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10470
|
+
return __generator(this, function (_a) {
|
|
10471
|
+
switch (_a.label) {
|
|
10472
|
+
case 0:
|
|
10473
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
10474
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete', 'doctorId', doctorId);
|
|
10475
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10476
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete', 'hospitalId', hospitalId);
|
|
10477
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations/{hospitalId}"
|
|
10478
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
10479
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
10480
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10481
|
+
if (configuration) {
|
|
10482
|
+
baseOptions = configuration.baseOptions;
|
|
10483
|
+
}
|
|
10516
10484
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
10517
10485
|
localVarHeaderParameter = {};
|
|
10518
10486
|
localVarQueryParameter = {};
|
|
@@ -10523,11 +10491,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10523
10491
|
// authentication oauth2 required
|
|
10524
10492
|
// oauth required
|
|
10525
10493
|
_a.sent();
|
|
10526
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10527
10494
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10528
10495
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10529
10496
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10530
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteDoctorAffiliationCommand, localVarRequestOptions, configuration);
|
|
10531
10497
|
return [2 /*return*/, {
|
|
10532
10498
|
url: common_1.toPathString(localVarUrlObj),
|
|
10533
10499
|
options: localVarRequestOptions,
|
|
@@ -10538,7 +10504,53 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10538
10504
|
},
|
|
10539
10505
|
/**
|
|
10540
10506
|
*
|
|
10541
|
-
* @summary
|
|
10507
|
+
* @summary Get doctor affiliation.
|
|
10508
|
+
* @param {string} doctorId
|
|
10509
|
+
* @param {string} hospitalId
|
|
10510
|
+
* @param {*} [options] Override http request option.
|
|
10511
|
+
* @throws {RequiredError}
|
|
10512
|
+
*/
|
|
10513
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
|
|
10514
|
+
if (options === void 0) { options = {}; }
|
|
10515
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10516
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10517
|
+
return __generator(this, function (_a) {
|
|
10518
|
+
switch (_a.label) {
|
|
10519
|
+
case 0:
|
|
10520
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
10521
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdGet', 'doctorId', doctorId);
|
|
10522
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10523
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
|
|
10524
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations/{hospitalId}"
|
|
10525
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
10526
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
10527
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10528
|
+
if (configuration) {
|
|
10529
|
+
baseOptions = configuration.baseOptions;
|
|
10530
|
+
}
|
|
10531
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10532
|
+
localVarHeaderParameter = {};
|
|
10533
|
+
localVarQueryParameter = {};
|
|
10534
|
+
// authentication oauth2 required
|
|
10535
|
+
// oauth required
|
|
10536
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
10537
|
+
case 1:
|
|
10538
|
+
// authentication oauth2 required
|
|
10539
|
+
// oauth required
|
|
10540
|
+
_a.sent();
|
|
10541
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10542
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10543
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10544
|
+
return [2 /*return*/, {
|
|
10545
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10546
|
+
options: localVarRequestOptions,
|
|
10547
|
+
}];
|
|
10548
|
+
}
|
|
10549
|
+
});
|
|
10550
|
+
});
|
|
10551
|
+
},
|
|
10552
|
+
/**
|
|
10553
|
+
*
|
|
10542
10554
|
* @param {string} doctorId
|
|
10543
10555
|
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
10544
10556
|
* @param {*} [options] Override http request option.
|
|
@@ -11169,11 +11181,10 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11169
11181
|
*
|
|
11170
11182
|
* @summary Get Doctor.
|
|
11171
11183
|
* @param {string} doctorId
|
|
11172
|
-
* @param {string} [languageCode]
|
|
11173
11184
|
* @param {*} [options] Override http request option.
|
|
11174
11185
|
* @throws {RequiredError}
|
|
11175
11186
|
*/
|
|
11176
|
-
apiV1DoctorsDoctorIdGet: function (doctorId,
|
|
11187
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
11177
11188
|
if (options === void 0) { options = {}; }
|
|
11178
11189
|
return __awaiter(_this, void 0, void 0, function () {
|
|
11179
11190
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -11198,9 +11209,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11198
11209
|
// authentication oauth2 required
|
|
11199
11210
|
// oauth required
|
|
11200
11211
|
_a.sent();
|
|
11201
|
-
if (languageCode !== undefined) {
|
|
11202
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
11203
|
-
}
|
|
11204
11212
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11205
11213
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11206
11214
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12034,16 +12042,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12034
12042
|
/**
|
|
12035
12043
|
*
|
|
12036
12044
|
* @summary Get all Doctors.
|
|
12037
|
-
* @param {string} [countryId]
|
|
12038
12045
|
* @param {string} [hospitalId]
|
|
12039
|
-
* @param {MarketingType} [marketingType]
|
|
12040
|
-
* @param {string} [specialtyId]
|
|
12041
|
-
* @param {string} [specialtyTypeId]
|
|
12042
|
-
* @param {boolean} [consultationEnabled]
|
|
12043
|
-
* @param {string} [exceptDoctorId]
|
|
12044
|
-
* @param {Array<string>} [exceptDoctorIds]
|
|
12045
12046
|
* @param {string} [languageCode]
|
|
12046
|
-
* @param {Array<string>} [ids]
|
|
12047
12047
|
* @param {string} [id]
|
|
12048
12048
|
* @param {string} [fullname]
|
|
12049
12049
|
* @param {string} [email]
|
|
@@ -12057,7 +12057,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12057
12057
|
* @param {*} [options] Override http request option.
|
|
12058
12058
|
* @throws {RequiredError}
|
|
12059
12059
|
*/
|
|
12060
|
-
apiV1DoctorsGet: function (
|
|
12060
|
+
apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
12061
12061
|
if (options === void 0) { options = {}; }
|
|
12062
12062
|
return __awaiter(_this, void 0, void 0, function () {
|
|
12063
12063
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -12079,36 +12079,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12079
12079
|
// authentication oauth2 required
|
|
12080
12080
|
// oauth required
|
|
12081
12081
|
_a.sent();
|
|
12082
|
-
if (countryId !== undefined) {
|
|
12083
|
-
localVarQueryParameter['CountryId'] = countryId;
|
|
12084
|
-
}
|
|
12085
12082
|
if (hospitalId !== undefined) {
|
|
12086
12083
|
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
12087
12084
|
}
|
|
12088
|
-
if (marketingType !== undefined) {
|
|
12089
|
-
localVarQueryParameter['MarketingType'] = marketingType;
|
|
12090
|
-
}
|
|
12091
|
-
if (specialtyId !== undefined) {
|
|
12092
|
-
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
12093
|
-
}
|
|
12094
|
-
if (specialtyTypeId !== undefined) {
|
|
12095
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
12096
|
-
}
|
|
12097
|
-
if (consultationEnabled !== undefined) {
|
|
12098
|
-
localVarQueryParameter['ConsultationEnabled'] = consultationEnabled;
|
|
12099
|
-
}
|
|
12100
|
-
if (exceptDoctorId !== undefined) {
|
|
12101
|
-
localVarQueryParameter['ExceptDoctorId'] = exceptDoctorId;
|
|
12102
|
-
}
|
|
12103
|
-
if (exceptDoctorIds) {
|
|
12104
|
-
localVarQueryParameter['ExceptDoctorIds'] = exceptDoctorIds;
|
|
12105
|
-
}
|
|
12106
12085
|
if (languageCode !== undefined) {
|
|
12107
12086
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
12108
12087
|
}
|
|
12109
|
-
if (ids) {
|
|
12110
|
-
localVarQueryParameter['Ids'] = ids;
|
|
12111
|
-
}
|
|
12112
12088
|
if (id !== undefined) {
|
|
12113
12089
|
localVarQueryParameter['Id'] = id;
|
|
12114
12090
|
}
|
|
@@ -12158,7 +12134,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12158
12134
|
},
|
|
12159
12135
|
/**
|
|
12160
12136
|
*
|
|
12161
|
-
* @summary Create Doctor.
|
|
12137
|
+
* @summary Create a Doctor.
|
|
12162
12138
|
* @param {CreateDoctorCommand} [createDoctorCommand]
|
|
12163
12139
|
* @param {*} [options] Override http request option.
|
|
12164
12140
|
* @throws {RequiredError}
|
|
@@ -12198,53 +12174,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12198
12174
|
});
|
|
12199
12175
|
});
|
|
12200
12176
|
},
|
|
12201
|
-
/**
|
|
12202
|
-
*
|
|
12203
|
-
* @summary Get Doctor by slug.
|
|
12204
|
-
* @param {string} slug
|
|
12205
|
-
* @param {string} [languageCode]
|
|
12206
|
-
* @param {*} [options] Override http request option.
|
|
12207
|
-
* @throws {RequiredError}
|
|
12208
|
-
*/
|
|
12209
|
-
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
12210
|
-
if (options === void 0) { options = {}; }
|
|
12211
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
12212
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12213
|
-
return __generator(this, function (_a) {
|
|
12214
|
-
switch (_a.label) {
|
|
12215
|
-
case 0:
|
|
12216
|
-
// verify required parameter 'slug' is not null or undefined
|
|
12217
|
-
common_1.assertParamExists('apiV1DoctorsSlugGet', 'slug', slug);
|
|
12218
|
-
localVarPath = "/api/v1/doctors/{slug}"
|
|
12219
|
-
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
12220
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12221
|
-
if (configuration) {
|
|
12222
|
-
baseOptions = configuration.baseOptions;
|
|
12223
|
-
}
|
|
12224
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12225
|
-
localVarHeaderParameter = {};
|
|
12226
|
-
localVarQueryParameter = {};
|
|
12227
|
-
// authentication oauth2 required
|
|
12228
|
-
// oauth required
|
|
12229
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12230
|
-
case 1:
|
|
12231
|
-
// authentication oauth2 required
|
|
12232
|
-
// oauth required
|
|
12233
|
-
_a.sent();
|
|
12234
|
-
if (languageCode !== undefined) {
|
|
12235
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
12236
|
-
}
|
|
12237
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12238
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12239
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12240
|
-
return [2 /*return*/, {
|
|
12241
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
12242
|
-
options: localVarRequestOptions,
|
|
12243
|
-
}];
|
|
12244
|
-
}
|
|
12245
|
-
});
|
|
12246
|
-
});
|
|
12247
|
-
},
|
|
12248
12177
|
};
|
|
12249
12178
|
};
|
|
12250
12179
|
/**
|
|
@@ -12256,18 +12185,21 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12256
12185
|
return {
|
|
12257
12186
|
/**
|
|
12258
12187
|
*
|
|
12259
|
-
* @summary
|
|
12188
|
+
* @summary Get all doctor affiliations.
|
|
12260
12189
|
* @param {string} doctorId
|
|
12261
|
-
* @param {
|
|
12190
|
+
* @param {string} [hospitalName]
|
|
12191
|
+
* @param {number} [page]
|
|
12192
|
+
* @param {number} [limit]
|
|
12193
|
+
* @param {Date} [lastRetrieved]
|
|
12262
12194
|
* @param {*} [options] Override http request option.
|
|
12263
12195
|
* @throws {RequiredError}
|
|
12264
12196
|
*/
|
|
12265
|
-
|
|
12197
|
+
apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
|
|
12266
12198
|
return __awaiter(this, void 0, void 0, function () {
|
|
12267
12199
|
var localVarAxiosArgs;
|
|
12268
12200
|
return __generator(this, function (_a) {
|
|
12269
12201
|
switch (_a.label) {
|
|
12270
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
12202
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options)];
|
|
12271
12203
|
case 1:
|
|
12272
12204
|
localVarAxiosArgs = _a.sent();
|
|
12273
12205
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12277,18 +12209,18 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12277
12209
|
},
|
|
12278
12210
|
/**
|
|
12279
12211
|
*
|
|
12280
|
-
* @summary
|
|
12212
|
+
* @summary Delete doctor affiliation.
|
|
12281
12213
|
* @param {string} doctorId
|
|
12282
|
-
* @param {
|
|
12214
|
+
* @param {string} hospitalId
|
|
12283
12215
|
* @param {*} [options] Override http request option.
|
|
12284
12216
|
* @throws {RequiredError}
|
|
12285
12217
|
*/
|
|
12286
|
-
|
|
12218
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
|
|
12287
12219
|
return __awaiter(this, void 0, void 0, function () {
|
|
12288
12220
|
var localVarAxiosArgs;
|
|
12289
12221
|
return __generator(this, function (_a) {
|
|
12290
12222
|
switch (_a.label) {
|
|
12291
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
12223
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options)];
|
|
12292
12224
|
case 1:
|
|
12293
12225
|
localVarAxiosArgs = _a.sent();
|
|
12294
12226
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12298,18 +12230,18 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12298
12230
|
},
|
|
12299
12231
|
/**
|
|
12300
12232
|
*
|
|
12301
|
-
* @summary
|
|
12233
|
+
* @summary Get doctor affiliation.
|
|
12302
12234
|
* @param {string} doctorId
|
|
12303
|
-
* @param {string}
|
|
12235
|
+
* @param {string} hospitalId
|
|
12304
12236
|
* @param {*} [options] Override http request option.
|
|
12305
12237
|
* @throws {RequiredError}
|
|
12306
12238
|
*/
|
|
12307
|
-
|
|
12239
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
|
|
12308
12240
|
return __awaiter(this, void 0, void 0, function () {
|
|
12309
12241
|
var localVarAxiosArgs;
|
|
12310
12242
|
return __generator(this, function (_a) {
|
|
12311
12243
|
switch (_a.label) {
|
|
12312
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
12244
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options)];
|
|
12313
12245
|
case 1:
|
|
12314
12246
|
localVarAxiosArgs = _a.sent();
|
|
12315
12247
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12319,18 +12251,17 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12319
12251
|
},
|
|
12320
12252
|
/**
|
|
12321
12253
|
*
|
|
12322
|
-
* @summary Get DoctorCertificate.
|
|
12323
12254
|
* @param {string} doctorId
|
|
12324
|
-
* @param {
|
|
12255
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
12325
12256
|
* @param {*} [options] Override http request option.
|
|
12326
12257
|
* @throws {RequiredError}
|
|
12327
12258
|
*/
|
|
12328
|
-
|
|
12259
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
12329
12260
|
return __awaiter(this, void 0, void 0, function () {
|
|
12330
12261
|
var localVarAxiosArgs;
|
|
12331
12262
|
return __generator(this, function (_a) {
|
|
12332
12263
|
switch (_a.label) {
|
|
12333
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
12264
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options)];
|
|
12334
12265
|
case 1:
|
|
12335
12266
|
localVarAxiosArgs = _a.sent();
|
|
12336
12267
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12340,19 +12271,18 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12340
12271
|
},
|
|
12341
12272
|
/**
|
|
12342
12273
|
*
|
|
12343
|
-
* @summary
|
|
12274
|
+
* @summary Delete DoctorCertificate.
|
|
12344
12275
|
* @param {string} doctorId
|
|
12345
12276
|
* @param {string} certificateId
|
|
12346
|
-
* @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
|
|
12347
12277
|
* @param {*} [options] Override http request option.
|
|
12348
12278
|
* @throws {RequiredError}
|
|
12349
12279
|
*/
|
|
12350
|
-
|
|
12280
|
+
apiV1DoctorsDoctorIdCertificatesCertificateIdDelete: function (doctorId, certificateId, options) {
|
|
12351
12281
|
return __awaiter(this, void 0, void 0, function () {
|
|
12352
12282
|
var localVarAxiosArgs;
|
|
12353
12283
|
return __generator(this, function (_a) {
|
|
12354
12284
|
switch (_a.label) {
|
|
12355
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
12285
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdDelete(doctorId, certificateId, options)];
|
|
12356
12286
|
case 1:
|
|
12357
12287
|
localVarAxiosArgs = _a.sent();
|
|
12358
12288
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12362,10 +12292,53 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12362
12292
|
},
|
|
12363
12293
|
/**
|
|
12364
12294
|
*
|
|
12365
|
-
* @summary
|
|
12295
|
+
* @summary Get DoctorCertificate.
|
|
12366
12296
|
* @param {string} doctorId
|
|
12367
|
-
* @param {string}
|
|
12368
|
-
* @param {
|
|
12297
|
+
* @param {string} certificateId
|
|
12298
|
+
* @param {*} [options] Override http request option.
|
|
12299
|
+
* @throws {RequiredError}
|
|
12300
|
+
*/
|
|
12301
|
+
apiV1DoctorsDoctorIdCertificatesCertificateIdGet: function (doctorId, certificateId, options) {
|
|
12302
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12303
|
+
var localVarAxiosArgs;
|
|
12304
|
+
return __generator(this, function (_a) {
|
|
12305
|
+
switch (_a.label) {
|
|
12306
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdGet(doctorId, certificateId, options)];
|
|
12307
|
+
case 1:
|
|
12308
|
+
localVarAxiosArgs = _a.sent();
|
|
12309
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12310
|
+
}
|
|
12311
|
+
});
|
|
12312
|
+
});
|
|
12313
|
+
},
|
|
12314
|
+
/**
|
|
12315
|
+
*
|
|
12316
|
+
* @summary Update DoctorCertificate.
|
|
12317
|
+
* @param {string} doctorId
|
|
12318
|
+
* @param {string} certificateId
|
|
12319
|
+
* @param {UpdateDoctorCertificateCommand} [updateDoctorCertificateCommand]
|
|
12320
|
+
* @param {*} [options] Override http request option.
|
|
12321
|
+
* @throws {RequiredError}
|
|
12322
|
+
*/
|
|
12323
|
+
apiV1DoctorsDoctorIdCertificatesCertificateIdPut: function (doctorId, certificateId, updateDoctorCertificateCommand, options) {
|
|
12324
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12325
|
+
var localVarAxiosArgs;
|
|
12326
|
+
return __generator(this, function (_a) {
|
|
12327
|
+
switch (_a.label) {
|
|
12328
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesCertificateIdPut(doctorId, certificateId, updateDoctorCertificateCommand, options)];
|
|
12329
|
+
case 1:
|
|
12330
|
+
localVarAxiosArgs = _a.sent();
|
|
12331
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12332
|
+
}
|
|
12333
|
+
});
|
|
12334
|
+
});
|
|
12335
|
+
},
|
|
12336
|
+
/**
|
|
12337
|
+
*
|
|
12338
|
+
* @summary Delete DoctorCertificate.
|
|
12339
|
+
* @param {string} doctorId
|
|
12340
|
+
* @param {string} [doctorName]
|
|
12341
|
+
* @param {string} [certificateId]
|
|
12369
12342
|
* @param {string} [certificate]
|
|
12370
12343
|
* @param {Date} [activeFrom]
|
|
12371
12344
|
* @param {Date} [activeTo]
|
|
@@ -12546,16 +12519,15 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12546
12519
|
*
|
|
12547
12520
|
* @summary Get Doctor.
|
|
12548
12521
|
* @param {string} doctorId
|
|
12549
|
-
* @param {string} [languageCode]
|
|
12550
12522
|
* @param {*} [options] Override http request option.
|
|
12551
12523
|
* @throws {RequiredError}
|
|
12552
12524
|
*/
|
|
12553
|
-
apiV1DoctorsDoctorIdGet: function (doctorId,
|
|
12525
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
12554
12526
|
return __awaiter(this, void 0, void 0, function () {
|
|
12555
12527
|
var localVarAxiosArgs;
|
|
12556
12528
|
return __generator(this, function (_a) {
|
|
12557
12529
|
switch (_a.label) {
|
|
12558
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId,
|
|
12530
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
|
|
12559
12531
|
case 1:
|
|
12560
12532
|
localVarAxiosArgs = _a.sent();
|
|
12561
12533
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12919,16 +12891,8 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12919
12891
|
/**
|
|
12920
12892
|
*
|
|
12921
12893
|
* @summary Get all Doctors.
|
|
12922
|
-
* @param {string} [countryId]
|
|
12923
12894
|
* @param {string} [hospitalId]
|
|
12924
|
-
* @param {MarketingType} [marketingType]
|
|
12925
|
-
* @param {string} [specialtyId]
|
|
12926
|
-
* @param {string} [specialtyTypeId]
|
|
12927
|
-
* @param {boolean} [consultationEnabled]
|
|
12928
|
-
* @param {string} [exceptDoctorId]
|
|
12929
|
-
* @param {Array<string>} [exceptDoctorIds]
|
|
12930
12895
|
* @param {string} [languageCode]
|
|
12931
|
-
* @param {Array<string>} [ids]
|
|
12932
12896
|
* @param {string} [id]
|
|
12933
12897
|
* @param {string} [fullname]
|
|
12934
12898
|
* @param {string} [email]
|
|
@@ -12942,12 +12906,12 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12942
12906
|
* @param {*} [options] Override http request option.
|
|
12943
12907
|
* @throws {RequiredError}
|
|
12944
12908
|
*/
|
|
12945
|
-
apiV1DoctorsGet: function (
|
|
12909
|
+
apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
12946
12910
|
return __awaiter(this, void 0, void 0, function () {
|
|
12947
12911
|
var localVarAxiosArgs;
|
|
12948
12912
|
return __generator(this, function (_a) {
|
|
12949
12913
|
switch (_a.label) {
|
|
12950
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsGet(
|
|
12914
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
12951
12915
|
case 1:
|
|
12952
12916
|
localVarAxiosArgs = _a.sent();
|
|
12953
12917
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12957,7 +12921,7 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12957
12921
|
},
|
|
12958
12922
|
/**
|
|
12959
12923
|
*
|
|
12960
|
-
* @summary Create Doctor.
|
|
12924
|
+
* @summary Create a Doctor.
|
|
12961
12925
|
* @param {CreateDoctorCommand} [createDoctorCommand]
|
|
12962
12926
|
* @param {*} [options] Override http request option.
|
|
12963
12927
|
* @throws {RequiredError}
|
|
@@ -12975,27 +12939,6 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12975
12939
|
});
|
|
12976
12940
|
});
|
|
12977
12941
|
},
|
|
12978
|
-
/**
|
|
12979
|
-
*
|
|
12980
|
-
* @summary Get Doctor by slug.
|
|
12981
|
-
* @param {string} slug
|
|
12982
|
-
* @param {string} [languageCode]
|
|
12983
|
-
* @param {*} [options] Override http request option.
|
|
12984
|
-
* @throws {RequiredError}
|
|
12985
|
-
*/
|
|
12986
|
-
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
12987
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12988
|
-
var localVarAxiosArgs;
|
|
12989
|
-
return __generator(this, function (_a) {
|
|
12990
|
-
switch (_a.label) {
|
|
12991
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsSlugGet(slug, languageCode, options)];
|
|
12992
|
-
case 1:
|
|
12993
|
-
localVarAxiosArgs = _a.sent();
|
|
12994
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12995
|
-
}
|
|
12996
|
-
});
|
|
12997
|
-
});
|
|
12998
|
-
},
|
|
12999
12942
|
};
|
|
13000
12943
|
};
|
|
13001
12944
|
/**
|
|
@@ -13007,18 +12950,42 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13007
12950
|
return {
|
|
13008
12951
|
/**
|
|
13009
12952
|
*
|
|
13010
|
-
* @summary
|
|
12953
|
+
* @summary Get all doctor affiliations.
|
|
12954
|
+
* @param {string} doctorId
|
|
12955
|
+
* @param {string} [hospitalName]
|
|
12956
|
+
* @param {number} [page]
|
|
12957
|
+
* @param {number} [limit]
|
|
12958
|
+
* @param {Date} [lastRetrieved]
|
|
12959
|
+
* @param {*} [options] Override http request option.
|
|
12960
|
+
* @throws {RequiredError}
|
|
12961
|
+
*/
|
|
12962
|
+
apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
|
|
12963
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12964
|
+
},
|
|
12965
|
+
/**
|
|
12966
|
+
*
|
|
12967
|
+
* @summary Delete doctor affiliation.
|
|
13011
12968
|
* @param {string} doctorId
|
|
13012
|
-
* @param {
|
|
12969
|
+
* @param {string} hospitalId
|
|
13013
12970
|
* @param {*} [options] Override http request option.
|
|
13014
12971
|
* @throws {RequiredError}
|
|
13015
12972
|
*/
|
|
13016
|
-
|
|
13017
|
-
return localVarFp.
|
|
12973
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
|
|
12974
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
12975
|
+
},
|
|
12976
|
+
/**
|
|
12977
|
+
*
|
|
12978
|
+
* @summary Get doctor affiliation.
|
|
12979
|
+
* @param {string} doctorId
|
|
12980
|
+
* @param {string} hospitalId
|
|
12981
|
+
* @param {*} [options] Override http request option.
|
|
12982
|
+
* @throws {RequiredError}
|
|
12983
|
+
*/
|
|
12984
|
+
apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
|
|
12985
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
13018
12986
|
},
|
|
13019
12987
|
/**
|
|
13020
12988
|
*
|
|
13021
|
-
* @summary Create DoctorAffiliation.
|
|
13022
12989
|
* @param {string} doctorId
|
|
13023
12990
|
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
13024
12991
|
* @param {*} [options] Override http request option.
|
|
@@ -13167,12 +13134,11 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13167
13134
|
*
|
|
13168
13135
|
* @summary Get Doctor.
|
|
13169
13136
|
* @param {string} doctorId
|
|
13170
|
-
* @param {string} [languageCode]
|
|
13171
13137
|
* @param {*} [options] Override http request option.
|
|
13172
13138
|
* @throws {RequiredError}
|
|
13173
13139
|
*/
|
|
13174
|
-
apiV1DoctorsDoctorIdGet: function (doctorId,
|
|
13175
|
-
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId,
|
|
13140
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
13141
|
+
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
|
|
13176
13142
|
},
|
|
13177
13143
|
/**
|
|
13178
13144
|
*
|
|
@@ -13370,16 +13336,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13370
13336
|
/**
|
|
13371
13337
|
*
|
|
13372
13338
|
* @summary Get all Doctors.
|
|
13373
|
-
* @param {string} [countryId]
|
|
13374
13339
|
* @param {string} [hospitalId]
|
|
13375
|
-
* @param {MarketingType} [marketingType]
|
|
13376
|
-
* @param {string} [specialtyId]
|
|
13377
|
-
* @param {string} [specialtyTypeId]
|
|
13378
|
-
* @param {boolean} [consultationEnabled]
|
|
13379
|
-
* @param {string} [exceptDoctorId]
|
|
13380
|
-
* @param {Array<string>} [exceptDoctorIds]
|
|
13381
13340
|
* @param {string} [languageCode]
|
|
13382
|
-
* @param {Array<string>} [ids]
|
|
13383
13341
|
* @param {string} [id]
|
|
13384
13342
|
* @param {string} [fullname]
|
|
13385
13343
|
* @param {string} [email]
|
|
@@ -13393,12 +13351,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13393
13351
|
* @param {*} [options] Override http request option.
|
|
13394
13352
|
* @throws {RequiredError}
|
|
13395
13353
|
*/
|
|
13396
|
-
apiV1DoctorsGet: function (
|
|
13397
|
-
return localVarFp.apiV1DoctorsGet(
|
|
13354
|
+
apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
13355
|
+
return localVarFp.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
13398
13356
|
},
|
|
13399
13357
|
/**
|
|
13400
13358
|
*
|
|
13401
|
-
* @summary Create Doctor.
|
|
13359
|
+
* @summary Create a Doctor.
|
|
13402
13360
|
* @param {CreateDoctorCommand} [createDoctorCommand]
|
|
13403
13361
|
* @param {*} [options] Override http request option.
|
|
13404
13362
|
* @throws {RequiredError}
|
|
@@ -13406,17 +13364,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13406
13364
|
apiV1DoctorsPost: function (createDoctorCommand, options) {
|
|
13407
13365
|
return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(axios, basePath); });
|
|
13408
13366
|
},
|
|
13409
|
-
/**
|
|
13410
|
-
*
|
|
13411
|
-
* @summary Get Doctor by slug.
|
|
13412
|
-
* @param {string} slug
|
|
13413
|
-
* @param {string} [languageCode]
|
|
13414
|
-
* @param {*} [options] Override http request option.
|
|
13415
|
-
* @throws {RequiredError}
|
|
13416
|
-
*/
|
|
13417
|
-
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
13418
|
-
return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
13419
|
-
},
|
|
13420
13367
|
};
|
|
13421
13368
|
};
|
|
13422
13369
|
/**
|
|
@@ -13432,20 +13379,48 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13432
13379
|
}
|
|
13433
13380
|
/**
|
|
13434
13381
|
*
|
|
13435
|
-
* @summary
|
|
13382
|
+
* @summary Get all doctor affiliations.
|
|
13436
13383
|
* @param {string} doctorId
|
|
13437
|
-
* @param {
|
|
13384
|
+
* @param {string} [hospitalName]
|
|
13385
|
+
* @param {number} [page]
|
|
13386
|
+
* @param {number} [limit]
|
|
13387
|
+
* @param {Date} [lastRetrieved]
|
|
13388
|
+
* @param {*} [options] Override http request option.
|
|
13389
|
+
* @throws {RequiredError}
|
|
13390
|
+
* @memberof DoctorsApi
|
|
13391
|
+
*/
|
|
13392
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsGet = function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
|
|
13393
|
+
var _this = this;
|
|
13394
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13395
|
+
};
|
|
13396
|
+
/**
|
|
13397
|
+
*
|
|
13398
|
+
* @summary Delete doctor affiliation.
|
|
13399
|
+
* @param {string} doctorId
|
|
13400
|
+
* @param {string} hospitalId
|
|
13438
13401
|
* @param {*} [options] Override http request option.
|
|
13439
13402
|
* @throws {RequiredError}
|
|
13440
13403
|
* @memberof DoctorsApi
|
|
13441
13404
|
*/
|
|
13442
|
-
DoctorsApi.prototype.
|
|
13405
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete = function (doctorId, hospitalId, options) {
|
|
13443
13406
|
var _this = this;
|
|
13444
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
13407
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13408
|
+
};
|
|
13409
|
+
/**
|
|
13410
|
+
*
|
|
13411
|
+
* @summary Get doctor affiliation.
|
|
13412
|
+
* @param {string} doctorId
|
|
13413
|
+
* @param {string} hospitalId
|
|
13414
|
+
* @param {*} [options] Override http request option.
|
|
13415
|
+
* @throws {RequiredError}
|
|
13416
|
+
* @memberof DoctorsApi
|
|
13417
|
+
*/
|
|
13418
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet = function (doctorId, hospitalId, options) {
|
|
13419
|
+
var _this = this;
|
|
13420
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13445
13421
|
};
|
|
13446
13422
|
/**
|
|
13447
13423
|
*
|
|
13448
|
-
* @summary Create DoctorAffiliation.
|
|
13449
13424
|
* @param {string} doctorId
|
|
13450
13425
|
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
13451
13426
|
* @param {*} [options] Override http request option.
|
|
@@ -13618,14 +13593,13 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13618
13593
|
*
|
|
13619
13594
|
* @summary Get Doctor.
|
|
13620
13595
|
* @param {string} doctorId
|
|
13621
|
-
* @param {string} [languageCode]
|
|
13622
13596
|
* @param {*} [options] Override http request option.
|
|
13623
13597
|
* @throws {RequiredError}
|
|
13624
13598
|
* @memberof DoctorsApi
|
|
13625
13599
|
*/
|
|
13626
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId,
|
|
13600
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
|
|
13627
13601
|
var _this = this;
|
|
13628
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId,
|
|
13602
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13629
13603
|
};
|
|
13630
13604
|
/**
|
|
13631
13605
|
*
|
|
@@ -13855,16 +13829,8 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13855
13829
|
/**
|
|
13856
13830
|
*
|
|
13857
13831
|
* @summary Get all Doctors.
|
|
13858
|
-
* @param {string} [countryId]
|
|
13859
13832
|
* @param {string} [hospitalId]
|
|
13860
|
-
* @param {MarketingType} [marketingType]
|
|
13861
|
-
* @param {string} [specialtyId]
|
|
13862
|
-
* @param {string} [specialtyTypeId]
|
|
13863
|
-
* @param {boolean} [consultationEnabled]
|
|
13864
|
-
* @param {string} [exceptDoctorId]
|
|
13865
|
-
* @param {Array<string>} [exceptDoctorIds]
|
|
13866
13833
|
* @param {string} [languageCode]
|
|
13867
|
-
* @param {Array<string>} [ids]
|
|
13868
13834
|
* @param {string} [id]
|
|
13869
13835
|
* @param {string} [fullname]
|
|
13870
13836
|
* @param {string} [email]
|
|
@@ -13879,13 +13845,13 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13879
13845
|
* @throws {RequiredError}
|
|
13880
13846
|
* @memberof DoctorsApi
|
|
13881
13847
|
*/
|
|
13882
|
-
DoctorsApi.prototype.apiV1DoctorsGet = function (
|
|
13848
|
+
DoctorsApi.prototype.apiV1DoctorsGet = function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
13883
13849
|
var _this = this;
|
|
13884
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsGet(
|
|
13850
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13885
13851
|
};
|
|
13886
13852
|
/**
|
|
13887
13853
|
*
|
|
13888
|
-
* @summary Create Doctor.
|
|
13854
|
+
* @summary Create a Doctor.
|
|
13889
13855
|
* @param {CreateDoctorCommand} [createDoctorCommand]
|
|
13890
13856
|
* @param {*} [options] Override http request option.
|
|
13891
13857
|
* @throws {RequiredError}
|
|
@@ -13895,19 +13861,6 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13895
13861
|
var _this = this;
|
|
13896
13862
|
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13897
13863
|
};
|
|
13898
|
-
/**
|
|
13899
|
-
*
|
|
13900
|
-
* @summary Get Doctor by slug.
|
|
13901
|
-
* @param {string} slug
|
|
13902
|
-
* @param {string} [languageCode]
|
|
13903
|
-
* @param {*} [options] Override http request option.
|
|
13904
|
-
* @throws {RequiredError}
|
|
13905
|
-
* @memberof DoctorsApi
|
|
13906
|
-
*/
|
|
13907
|
-
DoctorsApi.prototype.apiV1DoctorsSlugGet = function (slug, languageCode, options) {
|
|
13908
|
-
var _this = this;
|
|
13909
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13910
|
-
};
|
|
13911
13864
|
return DoctorsApi;
|
|
13912
13865
|
}(base_1.BaseAPI));
|
|
13913
13866
|
exports.DoctorsApi = DoctorsApi;
|
|
@@ -16321,6 +16274,113 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
16321
16274
|
});
|
|
16322
16275
|
});
|
|
16323
16276
|
},
|
|
16277
|
+
/**
|
|
16278
|
+
*
|
|
16279
|
+
* @summary Get all Hospitals.
|
|
16280
|
+
* @param {string} [hospitalId]
|
|
16281
|
+
* @param {string} [name]
|
|
16282
|
+
* @param {string} [description]
|
|
16283
|
+
* @param {string} [countryId]
|
|
16284
|
+
* @param {Date} [created]
|
|
16285
|
+
* @param {MarketingType} [marketingType]
|
|
16286
|
+
* @param {string} [specialtyTypeId]
|
|
16287
|
+
* @param {string} [specialtyId]
|
|
16288
|
+
* @param {string} [serviceId]
|
|
16289
|
+
* @param {string} [exceptHospitalId]
|
|
16290
|
+
* @param {boolean} [showHidden]
|
|
16291
|
+
* @param {string} [languageCode]
|
|
16292
|
+
* @param {Array<string>} [ids]
|
|
16293
|
+
* @param {number} [page]
|
|
16294
|
+
* @param {number} [limit]
|
|
16295
|
+
* @param {Date} [lastRetrieved]
|
|
16296
|
+
* @param {*} [options] Override http request option.
|
|
16297
|
+
* @throws {RequiredError}
|
|
16298
|
+
*/
|
|
16299
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
16300
|
+
if (options === void 0) { options = {}; }
|
|
16301
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16302
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16303
|
+
return __generator(this, function (_a) {
|
|
16304
|
+
switch (_a.label) {
|
|
16305
|
+
case 0:
|
|
16306
|
+
localVarPath = "/api/v1/hospitals/simple";
|
|
16307
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16308
|
+
if (configuration) {
|
|
16309
|
+
baseOptions = configuration.baseOptions;
|
|
16310
|
+
}
|
|
16311
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16312
|
+
localVarHeaderParameter = {};
|
|
16313
|
+
localVarQueryParameter = {};
|
|
16314
|
+
// authentication oauth2 required
|
|
16315
|
+
// oauth required
|
|
16316
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16317
|
+
case 1:
|
|
16318
|
+
// authentication oauth2 required
|
|
16319
|
+
// oauth required
|
|
16320
|
+
_a.sent();
|
|
16321
|
+
if (hospitalId !== undefined) {
|
|
16322
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
16323
|
+
}
|
|
16324
|
+
if (name !== undefined) {
|
|
16325
|
+
localVarQueryParameter['Name'] = name;
|
|
16326
|
+
}
|
|
16327
|
+
if (description !== undefined) {
|
|
16328
|
+
localVarQueryParameter['Description'] = description;
|
|
16329
|
+
}
|
|
16330
|
+
if (countryId !== undefined) {
|
|
16331
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
16332
|
+
}
|
|
16333
|
+
if (created !== undefined) {
|
|
16334
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
16335
|
+
created.toISOString() :
|
|
16336
|
+
created;
|
|
16337
|
+
}
|
|
16338
|
+
if (marketingType !== undefined) {
|
|
16339
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
16340
|
+
}
|
|
16341
|
+
if (specialtyTypeId !== undefined) {
|
|
16342
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
16343
|
+
}
|
|
16344
|
+
if (specialtyId !== undefined) {
|
|
16345
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
16346
|
+
}
|
|
16347
|
+
if (serviceId !== undefined) {
|
|
16348
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
16349
|
+
}
|
|
16350
|
+
if (exceptHospitalId !== undefined) {
|
|
16351
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
16352
|
+
}
|
|
16353
|
+
if (showHidden !== undefined) {
|
|
16354
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
16355
|
+
}
|
|
16356
|
+
if (languageCode !== undefined) {
|
|
16357
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
16358
|
+
}
|
|
16359
|
+
if (ids) {
|
|
16360
|
+
localVarQueryParameter['Ids'] = ids;
|
|
16361
|
+
}
|
|
16362
|
+
if (page !== undefined) {
|
|
16363
|
+
localVarQueryParameter['page'] = page;
|
|
16364
|
+
}
|
|
16365
|
+
if (limit !== undefined) {
|
|
16366
|
+
localVarQueryParameter['limit'] = limit;
|
|
16367
|
+
}
|
|
16368
|
+
if (lastRetrieved !== undefined) {
|
|
16369
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16370
|
+
lastRetrieved.toISOString() :
|
|
16371
|
+
lastRetrieved;
|
|
16372
|
+
}
|
|
16373
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16374
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16375
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16376
|
+
return [2 /*return*/, {
|
|
16377
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16378
|
+
options: localVarRequestOptions,
|
|
16379
|
+
}];
|
|
16380
|
+
}
|
|
16381
|
+
});
|
|
16382
|
+
});
|
|
16383
|
+
},
|
|
16324
16384
|
/**
|
|
16325
16385
|
*
|
|
16326
16386
|
* @summary Get Hospital by slug.
|
|
@@ -17373,6 +17433,41 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
17373
17433
|
});
|
|
17374
17434
|
});
|
|
17375
17435
|
},
|
|
17436
|
+
/**
|
|
17437
|
+
*
|
|
17438
|
+
* @summary Get all Hospitals.
|
|
17439
|
+
* @param {string} [hospitalId]
|
|
17440
|
+
* @param {string} [name]
|
|
17441
|
+
* @param {string} [description]
|
|
17442
|
+
* @param {string} [countryId]
|
|
17443
|
+
* @param {Date} [created]
|
|
17444
|
+
* @param {MarketingType} [marketingType]
|
|
17445
|
+
* @param {string} [specialtyTypeId]
|
|
17446
|
+
* @param {string} [specialtyId]
|
|
17447
|
+
* @param {string} [serviceId]
|
|
17448
|
+
* @param {string} [exceptHospitalId]
|
|
17449
|
+
* @param {boolean} [showHidden]
|
|
17450
|
+
* @param {string} [languageCode]
|
|
17451
|
+
* @param {Array<string>} [ids]
|
|
17452
|
+
* @param {number} [page]
|
|
17453
|
+
* @param {number} [limit]
|
|
17454
|
+
* @param {Date} [lastRetrieved]
|
|
17455
|
+
* @param {*} [options] Override http request option.
|
|
17456
|
+
* @throws {RequiredError}
|
|
17457
|
+
*/
|
|
17458
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
17459
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17460
|
+
var localVarAxiosArgs;
|
|
17461
|
+
return __generator(this, function (_a) {
|
|
17462
|
+
switch (_a.label) {
|
|
17463
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options)];
|
|
17464
|
+
case 1:
|
|
17465
|
+
localVarAxiosArgs = _a.sent();
|
|
17466
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17467
|
+
}
|
|
17468
|
+
});
|
|
17469
|
+
});
|
|
17470
|
+
},
|
|
17376
17471
|
/**
|
|
17377
17472
|
*
|
|
17378
17473
|
* @summary Get Hospital by slug.
|
|
@@ -17969,6 +18064,31 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
17969
18064
|
apiV1HospitalsPost: function (createHospitalCommand, options) {
|
|
17970
18065
|
return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17971
18066
|
},
|
|
18067
|
+
/**
|
|
18068
|
+
*
|
|
18069
|
+
* @summary Get all Hospitals.
|
|
18070
|
+
* @param {string} [hospitalId]
|
|
18071
|
+
* @param {string} [name]
|
|
18072
|
+
* @param {string} [description]
|
|
18073
|
+
* @param {string} [countryId]
|
|
18074
|
+
* @param {Date} [created]
|
|
18075
|
+
* @param {MarketingType} [marketingType]
|
|
18076
|
+
* @param {string} [specialtyTypeId]
|
|
18077
|
+
* @param {string} [specialtyId]
|
|
18078
|
+
* @param {string} [serviceId]
|
|
18079
|
+
* @param {string} [exceptHospitalId]
|
|
18080
|
+
* @param {boolean} [showHidden]
|
|
18081
|
+
* @param {string} [languageCode]
|
|
18082
|
+
* @param {Array<string>} [ids]
|
|
18083
|
+
* @param {number} [page]
|
|
18084
|
+
* @param {number} [limit]
|
|
18085
|
+
* @param {Date} [lastRetrieved]
|
|
18086
|
+
* @param {*} [options] Override http request option.
|
|
18087
|
+
* @throws {RequiredError}
|
|
18088
|
+
*/
|
|
18089
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18090
|
+
return localVarFp.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18091
|
+
},
|
|
17972
18092
|
/**
|
|
17973
18093
|
*
|
|
17974
18094
|
* @summary Get Hospital by slug.
|
|
@@ -18645,6 +18765,33 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
18645
18765
|
var _this = this;
|
|
18646
18766
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18647
18767
|
};
|
|
18768
|
+
/**
|
|
18769
|
+
*
|
|
18770
|
+
* @summary Get all Hospitals.
|
|
18771
|
+
* @param {string} [hospitalId]
|
|
18772
|
+
* @param {string} [name]
|
|
18773
|
+
* @param {string} [description]
|
|
18774
|
+
* @param {string} [countryId]
|
|
18775
|
+
* @param {Date} [created]
|
|
18776
|
+
* @param {MarketingType} [marketingType]
|
|
18777
|
+
* @param {string} [specialtyTypeId]
|
|
18778
|
+
* @param {string} [specialtyId]
|
|
18779
|
+
* @param {string} [serviceId]
|
|
18780
|
+
* @param {string} [exceptHospitalId]
|
|
18781
|
+
* @param {boolean} [showHidden]
|
|
18782
|
+
* @param {string} [languageCode]
|
|
18783
|
+
* @param {Array<string>} [ids]
|
|
18784
|
+
* @param {number} [page]
|
|
18785
|
+
* @param {number} [limit]
|
|
18786
|
+
* @param {Date} [lastRetrieved]
|
|
18787
|
+
* @param {*} [options] Override http request option.
|
|
18788
|
+
* @throws {RequiredError}
|
|
18789
|
+
* @memberof HospitalsApi
|
|
18790
|
+
*/
|
|
18791
|
+
HospitalsApi.prototype.apiV1HospitalsSimpleGet = function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18792
|
+
var _this = this;
|
|
18793
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18794
|
+
};
|
|
18648
18795
|
/**
|
|
18649
18796
|
*
|
|
18650
18797
|
* @summary Get Hospital by slug.
|
|
@@ -19212,6 +19359,206 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19212
19359
|
});
|
|
19213
19360
|
});
|
|
19214
19361
|
},
|
|
19362
|
+
/**
|
|
19363
|
+
*
|
|
19364
|
+
* @summary Get all manager affiliations.
|
|
19365
|
+
* @param {string} managerId
|
|
19366
|
+
* @param {string} [hospitalName]
|
|
19367
|
+
* @param {number} [page]
|
|
19368
|
+
* @param {number} [limit]
|
|
19369
|
+
* @param {Date} [lastRetrieved]
|
|
19370
|
+
* @param {*} [options] Override http request option.
|
|
19371
|
+
* @throws {RequiredError}
|
|
19372
|
+
*/
|
|
19373
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19374
|
+
if (options === void 0) { options = {}; }
|
|
19375
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19376
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19377
|
+
return __generator(this, function (_a) {
|
|
19378
|
+
switch (_a.label) {
|
|
19379
|
+
case 0:
|
|
19380
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
19381
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsGet', 'managerId', managerId);
|
|
19382
|
+
localVarPath = "/api/v1/managers/{managerId}/affiliations"
|
|
19383
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
19384
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19385
|
+
if (configuration) {
|
|
19386
|
+
baseOptions = configuration.baseOptions;
|
|
19387
|
+
}
|
|
19388
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19389
|
+
localVarHeaderParameter = {};
|
|
19390
|
+
localVarQueryParameter = {};
|
|
19391
|
+
// authentication oauth2 required
|
|
19392
|
+
// oauth required
|
|
19393
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19394
|
+
case 1:
|
|
19395
|
+
// authentication oauth2 required
|
|
19396
|
+
// oauth required
|
|
19397
|
+
_a.sent();
|
|
19398
|
+
if (hospitalName !== undefined) {
|
|
19399
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
19400
|
+
}
|
|
19401
|
+
if (page !== undefined) {
|
|
19402
|
+
localVarQueryParameter['page'] = page;
|
|
19403
|
+
}
|
|
19404
|
+
if (limit !== undefined) {
|
|
19405
|
+
localVarQueryParameter['limit'] = limit;
|
|
19406
|
+
}
|
|
19407
|
+
if (lastRetrieved !== undefined) {
|
|
19408
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
19409
|
+
lastRetrieved.toISOString() :
|
|
19410
|
+
lastRetrieved;
|
|
19411
|
+
}
|
|
19412
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19413
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19414
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19415
|
+
return [2 /*return*/, {
|
|
19416
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19417
|
+
options: localVarRequestOptions,
|
|
19418
|
+
}];
|
|
19419
|
+
}
|
|
19420
|
+
});
|
|
19421
|
+
});
|
|
19422
|
+
},
|
|
19423
|
+
/**
|
|
19424
|
+
*
|
|
19425
|
+
* @summary Delete manager affiliation.
|
|
19426
|
+
* @param {string} managerId
|
|
19427
|
+
* @param {string} hospitalId
|
|
19428
|
+
* @param {*} [options] Override http request option.
|
|
19429
|
+
* @throws {RequiredError}
|
|
19430
|
+
*/
|
|
19431
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
|
|
19432
|
+
if (options === void 0) { options = {}; }
|
|
19433
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19434
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19435
|
+
return __generator(this, function (_a) {
|
|
19436
|
+
switch (_a.label) {
|
|
19437
|
+
case 0:
|
|
19438
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
19439
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'managerId', managerId);
|
|
19440
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19441
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'hospitalId', hospitalId);
|
|
19442
|
+
localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
|
|
19443
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
|
|
19444
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
19445
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19446
|
+
if (configuration) {
|
|
19447
|
+
baseOptions = configuration.baseOptions;
|
|
19448
|
+
}
|
|
19449
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
19450
|
+
localVarHeaderParameter = {};
|
|
19451
|
+
localVarQueryParameter = {};
|
|
19452
|
+
// authentication oauth2 required
|
|
19453
|
+
// oauth required
|
|
19454
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19455
|
+
case 1:
|
|
19456
|
+
// authentication oauth2 required
|
|
19457
|
+
// oauth required
|
|
19458
|
+
_a.sent();
|
|
19459
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19460
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19461
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19462
|
+
return [2 /*return*/, {
|
|
19463
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19464
|
+
options: localVarRequestOptions,
|
|
19465
|
+
}];
|
|
19466
|
+
}
|
|
19467
|
+
});
|
|
19468
|
+
});
|
|
19469
|
+
},
|
|
19470
|
+
/**
|
|
19471
|
+
*
|
|
19472
|
+
* @summary Get manager affiliation.
|
|
19473
|
+
* @param {string} managerId
|
|
19474
|
+
* @param {string} hospitalId
|
|
19475
|
+
* @param {*} [options] Override http request option.
|
|
19476
|
+
* @throws {RequiredError}
|
|
19477
|
+
*/
|
|
19478
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
|
|
19479
|
+
if (options === void 0) { options = {}; }
|
|
19480
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19481
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19482
|
+
return __generator(this, function (_a) {
|
|
19483
|
+
switch (_a.label) {
|
|
19484
|
+
case 0:
|
|
19485
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
19486
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'managerId', managerId);
|
|
19487
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19488
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
|
|
19489
|
+
localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
|
|
19490
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
|
|
19491
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
19492
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19493
|
+
if (configuration) {
|
|
19494
|
+
baseOptions = configuration.baseOptions;
|
|
19495
|
+
}
|
|
19496
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19497
|
+
localVarHeaderParameter = {};
|
|
19498
|
+
localVarQueryParameter = {};
|
|
19499
|
+
// authentication oauth2 required
|
|
19500
|
+
// oauth required
|
|
19501
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19502
|
+
case 1:
|
|
19503
|
+
// authentication oauth2 required
|
|
19504
|
+
// oauth required
|
|
19505
|
+
_a.sent();
|
|
19506
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19507
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19508
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19509
|
+
return [2 /*return*/, {
|
|
19510
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19511
|
+
options: localVarRequestOptions,
|
|
19512
|
+
}];
|
|
19513
|
+
}
|
|
19514
|
+
});
|
|
19515
|
+
});
|
|
19516
|
+
},
|
|
19517
|
+
/**
|
|
19518
|
+
*
|
|
19519
|
+
* @param {string} managerId
|
|
19520
|
+
* @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
|
|
19521
|
+
* @param {*} [options] Override http request option.
|
|
19522
|
+
* @throws {RequiredError}
|
|
19523
|
+
*/
|
|
19524
|
+
apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
|
|
19525
|
+
if (options === void 0) { options = {}; }
|
|
19526
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19527
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19528
|
+
return __generator(this, function (_a) {
|
|
19529
|
+
switch (_a.label) {
|
|
19530
|
+
case 0:
|
|
19531
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
19532
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsPost', 'managerId', managerId);
|
|
19533
|
+
localVarPath = "/api/v1/managers/{managerId}/affiliations"
|
|
19534
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
19535
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19536
|
+
if (configuration) {
|
|
19537
|
+
baseOptions = configuration.baseOptions;
|
|
19538
|
+
}
|
|
19539
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
19540
|
+
localVarHeaderParameter = {};
|
|
19541
|
+
localVarQueryParameter = {};
|
|
19542
|
+
// authentication oauth2 required
|
|
19543
|
+
// oauth required
|
|
19544
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19545
|
+
case 1:
|
|
19546
|
+
// authentication oauth2 required
|
|
19547
|
+
// oauth required
|
|
19548
|
+
_a.sent();
|
|
19549
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19550
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19551
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19552
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19553
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerAffiliationCommand, localVarRequestOptions, configuration);
|
|
19554
|
+
return [2 /*return*/, {
|
|
19555
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19556
|
+
options: localVarRequestOptions,
|
|
19557
|
+
}];
|
|
19558
|
+
}
|
|
19559
|
+
});
|
|
19560
|
+
});
|
|
19561
|
+
},
|
|
19215
19562
|
/**
|
|
19216
19563
|
*
|
|
19217
19564
|
* @summary Delete Manager.
|
|
@@ -19425,6 +19772,92 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19425
19772
|
});
|
|
19426
19773
|
});
|
|
19427
19774
|
},
|
|
19775
|
+
/**
|
|
19776
|
+
*
|
|
19777
|
+
* @summary Get all manager affiliations.
|
|
19778
|
+
* @param {string} managerId
|
|
19779
|
+
* @param {string} [hospitalName]
|
|
19780
|
+
* @param {number} [page]
|
|
19781
|
+
* @param {number} [limit]
|
|
19782
|
+
* @param {Date} [lastRetrieved]
|
|
19783
|
+
* @param {*} [options] Override http request option.
|
|
19784
|
+
* @throws {RequiredError}
|
|
19785
|
+
*/
|
|
19786
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19787
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19788
|
+
var localVarAxiosArgs;
|
|
19789
|
+
return __generator(this, function (_a) {
|
|
19790
|
+
switch (_a.label) {
|
|
19791
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options)];
|
|
19792
|
+
case 1:
|
|
19793
|
+
localVarAxiosArgs = _a.sent();
|
|
19794
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19795
|
+
}
|
|
19796
|
+
});
|
|
19797
|
+
});
|
|
19798
|
+
},
|
|
19799
|
+
/**
|
|
19800
|
+
*
|
|
19801
|
+
* @summary Delete manager affiliation.
|
|
19802
|
+
* @param {string} managerId
|
|
19803
|
+
* @param {string} hospitalId
|
|
19804
|
+
* @param {*} [options] Override http request option.
|
|
19805
|
+
* @throws {RequiredError}
|
|
19806
|
+
*/
|
|
19807
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
|
|
19808
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19809
|
+
var localVarAxiosArgs;
|
|
19810
|
+
return __generator(this, function (_a) {
|
|
19811
|
+
switch (_a.label) {
|
|
19812
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options)];
|
|
19813
|
+
case 1:
|
|
19814
|
+
localVarAxiosArgs = _a.sent();
|
|
19815
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19816
|
+
}
|
|
19817
|
+
});
|
|
19818
|
+
});
|
|
19819
|
+
},
|
|
19820
|
+
/**
|
|
19821
|
+
*
|
|
19822
|
+
* @summary Get manager affiliation.
|
|
19823
|
+
* @param {string} managerId
|
|
19824
|
+
* @param {string} hospitalId
|
|
19825
|
+
* @param {*} [options] Override http request option.
|
|
19826
|
+
* @throws {RequiredError}
|
|
19827
|
+
*/
|
|
19828
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
|
|
19829
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19830
|
+
var localVarAxiosArgs;
|
|
19831
|
+
return __generator(this, function (_a) {
|
|
19832
|
+
switch (_a.label) {
|
|
19833
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options)];
|
|
19834
|
+
case 1:
|
|
19835
|
+
localVarAxiosArgs = _a.sent();
|
|
19836
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19837
|
+
}
|
|
19838
|
+
});
|
|
19839
|
+
});
|
|
19840
|
+
},
|
|
19841
|
+
/**
|
|
19842
|
+
*
|
|
19843
|
+
* @param {string} managerId
|
|
19844
|
+
* @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
|
|
19845
|
+
* @param {*} [options] Override http request option.
|
|
19846
|
+
* @throws {RequiredError}
|
|
19847
|
+
*/
|
|
19848
|
+
apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
|
|
19849
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19850
|
+
var localVarAxiosArgs;
|
|
19851
|
+
return __generator(this, function (_a) {
|
|
19852
|
+
switch (_a.label) {
|
|
19853
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options)];
|
|
19854
|
+
case 1:
|
|
19855
|
+
localVarAxiosArgs = _a.sent();
|
|
19856
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19857
|
+
}
|
|
19858
|
+
});
|
|
19859
|
+
});
|
|
19860
|
+
},
|
|
19428
19861
|
/**
|
|
19429
19862
|
*
|
|
19430
19863
|
* @summary Delete Manager.
|
|
@@ -19535,6 +19968,52 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19535
19968
|
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19536
19969
|
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19537
19970
|
},
|
|
19971
|
+
/**
|
|
19972
|
+
*
|
|
19973
|
+
* @summary Get all manager affiliations.
|
|
19974
|
+
* @param {string} managerId
|
|
19975
|
+
* @param {string} [hospitalName]
|
|
19976
|
+
* @param {number} [page]
|
|
19977
|
+
* @param {number} [limit]
|
|
19978
|
+
* @param {Date} [lastRetrieved]
|
|
19979
|
+
* @param {*} [options] Override http request option.
|
|
19980
|
+
* @throws {RequiredError}
|
|
19981
|
+
*/
|
|
19982
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19983
|
+
return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19984
|
+
},
|
|
19985
|
+
/**
|
|
19986
|
+
*
|
|
19987
|
+
* @summary Delete manager affiliation.
|
|
19988
|
+
* @param {string} managerId
|
|
19989
|
+
* @param {string} hospitalId
|
|
19990
|
+
* @param {*} [options] Override http request option.
|
|
19991
|
+
* @throws {RequiredError}
|
|
19992
|
+
*/
|
|
19993
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
|
|
19994
|
+
return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
19995
|
+
},
|
|
19996
|
+
/**
|
|
19997
|
+
*
|
|
19998
|
+
* @summary Get manager affiliation.
|
|
19999
|
+
* @param {string} managerId
|
|
20000
|
+
* @param {string} hospitalId
|
|
20001
|
+
* @param {*} [options] Override http request option.
|
|
20002
|
+
* @throws {RequiredError}
|
|
20003
|
+
*/
|
|
20004
|
+
apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
|
|
20005
|
+
return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
20006
|
+
},
|
|
20007
|
+
/**
|
|
20008
|
+
*
|
|
20009
|
+
* @param {string} managerId
|
|
20010
|
+
* @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
|
|
20011
|
+
* @param {*} [options] Override http request option.
|
|
20012
|
+
* @throws {RequiredError}
|
|
20013
|
+
*/
|
|
20014
|
+
apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
|
|
20015
|
+
return localVarFp.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20016
|
+
},
|
|
19538
20017
|
/**
|
|
19539
20018
|
*
|
|
19540
20019
|
* @summary Delete Manager.
|
|
@@ -19611,6 +20090,60 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19611
20090
|
var _this = this;
|
|
19612
20091
|
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19613
20092
|
};
|
|
20093
|
+
/**
|
|
20094
|
+
*
|
|
20095
|
+
* @summary Get all manager affiliations.
|
|
20096
|
+
* @param {string} managerId
|
|
20097
|
+
* @param {string} [hospitalName]
|
|
20098
|
+
* @param {number} [page]
|
|
20099
|
+
* @param {number} [limit]
|
|
20100
|
+
* @param {Date} [lastRetrieved]
|
|
20101
|
+
* @param {*} [options] Override http request option.
|
|
20102
|
+
* @throws {RequiredError}
|
|
20103
|
+
* @memberof ManagersApi
|
|
20104
|
+
*/
|
|
20105
|
+
ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsGet = function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
20106
|
+
var _this = this;
|
|
20107
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20108
|
+
};
|
|
20109
|
+
/**
|
|
20110
|
+
*
|
|
20111
|
+
* @summary Delete manager affiliation.
|
|
20112
|
+
* @param {string} managerId
|
|
20113
|
+
* @param {string} hospitalId
|
|
20114
|
+
* @param {*} [options] Override http request option.
|
|
20115
|
+
* @throws {RequiredError}
|
|
20116
|
+
* @memberof ManagersApi
|
|
20117
|
+
*/
|
|
20118
|
+
ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdDelete = function (managerId, hospitalId, options) {
|
|
20119
|
+
var _this = this;
|
|
20120
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20121
|
+
};
|
|
20122
|
+
/**
|
|
20123
|
+
*
|
|
20124
|
+
* @summary Get manager affiliation.
|
|
20125
|
+
* @param {string} managerId
|
|
20126
|
+
* @param {string} hospitalId
|
|
20127
|
+
* @param {*} [options] Override http request option.
|
|
20128
|
+
* @throws {RequiredError}
|
|
20129
|
+
* @memberof ManagersApi
|
|
20130
|
+
*/
|
|
20131
|
+
ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdGet = function (managerId, hospitalId, options) {
|
|
20132
|
+
var _this = this;
|
|
20133
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20134
|
+
};
|
|
20135
|
+
/**
|
|
20136
|
+
*
|
|
20137
|
+
* @param {string} managerId
|
|
20138
|
+
* @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
|
|
20139
|
+
* @param {*} [options] Override http request option.
|
|
20140
|
+
* @throws {RequiredError}
|
|
20141
|
+
* @memberof ManagersApi
|
|
20142
|
+
*/
|
|
20143
|
+
ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsPost = function (managerId, createManagerAffiliationCommand, options) {
|
|
20144
|
+
var _this = this;
|
|
20145
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20146
|
+
};
|
|
19614
20147
|
/**
|
|
19615
20148
|
*
|
|
19616
20149
|
* @summary Delete Manager.
|
|
@@ -22037,6 +22570,48 @@ exports.ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
22037
22570
|
});
|
|
22038
22571
|
});
|
|
22039
22572
|
},
|
|
22573
|
+
/**
|
|
22574
|
+
*
|
|
22575
|
+
* @summary Update Profile.
|
|
22576
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22577
|
+
* @param {*} [options] Override http request option.
|
|
22578
|
+
* @throws {RequiredError}
|
|
22579
|
+
*/
|
|
22580
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22581
|
+
if (options === void 0) { options = {}; }
|
|
22582
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
22583
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22584
|
+
return __generator(this, function (_a) {
|
|
22585
|
+
switch (_a.label) {
|
|
22586
|
+
case 0:
|
|
22587
|
+
localVarPath = "/api/v1/profiles";
|
|
22588
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22589
|
+
if (configuration) {
|
|
22590
|
+
baseOptions = configuration.baseOptions;
|
|
22591
|
+
}
|
|
22592
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
22593
|
+
localVarHeaderParameter = {};
|
|
22594
|
+
localVarQueryParameter = {};
|
|
22595
|
+
// authentication oauth2 required
|
|
22596
|
+
// oauth required
|
|
22597
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22598
|
+
case 1:
|
|
22599
|
+
// authentication oauth2 required
|
|
22600
|
+
// oauth required
|
|
22601
|
+
_a.sent();
|
|
22602
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22603
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22604
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22605
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22606
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateProfileCommand, localVarRequestOptions, configuration);
|
|
22607
|
+
return [2 /*return*/, {
|
|
22608
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
22609
|
+
options: localVarRequestOptions,
|
|
22610
|
+
}];
|
|
22611
|
+
}
|
|
22612
|
+
});
|
|
22613
|
+
});
|
|
22614
|
+
},
|
|
22040
22615
|
};
|
|
22041
22616
|
};
|
|
22042
22617
|
/**
|
|
@@ -22105,6 +22680,26 @@ exports.ProfilesApiFp = function (configuration) {
|
|
|
22105
22680
|
});
|
|
22106
22681
|
});
|
|
22107
22682
|
},
|
|
22683
|
+
/**
|
|
22684
|
+
*
|
|
22685
|
+
* @summary Update Profile.
|
|
22686
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22687
|
+
* @param {*} [options] Override http request option.
|
|
22688
|
+
* @throws {RequiredError}
|
|
22689
|
+
*/
|
|
22690
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
22692
|
+
var localVarAxiosArgs;
|
|
22693
|
+
return __generator(this, function (_a) {
|
|
22694
|
+
switch (_a.label) {
|
|
22695
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesPut(updateProfileCommand, options)];
|
|
22696
|
+
case 1:
|
|
22697
|
+
localVarAxiosArgs = _a.sent();
|
|
22698
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
22699
|
+
}
|
|
22700
|
+
});
|
|
22701
|
+
});
|
|
22702
|
+
},
|
|
22108
22703
|
};
|
|
22109
22704
|
};
|
|
22110
22705
|
/**
|
|
@@ -22143,6 +22738,16 @@ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
22143
22738
|
apiV1ProfilesGet: function (options) {
|
|
22144
22739
|
return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
|
|
22145
22740
|
},
|
|
22741
|
+
/**
|
|
22742
|
+
*
|
|
22743
|
+
* @summary Update Profile.
|
|
22744
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22745
|
+
* @param {*} [options] Override http request option.
|
|
22746
|
+
* @throws {RequiredError}
|
|
22747
|
+
*/
|
|
22748
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22749
|
+
return localVarFp.apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(axios, basePath); });
|
|
22750
|
+
},
|
|
22146
22751
|
};
|
|
22147
22752
|
};
|
|
22148
22753
|
/**
|
|
@@ -22191,6 +22796,18 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
22191
22796
|
var _this = this;
|
|
22192
22797
|
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22193
22798
|
};
|
|
22799
|
+
/**
|
|
22800
|
+
*
|
|
22801
|
+
* @summary Update Profile.
|
|
22802
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22803
|
+
* @param {*} [options] Override http request option.
|
|
22804
|
+
* @throws {RequiredError}
|
|
22805
|
+
* @memberof ProfilesApi
|
|
22806
|
+
*/
|
|
22807
|
+
ProfilesApi.prototype.apiV1ProfilesPut = function (updateProfileCommand, options) {
|
|
22808
|
+
var _this = this;
|
|
22809
|
+
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22810
|
+
};
|
|
22194
22811
|
return ProfilesApi;
|
|
22195
22812
|
}(base_1.BaseAPI));
|
|
22196
22813
|
exports.ProfilesApi = ProfilesApi;
|
|
@@ -25974,23 +26591,15 @@ exports.WeatherForecastApiAxiosParamCreator = function (configuration) {
|
|
|
25974
26591
|
return {
|
|
25975
26592
|
/**
|
|
25976
26593
|
*
|
|
25977
|
-
* @param {string} ownerId
|
|
25978
|
-
* @param {string} mediaId
|
|
25979
26594
|
* @param {*} [options] Override http request option.
|
|
25980
26595
|
* @throws {RequiredError}
|
|
25981
26596
|
*/
|
|
25982
|
-
|
|
26597
|
+
apiV1WeatherforecastGet: function (options) {
|
|
25983
26598
|
if (options === void 0) { options = {}; }
|
|
25984
26599
|
return __awaiter(_this, void 0, void 0, function () {
|
|
25985
26600
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25986
26601
|
return __generator(this, function (_a) {
|
|
25987
|
-
|
|
25988
|
-
common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'ownerId', ownerId);
|
|
25989
|
-
// verify required parameter 'mediaId' is not null or undefined
|
|
25990
|
-
common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
25991
|
-
localVarPath = "/api/v1/weatherforecast/{ownerId}/medias/{mediaId}"
|
|
25992
|
-
.replace("{" + "ownerId" + "}", encodeURIComponent(String(ownerId)))
|
|
25993
|
-
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
26602
|
+
localVarPath = "/api/v1/weatherforecast";
|
|
25994
26603
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25995
26604
|
if (configuration) {
|
|
25996
26605
|
baseOptions = configuration.baseOptions;
|
|
@@ -26019,17 +26628,15 @@ exports.WeatherForecastApiFp = function (configuration) {
|
|
|
26019
26628
|
return {
|
|
26020
26629
|
/**
|
|
26021
26630
|
*
|
|
26022
|
-
* @param {string} ownerId
|
|
26023
|
-
* @param {string} mediaId
|
|
26024
26631
|
* @param {*} [options] Override http request option.
|
|
26025
26632
|
* @throws {RequiredError}
|
|
26026
26633
|
*/
|
|
26027
|
-
|
|
26634
|
+
apiV1WeatherforecastGet: function (options) {
|
|
26028
26635
|
return __awaiter(this, void 0, void 0, function () {
|
|
26029
26636
|
var localVarAxiosArgs;
|
|
26030
26637
|
return __generator(this, function (_a) {
|
|
26031
26638
|
switch (_a.label) {
|
|
26032
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
26639
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastGet(options)];
|
|
26033
26640
|
case 1:
|
|
26034
26641
|
localVarAxiosArgs = _a.sent();
|
|
26035
26642
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -26048,13 +26655,11 @@ exports.WeatherForecastApiFactory = function (configuration, basePath, axios) {
|
|
|
26048
26655
|
return {
|
|
26049
26656
|
/**
|
|
26050
26657
|
*
|
|
26051
|
-
* @param {string} ownerId
|
|
26052
|
-
* @param {string} mediaId
|
|
26053
26658
|
* @param {*} [options] Override http request option.
|
|
26054
26659
|
* @throws {RequiredError}
|
|
26055
26660
|
*/
|
|
26056
|
-
|
|
26057
|
-
return localVarFp.
|
|
26661
|
+
apiV1WeatherforecastGet: function (options) {
|
|
26662
|
+
return localVarFp.apiV1WeatherforecastGet(options).then(function (request) { return request(axios, basePath); });
|
|
26058
26663
|
},
|
|
26059
26664
|
};
|
|
26060
26665
|
};
|
|
@@ -26071,15 +26676,13 @@ var WeatherForecastApi = /** @class */ (function (_super) {
|
|
|
26071
26676
|
}
|
|
26072
26677
|
/**
|
|
26073
26678
|
*
|
|
26074
|
-
* @param {string} ownerId
|
|
26075
|
-
* @param {string} mediaId
|
|
26076
26679
|
* @param {*} [options] Override http request option.
|
|
26077
26680
|
* @throws {RequiredError}
|
|
26078
26681
|
* @memberof WeatherForecastApi
|
|
26079
26682
|
*/
|
|
26080
|
-
WeatherForecastApi.prototype.
|
|
26683
|
+
WeatherForecastApi.prototype.apiV1WeatherforecastGet = function (options) {
|
|
26081
26684
|
var _this = this;
|
|
26082
|
-
return exports.WeatherForecastApiFp(this.configuration).
|
|
26685
|
+
return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26083
26686
|
};
|
|
26084
26687
|
return WeatherForecastApi;
|
|
26085
26688
|
}(base_1.BaseAPI));
|