ch-admin-api-client-typescript 5.14.27 → 5.16.2
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/dash-board-api.d.ts +16 -81
- package/lib/api/dash-board-api.d.ts.map +1 -1
- package/lib/api/dash-board-api.js +14 -113
- package/lib/api/hospital-branches-api.d.ts +402 -0
- package/lib/api/hospital-branches-api.d.ts.map +1 -0
- package/lib/api/{bookings-api.js → hospital-branches-api.js} +190 -346
- package/lib/api/hospital-groups-api.d.ts +402 -0
- package/lib/api/hospital-groups-api.d.ts.map +1 -0
- package/lib/api/{hospitals-consultation-timetables-api.js → hospital-groups-api.js} +197 -200
- package/lib/api/hospitals-api.d.ts +30 -30
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +26 -26
- package/lib/api.d.ts +2 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -4
- package/lib/models/{booking-duration-statistics-model.d.ts → appointment-duration-statisctics-model.d.ts} +5 -5
- package/lib/models/appointment-duration-statisctics-model.d.ts.map +1 -0
- package/lib/models/{booking-statistics-model.d.ts → appointment-statistics-model.d.ts} +10 -10
- package/lib/models/appointment-statistics-model.d.ts.map +1 -0
- package/lib/models/create-hospital-branch-command.d.ts +73 -0
- package/lib/models/create-hospital-branch-command.d.ts.map +1 -0
- package/lib/models/create-hospital-group-command.d.ts +67 -0
- package/lib/models/create-hospital-group-command.d.ts.map +1 -0
- package/lib/models/dash-board-model.d.ts +9 -16
- package/lib/models/dash-board-model.d.ts.map +1 -1
- package/lib/models/hospital-branch-item-model.d.ts +80 -0
- package/lib/models/hospital-branch-item-model.d.ts.map +1 -0
- package/lib/models/hospital-branch-model.d.ts +98 -0
- package/lib/models/hospital-branch-model.d.ts.map +1 -0
- package/lib/models/{bookings-model.d.ts → hospital-branches-model.d.ts} +8 -8
- package/lib/models/hospital-branches-model.d.ts.map +1 -0
- package/lib/models/hospital-group-item-model.d.ts +62 -0
- package/lib/models/hospital-group-item-model.d.ts.map +1 -0
- package/lib/models/hospital-group-model.d.ts +80 -0
- package/lib/models/hospital-group-model.d.ts.map +1 -0
- package/lib/models/{consultations-model.d.ts → hospital-groups-model.d.ts} +8 -8
- package/lib/models/hospital-groups-model.d.ts.map +1 -0
- package/lib/models/index.d.ts +12 -34
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +12 -34
- package/lib/models/update-doctor-affiliation-command.d.ts +0 -12
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-branch-command.d.ts +61 -0
- package/lib/models/update-hospital-branch-command.d.ts.map +1 -0
- package/lib/models/update-hospital-group-command.d.ts +67 -0
- package/lib/models/update-hospital-group-command.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +14 -38
- package/src/api/dash-board-api.ts +21 -139
- package/src/api/hospital-branches-api.ts +706 -0
- package/src/api/hospital-groups-api.ts +706 -0
- package/src/api/hospitals-api.ts +49 -49
- package/src/api.ts +2 -4
- package/src/models/{booking-duration-statistics-model.ts → appointment-duration-statisctics-model.ts} +4 -4
- package/src/models/{booking-statistics-model.ts → appointment-statistics-model.ts} +9 -9
- package/src/models/create-hospital-branch-command.ts +78 -0
- package/src/models/create-hospital-group-command.ts +72 -0
- package/src/models/dash-board-model.ts +9 -18
- package/src/models/hospital-branch-item-model.ts +87 -0
- package/src/models/hospital-branch-model.ts +105 -0
- package/src/models/{bookings-model.ts → hospital-branches-model.ts} +7 -7
- package/src/models/{hospital-consultation-timetable-override-model.ts → hospital-group-item-model.ts} +22 -16
- package/src/models/hospital-group-model.ts +87 -0
- package/src/models/{consultations-model.ts → hospital-groups-model.ts} +7 -7
- package/src/models/index.ts +12 -34
- package/src/models/update-doctor-affiliation-command.ts +0 -12
- package/src/models/update-hospital-branch-command.ts +66 -0
- package/src/models/update-hospital-group-command.ts +72 -0
- package/lib/api/bookings-api.d.ts +0 -558
- package/lib/api/bookings-api.d.ts.map +0 -1
- package/lib/api/consultations-api.d.ts +0 -586
- package/lib/api/consultations-api.d.ts.map +0 -1
- package/lib/api/consultations-api.js +0 -871
- package/lib/api/hospitals-consultation-timetable-overrides-api.d.ts +0 -321
- package/lib/api/hospitals-consultation-timetable-overrides-api.d.ts.map +0 -1
- package/lib/api/hospitals-consultation-timetable-overrides-api.js +0 -535
- package/lib/api/hospitals-consultation-timetables-api.d.ts +0 -414
- package/lib/api/hospitals-consultation-timetables-api.d.ts.map +0 -1
- package/lib/models/approve-booking-command.d.ts +0 -31
- package/lib/models/approve-booking-command.d.ts.map +0 -1
- package/lib/models/approve-consultation-command.d.ts +0 -31
- package/lib/models/approve-consultation-command.d.ts.map +0 -1
- package/lib/models/batch-add-hospital-consultation-timetable-model.d.ts +0 -38
- package/lib/models/batch-add-hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/batch-hospital-consultation-timetable-result-model.d.ts +0 -38
- package/lib/models/batch-hospital-consultation-timetable-result-model.d.ts.map +0 -1
- package/lib/models/batch-hospital-consultation-timetables-command.d.ts +0 -39
- package/lib/models/batch-hospital-consultation-timetables-command.d.ts.map +0 -1
- package/lib/models/batch-update-hospital-consultation-timetable-model.d.ts +0 -44
- package/lib/models/batch-update-hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/booking-change-log-model.d.ts +0 -44
- package/lib/models/booking-change-log-model.d.ts.map +0 -1
- package/lib/models/booking-duration-statistics-model.d.ts.map +0 -1
- package/lib/models/booking-item-model.d.ts +0 -245
- package/lib/models/booking-item-model.d.ts.map +0 -1
- package/lib/models/booking-model.d.ts +0 -252
- package/lib/models/booking-model.d.ts.map +0 -1
- package/lib/models/booking-statistics-model.d.ts.map +0 -1
- package/lib/models/booking-status.d.ts +0 -27
- package/lib/models/booking-status.d.ts.map +0 -1
- package/lib/models/booking-status.js +0 -30
- package/lib/models/bookings-model.d.ts.map +0 -1
- package/lib/models/consultation-change-log-model.d.ts +0 -44
- package/lib/models/consultation-change-log-model.d.ts.map +0 -1
- package/lib/models/consultation-change-log-model.js +0 -15
- package/lib/models/consultation-duration-statisctics-model.d.ts +0 -31
- package/lib/models/consultation-duration-statisctics-model.d.ts.map +0 -1
- package/lib/models/consultation-duration-statisctics-model.js +0 -15
- package/lib/models/consultation-item-model.d.ts +0 -275
- package/lib/models/consultation-item-model.d.ts.map +0 -1
- package/lib/models/consultation-item-model.js +0 -15
- package/lib/models/consultation-model.d.ts +0 -282
- package/lib/models/consultation-model.d.ts.map +0 -1
- package/lib/models/consultation-model.js +0 -15
- package/lib/models/consultation-statistics-model.d.ts +0 -44
- package/lib/models/consultation-statistics-model.d.ts.map +0 -1
- package/lib/models/consultation-statistics-model.js +0 -15
- package/lib/models/consultation-status.d.ts +0 -27
- package/lib/models/consultation-status.d.ts.map +0 -1
- package/lib/models/consultation-status.js +0 -30
- package/lib/models/consultation-type.d.ts +0 -23
- package/lib/models/consultation-type.d.ts.map +0 -1
- package/lib/models/consultation-type.js +0 -26
- package/lib/models/consultations-model.d.ts.map +0 -1
- package/lib/models/consultations-model.js +0 -15
- package/lib/models/create-hospital-consultation-timetable-command.d.ts +0 -38
- package/lib/models/create-hospital-consultation-timetable-command.d.ts.map +0 -1
- package/lib/models/create-hospital-consultation-timetable-command.js +0 -15
- package/lib/models/delete-hospital-consultation-timetable-override-command.d.ts +0 -44
- package/lib/models/delete-hospital-consultation-timetable-override-command.d.ts.map +0 -1
- package/lib/models/delete-hospital-consultation-timetable-override-command.js +0 -15
- package/lib/models/hospital-consultation-timetable-item-model.d.ts +0 -44
- package/lib/models/hospital-consultation-timetable-item-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-item-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-model.d.ts +0 -44
- package/lib/models/hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-override-item-model.d.ts +0 -56
- package/lib/models/hospital-consultation-timetable-override-item-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-override-item-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-override-model.d.ts +0 -56
- package/lib/models/hospital-consultation-timetable-override-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-override-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-overrides-model.d.ts +0 -33
- package/lib/models/hospital-consultation-timetable-overrides-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-overrides-model.js +0 -15
- package/lib/models/hospital-consultation-timetables-model.d.ts +0 -33
- package/lib/models/hospital-consultation-timetables-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetables-model.js +0 -15
- package/lib/models/reject-booking-command.d.ts +0 -32
- package/lib/models/reject-booking-command.d.ts.map +0 -1
- package/lib/models/reject-booking-command.js +0 -15
- package/lib/models/reject-consultation-command.d.ts +0 -32
- package/lib/models/reject-consultation-command.d.ts.map +0 -1
- package/lib/models/reject-consultation-command.js +0 -15
- package/lib/models/save-hospital-consultation-timetable-override-model.d.ts +0 -43
- package/lib/models/save-hospital-consultation-timetable-override-model.d.ts.map +0 -1
- package/lib/models/save-hospital-consultation-timetable-override-model.js +0 -15
- package/lib/models/save-hospital-consultation-timetable-overrides-command.d.ts +0 -26
- package/lib/models/save-hospital-consultation-timetable-overrides-command.d.ts.map +0 -1
- package/lib/models/save-hospital-consultation-timetable-overrides-command.js +0 -15
- package/lib/models/update-hospital-consultation-timetable-command.d.ts +0 -38
- package/lib/models/update-hospital-consultation-timetable-command.d.ts.map +0 -1
- package/lib/models/update-hospital-consultation-timetable-command.js +0 -15
- package/src/api/bookings-api.ts +0 -962
- package/src/api/consultations-api.ts +0 -1006
- package/src/api/hospitals-consultation-timetable-overrides-api.ts +0 -553
- package/src/api/hospitals-consultation-timetables-api.ts +0 -718
- package/src/models/approve-booking-command.ts +0 -36
- package/src/models/approve-consultation-command.ts +0 -36
- package/src/models/batch-add-hospital-consultation-timetable-model.ts +0 -45
- package/src/models/batch-hospital-consultation-timetable-result-model.ts +0 -45
- package/src/models/batch-hospital-consultation-timetables-command.ts +0 -48
- package/src/models/batch-update-hospital-consultation-timetable-model.ts +0 -51
- package/src/models/booking-change-log-model.ts +0 -51
- package/src/models/booking-item-model.ts +0 -258
- package/src/models/booking-model.ts +0 -267
- package/src/models/booking-status.ts +0 -36
- package/src/models/consultation-change-log-model.ts +0 -51
- package/src/models/consultation-duration-statisctics-model.ts +0 -36
- package/src/models/consultation-item-model.ts +0 -288
- package/src/models/consultation-model.ts +0 -297
- package/src/models/consultation-statistics-model.ts +0 -51
- package/src/models/consultation-status.ts +0 -36
- package/src/models/consultation-type.ts +0 -32
- package/src/models/create-hospital-consultation-timetable-command.ts +0 -45
- package/src/models/delete-hospital-consultation-timetable-override-command.ts +0 -51
- package/src/models/hospital-consultation-timetable-item-model.ts +0 -51
- package/src/models/hospital-consultation-timetable-model.ts +0 -51
- package/src/models/hospital-consultation-timetable-override-item-model.ts +0 -63
- package/src/models/hospital-consultation-timetable-overrides-model.ts +0 -42
- package/src/models/hospital-consultation-timetables-model.ts +0 -42
- package/src/models/reject-booking-command.ts +0 -39
- package/src/models/reject-consultation-command.ts +0 -39
- package/src/models/save-hospital-consultation-timetable-override-model.ts +0 -48
- package/src/models/save-hospital-consultation-timetable-overrides-command.ts +0 -33
- package/src/models/update-hospital-consultation-timetable-command.ts +0 -45
- /package/lib/models/{approve-booking-command.js → appointment-duration-statisctics-model.js} +0 -0
- /package/lib/models/{approve-consultation-command.js → appointment-statistics-model.js} +0 -0
- /package/lib/models/{batch-add-hospital-consultation-timetable-model.js → create-hospital-branch-command.js} +0 -0
- /package/lib/models/{batch-hospital-consultation-timetable-result-model.js → create-hospital-group-command.js} +0 -0
- /package/lib/models/{batch-hospital-consultation-timetables-command.js → hospital-branch-item-model.js} +0 -0
- /package/lib/models/{batch-update-hospital-consultation-timetable-model.js → hospital-branch-model.js} +0 -0
- /package/lib/models/{booking-change-log-model.js → hospital-branches-model.js} +0 -0
- /package/lib/models/{booking-duration-statistics-model.js → hospital-group-item-model.js} +0 -0
- /package/lib/models/{booking-item-model.js → hospital-group-model.js} +0 -0
- /package/lib/models/{booking-model.js → hospital-groups-model.js} +0 -0
- /package/lib/models/{booking-statistics-model.js → update-hospital-branch-command.js} +0 -0
- /package/lib/models/{bookings-model.js → update-hospital-group-command.js} +0 -0
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HospitalGroupsApi = exports.HospitalGroupsApiFactory = exports.HospitalGroupsApiFp = exports.HospitalGroupsApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,36 +86,38 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HospitalGroupsApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var HospitalGroupsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @summary
|
|
98
|
-
* @param {string}
|
|
99
|
-
* @param {
|
|
97
|
+
* @summary Get hospitalGroups
|
|
98
|
+
* @param {string} [hospitalGroupId]
|
|
99
|
+
* @param {string} [hospitalId]
|
|
100
|
+
* @param {string} [languageCode]
|
|
101
|
+
* @param {string} [name]
|
|
102
|
+
* @param {number} [page]
|
|
103
|
+
* @param {number} [limit]
|
|
104
|
+
* @param {Date} [lastRetrieved]
|
|
100
105
|
* @param {*} [options] Override http request option.
|
|
101
106
|
* @throws {RequiredError}
|
|
102
107
|
*/
|
|
103
|
-
|
|
108
|
+
apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options) {
|
|
104
109
|
if (options === void 0) { options = {}; }
|
|
105
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
111
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
112
|
return __generator(this, function (_a) {
|
|
108
113
|
switch (_a.label) {
|
|
109
114
|
case 0:
|
|
110
|
-
|
|
111
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetablesBatchPost', 'hospitalId', hospitalId);
|
|
112
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetables/batch"
|
|
113
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
115
|
+
localVarPath = "/api/v1/hospitalgroups";
|
|
114
116
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
117
|
if (configuration) {
|
|
116
118
|
baseOptions = configuration.baseOptions;
|
|
117
119
|
}
|
|
118
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
119
121
|
localVarHeaderParameter = {};
|
|
120
122
|
localVarQueryParameter = {};
|
|
121
123
|
// authentication oauth2 required
|
|
@@ -125,11 +127,32 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
125
127
|
// authentication oauth2 required
|
|
126
128
|
// oauth required
|
|
127
129
|
_a.sent();
|
|
128
|
-
|
|
130
|
+
if (hospitalGroupId !== undefined) {
|
|
131
|
+
localVarQueryParameter['HospitalGroupId'] = hospitalGroupId;
|
|
132
|
+
}
|
|
133
|
+
if (hospitalId !== undefined) {
|
|
134
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
135
|
+
}
|
|
136
|
+
if (languageCode !== undefined) {
|
|
137
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
138
|
+
}
|
|
139
|
+
if (name !== undefined) {
|
|
140
|
+
localVarQueryParameter['Name'] = name;
|
|
141
|
+
}
|
|
142
|
+
if (page !== undefined) {
|
|
143
|
+
localVarQueryParameter['page'] = page;
|
|
144
|
+
}
|
|
145
|
+
if (limit !== undefined) {
|
|
146
|
+
localVarQueryParameter['limit'] = limit;
|
|
147
|
+
}
|
|
148
|
+
if (lastRetrieved !== undefined) {
|
|
149
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
150
|
+
lastRetrieved.toISOString() :
|
|
151
|
+
lastRetrieved;
|
|
152
|
+
}
|
|
129
153
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
130
154
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
155
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
132
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchHospitalConsultationTimetablesCommand, localVarRequestOptions, configuration);
|
|
133
156
|
return [2 /*return*/, {
|
|
134
157
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
158
|
options: localVarRequestOptions,
|
|
@@ -140,31 +163,28 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
140
163
|
},
|
|
141
164
|
/**
|
|
142
165
|
*
|
|
143
|
-
* @summary
|
|
144
|
-
* @param {string}
|
|
145
|
-
* @param {
|
|
146
|
-
* @param {number} [page]
|
|
147
|
-
* @param {number} [limit]
|
|
148
|
-
* @param {Date} [lastRetrieved]
|
|
166
|
+
* @summary Delete hospitalGroup
|
|
167
|
+
* @param {string} hospitalGroupId
|
|
168
|
+
* @param {boolean} [isPermanent]
|
|
149
169
|
* @param {*} [options] Override http request option.
|
|
150
170
|
* @throws {RequiredError}
|
|
151
171
|
*/
|
|
152
|
-
|
|
172
|
+
apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, isPermanent, options) {
|
|
153
173
|
if (options === void 0) { options = {}; }
|
|
154
174
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
175
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
176
|
return __generator(this, function (_a) {
|
|
157
177
|
switch (_a.label) {
|
|
158
178
|
case 0:
|
|
159
|
-
// verify required parameter '
|
|
160
|
-
(0, common_1.assertParamExists)('
|
|
161
|
-
localVarPath = "/api/v1/
|
|
162
|
-
.replace("{".concat("
|
|
179
|
+
// verify required parameter 'hospitalGroupId' is not null or undefined
|
|
180
|
+
(0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdDelete', 'hospitalGroupId', hospitalGroupId);
|
|
181
|
+
localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
|
|
182
|
+
.replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
|
|
163
183
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
184
|
if (configuration) {
|
|
165
185
|
baseOptions = configuration.baseOptions;
|
|
166
186
|
}
|
|
167
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
187
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
168
188
|
localVarHeaderParameter = {};
|
|
169
189
|
localVarQueryParameter = {};
|
|
170
190
|
// authentication oauth2 required
|
|
@@ -174,19 +194,8 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
174
194
|
// authentication oauth2 required
|
|
175
195
|
// oauth required
|
|
176
196
|
_a.sent();
|
|
177
|
-
if (
|
|
178
|
-
localVarQueryParameter['
|
|
179
|
-
}
|
|
180
|
-
if (page !== undefined) {
|
|
181
|
-
localVarQueryParameter['page'] = page;
|
|
182
|
-
}
|
|
183
|
-
if (limit !== undefined) {
|
|
184
|
-
localVarQueryParameter['limit'] = limit;
|
|
185
|
-
}
|
|
186
|
-
if (lastRetrieved !== undefined) {
|
|
187
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
188
|
-
lastRetrieved.toISOString() :
|
|
189
|
-
lastRetrieved;
|
|
197
|
+
if (isPermanent !== undefined) {
|
|
198
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
190
199
|
}
|
|
191
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,31 +210,28 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
201
210
|
},
|
|
202
211
|
/**
|
|
203
212
|
*
|
|
204
|
-
* @summary
|
|
205
|
-
* @param {string}
|
|
206
|
-
* @param {string}
|
|
213
|
+
* @summary Get hospitalGroup
|
|
214
|
+
* @param {string} hospitalGroupId
|
|
215
|
+
* @param {string} [languageCode]
|
|
207
216
|
* @param {*} [options] Override http request option.
|
|
208
217
|
* @throws {RequiredError}
|
|
209
218
|
*/
|
|
210
|
-
|
|
219
|
+
apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, languageCode, options) {
|
|
211
220
|
if (options === void 0) { options = {}; }
|
|
212
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
222
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
223
|
return __generator(this, function (_a) {
|
|
215
224
|
switch (_a.label) {
|
|
216
225
|
case 0:
|
|
217
|
-
// verify required parameter '
|
|
218
|
-
(0, common_1.assertParamExists)('
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}"
|
|
222
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
223
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
226
|
+
// verify required parameter 'hospitalGroupId' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdGet', 'hospitalGroupId', hospitalGroupId);
|
|
228
|
+
localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
|
|
229
|
+
.replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
|
|
224
230
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
225
231
|
if (configuration) {
|
|
226
232
|
baseOptions = configuration.baseOptions;
|
|
227
233
|
}
|
|
228
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
234
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
229
235
|
localVarHeaderParameter = {};
|
|
230
236
|
localVarQueryParameter = {};
|
|
231
237
|
// authentication oauth2 required
|
|
@@ -235,6 +241,9 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
235
241
|
// authentication oauth2 required
|
|
236
242
|
// oauth required
|
|
237
243
|
_a.sent();
|
|
244
|
+
if (languageCode !== undefined) {
|
|
245
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
246
|
+
}
|
|
238
247
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
248
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
249
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -248,31 +257,28 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
248
257
|
},
|
|
249
258
|
/**
|
|
250
259
|
*
|
|
251
|
-
* @summary
|
|
252
|
-
* @param {string}
|
|
253
|
-
* @param {
|
|
260
|
+
* @summary Update hospitalGroup
|
|
261
|
+
* @param {string} hospitalGroupId
|
|
262
|
+
* @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
|
|
254
263
|
* @param {*} [options] Override http request option.
|
|
255
264
|
* @throws {RequiredError}
|
|
256
265
|
*/
|
|
257
|
-
|
|
266
|
+
apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, options) {
|
|
258
267
|
if (options === void 0) { options = {}; }
|
|
259
268
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
269
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
261
270
|
return __generator(this, function (_a) {
|
|
262
271
|
switch (_a.label) {
|
|
263
272
|
case 0:
|
|
264
|
-
// verify required parameter '
|
|
265
|
-
(0, common_1.assertParamExists)('
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}"
|
|
269
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
270
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
273
|
+
// verify required parameter 'hospitalGroupId' is not null or undefined
|
|
274
|
+
(0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdPut', 'hospitalGroupId', hospitalGroupId);
|
|
275
|
+
localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
|
|
276
|
+
.replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
|
|
271
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
278
|
if (configuration) {
|
|
273
279
|
baseOptions = configuration.baseOptions;
|
|
274
280
|
}
|
|
275
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
281
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
276
282
|
localVarHeaderParameter = {};
|
|
277
283
|
localVarQueryParameter = {};
|
|
278
284
|
// authentication oauth2 required
|
|
@@ -282,9 +288,11 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
282
288
|
// authentication oauth2 required
|
|
283
289
|
// oauth required
|
|
284
290
|
_a.sent();
|
|
291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
285
292
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
286
293
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
294
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalGroupCommand, localVarRequestOptions, configuration);
|
|
288
296
|
return [2 /*return*/, {
|
|
289
297
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
290
298
|
options: localVarRequestOptions,
|
|
@@ -295,27 +303,22 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
295
303
|
},
|
|
296
304
|
/**
|
|
297
305
|
*
|
|
298
|
-
* @summary
|
|
299
|
-
* @param {string}
|
|
300
|
-
* @param {string} id
|
|
301
|
-
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
306
|
+
* @summary Reactivate hospitalGroup
|
|
307
|
+
* @param {string} hospitalGroupId
|
|
302
308
|
* @param {*} [options] Override http request option.
|
|
303
309
|
* @throws {RequiredError}
|
|
304
310
|
*/
|
|
305
|
-
|
|
311
|
+
apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, options) {
|
|
306
312
|
if (options === void 0) { options = {}; }
|
|
307
313
|
return __awaiter(_this, void 0, void 0, function () {
|
|
308
314
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
309
315
|
return __generator(this, function (_a) {
|
|
310
316
|
switch (_a.label) {
|
|
311
317
|
case 0:
|
|
312
|
-
// verify required parameter '
|
|
313
|
-
(0, common_1.assertParamExists)('
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}"
|
|
317
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
318
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
318
|
+
// verify required parameter 'hospitalGroupId' is not null or undefined
|
|
319
|
+
(0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdReactivatePut', 'hospitalGroupId', hospitalGroupId);
|
|
320
|
+
localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}/reactivate"
|
|
321
|
+
.replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
|
|
319
322
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
320
323
|
if (configuration) {
|
|
321
324
|
baseOptions = configuration.baseOptions;
|
|
@@ -330,11 +333,9 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
330
333
|
// authentication oauth2 required
|
|
331
334
|
// oauth required
|
|
332
335
|
_a.sent();
|
|
333
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
334
336
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
335
337
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
338
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
337
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalConsultationTimetableCommand, localVarRequestOptions, configuration);
|
|
338
339
|
return [2 /*return*/, {
|
|
339
340
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
340
341
|
options: localVarRequestOptions,
|
|
@@ -345,23 +346,19 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
345
346
|
},
|
|
346
347
|
/**
|
|
347
348
|
*
|
|
348
|
-
* @summary Create
|
|
349
|
-
* @param {
|
|
350
|
-
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
349
|
+
* @summary Create hospitalGroup
|
|
350
|
+
* @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
352
352
|
* @throws {RequiredError}
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
apiV1HospitalgroupsPost: function (createHospitalGroupCommand, options) {
|
|
355
355
|
if (options === void 0) { options = {}; }
|
|
356
356
|
return __awaiter(_this, void 0, void 0, function () {
|
|
357
357
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
358
358
|
return __generator(this, function (_a) {
|
|
359
359
|
switch (_a.label) {
|
|
360
360
|
case 0:
|
|
361
|
-
|
|
362
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetablesPost', 'hospitalId', hospitalId);
|
|
363
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetables"
|
|
364
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
361
|
+
localVarPath = "/api/v1/hospitalgroups";
|
|
365
362
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
366
363
|
if (configuration) {
|
|
367
364
|
baseOptions = configuration.baseOptions;
|
|
@@ -380,7 +377,7 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
380
377
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
378
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
379
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
383
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
380
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHospitalGroupCommand, localVarRequestOptions, configuration);
|
|
384
381
|
return [2 /*return*/, {
|
|
385
382
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
386
383
|
options: localVarRequestOptions,
|
|
@@ -391,28 +388,33 @@ var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuratio
|
|
|
391
388
|
},
|
|
392
389
|
};
|
|
393
390
|
};
|
|
394
|
-
exports.
|
|
391
|
+
exports.HospitalGroupsApiAxiosParamCreator = HospitalGroupsApiAxiosParamCreator;
|
|
395
392
|
/**
|
|
396
|
-
*
|
|
393
|
+
* HospitalGroupsApi - functional programming interface
|
|
397
394
|
* @export
|
|
398
395
|
*/
|
|
399
|
-
var
|
|
400
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
396
|
+
var HospitalGroupsApiFp = function (configuration) {
|
|
397
|
+
var localVarAxiosParamCreator = (0, exports.HospitalGroupsApiAxiosParamCreator)(configuration);
|
|
401
398
|
return {
|
|
402
399
|
/**
|
|
403
400
|
*
|
|
404
|
-
* @summary
|
|
405
|
-
* @param {string}
|
|
406
|
-
* @param {
|
|
401
|
+
* @summary Get hospitalGroups
|
|
402
|
+
* @param {string} [hospitalGroupId]
|
|
403
|
+
* @param {string} [hospitalId]
|
|
404
|
+
* @param {string} [languageCode]
|
|
405
|
+
* @param {string} [name]
|
|
406
|
+
* @param {number} [page]
|
|
407
|
+
* @param {number} [limit]
|
|
408
|
+
* @param {Date} [lastRetrieved]
|
|
407
409
|
* @param {*} [options] Override http request option.
|
|
408
410
|
* @throws {RequiredError}
|
|
409
411
|
*/
|
|
410
|
-
|
|
412
|
+
apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options) {
|
|
411
413
|
return __awaiter(this, void 0, void 0, function () {
|
|
412
414
|
var localVarAxiosArgs;
|
|
413
415
|
return __generator(this, function (_a) {
|
|
414
416
|
switch (_a.label) {
|
|
415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
417
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsGet(hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options)];
|
|
416
418
|
case 1:
|
|
417
419
|
localVarAxiosArgs = _a.sent();
|
|
418
420
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -422,21 +424,18 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
422
424
|
},
|
|
423
425
|
/**
|
|
424
426
|
*
|
|
425
|
-
* @summary
|
|
426
|
-
* @param {string}
|
|
427
|
-
* @param {
|
|
428
|
-
* @param {number} [page]
|
|
429
|
-
* @param {number} [limit]
|
|
430
|
-
* @param {Date} [lastRetrieved]
|
|
427
|
+
* @summary Delete hospitalGroup
|
|
428
|
+
* @param {string} hospitalGroupId
|
|
429
|
+
* @param {boolean} [isPermanent]
|
|
431
430
|
* @param {*} [options] Override http request option.
|
|
432
431
|
* @throws {RequiredError}
|
|
433
432
|
*/
|
|
434
|
-
|
|
433
|
+
apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, isPermanent, options) {
|
|
435
434
|
return __awaiter(this, void 0, void 0, function () {
|
|
436
435
|
var localVarAxiosArgs;
|
|
437
436
|
return __generator(this, function (_a) {
|
|
438
437
|
switch (_a.label) {
|
|
439
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
438
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsHospitalGroupIdDelete(hospitalGroupId, isPermanent, options)];
|
|
440
439
|
case 1:
|
|
441
440
|
localVarAxiosArgs = _a.sent();
|
|
442
441
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -446,18 +445,18 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
446
445
|
},
|
|
447
446
|
/**
|
|
448
447
|
*
|
|
449
|
-
* @summary
|
|
450
|
-
* @param {string}
|
|
451
|
-
* @param {string}
|
|
448
|
+
* @summary Get hospitalGroup
|
|
449
|
+
* @param {string} hospitalGroupId
|
|
450
|
+
* @param {string} [languageCode]
|
|
452
451
|
* @param {*} [options] Override http request option.
|
|
453
452
|
* @throws {RequiredError}
|
|
454
453
|
*/
|
|
455
|
-
|
|
454
|
+
apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, languageCode, options) {
|
|
456
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
457
456
|
var localVarAxiosArgs;
|
|
458
457
|
return __generator(this, function (_a) {
|
|
459
458
|
switch (_a.label) {
|
|
460
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
459
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsHospitalGroupIdGet(hospitalGroupId, languageCode, options)];
|
|
461
460
|
case 1:
|
|
462
461
|
localVarAxiosArgs = _a.sent();
|
|
463
462
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -467,18 +466,18 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
467
466
|
},
|
|
468
467
|
/**
|
|
469
468
|
*
|
|
470
|
-
* @summary
|
|
471
|
-
* @param {string}
|
|
472
|
-
* @param {
|
|
469
|
+
* @summary Update hospitalGroup
|
|
470
|
+
* @param {string} hospitalGroupId
|
|
471
|
+
* @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
|
|
473
472
|
* @param {*} [options] Override http request option.
|
|
474
473
|
* @throws {RequiredError}
|
|
475
474
|
*/
|
|
476
|
-
|
|
475
|
+
apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, options) {
|
|
477
476
|
return __awaiter(this, void 0, void 0, function () {
|
|
478
477
|
var localVarAxiosArgs;
|
|
479
478
|
return __generator(this, function (_a) {
|
|
480
479
|
switch (_a.label) {
|
|
481
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
480
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsHospitalGroupIdPut(hospitalGroupId, updateHospitalGroupCommand, options)];
|
|
482
481
|
case 1:
|
|
483
482
|
localVarAxiosArgs = _a.sent();
|
|
484
483
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -488,19 +487,17 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
488
487
|
},
|
|
489
488
|
/**
|
|
490
489
|
*
|
|
491
|
-
* @summary
|
|
492
|
-
* @param {string}
|
|
493
|
-
* @param {string} id
|
|
494
|
-
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
490
|
+
* @summary Reactivate hospitalGroup
|
|
491
|
+
* @param {string} hospitalGroupId
|
|
495
492
|
* @param {*} [options] Override http request option.
|
|
496
493
|
* @throws {RequiredError}
|
|
497
494
|
*/
|
|
498
|
-
|
|
495
|
+
apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, options) {
|
|
499
496
|
return __awaiter(this, void 0, void 0, function () {
|
|
500
497
|
var localVarAxiosArgs;
|
|
501
498
|
return __generator(this, function (_a) {
|
|
502
499
|
switch (_a.label) {
|
|
503
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
500
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsHospitalGroupIdReactivatePut(hospitalGroupId, options)];
|
|
504
501
|
case 1:
|
|
505
502
|
localVarAxiosArgs = _a.sent();
|
|
506
503
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -510,18 +507,17 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
510
507
|
},
|
|
511
508
|
/**
|
|
512
509
|
*
|
|
513
|
-
* @summary Create
|
|
514
|
-
* @param {
|
|
515
|
-
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
510
|
+
* @summary Create hospitalGroup
|
|
511
|
+
* @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
|
|
516
512
|
* @param {*} [options] Override http request option.
|
|
517
513
|
* @throws {RequiredError}
|
|
518
514
|
*/
|
|
519
|
-
|
|
515
|
+
apiV1HospitalgroupsPost: function (createHospitalGroupCommand, options) {
|
|
520
516
|
return __awaiter(this, void 0, void 0, function () {
|
|
521
517
|
var localVarAxiosArgs;
|
|
522
518
|
return __generator(this, function (_a) {
|
|
523
519
|
switch (_a.label) {
|
|
524
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
520
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalgroupsPost(createHospitalGroupCommand, options)];
|
|
525
521
|
case 1:
|
|
526
522
|
localVarAxiosArgs = _a.sent();
|
|
527
523
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -531,170 +527,171 @@ var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
531
527
|
},
|
|
532
528
|
};
|
|
533
529
|
};
|
|
534
|
-
exports.
|
|
530
|
+
exports.HospitalGroupsApiFp = HospitalGroupsApiFp;
|
|
535
531
|
/**
|
|
536
|
-
*
|
|
532
|
+
* HospitalGroupsApi - factory interface
|
|
537
533
|
* @export
|
|
538
534
|
*/
|
|
539
|
-
var
|
|
540
|
-
var localVarFp = (0, exports.
|
|
535
|
+
var HospitalGroupsApiFactory = function (configuration, basePath, axios) {
|
|
536
|
+
var localVarFp = (0, exports.HospitalGroupsApiFp)(configuration);
|
|
541
537
|
return {
|
|
542
538
|
/**
|
|
543
539
|
*
|
|
544
|
-
* @summary
|
|
545
|
-
* @param {string}
|
|
546
|
-
* @param {
|
|
540
|
+
* @summary Get hospitalGroups
|
|
541
|
+
* @param {string} [hospitalGroupId]
|
|
542
|
+
* @param {string} [hospitalId]
|
|
543
|
+
* @param {string} [languageCode]
|
|
544
|
+
* @param {string} [name]
|
|
545
|
+
* @param {number} [page]
|
|
546
|
+
* @param {number} [limit]
|
|
547
|
+
* @param {Date} [lastRetrieved]
|
|
547
548
|
* @param {*} [options] Override http request option.
|
|
548
549
|
* @throws {RequiredError}
|
|
549
550
|
*/
|
|
550
|
-
|
|
551
|
-
return localVarFp.
|
|
551
|
+
apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options) {
|
|
552
|
+
return localVarFp.apiV1HospitalgroupsGet(hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
552
553
|
},
|
|
553
554
|
/**
|
|
554
555
|
*
|
|
555
|
-
* @summary
|
|
556
|
-
* @param {string}
|
|
557
|
-
* @param {
|
|
558
|
-
* @param {number} [page]
|
|
559
|
-
* @param {number} [limit]
|
|
560
|
-
* @param {Date} [lastRetrieved]
|
|
556
|
+
* @summary Delete hospitalGroup
|
|
557
|
+
* @param {string} hospitalGroupId
|
|
558
|
+
* @param {boolean} [isPermanent]
|
|
561
559
|
* @param {*} [options] Override http request option.
|
|
562
560
|
* @throws {RequiredError}
|
|
563
561
|
*/
|
|
564
|
-
|
|
565
|
-
return localVarFp.
|
|
562
|
+
apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, isPermanent, options) {
|
|
563
|
+
return localVarFp.apiV1HospitalgroupsHospitalGroupIdDelete(hospitalGroupId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
566
564
|
},
|
|
567
565
|
/**
|
|
568
566
|
*
|
|
569
|
-
* @summary
|
|
570
|
-
* @param {string}
|
|
571
|
-
* @param {string}
|
|
567
|
+
* @summary Get hospitalGroup
|
|
568
|
+
* @param {string} hospitalGroupId
|
|
569
|
+
* @param {string} [languageCode]
|
|
572
570
|
* @param {*} [options] Override http request option.
|
|
573
571
|
* @throws {RequiredError}
|
|
574
572
|
*/
|
|
575
|
-
|
|
576
|
-
return localVarFp.
|
|
573
|
+
apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, languageCode, options) {
|
|
574
|
+
return localVarFp.apiV1HospitalgroupsHospitalGroupIdGet(hospitalGroupId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
577
575
|
},
|
|
578
576
|
/**
|
|
579
577
|
*
|
|
580
|
-
* @summary
|
|
581
|
-
* @param {string}
|
|
582
|
-
* @param {
|
|
578
|
+
* @summary Update hospitalGroup
|
|
579
|
+
* @param {string} hospitalGroupId
|
|
580
|
+
* @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
|
|
583
581
|
* @param {*} [options] Override http request option.
|
|
584
582
|
* @throws {RequiredError}
|
|
585
583
|
*/
|
|
586
|
-
|
|
587
|
-
return localVarFp.
|
|
584
|
+
apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, options) {
|
|
585
|
+
return localVarFp.apiV1HospitalgroupsHospitalGroupIdPut(hospitalGroupId, updateHospitalGroupCommand, options).then(function (request) { return request(axios, basePath); });
|
|
588
586
|
},
|
|
589
587
|
/**
|
|
590
588
|
*
|
|
591
|
-
* @summary
|
|
592
|
-
* @param {string}
|
|
593
|
-
* @param {string} id
|
|
594
|
-
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
589
|
+
* @summary Reactivate hospitalGroup
|
|
590
|
+
* @param {string} hospitalGroupId
|
|
595
591
|
* @param {*} [options] Override http request option.
|
|
596
592
|
* @throws {RequiredError}
|
|
597
593
|
*/
|
|
598
|
-
|
|
599
|
-
return localVarFp.
|
|
594
|
+
apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, options) {
|
|
595
|
+
return localVarFp.apiV1HospitalgroupsHospitalGroupIdReactivatePut(hospitalGroupId, options).then(function (request) { return request(axios, basePath); });
|
|
600
596
|
},
|
|
601
597
|
/**
|
|
602
598
|
*
|
|
603
|
-
* @summary Create
|
|
604
|
-
* @param {
|
|
605
|
-
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
599
|
+
* @summary Create hospitalGroup
|
|
600
|
+
* @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
|
|
606
601
|
* @param {*} [options] Override http request option.
|
|
607
602
|
* @throws {RequiredError}
|
|
608
603
|
*/
|
|
609
|
-
|
|
610
|
-
return localVarFp.
|
|
604
|
+
apiV1HospitalgroupsPost: function (createHospitalGroupCommand, options) {
|
|
605
|
+
return localVarFp.apiV1HospitalgroupsPost(createHospitalGroupCommand, options).then(function (request) { return request(axios, basePath); });
|
|
611
606
|
},
|
|
612
607
|
};
|
|
613
608
|
};
|
|
614
|
-
exports.
|
|
609
|
+
exports.HospitalGroupsApiFactory = HospitalGroupsApiFactory;
|
|
615
610
|
/**
|
|
616
|
-
*
|
|
611
|
+
* HospitalGroupsApi - object-oriented interface
|
|
617
612
|
* @export
|
|
618
|
-
* @class
|
|
613
|
+
* @class HospitalGroupsApi
|
|
619
614
|
* @extends {BaseAPI}
|
|
620
615
|
*/
|
|
621
|
-
var
|
|
622
|
-
__extends(
|
|
623
|
-
function
|
|
616
|
+
var HospitalGroupsApi = /** @class */ (function (_super) {
|
|
617
|
+
__extends(HospitalGroupsApi, _super);
|
|
618
|
+
function HospitalGroupsApi() {
|
|
624
619
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
625
620
|
}
|
|
626
621
|
/**
|
|
627
622
|
*
|
|
628
|
-
* @summary
|
|
629
|
-
* @param {
|
|
623
|
+
* @summary Get hospitalGroups
|
|
624
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsGetRequest} requestParameters Request parameters.
|
|
630
625
|
* @param {*} [options] Override http request option.
|
|
631
626
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof
|
|
627
|
+
* @memberof HospitalGroupsApi
|
|
633
628
|
*/
|
|
634
|
-
|
|
629
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsGet = function (requestParameters, options) {
|
|
635
630
|
var _this = this;
|
|
636
|
-
|
|
631
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
632
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsGet(requestParameters.hospitalGroupId, requestParameters.hospitalId, requestParameters.languageCode, requestParameters.name, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
633
|
};
|
|
638
634
|
/**
|
|
639
635
|
*
|
|
640
|
-
* @summary
|
|
641
|
-
* @param {
|
|
636
|
+
* @summary Delete hospitalGroup
|
|
637
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdDeleteRequest} requestParameters Request parameters.
|
|
642
638
|
* @param {*} [options] Override http request option.
|
|
643
639
|
* @throws {RequiredError}
|
|
644
|
-
* @memberof
|
|
640
|
+
* @memberof HospitalGroupsApi
|
|
645
641
|
*/
|
|
646
|
-
|
|
642
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdDelete = function (requestParameters, options) {
|
|
647
643
|
var _this = this;
|
|
648
|
-
return (0, exports.
|
|
644
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdDelete(requestParameters.hospitalGroupId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
649
645
|
};
|
|
650
646
|
/**
|
|
651
647
|
*
|
|
652
|
-
* @summary
|
|
653
|
-
* @param {
|
|
648
|
+
* @summary Get hospitalGroup
|
|
649
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdGetRequest} requestParameters Request parameters.
|
|
654
650
|
* @param {*} [options] Override http request option.
|
|
655
651
|
* @throws {RequiredError}
|
|
656
|
-
* @memberof
|
|
652
|
+
* @memberof HospitalGroupsApi
|
|
657
653
|
*/
|
|
658
|
-
|
|
654
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdGet = function (requestParameters, options) {
|
|
659
655
|
var _this = this;
|
|
660
|
-
return (0, exports.
|
|
656
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdGet(requestParameters.hospitalGroupId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
661
657
|
};
|
|
662
658
|
/**
|
|
663
659
|
*
|
|
664
|
-
* @summary
|
|
665
|
-
* @param {
|
|
660
|
+
* @summary Update hospitalGroup
|
|
661
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdPutRequest} requestParameters Request parameters.
|
|
666
662
|
* @param {*} [options] Override http request option.
|
|
667
663
|
* @throws {RequiredError}
|
|
668
|
-
* @memberof
|
|
664
|
+
* @memberof HospitalGroupsApi
|
|
669
665
|
*/
|
|
670
|
-
|
|
666
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdPut = function (requestParameters, options) {
|
|
671
667
|
var _this = this;
|
|
672
|
-
return (0, exports.
|
|
668
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdPut(requestParameters.hospitalGroupId, requestParameters.updateHospitalGroupCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
673
669
|
};
|
|
674
670
|
/**
|
|
675
671
|
*
|
|
676
|
-
* @summary
|
|
677
|
-
* @param {
|
|
672
|
+
* @summary Reactivate hospitalGroup
|
|
673
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdReactivatePutRequest} requestParameters Request parameters.
|
|
678
674
|
* @param {*} [options] Override http request option.
|
|
679
675
|
* @throws {RequiredError}
|
|
680
|
-
* @memberof
|
|
676
|
+
* @memberof HospitalGroupsApi
|
|
681
677
|
*/
|
|
682
|
-
|
|
678
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdReactivatePut = function (requestParameters, options) {
|
|
683
679
|
var _this = this;
|
|
684
|
-
return (0, exports.
|
|
680
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdReactivatePut(requestParameters.hospitalGroupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
685
681
|
};
|
|
686
682
|
/**
|
|
687
683
|
*
|
|
688
|
-
* @summary Create
|
|
689
|
-
* @param {
|
|
684
|
+
* @summary Create hospitalGroup
|
|
685
|
+
* @param {HospitalGroupsApiApiV1HospitalgroupsPostRequest} requestParameters Request parameters.
|
|
690
686
|
* @param {*} [options] Override http request option.
|
|
691
687
|
* @throws {RequiredError}
|
|
692
|
-
* @memberof
|
|
688
|
+
* @memberof HospitalGroupsApi
|
|
693
689
|
*/
|
|
694
|
-
|
|
690
|
+
HospitalGroupsApi.prototype.apiV1HospitalgroupsPost = function (requestParameters, options) {
|
|
695
691
|
var _this = this;
|
|
696
|
-
|
|
692
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
693
|
+
return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsPost(requestParameters.createHospitalGroupCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
697
694
|
};
|
|
698
|
-
return
|
|
695
|
+
return HospitalGroupsApi;
|
|
699
696
|
}(base_1.BaseAPI));
|
|
700
|
-
exports.
|
|
697
|
+
exports.HospitalGroupsApi = HospitalGroupsApi;
|