ch-admin-api-client-typescript 5.19.69 → 5.19.70
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/hospitals-api.d.ts +333 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +491 -0
- package/lib/models/create-hospital-rating-command.d.ts +61 -0
- package/lib/models/create-hospital-rating-command.d.ts.map +1 -0
- package/lib/models/create-hospital-rating-command.js +15 -0
- package/lib/models/hospital-rating-item-model.d.ts +67 -0
- package/lib/models/hospital-rating-item-model.d.ts.map +1 -0
- package/lib/models/hospital-rating-item-model.js +15 -0
- package/lib/models/hospital-rating-model.d.ts +67 -0
- package/lib/models/hospital-rating-model.d.ts.map +1 -0
- package/lib/models/hospital-rating-model.js +15 -0
- package/lib/models/hospital-ratings-model.d.ts +33 -0
- package/lib/models/hospital-ratings-model.d.ts.map +1 -0
- package/lib/models/hospital-ratings-model.js +15 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +5 -0
- package/lib/models/update-hospital-rating-command.d.ts +61 -0
- package/lib/models/update-hospital-rating-command.d.ts.map +1 -0
- package/lib/models/update-hospital-rating-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +5 -0
- package/src/api/hospitals-api.ts +584 -0
- package/src/models/create-hospital-rating-command.ts +66 -0
- package/src/models/hospital-rating-item-model.ts +72 -0
- package/src/models/hospital-rating-model.ts +72 -0
- package/src/models/hospital-ratings-model.ts +42 -0
- package/src/models/index.ts +5 -0
- package/src/models/update-hospital-rating-command.ts +66 -0
package/lib/api/hospitals-api.js
CHANGED
|
@@ -4924,6 +4924,265 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
4924
4924
|
});
|
|
4925
4925
|
});
|
|
4926
4926
|
},
|
|
4927
|
+
/**
|
|
4928
|
+
*
|
|
4929
|
+
* @summary Get hospitalRatings
|
|
4930
|
+
* @param {string} hospitalId
|
|
4931
|
+
* @param {string} [id]
|
|
4932
|
+
* @param {string} [vender]
|
|
4933
|
+
* @param {boolean} [isConfirmed]
|
|
4934
|
+
* @param {number} [page]
|
|
4935
|
+
* @param {number} [limit]
|
|
4936
|
+
* @param {Date} [lastRetrieved]
|
|
4937
|
+
* @param {*} [options] Override http request option.
|
|
4938
|
+
* @throws {RequiredError}
|
|
4939
|
+
*/
|
|
4940
|
+
apiV1HospitalsHospitalIdRatingsGet: function (hospitalId, id, vender, isConfirmed, page, limit, lastRetrieved, options) {
|
|
4941
|
+
if (options === void 0) { options = {}; }
|
|
4942
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4943
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4944
|
+
return __generator(this, function (_a) {
|
|
4945
|
+
switch (_a.label) {
|
|
4946
|
+
case 0:
|
|
4947
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
4948
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsGet', 'hospitalId', hospitalId);
|
|
4949
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/ratings"
|
|
4950
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
4951
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4952
|
+
if (configuration) {
|
|
4953
|
+
baseOptions = configuration.baseOptions;
|
|
4954
|
+
}
|
|
4955
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4956
|
+
localVarHeaderParameter = {};
|
|
4957
|
+
localVarQueryParameter = {};
|
|
4958
|
+
// authentication oauth2 required
|
|
4959
|
+
// oauth required
|
|
4960
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
4961
|
+
case 1:
|
|
4962
|
+
// authentication oauth2 required
|
|
4963
|
+
// oauth required
|
|
4964
|
+
_a.sent();
|
|
4965
|
+
if (id !== undefined) {
|
|
4966
|
+
localVarQueryParameter['Id'] = id;
|
|
4967
|
+
}
|
|
4968
|
+
if (vender !== undefined) {
|
|
4969
|
+
localVarQueryParameter['Vender'] = vender;
|
|
4970
|
+
}
|
|
4971
|
+
if (isConfirmed !== undefined) {
|
|
4972
|
+
localVarQueryParameter['IsConfirmed'] = isConfirmed;
|
|
4973
|
+
}
|
|
4974
|
+
if (page !== undefined) {
|
|
4975
|
+
localVarQueryParameter['page'] = page;
|
|
4976
|
+
}
|
|
4977
|
+
if (limit !== undefined) {
|
|
4978
|
+
localVarQueryParameter['limit'] = limit;
|
|
4979
|
+
}
|
|
4980
|
+
if (lastRetrieved !== undefined) {
|
|
4981
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
4982
|
+
lastRetrieved.toISOString() :
|
|
4983
|
+
lastRetrieved;
|
|
4984
|
+
}
|
|
4985
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4986
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4987
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4988
|
+
return [2 /*return*/, {
|
|
4989
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4990
|
+
options: localVarRequestOptions,
|
|
4991
|
+
}];
|
|
4992
|
+
}
|
|
4993
|
+
});
|
|
4994
|
+
});
|
|
4995
|
+
},
|
|
4996
|
+
/**
|
|
4997
|
+
*
|
|
4998
|
+
* @summary Delete hospitalRating
|
|
4999
|
+
* @param {string} hospitalId
|
|
5000
|
+
* @param {string} id
|
|
5001
|
+
* @param {*} [options] Override http request option.
|
|
5002
|
+
* @throws {RequiredError}
|
|
5003
|
+
*/
|
|
5004
|
+
apiV1HospitalsHospitalIdRatingsIdDelete: function (hospitalId, id, options) {
|
|
5005
|
+
if (options === void 0) { options = {}; }
|
|
5006
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5007
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5008
|
+
return __generator(this, function (_a) {
|
|
5009
|
+
switch (_a.label) {
|
|
5010
|
+
case 0:
|
|
5011
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
5012
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdDelete', 'hospitalId', hospitalId);
|
|
5013
|
+
// verify required parameter 'id' is not null or undefined
|
|
5014
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdDelete', 'id', id);
|
|
5015
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/ratings/{id}"
|
|
5016
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
5017
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
5018
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5019
|
+
if (configuration) {
|
|
5020
|
+
baseOptions = configuration.baseOptions;
|
|
5021
|
+
}
|
|
5022
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
5023
|
+
localVarHeaderParameter = {};
|
|
5024
|
+
localVarQueryParameter = {};
|
|
5025
|
+
// authentication oauth2 required
|
|
5026
|
+
// oauth required
|
|
5027
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5028
|
+
case 1:
|
|
5029
|
+
// authentication oauth2 required
|
|
5030
|
+
// oauth required
|
|
5031
|
+
_a.sent();
|
|
5032
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5033
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5034
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5035
|
+
return [2 /*return*/, {
|
|
5036
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5037
|
+
options: localVarRequestOptions,
|
|
5038
|
+
}];
|
|
5039
|
+
}
|
|
5040
|
+
});
|
|
5041
|
+
});
|
|
5042
|
+
},
|
|
5043
|
+
/**
|
|
5044
|
+
*
|
|
5045
|
+
* @summary Get hospitalRating
|
|
5046
|
+
* @param {string} hospitalId
|
|
5047
|
+
* @param {string} id
|
|
5048
|
+
* @param {*} [options] Override http request option.
|
|
5049
|
+
* @throws {RequiredError}
|
|
5050
|
+
*/
|
|
5051
|
+
apiV1HospitalsHospitalIdRatingsIdGet: function (hospitalId, id, options) {
|
|
5052
|
+
if (options === void 0) { options = {}; }
|
|
5053
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5054
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5055
|
+
return __generator(this, function (_a) {
|
|
5056
|
+
switch (_a.label) {
|
|
5057
|
+
case 0:
|
|
5058
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
5059
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdGet', 'hospitalId', hospitalId);
|
|
5060
|
+
// verify required parameter 'id' is not null or undefined
|
|
5061
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdGet', 'id', id);
|
|
5062
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/ratings/{id}"
|
|
5063
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
5064
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
5065
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5066
|
+
if (configuration) {
|
|
5067
|
+
baseOptions = configuration.baseOptions;
|
|
5068
|
+
}
|
|
5069
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5070
|
+
localVarHeaderParameter = {};
|
|
5071
|
+
localVarQueryParameter = {};
|
|
5072
|
+
// authentication oauth2 required
|
|
5073
|
+
// oauth required
|
|
5074
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5075
|
+
case 1:
|
|
5076
|
+
// authentication oauth2 required
|
|
5077
|
+
// oauth required
|
|
5078
|
+
_a.sent();
|
|
5079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5080
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5081
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5082
|
+
return [2 /*return*/, {
|
|
5083
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5084
|
+
options: localVarRequestOptions,
|
|
5085
|
+
}];
|
|
5086
|
+
}
|
|
5087
|
+
});
|
|
5088
|
+
});
|
|
5089
|
+
},
|
|
5090
|
+
/**
|
|
5091
|
+
*
|
|
5092
|
+
* @summary Update hospitalRating
|
|
5093
|
+
* @param {string} hospitalId
|
|
5094
|
+
* @param {string} id
|
|
5095
|
+
* @param {UpdateHospitalRatingCommand} [updateHospitalRatingCommand]
|
|
5096
|
+
* @param {*} [options] Override http request option.
|
|
5097
|
+
* @throws {RequiredError}
|
|
5098
|
+
*/
|
|
5099
|
+
apiV1HospitalsHospitalIdRatingsIdPut: function (hospitalId, id, updateHospitalRatingCommand, options) {
|
|
5100
|
+
if (options === void 0) { options = {}; }
|
|
5101
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5102
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5103
|
+
return __generator(this, function (_a) {
|
|
5104
|
+
switch (_a.label) {
|
|
5105
|
+
case 0:
|
|
5106
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
5107
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdPut', 'hospitalId', hospitalId);
|
|
5108
|
+
// verify required parameter 'id' is not null or undefined
|
|
5109
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsIdPut', 'id', id);
|
|
5110
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/ratings/{id}"
|
|
5111
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
5112
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
5113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5114
|
+
if (configuration) {
|
|
5115
|
+
baseOptions = configuration.baseOptions;
|
|
5116
|
+
}
|
|
5117
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
5118
|
+
localVarHeaderParameter = {};
|
|
5119
|
+
localVarQueryParameter = {};
|
|
5120
|
+
// authentication oauth2 required
|
|
5121
|
+
// oauth required
|
|
5122
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5123
|
+
case 1:
|
|
5124
|
+
// authentication oauth2 required
|
|
5125
|
+
// oauth required
|
|
5126
|
+
_a.sent();
|
|
5127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5129
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5130
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5131
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalRatingCommand, localVarRequestOptions, configuration);
|
|
5132
|
+
return [2 /*return*/, {
|
|
5133
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5134
|
+
options: localVarRequestOptions,
|
|
5135
|
+
}];
|
|
5136
|
+
}
|
|
5137
|
+
});
|
|
5138
|
+
});
|
|
5139
|
+
},
|
|
5140
|
+
/**
|
|
5141
|
+
*
|
|
5142
|
+
* @summary Create hospitalRating
|
|
5143
|
+
* @param {string} hospitalId
|
|
5144
|
+
* @param {CreateHospitalRatingCommand} [createHospitalRatingCommand]
|
|
5145
|
+
* @param {*} [options] Override http request option.
|
|
5146
|
+
* @throws {RequiredError}
|
|
5147
|
+
*/
|
|
5148
|
+
apiV1HospitalsHospitalIdRatingsPost: function (hospitalId, createHospitalRatingCommand, options) {
|
|
5149
|
+
if (options === void 0) { options = {}; }
|
|
5150
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5151
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5152
|
+
return __generator(this, function (_a) {
|
|
5153
|
+
switch (_a.label) {
|
|
5154
|
+
case 0:
|
|
5155
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
5156
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdRatingsPost', 'hospitalId', hospitalId);
|
|
5157
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/ratings"
|
|
5158
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
5159
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5160
|
+
if (configuration) {
|
|
5161
|
+
baseOptions = configuration.baseOptions;
|
|
5162
|
+
}
|
|
5163
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5164
|
+
localVarHeaderParameter = {};
|
|
5165
|
+
localVarQueryParameter = {};
|
|
5166
|
+
// authentication oauth2 required
|
|
5167
|
+
// oauth required
|
|
5168
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5169
|
+
case 1:
|
|
5170
|
+
// authentication oauth2 required
|
|
5171
|
+
// oauth required
|
|
5172
|
+
_a.sent();
|
|
5173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5175
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5176
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5177
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHospitalRatingCommand, localVarRequestOptions, configuration);
|
|
5178
|
+
return [2 /*return*/, {
|
|
5179
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5180
|
+
options: localVarRequestOptions,
|
|
5181
|
+
}];
|
|
5182
|
+
}
|
|
5183
|
+
});
|
|
5184
|
+
});
|
|
5185
|
+
},
|
|
4927
5186
|
/**
|
|
4928
5187
|
*
|
|
4929
5188
|
* @summary Delete HospitalSpecialty.
|
|
@@ -10613,6 +10872,117 @@ var HospitalsApiFp = function (configuration) {
|
|
|
10613
10872
|
});
|
|
10614
10873
|
});
|
|
10615
10874
|
},
|
|
10875
|
+
/**
|
|
10876
|
+
*
|
|
10877
|
+
* @summary Get hospitalRatings
|
|
10878
|
+
* @param {string} hospitalId
|
|
10879
|
+
* @param {string} [id]
|
|
10880
|
+
* @param {string} [vender]
|
|
10881
|
+
* @param {boolean} [isConfirmed]
|
|
10882
|
+
* @param {number} [page]
|
|
10883
|
+
* @param {number} [limit]
|
|
10884
|
+
* @param {Date} [lastRetrieved]
|
|
10885
|
+
* @param {*} [options] Override http request option.
|
|
10886
|
+
* @throws {RequiredError}
|
|
10887
|
+
*/
|
|
10888
|
+
apiV1HospitalsHospitalIdRatingsGet: function (hospitalId, id, vender, isConfirmed, page, limit, lastRetrieved, options) {
|
|
10889
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10890
|
+
var localVarAxiosArgs;
|
|
10891
|
+
return __generator(this, function (_a) {
|
|
10892
|
+
switch (_a.label) {
|
|
10893
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsGet(hospitalId, id, vender, isConfirmed, page, limit, lastRetrieved, options)];
|
|
10894
|
+
case 1:
|
|
10895
|
+
localVarAxiosArgs = _a.sent();
|
|
10896
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10897
|
+
}
|
|
10898
|
+
});
|
|
10899
|
+
});
|
|
10900
|
+
},
|
|
10901
|
+
/**
|
|
10902
|
+
*
|
|
10903
|
+
* @summary Delete hospitalRating
|
|
10904
|
+
* @param {string} hospitalId
|
|
10905
|
+
* @param {string} id
|
|
10906
|
+
* @param {*} [options] Override http request option.
|
|
10907
|
+
* @throws {RequiredError}
|
|
10908
|
+
*/
|
|
10909
|
+
apiV1HospitalsHospitalIdRatingsIdDelete: function (hospitalId, id, options) {
|
|
10910
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10911
|
+
var localVarAxiosArgs;
|
|
10912
|
+
return __generator(this, function (_a) {
|
|
10913
|
+
switch (_a.label) {
|
|
10914
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsIdDelete(hospitalId, id, options)];
|
|
10915
|
+
case 1:
|
|
10916
|
+
localVarAxiosArgs = _a.sent();
|
|
10917
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10918
|
+
}
|
|
10919
|
+
});
|
|
10920
|
+
});
|
|
10921
|
+
},
|
|
10922
|
+
/**
|
|
10923
|
+
*
|
|
10924
|
+
* @summary Get hospitalRating
|
|
10925
|
+
* @param {string} hospitalId
|
|
10926
|
+
* @param {string} id
|
|
10927
|
+
* @param {*} [options] Override http request option.
|
|
10928
|
+
* @throws {RequiredError}
|
|
10929
|
+
*/
|
|
10930
|
+
apiV1HospitalsHospitalIdRatingsIdGet: function (hospitalId, id, options) {
|
|
10931
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10932
|
+
var localVarAxiosArgs;
|
|
10933
|
+
return __generator(this, function (_a) {
|
|
10934
|
+
switch (_a.label) {
|
|
10935
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsIdGet(hospitalId, id, options)];
|
|
10936
|
+
case 1:
|
|
10937
|
+
localVarAxiosArgs = _a.sent();
|
|
10938
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10939
|
+
}
|
|
10940
|
+
});
|
|
10941
|
+
});
|
|
10942
|
+
},
|
|
10943
|
+
/**
|
|
10944
|
+
*
|
|
10945
|
+
* @summary Update hospitalRating
|
|
10946
|
+
* @param {string} hospitalId
|
|
10947
|
+
* @param {string} id
|
|
10948
|
+
* @param {UpdateHospitalRatingCommand} [updateHospitalRatingCommand]
|
|
10949
|
+
* @param {*} [options] Override http request option.
|
|
10950
|
+
* @throws {RequiredError}
|
|
10951
|
+
*/
|
|
10952
|
+
apiV1HospitalsHospitalIdRatingsIdPut: function (hospitalId, id, updateHospitalRatingCommand, options) {
|
|
10953
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10954
|
+
var localVarAxiosArgs;
|
|
10955
|
+
return __generator(this, function (_a) {
|
|
10956
|
+
switch (_a.label) {
|
|
10957
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsIdPut(hospitalId, id, updateHospitalRatingCommand, options)];
|
|
10958
|
+
case 1:
|
|
10959
|
+
localVarAxiosArgs = _a.sent();
|
|
10960
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10961
|
+
}
|
|
10962
|
+
});
|
|
10963
|
+
});
|
|
10964
|
+
},
|
|
10965
|
+
/**
|
|
10966
|
+
*
|
|
10967
|
+
* @summary Create hospitalRating
|
|
10968
|
+
* @param {string} hospitalId
|
|
10969
|
+
* @param {CreateHospitalRatingCommand} [createHospitalRatingCommand]
|
|
10970
|
+
* @param {*} [options] Override http request option.
|
|
10971
|
+
* @throws {RequiredError}
|
|
10972
|
+
*/
|
|
10973
|
+
apiV1HospitalsHospitalIdRatingsPost: function (hospitalId, createHospitalRatingCommand, options) {
|
|
10974
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10975
|
+
var localVarAxiosArgs;
|
|
10976
|
+
return __generator(this, function (_a) {
|
|
10977
|
+
switch (_a.label) {
|
|
10978
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsPost(hospitalId, createHospitalRatingCommand, options)];
|
|
10979
|
+
case 1:
|
|
10980
|
+
localVarAxiosArgs = _a.sent();
|
|
10981
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10982
|
+
}
|
|
10983
|
+
});
|
|
10984
|
+
});
|
|
10985
|
+
},
|
|
10616
10986
|
/**
|
|
10617
10987
|
*
|
|
10618
10988
|
* @summary Delete HospitalSpecialty.
|
|
@@ -13255,6 +13625,67 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
13255
13625
|
apiV1HospitalsHospitalIdPut: function (hospitalId, updateHospitalCommand, options) {
|
|
13256
13626
|
return localVarFp.apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
13257
13627
|
},
|
|
13628
|
+
/**
|
|
13629
|
+
*
|
|
13630
|
+
* @summary Get hospitalRatings
|
|
13631
|
+
* @param {string} hospitalId
|
|
13632
|
+
* @param {string} [id]
|
|
13633
|
+
* @param {string} [vender]
|
|
13634
|
+
* @param {boolean} [isConfirmed]
|
|
13635
|
+
* @param {number} [page]
|
|
13636
|
+
* @param {number} [limit]
|
|
13637
|
+
* @param {Date} [lastRetrieved]
|
|
13638
|
+
* @param {*} [options] Override http request option.
|
|
13639
|
+
* @throws {RequiredError}
|
|
13640
|
+
*/
|
|
13641
|
+
apiV1HospitalsHospitalIdRatingsGet: function (hospitalId, id, vender, isConfirmed, page, limit, lastRetrieved, options) {
|
|
13642
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsGet(hospitalId, id, vender, isConfirmed, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
13643
|
+
},
|
|
13644
|
+
/**
|
|
13645
|
+
*
|
|
13646
|
+
* @summary Delete hospitalRating
|
|
13647
|
+
* @param {string} hospitalId
|
|
13648
|
+
* @param {string} id
|
|
13649
|
+
* @param {*} [options] Override http request option.
|
|
13650
|
+
* @throws {RequiredError}
|
|
13651
|
+
*/
|
|
13652
|
+
apiV1HospitalsHospitalIdRatingsIdDelete: function (hospitalId, id, options) {
|
|
13653
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsIdDelete(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
|
|
13654
|
+
},
|
|
13655
|
+
/**
|
|
13656
|
+
*
|
|
13657
|
+
* @summary Get hospitalRating
|
|
13658
|
+
* @param {string} hospitalId
|
|
13659
|
+
* @param {string} id
|
|
13660
|
+
* @param {*} [options] Override http request option.
|
|
13661
|
+
* @throws {RequiredError}
|
|
13662
|
+
*/
|
|
13663
|
+
apiV1HospitalsHospitalIdRatingsIdGet: function (hospitalId, id, options) {
|
|
13664
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsIdGet(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
|
|
13665
|
+
},
|
|
13666
|
+
/**
|
|
13667
|
+
*
|
|
13668
|
+
* @summary Update hospitalRating
|
|
13669
|
+
* @param {string} hospitalId
|
|
13670
|
+
* @param {string} id
|
|
13671
|
+
* @param {UpdateHospitalRatingCommand} [updateHospitalRatingCommand]
|
|
13672
|
+
* @param {*} [options] Override http request option.
|
|
13673
|
+
* @throws {RequiredError}
|
|
13674
|
+
*/
|
|
13675
|
+
apiV1HospitalsHospitalIdRatingsIdPut: function (hospitalId, id, updateHospitalRatingCommand, options) {
|
|
13676
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsIdPut(hospitalId, id, updateHospitalRatingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
13677
|
+
},
|
|
13678
|
+
/**
|
|
13679
|
+
*
|
|
13680
|
+
* @summary Create hospitalRating
|
|
13681
|
+
* @param {string} hospitalId
|
|
13682
|
+
* @param {CreateHospitalRatingCommand} [createHospitalRatingCommand]
|
|
13683
|
+
* @param {*} [options] Override http request option.
|
|
13684
|
+
* @throws {RequiredError}
|
|
13685
|
+
*/
|
|
13686
|
+
apiV1HospitalsHospitalIdRatingsPost: function (hospitalId, createHospitalRatingCommand, options) {
|
|
13687
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsPost(hospitalId, createHospitalRatingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
13688
|
+
},
|
|
13258
13689
|
/**
|
|
13259
13690
|
*
|
|
13260
13691
|
* @summary Delete HospitalSpecialty.
|
|
@@ -15217,6 +15648,66 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15217
15648
|
var _this = this;
|
|
15218
15649
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPut(requestParameters.hospitalId, requestParameters.updateHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15219
15650
|
};
|
|
15651
|
+
/**
|
|
15652
|
+
*
|
|
15653
|
+
* @summary Get hospitalRatings
|
|
15654
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsGetRequest} requestParameters Request parameters.
|
|
15655
|
+
* @param {*} [options] Override http request option.
|
|
15656
|
+
* @throws {RequiredError}
|
|
15657
|
+
* @memberof HospitalsApi
|
|
15658
|
+
*/
|
|
15659
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdRatingsGet = function (requestParameters, options) {
|
|
15660
|
+
var _this = this;
|
|
15661
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdRatingsGet(requestParameters.hospitalId, requestParameters.id, requestParameters.vender, requestParameters.isConfirmed, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15662
|
+
};
|
|
15663
|
+
/**
|
|
15664
|
+
*
|
|
15665
|
+
* @summary Delete hospitalRating
|
|
15666
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsIdDeleteRequest} requestParameters Request parameters.
|
|
15667
|
+
* @param {*} [options] Override http request option.
|
|
15668
|
+
* @throws {RequiredError}
|
|
15669
|
+
* @memberof HospitalsApi
|
|
15670
|
+
*/
|
|
15671
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdRatingsIdDelete = function (requestParameters, options) {
|
|
15672
|
+
var _this = this;
|
|
15673
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdRatingsIdDelete(requestParameters.hospitalId, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15674
|
+
};
|
|
15675
|
+
/**
|
|
15676
|
+
*
|
|
15677
|
+
* @summary Get hospitalRating
|
|
15678
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsIdGetRequest} requestParameters Request parameters.
|
|
15679
|
+
* @param {*} [options] Override http request option.
|
|
15680
|
+
* @throws {RequiredError}
|
|
15681
|
+
* @memberof HospitalsApi
|
|
15682
|
+
*/
|
|
15683
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdRatingsIdGet = function (requestParameters, options) {
|
|
15684
|
+
var _this = this;
|
|
15685
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdRatingsIdGet(requestParameters.hospitalId, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15686
|
+
};
|
|
15687
|
+
/**
|
|
15688
|
+
*
|
|
15689
|
+
* @summary Update hospitalRating
|
|
15690
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsIdPutRequest} requestParameters Request parameters.
|
|
15691
|
+
* @param {*} [options] Override http request option.
|
|
15692
|
+
* @throws {RequiredError}
|
|
15693
|
+
* @memberof HospitalsApi
|
|
15694
|
+
*/
|
|
15695
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdRatingsIdPut = function (requestParameters, options) {
|
|
15696
|
+
var _this = this;
|
|
15697
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdRatingsIdPut(requestParameters.hospitalId, requestParameters.id, requestParameters.updateHospitalRatingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15698
|
+
};
|
|
15699
|
+
/**
|
|
15700
|
+
*
|
|
15701
|
+
* @summary Create hospitalRating
|
|
15702
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsPostRequest} requestParameters Request parameters.
|
|
15703
|
+
* @param {*} [options] Override http request option.
|
|
15704
|
+
* @throws {RequiredError}
|
|
15705
|
+
* @memberof HospitalsApi
|
|
15706
|
+
*/
|
|
15707
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdRatingsPost = function (requestParameters, options) {
|
|
15708
|
+
var _this = this;
|
|
15709
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdRatingsPost(requestParameters.hospitalId, requestParameters.createHospitalRatingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15710
|
+
};
|
|
15220
15711
|
/**
|
|
15221
15712
|
*
|
|
15222
15713
|
* @summary Delete HospitalSpecialty.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateHospitalRatingCommand
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateHospitalRatingCommand {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateHospitalRatingCommand
|
|
22
|
+
*/
|
|
23
|
+
'vender'?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateHospitalRatingCommand
|
|
28
|
+
*/
|
|
29
|
+
'rating'?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateHospitalRatingCommand
|
|
34
|
+
*/
|
|
35
|
+
'order'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CreateHospitalRatingCommand
|
|
40
|
+
*/
|
|
41
|
+
'isConfirmed'?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateHospitalRatingCommand
|
|
46
|
+
*/
|
|
47
|
+
'placeId'?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateHospitalRatingCommand
|
|
52
|
+
*/
|
|
53
|
+
'numberOfPeople'?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateHospitalRatingCommand
|
|
58
|
+
*/
|
|
59
|
+
'url'?: string | null;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=create-hospital-rating-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-hospital-rating-command.d.ts","sourceRoot":"","sources":["../../src/models/create-hospital-rating-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HospitalRatingItemModel
|
|
16
|
+
*/
|
|
17
|
+
export interface HospitalRatingItemModel {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HospitalRatingItemModel
|
|
22
|
+
*/
|
|
23
|
+
'id'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof HospitalRatingItemModel
|
|
28
|
+
*/
|
|
29
|
+
'vender'?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof HospitalRatingItemModel
|
|
34
|
+
*/
|
|
35
|
+
'rating'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof HospitalRatingItemModel
|
|
40
|
+
*/
|
|
41
|
+
'order'?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof HospitalRatingItemModel
|
|
46
|
+
*/
|
|
47
|
+
'isConfirmed'?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof HospitalRatingItemModel
|
|
52
|
+
*/
|
|
53
|
+
'placeId'?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof HospitalRatingItemModel
|
|
58
|
+
*/
|
|
59
|
+
'numberOfPeople'?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof HospitalRatingItemModel
|
|
64
|
+
*/
|
|
65
|
+
'url'?: string | null;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=hospital-rating-item-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hospital-rating-item-model.d.ts","sourceRoot":"","sources":["../../src/models/hospital-rating-item-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|