ch-admin-api-client-typescript 3.5.1 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +188 -30
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +98 -7
- package/package.json +1 -1
- package/src/api.ts +233 -33
package/lib/api.js
CHANGED
|
@@ -12122,6 +12122,7 @@ exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
|
12122
12122
|
* @param {string} [doctorId]
|
|
12123
12123
|
* @param {string} [doctorName]
|
|
12124
12124
|
* @param {string} [doctorSlug]
|
|
12125
|
+
* @param {string} [specialtyId]
|
|
12125
12126
|
* @param {string} [languageCode]
|
|
12126
12127
|
* @param {boolean} [showHidden]
|
|
12127
12128
|
* @param {number} [page]
|
|
@@ -12130,7 +12131,7 @@ exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
|
12130
12131
|
* @param {*} [options] Override http request option.
|
|
12131
12132
|
* @throws {RequiredError}
|
|
12132
12133
|
*/
|
|
12133
|
-
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12134
|
+
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12134
12135
|
if (options === void 0) { options = {}; }
|
|
12135
12136
|
return __awaiter(_this, void 0, void 0, function () {
|
|
12136
12137
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -12167,6 +12168,9 @@ exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
|
12167
12168
|
if (doctorSlug !== undefined) {
|
|
12168
12169
|
localVarQueryParameter['DoctorSlug'] = doctorSlug;
|
|
12169
12170
|
}
|
|
12171
|
+
if (specialtyId !== undefined) {
|
|
12172
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
12173
|
+
}
|
|
12170
12174
|
if (languageCode !== undefined) {
|
|
12171
12175
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
12172
12176
|
}
|
|
@@ -12389,6 +12393,7 @@ exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
|
12389
12393
|
* @param {string} [doctorId]
|
|
12390
12394
|
* @param {string} [doctorName]
|
|
12391
12395
|
* @param {string} [doctorSlug]
|
|
12396
|
+
* @param {string} [specialtyId]
|
|
12392
12397
|
* @param {string} [languageCode]
|
|
12393
12398
|
* @param {boolean} [showHidden]
|
|
12394
12399
|
* @param {number} [page]
|
|
@@ -12397,12 +12402,12 @@ exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
|
12397
12402
|
* @param {*} [options] Override http request option.
|
|
12398
12403
|
* @throws {RequiredError}
|
|
12399
12404
|
*/
|
|
12400
|
-
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12405
|
+
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12401
12406
|
return __awaiter(this, void 0, void 0, function () {
|
|
12402
12407
|
var localVarAxiosArgs;
|
|
12403
12408
|
return __generator(this, function (_a) {
|
|
12404
12409
|
switch (_a.label) {
|
|
12405
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
12410
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
12406
12411
|
case 1:
|
|
12407
12412
|
localVarAxiosArgs = _a.sent();
|
|
12408
12413
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12508,6 +12513,7 @@ exports.DoctorAffiliationsApiFactory = function (configuration, basePath, axios)
|
|
|
12508
12513
|
* @param {string} [doctorId]
|
|
12509
12514
|
* @param {string} [doctorName]
|
|
12510
12515
|
* @param {string} [doctorSlug]
|
|
12516
|
+
* @param {string} [specialtyId]
|
|
12511
12517
|
* @param {string} [languageCode]
|
|
12512
12518
|
* @param {boolean} [showHidden]
|
|
12513
12519
|
* @param {number} [page]
|
|
@@ -12516,8 +12522,8 @@ exports.DoctorAffiliationsApiFactory = function (configuration, basePath, axios)
|
|
|
12516
12522
|
* @param {*} [options] Override http request option.
|
|
12517
12523
|
* @throws {RequiredError}
|
|
12518
12524
|
*/
|
|
12519
|
-
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12520
|
-
return localVarFp.apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12525
|
+
apiV1DoctoraffiliationsGet: function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12526
|
+
return localVarFp.apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12521
12527
|
},
|
|
12522
12528
|
/**
|
|
12523
12529
|
*
|
|
@@ -12581,6 +12587,7 @@ var DoctorAffiliationsApi = /** @class */ (function (_super) {
|
|
|
12581
12587
|
* @param {string} [doctorId]
|
|
12582
12588
|
* @param {string} [doctorName]
|
|
12583
12589
|
* @param {string} [doctorSlug]
|
|
12590
|
+
* @param {string} [specialtyId]
|
|
12584
12591
|
* @param {string} [languageCode]
|
|
12585
12592
|
* @param {boolean} [showHidden]
|
|
12586
12593
|
* @param {number} [page]
|
|
@@ -12590,9 +12597,9 @@ var DoctorAffiliationsApi = /** @class */ (function (_super) {
|
|
|
12590
12597
|
* @throws {RequiredError}
|
|
12591
12598
|
* @memberof DoctorAffiliationsApi
|
|
12592
12599
|
*/
|
|
12593
|
-
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsGet = function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12600
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsGet = function (hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
12594
12601
|
var _this = this;
|
|
12595
|
-
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12602
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsGet(hospitalId, hospitalName, doctorId, doctorName, doctorSlug, specialtyId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12596
12603
|
};
|
|
12597
12604
|
/**
|
|
12598
12605
|
*
|
|
@@ -31070,6 +31077,48 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
|
|
|
31070
31077
|
});
|
|
31071
31078
|
});
|
|
31072
31079
|
},
|
|
31080
|
+
/**
|
|
31081
|
+
*
|
|
31082
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31083
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31084
|
+
* @param {*} [options] Override http request option.
|
|
31085
|
+
* @throws {RequiredError}
|
|
31086
|
+
*/
|
|
31087
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31088
|
+
if (options === void 0) { options = {}; }
|
|
31089
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
31090
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
31091
|
+
return __generator(this, function (_a) {
|
|
31092
|
+
switch (_a.label) {
|
|
31093
|
+
case 0:
|
|
31094
|
+
localVarPath = "/api/v1/search/hospitalspecialties";
|
|
31095
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31096
|
+
if (configuration) {
|
|
31097
|
+
baseOptions = configuration.baseOptions;
|
|
31098
|
+
}
|
|
31099
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
31100
|
+
localVarHeaderParameter = {};
|
|
31101
|
+
localVarQueryParameter = {};
|
|
31102
|
+
// authentication oauth2 required
|
|
31103
|
+
// oauth required
|
|
31104
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
31105
|
+
case 1:
|
|
31106
|
+
// authentication oauth2 required
|
|
31107
|
+
// oauth required
|
|
31108
|
+
_a.sent();
|
|
31109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31110
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31111
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31112
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31113
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
|
|
31114
|
+
return [2 /*return*/, {
|
|
31115
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
31116
|
+
options: localVarRequestOptions,
|
|
31117
|
+
}];
|
|
31118
|
+
}
|
|
31119
|
+
});
|
|
31120
|
+
});
|
|
31121
|
+
},
|
|
31073
31122
|
/**
|
|
31074
31123
|
*
|
|
31075
31124
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31223,6 +31272,26 @@ exports.SearchApiFp = function (configuration) {
|
|
|
31223
31272
|
});
|
|
31224
31273
|
});
|
|
31225
31274
|
},
|
|
31275
|
+
/**
|
|
31276
|
+
*
|
|
31277
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31278
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31279
|
+
* @param {*} [options] Override http request option.
|
|
31280
|
+
* @throws {RequiredError}
|
|
31281
|
+
*/
|
|
31282
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31283
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
31284
|
+
var localVarAxiosArgs;
|
|
31285
|
+
return __generator(this, function (_a) {
|
|
31286
|
+
switch (_a.label) {
|
|
31287
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options)];
|
|
31288
|
+
case 1:
|
|
31289
|
+
localVarAxiosArgs = _a.sent();
|
|
31290
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
31291
|
+
}
|
|
31292
|
+
});
|
|
31293
|
+
});
|
|
31294
|
+
},
|
|
31226
31295
|
/**
|
|
31227
31296
|
*
|
|
31228
31297
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31302,6 +31371,16 @@ exports.SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
31302
31371
|
apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
|
|
31303
31372
|
return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
|
|
31304
31373
|
},
|
|
31374
|
+
/**
|
|
31375
|
+
*
|
|
31376
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31377
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31378
|
+
* @param {*} [options] Override http request option.
|
|
31379
|
+
* @throws {RequiredError}
|
|
31380
|
+
*/
|
|
31381
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31382
|
+
return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
|
|
31383
|
+
},
|
|
31305
31384
|
/**
|
|
31306
31385
|
*
|
|
31307
31386
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31371,6 +31450,18 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
31371
31450
|
var _this = this;
|
|
31372
31451
|
return exports.SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31373
31452
|
};
|
|
31453
|
+
/**
|
|
31454
|
+
*
|
|
31455
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31456
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31457
|
+
* @param {*} [options] Override http request option.
|
|
31458
|
+
* @throws {RequiredError}
|
|
31459
|
+
* @memberof SearchApi
|
|
31460
|
+
*/
|
|
31461
|
+
SearchApi.prototype.apiV1SearchHospitalspecialtiesPost = function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31462
|
+
var _this = this;
|
|
31463
|
+
return exports.SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31464
|
+
};
|
|
31374
31465
|
/**
|
|
31375
31466
|
*
|
|
31376
31467
|
* @summary Update or Re-create specialties Azure Search Services Index
|