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.HospitalBranchesApi = exports.HospitalBranchesApiFactory = exports.HospitalBranchesApiFp = exports.HospitalBranchesApiAxiosParamCreator = 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
|
+
* HospitalBranchesApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var HospitalBranchesApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @summary
|
|
98
|
-
* @param {string}
|
|
99
|
-
* @param {
|
|
97
|
+
* @summary Get hospitalBranches
|
|
98
|
+
* @param {string} [id]
|
|
99
|
+
* @param {string} [hospitalGroupId]
|
|
100
|
+
* @param {string} [hospitalId]
|
|
101
|
+
* @param {string} [languageCode]
|
|
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
|
+
apiV1HospitalbranchesGet: function (id, hospitalGroupId, hospitalId, languageCode, 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)('apiV1BookingsBookingIdApprovePut', 'bookingId', bookingId);
|
|
112
|
-
localVarPath = "/api/v1/bookings/{bookingId}/approve"
|
|
113
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
115
|
+
localVarPath = "/api/v1/hospitalbranches";
|
|
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,51 +127,29 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
125
127
|
// authentication oauth2 required
|
|
126
128
|
// oauth required
|
|
127
129
|
_a.sent();
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
151
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
switch (_a.label) {
|
|
154
|
-
case 0:
|
|
155
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
156
|
-
(0, common_1.assertParamExists)('apiV1BookingsBookingIdCancelPut', 'bookingId', bookingId);
|
|
157
|
-
localVarPath = "/api/v1/bookings/{bookingId}/cancel"
|
|
158
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
159
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
160
|
-
if (configuration) {
|
|
161
|
-
baseOptions = configuration.baseOptions;
|
|
130
|
+
if (id !== undefined) {
|
|
131
|
+
localVarQueryParameter['Id'] = id;
|
|
132
|
+
}
|
|
133
|
+
if (hospitalGroupId !== undefined) {
|
|
134
|
+
localVarQueryParameter['HospitalGroupId'] = hospitalGroupId;
|
|
135
|
+
}
|
|
136
|
+
if (hospitalId !== undefined) {
|
|
137
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
138
|
+
}
|
|
139
|
+
if (languageCode !== undefined) {
|
|
140
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
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;
|
|
162
152
|
}
|
|
163
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
164
|
-
localVarHeaderParameter = {};
|
|
165
|
-
localVarQueryParameter = {};
|
|
166
|
-
// authentication oauth2 required
|
|
167
|
-
// oauth required
|
|
168
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
169
|
-
case 1:
|
|
170
|
-
// authentication oauth2 required
|
|
171
|
-
// oauth required
|
|
172
|
-
_a.sent();
|
|
173
153
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
154
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
155
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -183,22 +163,23 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
183
163
|
},
|
|
184
164
|
/**
|
|
185
165
|
*
|
|
186
|
-
* @summary Delete
|
|
187
|
-
* @param {string}
|
|
166
|
+
* @summary Delete hospitalBranch
|
|
167
|
+
* @param {string} hospitalBranchId
|
|
168
|
+
* @param {boolean} [isPermanent]
|
|
188
169
|
* @param {*} [options] Override http request option.
|
|
189
170
|
* @throws {RequiredError}
|
|
190
171
|
*/
|
|
191
|
-
|
|
172
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
192
173
|
if (options === void 0) { options = {}; }
|
|
193
174
|
return __awaiter(_this, void 0, void 0, function () {
|
|
194
175
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
195
176
|
return __generator(this, function (_a) {
|
|
196
177
|
switch (_a.label) {
|
|
197
178
|
case 0:
|
|
198
|
-
// verify required parameter '
|
|
199
|
-
(0, common_1.assertParamExists)('
|
|
200
|
-
localVarPath = "/api/v1/
|
|
201
|
-
.replace("{".concat("
|
|
179
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
180
|
+
(0, common_1.assertParamExists)('apiV1HospitalbranchesHospitalBranchIdDelete', 'hospitalBranchId', hospitalBranchId);
|
|
181
|
+
localVarPath = "/api/v1/hospitalbranches/{hospitalBranchId}"
|
|
182
|
+
.replace("{".concat("hospitalBranchId", "}"), encodeURIComponent(String(hospitalBranchId)));
|
|
202
183
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
184
|
if (configuration) {
|
|
204
185
|
baseOptions = configuration.baseOptions;
|
|
@@ -213,6 +194,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
213
194
|
// authentication oauth2 required
|
|
214
195
|
// oauth required
|
|
215
196
|
_a.sent();
|
|
197
|
+
if (isPermanent !== undefined) {
|
|
198
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
199
|
+
}
|
|
216
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
202
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -226,23 +210,23 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
226
210
|
},
|
|
227
211
|
/**
|
|
228
212
|
*
|
|
229
|
-
* @summary Get
|
|
230
|
-
* @param {string}
|
|
213
|
+
* @summary Get hospitalBranch
|
|
214
|
+
* @param {string} hospitalBranchId
|
|
231
215
|
* @param {string} [languageCode]
|
|
232
216
|
* @param {*} [options] Override http request option.
|
|
233
217
|
* @throws {RequiredError}
|
|
234
218
|
*/
|
|
235
|
-
|
|
219
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
236
220
|
if (options === void 0) { options = {}; }
|
|
237
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
238
222
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
239
223
|
return __generator(this, function (_a) {
|
|
240
224
|
switch (_a.label) {
|
|
241
225
|
case 0:
|
|
242
|
-
// verify required parameter '
|
|
243
|
-
(0, common_1.assertParamExists)('
|
|
244
|
-
localVarPath = "/api/v1/
|
|
245
|
-
.replace("{".concat("
|
|
226
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('apiV1HospitalbranchesHospitalBranchIdGet', 'hospitalBranchId', hospitalBranchId);
|
|
228
|
+
localVarPath = "/api/v1/hospitalbranches/{hospitalBranchId}"
|
|
229
|
+
.replace("{".concat("hospitalBranchId", "}"), encodeURIComponent(String(hospitalBranchId)));
|
|
246
230
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
247
231
|
if (configuration) {
|
|
248
232
|
baseOptions = configuration.baseOptions;
|
|
@@ -273,27 +257,28 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
273
257
|
},
|
|
274
258
|
/**
|
|
275
259
|
*
|
|
276
|
-
* @summary
|
|
277
|
-
* @param {string}
|
|
260
|
+
* @summary Update hospitalBranch
|
|
261
|
+
* @param {string} hospitalBranchId
|
|
262
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
278
263
|
* @param {*} [options] Override http request option.
|
|
279
264
|
* @throws {RequiredError}
|
|
280
265
|
*/
|
|
281
|
-
|
|
266
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
282
267
|
if (options === void 0) { options = {}; }
|
|
283
268
|
return __awaiter(_this, void 0, void 0, function () {
|
|
284
269
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
285
270
|
return __generator(this, function (_a) {
|
|
286
271
|
switch (_a.label) {
|
|
287
272
|
case 0:
|
|
288
|
-
// verify required parameter '
|
|
289
|
-
(0, common_1.assertParamExists)('
|
|
290
|
-
localVarPath = "/api/v1/
|
|
291
|
-
.replace("{".concat("
|
|
273
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
274
|
+
(0, common_1.assertParamExists)('apiV1HospitalbranchesHospitalBranchIdPut', 'hospitalBranchId', hospitalBranchId);
|
|
275
|
+
localVarPath = "/api/v1/hospitalbranches/{hospitalBranchId}"
|
|
276
|
+
.replace("{".concat("hospitalBranchId", "}"), encodeURIComponent(String(hospitalBranchId)));
|
|
292
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
293
278
|
if (configuration) {
|
|
294
279
|
baseOptions = configuration.baseOptions;
|
|
295
280
|
}
|
|
296
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
281
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
297
282
|
localVarHeaderParameter = {};
|
|
298
283
|
localVarQueryParameter = {};
|
|
299
284
|
// authentication oauth2 required
|
|
@@ -303,9 +288,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
303
288
|
// authentication oauth2 required
|
|
304
289
|
// oauth required
|
|
305
290
|
_a.sent();
|
|
291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
306
292
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
293
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
294
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalBranchCommand, localVarRequestOptions, configuration);
|
|
309
296
|
return [2 /*return*/, {
|
|
310
297
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
311
298
|
options: localVarRequestOptions,
|
|
@@ -316,23 +303,22 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
316
303
|
},
|
|
317
304
|
/**
|
|
318
305
|
*
|
|
319
|
-
* @summary
|
|
320
|
-
* @param {string}
|
|
321
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
306
|
+
* @summary Reactivate hospitalBranch
|
|
307
|
+
* @param {string} hospitalBranchId
|
|
322
308
|
* @param {*} [options] Override http request option.
|
|
323
309
|
* @throws {RequiredError}
|
|
324
310
|
*/
|
|
325
|
-
|
|
311
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
326
312
|
if (options === void 0) { options = {}; }
|
|
327
313
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
314
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
315
|
return __generator(this, function (_a) {
|
|
330
316
|
switch (_a.label) {
|
|
331
317
|
case 0:
|
|
332
|
-
// verify required parameter '
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
334
|
-
localVarPath = "/api/v1/
|
|
335
|
-
.replace("{".concat("
|
|
318
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
319
|
+
(0, common_1.assertParamExists)('apiV1HospitalbranchesHospitalBranchIdReactivatePut', 'hospitalBranchId', hospitalBranchId);
|
|
320
|
+
localVarPath = "/api/v1/hospitalbranches/{hospitalBranchId}/reactivate"
|
|
321
|
+
.replace("{".concat("hospitalBranchId", "}"), encodeURIComponent(String(hospitalBranchId)));
|
|
336
322
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
323
|
if (configuration) {
|
|
338
324
|
baseOptions = configuration.baseOptions;
|
|
@@ -347,11 +333,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
347
333
|
// authentication oauth2 required
|
|
348
334
|
// oauth required
|
|
349
335
|
_a.sent();
|
|
350
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
351
336
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
352
337
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
353
338
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
354
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rejectBookingCommand, localVarRequestOptions, configuration);
|
|
355
339
|
return [2 /*return*/, {
|
|
356
340
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
357
341
|
options: localVarRequestOptions,
|
|
@@ -362,42 +346,24 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
362
346
|
},
|
|
363
347
|
/**
|
|
364
348
|
*
|
|
365
|
-
* @summary
|
|
366
|
-
* @param {
|
|
367
|
-
* @param {string} [userName]
|
|
368
|
-
* @param {string} [hospitalId]
|
|
369
|
-
* @param {string} [hospitalName]
|
|
370
|
-
* @param {string} [dealId]
|
|
371
|
-
* @param {string} [dealName]
|
|
372
|
-
* @param {boolean} [isOpen]
|
|
373
|
-
* @param {boolean} [isCompleted]
|
|
374
|
-
* @param {BookingStatus} [status]
|
|
375
|
-
* @param {string} [dealPackageId]
|
|
376
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
377
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
378
|
-
* @param {boolean} [isExternal]
|
|
379
|
-
* @param {boolean} [paymentEnabled]
|
|
380
|
-
* @param {string} [languageCode]
|
|
381
|
-
* @param {boolean} [showHidden]
|
|
382
|
-
* @param {number} [page]
|
|
383
|
-
* @param {number} [limit]
|
|
384
|
-
* @param {Date} [lastRetrieved]
|
|
349
|
+
* @summary Create hospitalBranch
|
|
350
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
385
351
|
* @param {*} [options] Override http request option.
|
|
386
352
|
* @throws {RequiredError}
|
|
387
353
|
*/
|
|
388
|
-
|
|
354
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
389
355
|
if (options === void 0) { options = {}; }
|
|
390
356
|
return __awaiter(_this, void 0, void 0, function () {
|
|
391
357
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
392
358
|
return __generator(this, function (_a) {
|
|
393
359
|
switch (_a.label) {
|
|
394
360
|
case 0:
|
|
395
|
-
localVarPath = "/api/v1/
|
|
361
|
+
localVarPath = "/api/v1/hospitalbranches";
|
|
396
362
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
397
363
|
if (configuration) {
|
|
398
364
|
baseOptions = configuration.baseOptions;
|
|
399
365
|
}
|
|
400
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
366
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
401
367
|
localVarHeaderParameter = {};
|
|
402
368
|
localVarQueryParameter = {};
|
|
403
369
|
// authentication oauth2 required
|
|
@@ -407,68 +373,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
407
373
|
// authentication oauth2 required
|
|
408
374
|
// oauth required
|
|
409
375
|
_a.sent();
|
|
410
|
-
|
|
411
|
-
localVarQueryParameter['UserId'] = userId;
|
|
412
|
-
}
|
|
413
|
-
if (userName !== undefined) {
|
|
414
|
-
localVarQueryParameter['UserName'] = userName;
|
|
415
|
-
}
|
|
416
|
-
if (hospitalId !== undefined) {
|
|
417
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
418
|
-
}
|
|
419
|
-
if (hospitalName !== undefined) {
|
|
420
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
421
|
-
}
|
|
422
|
-
if (dealId !== undefined) {
|
|
423
|
-
localVarQueryParameter['DealId'] = dealId;
|
|
424
|
-
}
|
|
425
|
-
if (dealName !== undefined) {
|
|
426
|
-
localVarQueryParameter['DealName'] = dealName;
|
|
427
|
-
}
|
|
428
|
-
if (isOpen !== undefined) {
|
|
429
|
-
localVarQueryParameter['IsOpen'] = isOpen;
|
|
430
|
-
}
|
|
431
|
-
if (isCompleted !== undefined) {
|
|
432
|
-
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
433
|
-
}
|
|
434
|
-
if (status !== undefined) {
|
|
435
|
-
localVarQueryParameter['Status'] = status;
|
|
436
|
-
}
|
|
437
|
-
if (dealPackageId !== undefined) {
|
|
438
|
-
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
439
|
-
}
|
|
440
|
-
if (sortRequestDate !== undefined) {
|
|
441
|
-
localVarQueryParameter['SortRequestDate'] = sortRequestDate;
|
|
442
|
-
}
|
|
443
|
-
if (sortConfirmedDateStart !== undefined) {
|
|
444
|
-
localVarQueryParameter['SortConfirmedDateStart'] = sortConfirmedDateStart;
|
|
445
|
-
}
|
|
446
|
-
if (isExternal !== undefined) {
|
|
447
|
-
localVarQueryParameter['IsExternal'] = isExternal;
|
|
448
|
-
}
|
|
449
|
-
if (paymentEnabled !== undefined) {
|
|
450
|
-
localVarQueryParameter['PaymentEnabled'] = paymentEnabled;
|
|
451
|
-
}
|
|
452
|
-
if (languageCode !== undefined) {
|
|
453
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
454
|
-
}
|
|
455
|
-
if (showHidden !== undefined) {
|
|
456
|
-
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
457
|
-
}
|
|
458
|
-
if (page !== undefined) {
|
|
459
|
-
localVarQueryParameter['page'] = page;
|
|
460
|
-
}
|
|
461
|
-
if (limit !== undefined) {
|
|
462
|
-
localVarQueryParameter['limit'] = limit;
|
|
463
|
-
}
|
|
464
|
-
if (lastRetrieved !== undefined) {
|
|
465
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
466
|
-
lastRetrieved.toISOString() :
|
|
467
|
-
lastRetrieved;
|
|
468
|
-
}
|
|
376
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
469
377
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
470
378
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
471
379
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHospitalBranchCommand, localVarRequestOptions, configuration);
|
|
472
381
|
return [2 /*return*/, {
|
|
473
382
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
474
383
|
options: localVarRequestOptions,
|
|
@@ -479,48 +388,33 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
479
388
|
},
|
|
480
389
|
};
|
|
481
390
|
};
|
|
482
|
-
exports.
|
|
391
|
+
exports.HospitalBranchesApiAxiosParamCreator = HospitalBranchesApiAxiosParamCreator;
|
|
483
392
|
/**
|
|
484
|
-
*
|
|
393
|
+
* HospitalBranchesApi - functional programming interface
|
|
485
394
|
* @export
|
|
486
395
|
*/
|
|
487
|
-
var
|
|
488
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
396
|
+
var HospitalBranchesApiFp = function (configuration) {
|
|
397
|
+
var localVarAxiosParamCreator = (0, exports.HospitalBranchesApiAxiosParamCreator)(configuration);
|
|
489
398
|
return {
|
|
490
399
|
/**
|
|
491
400
|
*
|
|
492
|
-
* @summary
|
|
493
|
-
* @param {string}
|
|
494
|
-
* @param {
|
|
495
|
-
* @param {
|
|
496
|
-
* @
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
var localVarAxiosArgs;
|
|
501
|
-
return __generator(this, function (_a) {
|
|
502
|
-
switch (_a.label) {
|
|
503
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options)];
|
|
504
|
-
case 1:
|
|
505
|
-
localVarAxiosArgs = _a.sent();
|
|
506
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
});
|
|
510
|
-
},
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* @summary Cancel booking.
|
|
514
|
-
* @param {string} bookingId
|
|
401
|
+
* @summary Get hospitalBranches
|
|
402
|
+
* @param {string} [id]
|
|
403
|
+
* @param {string} [hospitalGroupId]
|
|
404
|
+
* @param {string} [hospitalId]
|
|
405
|
+
* @param {string} [languageCode]
|
|
406
|
+
* @param {number} [page]
|
|
407
|
+
* @param {number} [limit]
|
|
408
|
+
* @param {Date} [lastRetrieved]
|
|
515
409
|
* @param {*} [options] Override http request option.
|
|
516
410
|
* @throws {RequiredError}
|
|
517
411
|
*/
|
|
518
|
-
|
|
412
|
+
apiV1HospitalbranchesGet: function (id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options) {
|
|
519
413
|
return __awaiter(this, void 0, void 0, function () {
|
|
520
414
|
var localVarAxiosArgs;
|
|
521
415
|
return __generator(this, function (_a) {
|
|
522
416
|
switch (_a.label) {
|
|
523
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
417
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesGet(id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options)];
|
|
524
418
|
case 1:
|
|
525
419
|
localVarAxiosArgs = _a.sent();
|
|
526
420
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -530,17 +424,18 @@ var BookingsApiFp = function (configuration) {
|
|
|
530
424
|
},
|
|
531
425
|
/**
|
|
532
426
|
*
|
|
533
|
-
* @summary Delete
|
|
534
|
-
* @param {string}
|
|
427
|
+
* @summary Delete hospitalBranch
|
|
428
|
+
* @param {string} hospitalBranchId
|
|
429
|
+
* @param {boolean} [isPermanent]
|
|
535
430
|
* @param {*} [options] Override http request option.
|
|
536
431
|
* @throws {RequiredError}
|
|
537
432
|
*/
|
|
538
|
-
|
|
433
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
539
434
|
return __awaiter(this, void 0, void 0, function () {
|
|
540
435
|
var localVarAxiosArgs;
|
|
541
436
|
return __generator(this, function (_a) {
|
|
542
437
|
switch (_a.label) {
|
|
543
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
438
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options)];
|
|
544
439
|
case 1:
|
|
545
440
|
localVarAxiosArgs = _a.sent();
|
|
546
441
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -550,18 +445,18 @@ var BookingsApiFp = function (configuration) {
|
|
|
550
445
|
},
|
|
551
446
|
/**
|
|
552
447
|
*
|
|
553
|
-
* @summary Get
|
|
554
|
-
* @param {string}
|
|
448
|
+
* @summary Get hospitalBranch
|
|
449
|
+
* @param {string} hospitalBranchId
|
|
555
450
|
* @param {string} [languageCode]
|
|
556
451
|
* @param {*} [options] Override http request option.
|
|
557
452
|
* @throws {RequiredError}
|
|
558
453
|
*/
|
|
559
|
-
|
|
454
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
560
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
561
456
|
var localVarAxiosArgs;
|
|
562
457
|
return __generator(this, function (_a) {
|
|
563
458
|
switch (_a.label) {
|
|
564
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
459
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options)];
|
|
565
460
|
case 1:
|
|
566
461
|
localVarAxiosArgs = _a.sent();
|
|
567
462
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -571,17 +466,18 @@ var BookingsApiFp = function (configuration) {
|
|
|
571
466
|
},
|
|
572
467
|
/**
|
|
573
468
|
*
|
|
574
|
-
* @summary
|
|
575
|
-
* @param {string}
|
|
469
|
+
* @summary Update hospitalBranch
|
|
470
|
+
* @param {string} hospitalBranchId
|
|
471
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
576
472
|
* @param {*} [options] Override http request option.
|
|
577
473
|
* @throws {RequiredError}
|
|
578
474
|
*/
|
|
579
|
-
|
|
475
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
580
476
|
return __awaiter(this, void 0, void 0, function () {
|
|
581
477
|
var localVarAxiosArgs;
|
|
582
478
|
return __generator(this, function (_a) {
|
|
583
479
|
switch (_a.label) {
|
|
584
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
480
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options)];
|
|
585
481
|
case 1:
|
|
586
482
|
localVarAxiosArgs = _a.sent();
|
|
587
483
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -591,18 +487,17 @@ var BookingsApiFp = function (configuration) {
|
|
|
591
487
|
},
|
|
592
488
|
/**
|
|
593
489
|
*
|
|
594
|
-
* @summary
|
|
595
|
-
* @param {string}
|
|
596
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
490
|
+
* @summary Reactivate hospitalBranch
|
|
491
|
+
* @param {string} hospitalBranchId
|
|
597
492
|
* @param {*} [options] Override http request option.
|
|
598
493
|
* @throws {RequiredError}
|
|
599
494
|
*/
|
|
600
|
-
|
|
495
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
601
496
|
return __awaiter(this, void 0, void 0, function () {
|
|
602
497
|
var localVarAxiosArgs;
|
|
603
498
|
return __generator(this, function (_a) {
|
|
604
499
|
switch (_a.label) {
|
|
605
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
500
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options)];
|
|
606
501
|
case 1:
|
|
607
502
|
localVarAxiosArgs = _a.sent();
|
|
608
503
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -612,35 +507,17 @@ var BookingsApiFp = function (configuration) {
|
|
|
612
507
|
},
|
|
613
508
|
/**
|
|
614
509
|
*
|
|
615
|
-
* @summary
|
|
616
|
-
* @param {
|
|
617
|
-
* @param {string} [userName]
|
|
618
|
-
* @param {string} [hospitalId]
|
|
619
|
-
* @param {string} [hospitalName]
|
|
620
|
-
* @param {string} [dealId]
|
|
621
|
-
* @param {string} [dealName]
|
|
622
|
-
* @param {boolean} [isOpen]
|
|
623
|
-
* @param {boolean} [isCompleted]
|
|
624
|
-
* @param {BookingStatus} [status]
|
|
625
|
-
* @param {string} [dealPackageId]
|
|
626
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
627
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
628
|
-
* @param {boolean} [isExternal]
|
|
629
|
-
* @param {boolean} [paymentEnabled]
|
|
630
|
-
* @param {string} [languageCode]
|
|
631
|
-
* @param {boolean} [showHidden]
|
|
632
|
-
* @param {number} [page]
|
|
633
|
-
* @param {number} [limit]
|
|
634
|
-
* @param {Date} [lastRetrieved]
|
|
510
|
+
* @summary Create hospitalBranch
|
|
511
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
635
512
|
* @param {*} [options] Override http request option.
|
|
636
513
|
* @throws {RequiredError}
|
|
637
514
|
*/
|
|
638
|
-
|
|
515
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
639
516
|
return __awaiter(this, void 0, void 0, function () {
|
|
640
517
|
var localVarAxiosArgs;
|
|
641
518
|
return __generator(this, function (_a) {
|
|
642
519
|
switch (_a.label) {
|
|
643
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
520
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesPost(createHospitalBranchCommand, options)];
|
|
644
521
|
case 1:
|
|
645
522
|
localVarAxiosArgs = _a.sent();
|
|
646
523
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -650,204 +527,171 @@ var BookingsApiFp = function (configuration) {
|
|
|
650
527
|
},
|
|
651
528
|
};
|
|
652
529
|
};
|
|
653
|
-
exports.
|
|
530
|
+
exports.HospitalBranchesApiFp = HospitalBranchesApiFp;
|
|
654
531
|
/**
|
|
655
|
-
*
|
|
532
|
+
* HospitalBranchesApi - factory interface
|
|
656
533
|
* @export
|
|
657
534
|
*/
|
|
658
|
-
var
|
|
659
|
-
var localVarFp = (0, exports.
|
|
535
|
+
var HospitalBranchesApiFactory = function (configuration, basePath, axios) {
|
|
536
|
+
var localVarFp = (0, exports.HospitalBranchesApiFp)(configuration);
|
|
660
537
|
return {
|
|
661
538
|
/**
|
|
662
539
|
*
|
|
663
|
-
* @summary
|
|
664
|
-
* @param {string}
|
|
665
|
-
* @param {
|
|
666
|
-
* @param {
|
|
667
|
-
* @
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
},
|
|
672
|
-
/**
|
|
673
|
-
*
|
|
674
|
-
* @summary Cancel booking.
|
|
675
|
-
* @param {string} bookingId
|
|
540
|
+
* @summary Get hospitalBranches
|
|
541
|
+
* @param {string} [id]
|
|
542
|
+
* @param {string} [hospitalGroupId]
|
|
543
|
+
* @param {string} [hospitalId]
|
|
544
|
+
* @param {string} [languageCode]
|
|
545
|
+
* @param {number} [page]
|
|
546
|
+
* @param {number} [limit]
|
|
547
|
+
* @param {Date} [lastRetrieved]
|
|
676
548
|
* @param {*} [options] Override http request option.
|
|
677
549
|
* @throws {RequiredError}
|
|
678
550
|
*/
|
|
679
|
-
|
|
680
|
-
return localVarFp.
|
|
551
|
+
apiV1HospitalbranchesGet: function (id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options) {
|
|
552
|
+
return localVarFp.apiV1HospitalbranchesGet(id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
681
553
|
},
|
|
682
554
|
/**
|
|
683
555
|
*
|
|
684
|
-
* @summary Delete
|
|
685
|
-
* @param {string}
|
|
556
|
+
* @summary Delete hospitalBranch
|
|
557
|
+
* @param {string} hospitalBranchId
|
|
558
|
+
* @param {boolean} [isPermanent]
|
|
686
559
|
* @param {*} [options] Override http request option.
|
|
687
560
|
* @throws {RequiredError}
|
|
688
561
|
*/
|
|
689
|
-
|
|
690
|
-
return localVarFp.
|
|
562
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
563
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
691
564
|
},
|
|
692
565
|
/**
|
|
693
566
|
*
|
|
694
|
-
* @summary Get
|
|
695
|
-
* @param {string}
|
|
567
|
+
* @summary Get hospitalBranch
|
|
568
|
+
* @param {string} hospitalBranchId
|
|
696
569
|
* @param {string} [languageCode]
|
|
697
570
|
* @param {*} [options] Override http request option.
|
|
698
571
|
* @throws {RequiredError}
|
|
699
572
|
*/
|
|
700
|
-
|
|
701
|
-
return localVarFp.
|
|
573
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
574
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
702
575
|
},
|
|
703
576
|
/**
|
|
704
577
|
*
|
|
705
|
-
* @summary
|
|
706
|
-
* @param {string}
|
|
578
|
+
* @summary Update hospitalBranch
|
|
579
|
+
* @param {string} hospitalBranchId
|
|
580
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
707
581
|
* @param {*} [options] Override http request option.
|
|
708
582
|
* @throws {RequiredError}
|
|
709
583
|
*/
|
|
710
|
-
|
|
711
|
-
return localVarFp.
|
|
584
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
585
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options).then(function (request) { return request(axios, basePath); });
|
|
712
586
|
},
|
|
713
587
|
/**
|
|
714
588
|
*
|
|
715
|
-
* @summary
|
|
716
|
-
* @param {string}
|
|
717
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
589
|
+
* @summary Reactivate hospitalBranch
|
|
590
|
+
* @param {string} hospitalBranchId
|
|
718
591
|
* @param {*} [options] Override http request option.
|
|
719
592
|
* @throws {RequiredError}
|
|
720
593
|
*/
|
|
721
|
-
|
|
722
|
-
return localVarFp.
|
|
594
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
595
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options).then(function (request) { return request(axios, basePath); });
|
|
723
596
|
},
|
|
724
597
|
/**
|
|
725
598
|
*
|
|
726
|
-
* @summary
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {string} [userName]
|
|
729
|
-
* @param {string} [hospitalId]
|
|
730
|
-
* @param {string} [hospitalName]
|
|
731
|
-
* @param {string} [dealId]
|
|
732
|
-
* @param {string} [dealName]
|
|
733
|
-
* @param {boolean} [isOpen]
|
|
734
|
-
* @param {boolean} [isCompleted]
|
|
735
|
-
* @param {BookingStatus} [status]
|
|
736
|
-
* @param {string} [dealPackageId]
|
|
737
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
738
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
739
|
-
* @param {boolean} [isExternal]
|
|
740
|
-
* @param {boolean} [paymentEnabled]
|
|
741
|
-
* @param {string} [languageCode]
|
|
742
|
-
* @param {boolean} [showHidden]
|
|
743
|
-
* @param {number} [page]
|
|
744
|
-
* @param {number} [limit]
|
|
745
|
-
* @param {Date} [lastRetrieved]
|
|
599
|
+
* @summary Create hospitalBranch
|
|
600
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
746
601
|
* @param {*} [options] Override http request option.
|
|
747
602
|
* @throws {RequiredError}
|
|
748
603
|
*/
|
|
749
|
-
|
|
750
|
-
return localVarFp.
|
|
604
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
605
|
+
return localVarFp.apiV1HospitalbranchesPost(createHospitalBranchCommand, options).then(function (request) { return request(axios, basePath); });
|
|
751
606
|
},
|
|
752
607
|
};
|
|
753
608
|
};
|
|
754
|
-
exports.
|
|
609
|
+
exports.HospitalBranchesApiFactory = HospitalBranchesApiFactory;
|
|
755
610
|
/**
|
|
756
|
-
*
|
|
611
|
+
* HospitalBranchesApi - object-oriented interface
|
|
757
612
|
* @export
|
|
758
|
-
* @class
|
|
613
|
+
* @class HospitalBranchesApi
|
|
759
614
|
* @extends {BaseAPI}
|
|
760
615
|
*/
|
|
761
|
-
var
|
|
762
|
-
__extends(
|
|
763
|
-
function
|
|
616
|
+
var HospitalBranchesApi = /** @class */ (function (_super) {
|
|
617
|
+
__extends(HospitalBranchesApi, _super);
|
|
618
|
+
function HospitalBranchesApi() {
|
|
764
619
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
765
620
|
}
|
|
766
621
|
/**
|
|
767
622
|
*
|
|
768
|
-
* @summary
|
|
769
|
-
* @param {
|
|
623
|
+
* @summary Get hospitalBranches
|
|
624
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesGetRequest} requestParameters Request parameters.
|
|
770
625
|
* @param {*} [options] Override http request option.
|
|
771
626
|
* @throws {RequiredError}
|
|
772
|
-
* @memberof
|
|
627
|
+
* @memberof HospitalBranchesApi
|
|
773
628
|
*/
|
|
774
|
-
|
|
629
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesGet = function (requestParameters, options) {
|
|
775
630
|
var _this = this;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
*
|
|
780
|
-
* @summary Cancel booking.
|
|
781
|
-
* @param {BookingsApiApiV1BookingsBookingIdCancelPutRequest} requestParameters Request parameters.
|
|
782
|
-
* @param {*} [options] Override http request option.
|
|
783
|
-
* @throws {RequiredError}
|
|
784
|
-
* @memberof BookingsApi
|
|
785
|
-
*/
|
|
786
|
-
BookingsApi.prototype.apiV1BookingsBookingIdCancelPut = function (requestParameters, options) {
|
|
787
|
-
var _this = this;
|
|
788
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV1BookingsBookingIdCancelPut(requestParameters.bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
631
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
632
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesGet(requestParameters.id, requestParameters.hospitalGroupId, requestParameters.hospitalId, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
789
633
|
};
|
|
790
634
|
/**
|
|
791
635
|
*
|
|
792
|
-
* @summary Delete
|
|
793
|
-
* @param {
|
|
636
|
+
* @summary Delete hospitalBranch
|
|
637
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest} requestParameters Request parameters.
|
|
794
638
|
* @param {*} [options] Override http request option.
|
|
795
639
|
* @throws {RequiredError}
|
|
796
|
-
* @memberof
|
|
640
|
+
* @memberof HospitalBranchesApi
|
|
797
641
|
*/
|
|
798
|
-
|
|
642
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdDelete = function (requestParameters, options) {
|
|
799
643
|
var _this = this;
|
|
800
|
-
return (0, exports.
|
|
644
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdDelete(requestParameters.hospitalBranchId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
801
645
|
};
|
|
802
646
|
/**
|
|
803
647
|
*
|
|
804
|
-
* @summary Get
|
|
805
|
-
* @param {
|
|
648
|
+
* @summary Get hospitalBranch
|
|
649
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest} requestParameters Request parameters.
|
|
806
650
|
* @param {*} [options] Override http request option.
|
|
807
651
|
* @throws {RequiredError}
|
|
808
|
-
* @memberof
|
|
652
|
+
* @memberof HospitalBranchesApi
|
|
809
653
|
*/
|
|
810
|
-
|
|
654
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdGet = function (requestParameters, options) {
|
|
811
655
|
var _this = this;
|
|
812
|
-
return (0, exports.
|
|
656
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdGet(requestParameters.hospitalBranchId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
813
657
|
};
|
|
814
658
|
/**
|
|
815
659
|
*
|
|
816
|
-
* @summary
|
|
817
|
-
* @param {
|
|
660
|
+
* @summary Update hospitalBranch
|
|
661
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest} requestParameters Request parameters.
|
|
818
662
|
* @param {*} [options] Override http request option.
|
|
819
663
|
* @throws {RequiredError}
|
|
820
|
-
* @memberof
|
|
664
|
+
* @memberof HospitalBranchesApi
|
|
821
665
|
*/
|
|
822
|
-
|
|
666
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdPut = function (requestParameters, options) {
|
|
823
667
|
var _this = this;
|
|
824
|
-
return (0, exports.
|
|
668
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdPut(requestParameters.hospitalBranchId, requestParameters.updateHospitalBranchCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
825
669
|
};
|
|
826
670
|
/**
|
|
827
671
|
*
|
|
828
|
-
* @summary
|
|
829
|
-
* @param {
|
|
672
|
+
* @summary Reactivate hospitalBranch
|
|
673
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest} requestParameters Request parameters.
|
|
830
674
|
* @param {*} [options] Override http request option.
|
|
831
675
|
* @throws {RequiredError}
|
|
832
|
-
* @memberof
|
|
676
|
+
* @memberof HospitalBranchesApi
|
|
833
677
|
*/
|
|
834
|
-
|
|
678
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdReactivatePut = function (requestParameters, options) {
|
|
835
679
|
var _this = this;
|
|
836
|
-
return (0, exports.
|
|
680
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdReactivatePut(requestParameters.hospitalBranchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
837
681
|
};
|
|
838
682
|
/**
|
|
839
683
|
*
|
|
840
|
-
* @summary
|
|
841
|
-
* @param {
|
|
684
|
+
* @summary Create hospitalBranch
|
|
685
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesPostRequest} requestParameters Request parameters.
|
|
842
686
|
* @param {*} [options] Override http request option.
|
|
843
687
|
* @throws {RequiredError}
|
|
844
|
-
* @memberof
|
|
688
|
+
* @memberof HospitalBranchesApi
|
|
845
689
|
*/
|
|
846
|
-
|
|
690
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesPost = function (requestParameters, options) {
|
|
847
691
|
var _this = this;
|
|
848
692
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
849
|
-
return (0, exports.
|
|
693
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesPost(requestParameters.createHospitalBranchCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
850
694
|
};
|
|
851
|
-
return
|
|
695
|
+
return HospitalBranchesApi;
|
|
852
696
|
}(base_1.BaseAPI));
|
|
853
|
-
exports.
|
|
697
|
+
exports.HospitalBranchesApi = HospitalBranchesApi;
|