ch-admin-api-client-typescript 5.14.26 → 5.15.0
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/hospital-branches-api.d.ts +402 -0
- package/lib/api/hospital-branches-api.d.ts.map +1 -0
- package/lib/api/hospital-branches-api.js +697 -0
- package/lib/api/hospital-groups-api.d.ts +402 -0
- package/lib/api/hospital-groups-api.d.ts.map +1 -0
- package/lib/api/hospital-groups-api.js +697 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -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-branch-command.js +15 -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/create-hospital-group-command.js +15 -0
- 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-item-model.js +15 -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/hospital-branch-model.js +15 -0
- package/lib/models/hospital-branches-model.d.ts +33 -0
- package/lib/models/hospital-branches-model.d.ts.map +1 -0
- package/lib/models/hospital-branches-model.js +15 -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-item-model.js +15 -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/hospital-group-model.js +15 -0
- package/lib/models/hospital-groups-model.d.ts +33 -0
- package/lib/models/hospital-groups-model.d.ts.map +1 -0
- package/lib/models/hospital-groups-model.js +15 -0
- package/lib/models/index.d.ts +10 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +10 -0
- 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-branch-command.js +15 -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/lib/models/update-hospital-group-command.js +15 -0
- package/lib/models/update-web-app-command.d.ts +2 -2
- package/lib/models/web-app-item-model.d.ts +2 -2
- package/lib/models/web-app-model.d.ts +2 -2
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -0
- package/src/api/hospital-branches-api.ts +706 -0
- package/src/api/hospital-groups-api.ts +706 -0
- package/src/api.ts +2 -0
- package/src/models/create-hospital-branch-command.ts +78 -0
- package/src/models/create-hospital-group-command.ts +72 -0
- package/src/models/hospital-branch-item-model.ts +87 -0
- package/src/models/hospital-branch-model.ts +105 -0
- package/src/models/hospital-branches-model.ts +42 -0
- package/src/models/hospital-group-item-model.ts +69 -0
- package/src/models/hospital-group-model.ts +87 -0
- package/src/models/hospital-groups-model.ts +42 -0
- package/src/models/index.ts +10 -0
- package/src/models/update-hospital-branch-command.ts +66 -0
- package/src/models/update-hospital-group-command.ts +72 -0
- package/src/models/update-web-app-command.ts +2 -2
- package/src/models/web-app-item-model.ts +2 -2
- package/src/models/web-app-model.ts +2 -2
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.HospitalBranchesApi = exports.HospitalBranchesApiFactory = exports.HospitalBranchesApiFp = exports.HospitalBranchesApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* HospitalBranchesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var HospitalBranchesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
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]
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
apiV1HospitalbranchesGet: function (id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
localVarPath = "/api/v1/hospitalbranches";
|
|
116
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
// authentication oauth2 required
|
|
124
|
+
// oauth required
|
|
125
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
126
|
+
case 1:
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
// oauth required
|
|
129
|
+
_a.sent();
|
|
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;
|
|
152
|
+
}
|
|
153
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
+
return [2 /*return*/, {
|
|
157
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
}];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Delete hospitalBranch
|
|
167
|
+
* @param {string} hospitalBranchId
|
|
168
|
+
* @param {boolean} [isPermanent]
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
173
|
+
if (options === void 0) { options = {}; }
|
|
174
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
+
return __generator(this, function (_a) {
|
|
177
|
+
switch (_a.label) {
|
|
178
|
+
case 0:
|
|
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)));
|
|
183
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
188
|
+
localVarHeaderParameter = {};
|
|
189
|
+
localVarQueryParameter = {};
|
|
190
|
+
// authentication oauth2 required
|
|
191
|
+
// oauth required
|
|
192
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
193
|
+
case 1:
|
|
194
|
+
// authentication oauth2 required
|
|
195
|
+
// oauth required
|
|
196
|
+
_a.sent();
|
|
197
|
+
if (isPermanent !== undefined) {
|
|
198
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
199
|
+
}
|
|
200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
203
|
+
return [2 /*return*/, {
|
|
204
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
}];
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary Get hospitalBranch
|
|
214
|
+
* @param {string} hospitalBranchId
|
|
215
|
+
* @param {string} [languageCode]
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
220
|
+
if (options === void 0) { options = {}; }
|
|
221
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
223
|
+
return __generator(this, function (_a) {
|
|
224
|
+
switch (_a.label) {
|
|
225
|
+
case 0:
|
|
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)));
|
|
230
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
231
|
+
if (configuration) {
|
|
232
|
+
baseOptions = configuration.baseOptions;
|
|
233
|
+
}
|
|
234
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
235
|
+
localVarHeaderParameter = {};
|
|
236
|
+
localVarQueryParameter = {};
|
|
237
|
+
// authentication oauth2 required
|
|
238
|
+
// oauth required
|
|
239
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
240
|
+
case 1:
|
|
241
|
+
// authentication oauth2 required
|
|
242
|
+
// oauth required
|
|
243
|
+
_a.sent();
|
|
244
|
+
if (languageCode !== undefined) {
|
|
245
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
246
|
+
}
|
|
247
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
248
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
250
|
+
return [2 /*return*/, {
|
|
251
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
252
|
+
options: localVarRequestOptions,
|
|
253
|
+
}];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Update hospitalBranch
|
|
261
|
+
* @param {string} hospitalBranchId
|
|
262
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
267
|
+
if (options === void 0) { options = {}; }
|
|
268
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
269
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
return __generator(this, function (_a) {
|
|
271
|
+
switch (_a.label) {
|
|
272
|
+
case 0:
|
|
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)));
|
|
277
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
|
+
if (configuration) {
|
|
279
|
+
baseOptions = configuration.baseOptions;
|
|
280
|
+
}
|
|
281
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
282
|
+
localVarHeaderParameter = {};
|
|
283
|
+
localVarQueryParameter = {};
|
|
284
|
+
// authentication oauth2 required
|
|
285
|
+
// oauth required
|
|
286
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
287
|
+
case 1:
|
|
288
|
+
// authentication oauth2 required
|
|
289
|
+
// oauth required
|
|
290
|
+
_a.sent();
|
|
291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalBranchCommand, localVarRequestOptions, configuration);
|
|
296
|
+
return [2 /*return*/, {
|
|
297
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
}];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @summary Reactivate hospitalBranch
|
|
307
|
+
* @param {string} hospitalBranchId
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
312
|
+
if (options === void 0) { options = {}; }
|
|
313
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
314
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
switch (_a.label) {
|
|
317
|
+
case 0:
|
|
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)));
|
|
322
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
}
|
|
326
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
327
|
+
localVarHeaderParameter = {};
|
|
328
|
+
localVarQueryParameter = {};
|
|
329
|
+
// authentication oauth2 required
|
|
330
|
+
// oauth required
|
|
331
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
332
|
+
case 1:
|
|
333
|
+
// authentication oauth2 required
|
|
334
|
+
// oauth required
|
|
335
|
+
_a.sent();
|
|
336
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
337
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
338
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
339
|
+
return [2 /*return*/, {
|
|
340
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
341
|
+
options: localVarRequestOptions,
|
|
342
|
+
}];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @summary Create hospitalBranch
|
|
350
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
355
|
+
if (options === void 0) { options = {}; }
|
|
356
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
357
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
358
|
+
return __generator(this, function (_a) {
|
|
359
|
+
switch (_a.label) {
|
|
360
|
+
case 0:
|
|
361
|
+
localVarPath = "/api/v1/hospitalbranches";
|
|
362
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
363
|
+
if (configuration) {
|
|
364
|
+
baseOptions = configuration.baseOptions;
|
|
365
|
+
}
|
|
366
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
367
|
+
localVarHeaderParameter = {};
|
|
368
|
+
localVarQueryParameter = {};
|
|
369
|
+
// authentication oauth2 required
|
|
370
|
+
// oauth required
|
|
371
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
372
|
+
case 1:
|
|
373
|
+
// authentication oauth2 required
|
|
374
|
+
// oauth required
|
|
375
|
+
_a.sent();
|
|
376
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHospitalBranchCommand, localVarRequestOptions, configuration);
|
|
381
|
+
return [2 /*return*/, {
|
|
382
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions,
|
|
384
|
+
}];
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
exports.HospitalBranchesApiAxiosParamCreator = HospitalBranchesApiAxiosParamCreator;
|
|
392
|
+
/**
|
|
393
|
+
* HospitalBranchesApi - functional programming interface
|
|
394
|
+
* @export
|
|
395
|
+
*/
|
|
396
|
+
var HospitalBranchesApiFp = function (configuration) {
|
|
397
|
+
var localVarAxiosParamCreator = (0, exports.HospitalBranchesApiAxiosParamCreator)(configuration);
|
|
398
|
+
return {
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
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]
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
apiV1HospitalbranchesGet: function (id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
414
|
+
var localVarAxiosArgs;
|
|
415
|
+
return __generator(this, function (_a) {
|
|
416
|
+
switch (_a.label) {
|
|
417
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesGet(id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options)];
|
|
418
|
+
case 1:
|
|
419
|
+
localVarAxiosArgs = _a.sent();
|
|
420
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @summary Delete hospitalBranch
|
|
428
|
+
* @param {string} hospitalBranchId
|
|
429
|
+
* @param {boolean} [isPermanent]
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
+
var localVarAxiosArgs;
|
|
436
|
+
return __generator(this, function (_a) {
|
|
437
|
+
switch (_a.label) {
|
|
438
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options)];
|
|
439
|
+
case 1:
|
|
440
|
+
localVarAxiosArgs = _a.sent();
|
|
441
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @summary Get hospitalBranch
|
|
449
|
+
* @param {string} hospitalBranchId
|
|
450
|
+
* @param {string} [languageCode]
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
456
|
+
var localVarAxiosArgs;
|
|
457
|
+
return __generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options)];
|
|
460
|
+
case 1:
|
|
461
|
+
localVarAxiosArgs = _a.sent();
|
|
462
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
},
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @summary Update hospitalBranch
|
|
470
|
+
* @param {string} hospitalBranchId
|
|
471
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
477
|
+
var localVarAxiosArgs;
|
|
478
|
+
return __generator(this, function (_a) {
|
|
479
|
+
switch (_a.label) {
|
|
480
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options)];
|
|
481
|
+
case 1:
|
|
482
|
+
localVarAxiosArgs = _a.sent();
|
|
483
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @summary Reactivate hospitalBranch
|
|
491
|
+
* @param {string} hospitalBranchId
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
497
|
+
var localVarAxiosArgs;
|
|
498
|
+
return __generator(this, function (_a) {
|
|
499
|
+
switch (_a.label) {
|
|
500
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options)];
|
|
501
|
+
case 1:
|
|
502
|
+
localVarAxiosArgs = _a.sent();
|
|
503
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @summary Create hospitalBranch
|
|
511
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
517
|
+
var localVarAxiosArgs;
|
|
518
|
+
return __generator(this, function (_a) {
|
|
519
|
+
switch (_a.label) {
|
|
520
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalbranchesPost(createHospitalBranchCommand, options)];
|
|
521
|
+
case 1:
|
|
522
|
+
localVarAxiosArgs = _a.sent();
|
|
523
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
},
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
exports.HospitalBranchesApiFp = HospitalBranchesApiFp;
|
|
531
|
+
/**
|
|
532
|
+
* HospitalBranchesApi - factory interface
|
|
533
|
+
* @export
|
|
534
|
+
*/
|
|
535
|
+
var HospitalBranchesApiFactory = function (configuration, basePath, axios) {
|
|
536
|
+
var localVarFp = (0, exports.HospitalBranchesApiFp)(configuration);
|
|
537
|
+
return {
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
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]
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
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); });
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @summary Delete hospitalBranch
|
|
557
|
+
* @param {string} hospitalBranchId
|
|
558
|
+
* @param {boolean} [isPermanent]
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
apiV1HospitalbranchesHospitalBranchIdDelete: function (hospitalBranchId, isPermanent, options) {
|
|
563
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @summary Get hospitalBranch
|
|
568
|
+
* @param {string} hospitalBranchId
|
|
569
|
+
* @param {string} [languageCode]
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
apiV1HospitalbranchesHospitalBranchIdGet: function (hospitalBranchId, languageCode, options) {
|
|
574
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
*
|
|
578
|
+
* @summary Update hospitalBranch
|
|
579
|
+
* @param {string} hospitalBranchId
|
|
580
|
+
* @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
apiV1HospitalbranchesHospitalBranchIdPut: function (hospitalBranchId, updateHospitalBranchCommand, options) {
|
|
585
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options).then(function (request) { return request(axios, basePath); });
|
|
586
|
+
},
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @summary Reactivate hospitalBranch
|
|
590
|
+
* @param {string} hospitalBranchId
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
apiV1HospitalbranchesHospitalBranchIdReactivatePut: function (hospitalBranchId, options) {
|
|
595
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options).then(function (request) { return request(axios, basePath); });
|
|
596
|
+
},
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @summary Create hospitalBranch
|
|
600
|
+
* @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
apiV1HospitalbranchesPost: function (createHospitalBranchCommand, options) {
|
|
605
|
+
return localVarFp.apiV1HospitalbranchesPost(createHospitalBranchCommand, options).then(function (request) { return request(axios, basePath); });
|
|
606
|
+
},
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
exports.HospitalBranchesApiFactory = HospitalBranchesApiFactory;
|
|
610
|
+
/**
|
|
611
|
+
* HospitalBranchesApi - object-oriented interface
|
|
612
|
+
* @export
|
|
613
|
+
* @class HospitalBranchesApi
|
|
614
|
+
* @extends {BaseAPI}
|
|
615
|
+
*/
|
|
616
|
+
var HospitalBranchesApi = /** @class */ (function (_super) {
|
|
617
|
+
__extends(HospitalBranchesApi, _super);
|
|
618
|
+
function HospitalBranchesApi() {
|
|
619
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @summary Get hospitalBranches
|
|
624
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesGetRequest} requestParameters Request parameters.
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
* @memberof HospitalBranchesApi
|
|
628
|
+
*/
|
|
629
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesGet = function (requestParameters, options) {
|
|
630
|
+
var _this = this;
|
|
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); });
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @summary Delete hospitalBranch
|
|
637
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest} requestParameters Request parameters.
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof HospitalBranchesApi
|
|
641
|
+
*/
|
|
642
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdDelete = function (requestParameters, options) {
|
|
643
|
+
var _this = this;
|
|
644
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdDelete(requestParameters.hospitalBranchId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @summary Get hospitalBranch
|
|
649
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest} requestParameters Request parameters.
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
* @memberof HospitalBranchesApi
|
|
653
|
+
*/
|
|
654
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdGet = function (requestParameters, options) {
|
|
655
|
+
var _this = this;
|
|
656
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdGet(requestParameters.hospitalBranchId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @summary Update hospitalBranch
|
|
661
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest} requestParameters Request parameters.
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
* @memberof HospitalBranchesApi
|
|
665
|
+
*/
|
|
666
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdPut = function (requestParameters, options) {
|
|
667
|
+
var _this = this;
|
|
668
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdPut(requestParameters.hospitalBranchId, requestParameters.updateHospitalBranchCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @summary Reactivate hospitalBranch
|
|
673
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest} requestParameters Request parameters.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
* @memberof HospitalBranchesApi
|
|
677
|
+
*/
|
|
678
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesHospitalBranchIdReactivatePut = function (requestParameters, options) {
|
|
679
|
+
var _this = this;
|
|
680
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesHospitalBranchIdReactivatePut(requestParameters.hospitalBranchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @summary Create hospitalBranch
|
|
685
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesPostRequest} requestParameters Request parameters.
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
* @memberof HospitalBranchesApi
|
|
689
|
+
*/
|
|
690
|
+
HospitalBranchesApi.prototype.apiV1HospitalbranchesPost = function (requestParameters, options) {
|
|
691
|
+
var _this = this;
|
|
692
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
693
|
+
return (0, exports.HospitalBranchesApiFp)(this.configuration).apiV1HospitalbranchesPost(requestParameters.createHospitalBranchCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
694
|
+
};
|
|
695
|
+
return HospitalBranchesApi;
|
|
696
|
+
}(base_1.BaseAPI));
|
|
697
|
+
exports.HospitalBranchesApi = HospitalBranchesApi;
|