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.
Files changed (64) hide show
  1. package/lib/api/hospital-branches-api.d.ts +402 -0
  2. package/lib/api/hospital-branches-api.d.ts.map +1 -0
  3. package/lib/api/hospital-branches-api.js +697 -0
  4. package/lib/api/hospital-groups-api.d.ts +402 -0
  5. package/lib/api/hospital-groups-api.d.ts.map +1 -0
  6. package/lib/api/hospital-groups-api.js +697 -0
  7. package/lib/api.d.ts +2 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +2 -0
  10. package/lib/models/create-hospital-branch-command.d.ts +73 -0
  11. package/lib/models/create-hospital-branch-command.d.ts.map +1 -0
  12. package/lib/models/create-hospital-branch-command.js +15 -0
  13. package/lib/models/create-hospital-group-command.d.ts +67 -0
  14. package/lib/models/create-hospital-group-command.d.ts.map +1 -0
  15. package/lib/models/create-hospital-group-command.js +15 -0
  16. package/lib/models/hospital-branch-item-model.d.ts +80 -0
  17. package/lib/models/hospital-branch-item-model.d.ts.map +1 -0
  18. package/lib/models/hospital-branch-item-model.js +15 -0
  19. package/lib/models/hospital-branch-model.d.ts +98 -0
  20. package/lib/models/hospital-branch-model.d.ts.map +1 -0
  21. package/lib/models/hospital-branch-model.js +15 -0
  22. package/lib/models/hospital-branches-model.d.ts +33 -0
  23. package/lib/models/hospital-branches-model.d.ts.map +1 -0
  24. package/lib/models/hospital-branches-model.js +15 -0
  25. package/lib/models/hospital-group-item-model.d.ts +62 -0
  26. package/lib/models/hospital-group-item-model.d.ts.map +1 -0
  27. package/lib/models/hospital-group-item-model.js +15 -0
  28. package/lib/models/hospital-group-model.d.ts +80 -0
  29. package/lib/models/hospital-group-model.d.ts.map +1 -0
  30. package/lib/models/hospital-group-model.js +15 -0
  31. package/lib/models/hospital-groups-model.d.ts +33 -0
  32. package/lib/models/hospital-groups-model.d.ts.map +1 -0
  33. package/lib/models/hospital-groups-model.js +15 -0
  34. package/lib/models/index.d.ts +10 -0
  35. package/lib/models/index.d.ts.map +1 -1
  36. package/lib/models/index.js +10 -0
  37. package/lib/models/update-hospital-branch-command.d.ts +61 -0
  38. package/lib/models/update-hospital-branch-command.d.ts.map +1 -0
  39. package/lib/models/update-hospital-branch-command.js +15 -0
  40. package/lib/models/update-hospital-group-command.d.ts +67 -0
  41. package/lib/models/update-hospital-group-command.d.ts.map +1 -0
  42. package/lib/models/update-hospital-group-command.js +15 -0
  43. package/lib/models/update-web-app-command.d.ts +2 -2
  44. package/lib/models/web-app-item-model.d.ts +2 -2
  45. package/lib/models/web-app-model.d.ts +2 -2
  46. package/package.json +1 -1
  47. package/src/.openapi-generator/FILES +12 -0
  48. package/src/api/hospital-branches-api.ts +706 -0
  49. package/src/api/hospital-groups-api.ts +706 -0
  50. package/src/api.ts +2 -0
  51. package/src/models/create-hospital-branch-command.ts +78 -0
  52. package/src/models/create-hospital-group-command.ts +72 -0
  53. package/src/models/hospital-branch-item-model.ts +87 -0
  54. package/src/models/hospital-branch-model.ts +105 -0
  55. package/src/models/hospital-branches-model.ts +42 -0
  56. package/src/models/hospital-group-item-model.ts +69 -0
  57. package/src/models/hospital-group-model.ts +87 -0
  58. package/src/models/hospital-groups-model.ts +42 -0
  59. package/src/models/index.ts +10 -0
  60. package/src/models/update-hospital-branch-command.ts +66 -0
  61. package/src/models/update-hospital-group-command.ts +72 -0
  62. package/src/models/update-web-app-command.ts +2 -2
  63. package/src/models/web-app-item-model.ts +2 -2
  64. 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.HospitalGroupsApi = exports.HospitalGroupsApiFactory = exports.HospitalGroupsApiFp = exports.HospitalGroupsApiAxiosParamCreator = 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
+ * HospitalGroupsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var HospitalGroupsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Get hospitalGroups
98
+ * @param {string} [hospitalGroupId]
99
+ * @param {string} [hospitalId]
100
+ * @param {string} [languageCode]
101
+ * @param {string} [name]
102
+ * @param {number} [page]
103
+ * @param {number} [limit]
104
+ * @param {Date} [lastRetrieved]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, 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/hospitalgroups";
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 (hospitalGroupId !== undefined) {
131
+ localVarQueryParameter['HospitalGroupId'] = hospitalGroupId;
132
+ }
133
+ if (hospitalId !== undefined) {
134
+ localVarQueryParameter['HospitalId'] = hospitalId;
135
+ }
136
+ if (languageCode !== undefined) {
137
+ localVarQueryParameter['LanguageCode'] = languageCode;
138
+ }
139
+ if (name !== undefined) {
140
+ localVarQueryParameter['Name'] = name;
141
+ }
142
+ if (page !== undefined) {
143
+ localVarQueryParameter['page'] = page;
144
+ }
145
+ if (limit !== undefined) {
146
+ localVarQueryParameter['limit'] = limit;
147
+ }
148
+ if (lastRetrieved !== undefined) {
149
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
150
+ lastRetrieved.toISOString() :
151
+ lastRetrieved;
152
+ }
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 hospitalGroup
167
+ * @param {string} hospitalGroupId
168
+ * @param {boolean} [isPermanent]
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, 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 'hospitalGroupId' is not null or undefined
180
+ (0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdDelete', 'hospitalGroupId', hospitalGroupId);
181
+ localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
182
+ .replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
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 hospitalGroup
214
+ * @param {string} hospitalGroupId
215
+ * @param {string} [languageCode]
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, 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 'hospitalGroupId' is not null or undefined
227
+ (0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdGet', 'hospitalGroupId', hospitalGroupId);
228
+ localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
229
+ .replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
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 hospitalGroup
261
+ * @param {string} hospitalGroupId
262
+ * @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, 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 'hospitalGroupId' is not null or undefined
274
+ (0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdPut', 'hospitalGroupId', hospitalGroupId);
275
+ localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}"
276
+ .replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
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)(updateHospitalGroupCommand, 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 hospitalGroup
307
+ * @param {string} hospitalGroupId
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, 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 'hospitalGroupId' is not null or undefined
319
+ (0, common_1.assertParamExists)('apiV1HospitalgroupsHospitalGroupIdReactivatePut', 'hospitalGroupId', hospitalGroupId);
320
+ localVarPath = "/api/v1/hospitalgroups/{hospitalGroupId}/reactivate"
321
+ .replace("{".concat("hospitalGroupId", "}"), encodeURIComponent(String(hospitalGroupId)));
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 hospitalGroup
350
+ * @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ apiV1HospitalgroupsPost: function (createHospitalGroupCommand, 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/hospitalgroups";
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)(createHospitalGroupCommand, 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.HospitalGroupsApiAxiosParamCreator = HospitalGroupsApiAxiosParamCreator;
392
+ /**
393
+ * HospitalGroupsApi - functional programming interface
394
+ * @export
395
+ */
396
+ var HospitalGroupsApiFp = function (configuration) {
397
+ var localVarAxiosParamCreator = (0, exports.HospitalGroupsApiAxiosParamCreator)(configuration);
398
+ return {
399
+ /**
400
+ *
401
+ * @summary Get hospitalGroups
402
+ * @param {string} [hospitalGroupId]
403
+ * @param {string} [hospitalId]
404
+ * @param {string} [languageCode]
405
+ * @param {string} [name]
406
+ * @param {number} [page]
407
+ * @param {number} [limit]
408
+ * @param {Date} [lastRetrieved]
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, 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.apiV1HospitalgroupsGet(hospitalGroupId, hospitalId, languageCode, name, 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 hospitalGroup
428
+ * @param {string} hospitalGroupId
429
+ * @param {boolean} [isPermanent]
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, 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.apiV1HospitalgroupsHospitalGroupIdDelete(hospitalGroupId, 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 hospitalGroup
449
+ * @param {string} hospitalGroupId
450
+ * @param {string} [languageCode]
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, 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.apiV1HospitalgroupsHospitalGroupIdGet(hospitalGroupId, 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 hospitalGroup
470
+ * @param {string} hospitalGroupId
471
+ * @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, 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.apiV1HospitalgroupsHospitalGroupIdPut(hospitalGroupId, updateHospitalGroupCommand, 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 hospitalGroup
491
+ * @param {string} hospitalGroupId
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, 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.apiV1HospitalgroupsHospitalGroupIdReactivatePut(hospitalGroupId, 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 hospitalGroup
511
+ * @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ apiV1HospitalgroupsPost: function (createHospitalGroupCommand, 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.apiV1HospitalgroupsPost(createHospitalGroupCommand, 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.HospitalGroupsApiFp = HospitalGroupsApiFp;
531
+ /**
532
+ * HospitalGroupsApi - factory interface
533
+ * @export
534
+ */
535
+ var HospitalGroupsApiFactory = function (configuration, basePath, axios) {
536
+ var localVarFp = (0, exports.HospitalGroupsApiFp)(configuration);
537
+ return {
538
+ /**
539
+ *
540
+ * @summary Get hospitalGroups
541
+ * @param {string} [hospitalGroupId]
542
+ * @param {string} [hospitalId]
543
+ * @param {string} [languageCode]
544
+ * @param {string} [name]
545
+ * @param {number} [page]
546
+ * @param {number} [limit]
547
+ * @param {Date} [lastRetrieved]
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ apiV1HospitalgroupsGet: function (hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options) {
552
+ return localVarFp.apiV1HospitalgroupsGet(hospitalGroupId, hospitalId, languageCode, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
553
+ },
554
+ /**
555
+ *
556
+ * @summary Delete hospitalGroup
557
+ * @param {string} hospitalGroupId
558
+ * @param {boolean} [isPermanent]
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ apiV1HospitalgroupsHospitalGroupIdDelete: function (hospitalGroupId, isPermanent, options) {
563
+ return localVarFp.apiV1HospitalgroupsHospitalGroupIdDelete(hospitalGroupId, isPermanent, options).then(function (request) { return request(axios, basePath); });
564
+ },
565
+ /**
566
+ *
567
+ * @summary Get hospitalGroup
568
+ * @param {string} hospitalGroupId
569
+ * @param {string} [languageCode]
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ apiV1HospitalgroupsHospitalGroupIdGet: function (hospitalGroupId, languageCode, options) {
574
+ return localVarFp.apiV1HospitalgroupsHospitalGroupIdGet(hospitalGroupId, languageCode, options).then(function (request) { return request(axios, basePath); });
575
+ },
576
+ /**
577
+ *
578
+ * @summary Update hospitalGroup
579
+ * @param {string} hospitalGroupId
580
+ * @param {UpdateHospitalGroupCommand} [updateHospitalGroupCommand]
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ apiV1HospitalgroupsHospitalGroupIdPut: function (hospitalGroupId, updateHospitalGroupCommand, options) {
585
+ return localVarFp.apiV1HospitalgroupsHospitalGroupIdPut(hospitalGroupId, updateHospitalGroupCommand, options).then(function (request) { return request(axios, basePath); });
586
+ },
587
+ /**
588
+ *
589
+ * @summary Reactivate hospitalGroup
590
+ * @param {string} hospitalGroupId
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ apiV1HospitalgroupsHospitalGroupIdReactivatePut: function (hospitalGroupId, options) {
595
+ return localVarFp.apiV1HospitalgroupsHospitalGroupIdReactivatePut(hospitalGroupId, options).then(function (request) { return request(axios, basePath); });
596
+ },
597
+ /**
598
+ *
599
+ * @summary Create hospitalGroup
600
+ * @param {CreateHospitalGroupCommand} [createHospitalGroupCommand]
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ apiV1HospitalgroupsPost: function (createHospitalGroupCommand, options) {
605
+ return localVarFp.apiV1HospitalgroupsPost(createHospitalGroupCommand, options).then(function (request) { return request(axios, basePath); });
606
+ },
607
+ };
608
+ };
609
+ exports.HospitalGroupsApiFactory = HospitalGroupsApiFactory;
610
+ /**
611
+ * HospitalGroupsApi - object-oriented interface
612
+ * @export
613
+ * @class HospitalGroupsApi
614
+ * @extends {BaseAPI}
615
+ */
616
+ var HospitalGroupsApi = /** @class */ (function (_super) {
617
+ __extends(HospitalGroupsApi, _super);
618
+ function HospitalGroupsApi() {
619
+ return _super !== null && _super.apply(this, arguments) || this;
620
+ }
621
+ /**
622
+ *
623
+ * @summary Get hospitalGroups
624
+ * @param {HospitalGroupsApiApiV1HospitalgroupsGetRequest} requestParameters Request parameters.
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ * @memberof HospitalGroupsApi
628
+ */
629
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsGet = function (requestParameters, options) {
630
+ var _this = this;
631
+ if (requestParameters === void 0) { requestParameters = {}; }
632
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsGet(requestParameters.hospitalGroupId, requestParameters.hospitalId, requestParameters.languageCode, requestParameters.name, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
+ };
634
+ /**
635
+ *
636
+ * @summary Delete hospitalGroup
637
+ * @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdDeleteRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof HospitalGroupsApi
641
+ */
642
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdDelete = function (requestParameters, options) {
643
+ var _this = this;
644
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdDelete(requestParameters.hospitalGroupId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
645
+ };
646
+ /**
647
+ *
648
+ * @summary Get hospitalGroup
649
+ * @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdGetRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof HospitalGroupsApi
653
+ */
654
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdGet = function (requestParameters, options) {
655
+ var _this = this;
656
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdGet(requestParameters.hospitalGroupId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
657
+ };
658
+ /**
659
+ *
660
+ * @summary Update hospitalGroup
661
+ * @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdPutRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ * @memberof HospitalGroupsApi
665
+ */
666
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdPut = function (requestParameters, options) {
667
+ var _this = this;
668
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdPut(requestParameters.hospitalGroupId, requestParameters.updateHospitalGroupCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
669
+ };
670
+ /**
671
+ *
672
+ * @summary Reactivate hospitalGroup
673
+ * @param {HospitalGroupsApiApiV1HospitalgroupsHospitalGroupIdReactivatePutRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ * @memberof HospitalGroupsApi
677
+ */
678
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsHospitalGroupIdReactivatePut = function (requestParameters, options) {
679
+ var _this = this;
680
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsHospitalGroupIdReactivatePut(requestParameters.hospitalGroupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
681
+ };
682
+ /**
683
+ *
684
+ * @summary Create hospitalGroup
685
+ * @param {HospitalGroupsApiApiV1HospitalgroupsPostRequest} requestParameters Request parameters.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ * @memberof HospitalGroupsApi
689
+ */
690
+ HospitalGroupsApi.prototype.apiV1HospitalgroupsPost = function (requestParameters, options) {
691
+ var _this = this;
692
+ if (requestParameters === void 0) { requestParameters = {}; }
693
+ return (0, exports.HospitalGroupsApiFp)(this.configuration).apiV1HospitalgroupsPost(requestParameters.createHospitalGroupCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
694
+ };
695
+ return HospitalGroupsApi;
696
+ }(base_1.BaseAPI));
697
+ exports.HospitalGroupsApi = HospitalGroupsApi;