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,706 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateHospitalBranchCommand } from '../models';
25
+ // @ts-ignore
26
+ import { HospitalBranchModel } from '../models';
27
+ // @ts-ignore
28
+ import { HospitalBranchesModel } from '../models';
29
+ // @ts-ignore
30
+ import { ProblemDetails } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateHospitalBranchCommand } from '../models';
33
+ /**
34
+ * HospitalBranchesApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const HospitalBranchesApiAxiosParamCreator = function (configuration?: Configuration) {
38
+ return {
39
+ /**
40
+ *
41
+ * @summary Get hospitalBranches
42
+ * @param {string} [id]
43
+ * @param {string} [hospitalGroupId]
44
+ * @param {string} [hospitalId]
45
+ * @param {string} [languageCode]
46
+ * @param {number} [page]
47
+ * @param {number} [limit]
48
+ * @param {Date} [lastRetrieved]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ apiV1HospitalbranchesGet: async (id?: string, hospitalGroupId?: string, hospitalId?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ const localVarPath = `/api/v1/hospitalbranches`;
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+
61
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62
+ const localVarHeaderParameter = {} as any;
63
+ const localVarQueryParameter = {} as any;
64
+
65
+ // authentication oauth2 required
66
+ // oauth required
67
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
68
+
69
+ if (id !== undefined) {
70
+ localVarQueryParameter['Id'] = id;
71
+ }
72
+
73
+ if (hospitalGroupId !== undefined) {
74
+ localVarQueryParameter['HospitalGroupId'] = hospitalGroupId;
75
+ }
76
+
77
+ if (hospitalId !== undefined) {
78
+ localVarQueryParameter['HospitalId'] = hospitalId;
79
+ }
80
+
81
+ if (languageCode !== undefined) {
82
+ localVarQueryParameter['LanguageCode'] = languageCode;
83
+ }
84
+
85
+ if (page !== undefined) {
86
+ localVarQueryParameter['page'] = page;
87
+ }
88
+
89
+ if (limit !== undefined) {
90
+ localVarQueryParameter['limit'] = limit;
91
+ }
92
+
93
+ if (lastRetrieved !== undefined) {
94
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
95
+ (lastRetrieved as any).toISOString() :
96
+ lastRetrieved;
97
+ }
98
+
99
+
100
+
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
104
+
105
+ return {
106
+ url: toPathString(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ },
110
+ /**
111
+ *
112
+ * @summary Delete hospitalBranch
113
+ * @param {string} hospitalBranchId
114
+ * @param {boolean} [isPermanent]
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ apiV1HospitalbranchesHospitalBranchIdDelete: async (hospitalBranchId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
119
+ // verify required parameter 'hospitalBranchId' is not null or undefined
120
+ assertParamExists('apiV1HospitalbranchesHospitalBranchIdDelete', 'hospitalBranchId', hospitalBranchId)
121
+ const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}`
122
+ .replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)));
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+
130
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
131
+ const localVarHeaderParameter = {} as any;
132
+ const localVarQueryParameter = {} as any;
133
+
134
+ // authentication oauth2 required
135
+ // oauth required
136
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
137
+
138
+ if (isPermanent !== undefined) {
139
+ localVarQueryParameter['isPermanent'] = isPermanent;
140
+ }
141
+
142
+
143
+
144
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
+
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ /**
154
+ *
155
+ * @summary Get hospitalBranch
156
+ * @param {string} hospitalBranchId
157
+ * @param {string} [languageCode]
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ apiV1HospitalbranchesHospitalBranchIdGet: async (hospitalBranchId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ // verify required parameter 'hospitalBranchId' is not null or undefined
163
+ assertParamExists('apiV1HospitalbranchesHospitalBranchIdGet', 'hospitalBranchId', hospitalBranchId)
164
+ const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}`
165
+ .replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)));
166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ }
172
+
173
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
174
+ const localVarHeaderParameter = {} as any;
175
+ const localVarQueryParameter = {} as any;
176
+
177
+ // authentication oauth2 required
178
+ // oauth required
179
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
180
+
181
+ if (languageCode !== undefined) {
182
+ localVarQueryParameter['languageCode'] = languageCode;
183
+ }
184
+
185
+
186
+
187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
190
+
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ };
195
+ },
196
+ /**
197
+ *
198
+ * @summary Update hospitalBranch
199
+ * @param {string} hospitalBranchId
200
+ * @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ apiV1HospitalbranchesHospitalBranchIdPut: async (hospitalBranchId: string, updateHospitalBranchCommand?: UpdateHospitalBranchCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
+ // verify required parameter 'hospitalBranchId' is not null or undefined
206
+ assertParamExists('apiV1HospitalbranchesHospitalBranchIdPut', 'hospitalBranchId', hospitalBranchId)
207
+ const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}`
208
+ .replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)));
209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
211
+ let baseOptions;
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ }
215
+
216
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
217
+ const localVarHeaderParameter = {} as any;
218
+ const localVarQueryParameter = {} as any;
219
+
220
+ // authentication oauth2 required
221
+ // oauth required
222
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
223
+
224
+
225
+
226
+ localVarHeaderParameter['Content-Type'] = 'application/json';
227
+
228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
+ localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalBranchCommand, localVarRequestOptions, configuration)
232
+
233
+ return {
234
+ url: toPathString(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ };
237
+ },
238
+ /**
239
+ *
240
+ * @summary Reactivate hospitalBranch
241
+ * @param {string} hospitalBranchId
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ apiV1HospitalbranchesHospitalBranchIdReactivatePut: async (hospitalBranchId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
246
+ // verify required parameter 'hospitalBranchId' is not null or undefined
247
+ assertParamExists('apiV1HospitalbranchesHospitalBranchIdReactivatePut', 'hospitalBranchId', hospitalBranchId)
248
+ const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}/reactivate`
249
+ .replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)));
250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
252
+ let baseOptions;
253
+ if (configuration) {
254
+ baseOptions = configuration.baseOptions;
255
+ }
256
+
257
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
258
+ const localVarHeaderParameter = {} as any;
259
+ const localVarQueryParameter = {} as any;
260
+
261
+ // authentication oauth2 required
262
+ // oauth required
263
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
264
+
265
+
266
+
267
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
270
+
271
+ return {
272
+ url: toPathString(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ },
276
+ /**
277
+ *
278
+ * @summary Create hospitalBranch
279
+ * @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ apiV1HospitalbranchesPost: async (createHospitalBranchCommand?: CreateHospitalBranchCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
+ const localVarPath = `/api/v1/hospitalbranches`;
285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
+ let baseOptions;
288
+ if (configuration) {
289
+ baseOptions = configuration.baseOptions;
290
+ }
291
+
292
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
293
+ const localVarHeaderParameter = {} as any;
294
+ const localVarQueryParameter = {} as any;
295
+
296
+ // authentication oauth2 required
297
+ // oauth required
298
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
299
+
300
+
301
+
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+
304
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
307
+ localVarRequestOptions.data = serializeDataIfNeeded(createHospitalBranchCommand, localVarRequestOptions, configuration)
308
+
309
+ return {
310
+ url: toPathString(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ };
313
+ },
314
+ }
315
+ };
316
+
317
+ /**
318
+ * HospitalBranchesApi - functional programming interface
319
+ * @export
320
+ */
321
+ export const HospitalBranchesApiFp = function(configuration?: Configuration) {
322
+ const localVarAxiosParamCreator = HospitalBranchesApiAxiosParamCreator(configuration)
323
+ return {
324
+ /**
325
+ *
326
+ * @summary Get hospitalBranches
327
+ * @param {string} [id]
328
+ * @param {string} [hospitalGroupId]
329
+ * @param {string} [hospitalId]
330
+ * @param {string} [languageCode]
331
+ * @param {number} [page]
332
+ * @param {number} [limit]
333
+ * @param {Date} [lastRetrieved]
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ async apiV1HospitalbranchesGet(id?: string, hospitalGroupId?: string, hospitalId?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchesModel>> {
338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesGet(id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options);
339
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
+ },
341
+ /**
342
+ *
343
+ * @summary Delete hospitalBranch
344
+ * @param {string} hospitalBranchId
345
+ * @param {boolean} [isPermanent]
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ async apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options);
351
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
352
+ },
353
+ /**
354
+ *
355
+ * @summary Get hospitalBranch
356
+ * @param {string} hospitalBranchId
357
+ * @param {string} [languageCode]
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ async apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchModel>> {
362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options);
363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
+ },
365
+ /**
366
+ *
367
+ * @summary Update hospitalBranch
368
+ * @param {string} hospitalBranchId
369
+ * @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ async apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId: string, updateHospitalBranchCommand?: UpdateHospitalBranchCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchModel>> {
374
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options);
375
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
+ },
377
+ /**
378
+ *
379
+ * @summary Reactivate hospitalBranch
380
+ * @param {string} hospitalBranchId
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ async apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options);
386
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
387
+ },
388
+ /**
389
+ *
390
+ * @summary Create hospitalBranch
391
+ * @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ async apiV1HospitalbranchesPost(createHospitalBranchCommand?: CreateHospitalBranchCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchModel>> {
396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesPost(createHospitalBranchCommand, options);
397
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
398
+ },
399
+ }
400
+ };
401
+
402
+ /**
403
+ * HospitalBranchesApi - factory interface
404
+ * @export
405
+ */
406
+ export const HospitalBranchesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
407
+ const localVarFp = HospitalBranchesApiFp(configuration)
408
+ return {
409
+ /**
410
+ *
411
+ * @summary Get hospitalBranches
412
+ * @param {string} [id]
413
+ * @param {string} [hospitalGroupId]
414
+ * @param {string} [hospitalId]
415
+ * @param {string} [languageCode]
416
+ * @param {number} [page]
417
+ * @param {number} [limit]
418
+ * @param {Date} [lastRetrieved]
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ apiV1HospitalbranchesGet(id?: string, hospitalGroupId?: string, hospitalId?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalBranchesModel> {
423
+ return localVarFp.apiV1HospitalbranchesGet(id, hospitalGroupId, hospitalId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
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(hospitalBranchId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
434
+ return localVarFp.apiV1HospitalbranchesHospitalBranchIdDelete(hospitalBranchId, isPermanent, options).then((request) => request(axios, basePath));
435
+ },
436
+ /**
437
+ *
438
+ * @summary Get hospitalBranch
439
+ * @param {string} hospitalBranchId
440
+ * @param {string} [languageCode]
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId: string, languageCode?: string, options?: any): AxiosPromise<HospitalBranchModel> {
445
+ return localVarFp.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options).then((request) => request(axios, basePath));
446
+ },
447
+ /**
448
+ *
449
+ * @summary Update hospitalBranch
450
+ * @param {string} hospitalBranchId
451
+ * @param {UpdateHospitalBranchCommand} [updateHospitalBranchCommand]
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId: string, updateHospitalBranchCommand?: UpdateHospitalBranchCommand, options?: any): AxiosPromise<HospitalBranchModel> {
456
+ return localVarFp.apiV1HospitalbranchesHospitalBranchIdPut(hospitalBranchId, updateHospitalBranchCommand, options).then((request) => request(axios, basePath));
457
+ },
458
+ /**
459
+ *
460
+ * @summary Reactivate hospitalBranch
461
+ * @param {string} hospitalBranchId
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId: string, options?: any): AxiosPromise<boolean> {
466
+ return localVarFp.apiV1HospitalbranchesHospitalBranchIdReactivatePut(hospitalBranchId, options).then((request) => request(axios, basePath));
467
+ },
468
+ /**
469
+ *
470
+ * @summary Create hospitalBranch
471
+ * @param {CreateHospitalBranchCommand} [createHospitalBranchCommand]
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ apiV1HospitalbranchesPost(createHospitalBranchCommand?: CreateHospitalBranchCommand, options?: any): AxiosPromise<HospitalBranchModel> {
476
+ return localVarFp.apiV1HospitalbranchesPost(createHospitalBranchCommand, options).then((request) => request(axios, basePath));
477
+ },
478
+ };
479
+ };
480
+
481
+ /**
482
+ * Request parameters for apiV1HospitalbranchesGet operation in HospitalBranchesApi.
483
+ * @export
484
+ * @interface HospitalBranchesApiApiV1HospitalbranchesGetRequest
485
+ */
486
+ export interface HospitalBranchesApiApiV1HospitalbranchesGetRequest {
487
+ /**
488
+ *
489
+ * @type {string}
490
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
491
+ */
492
+ readonly id?: string
493
+
494
+ /**
495
+ *
496
+ * @type {string}
497
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
498
+ */
499
+ readonly hospitalGroupId?: string
500
+
501
+ /**
502
+ *
503
+ * @type {string}
504
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
505
+ */
506
+ readonly hospitalId?: string
507
+
508
+ /**
509
+ *
510
+ * @type {string}
511
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
512
+ */
513
+ readonly languageCode?: string
514
+
515
+ /**
516
+ *
517
+ * @type {number}
518
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
519
+ */
520
+ readonly page?: number
521
+
522
+ /**
523
+ *
524
+ * @type {number}
525
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
526
+ */
527
+ readonly limit?: number
528
+
529
+ /**
530
+ *
531
+ * @type {Date}
532
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesGet
533
+ */
534
+ readonly lastRetrieved?: Date
535
+ }
536
+
537
+ /**
538
+ * Request parameters for apiV1HospitalbranchesHospitalBranchIdDelete operation in HospitalBranchesApi.
539
+ * @export
540
+ * @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest
541
+ */
542
+ export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest {
543
+ /**
544
+ *
545
+ * @type {string}
546
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDelete
547
+ */
548
+ readonly hospitalBranchId: string
549
+
550
+ /**
551
+ *
552
+ * @type {boolean}
553
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDelete
554
+ */
555
+ readonly isPermanent?: boolean
556
+ }
557
+
558
+ /**
559
+ * Request parameters for apiV1HospitalbranchesHospitalBranchIdGet operation in HospitalBranchesApi.
560
+ * @export
561
+ * @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest
562
+ */
563
+ export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest {
564
+ /**
565
+ *
566
+ * @type {string}
567
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGet
568
+ */
569
+ readonly hospitalBranchId: string
570
+
571
+ /**
572
+ *
573
+ * @type {string}
574
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGet
575
+ */
576
+ readonly languageCode?: string
577
+ }
578
+
579
+ /**
580
+ * Request parameters for apiV1HospitalbranchesHospitalBranchIdPut operation in HospitalBranchesApi.
581
+ * @export
582
+ * @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest
583
+ */
584
+ export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest {
585
+ /**
586
+ *
587
+ * @type {string}
588
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPut
589
+ */
590
+ readonly hospitalBranchId: string
591
+
592
+ /**
593
+ *
594
+ * @type {UpdateHospitalBranchCommand}
595
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPut
596
+ */
597
+ readonly updateHospitalBranchCommand?: UpdateHospitalBranchCommand
598
+ }
599
+
600
+ /**
601
+ * Request parameters for apiV1HospitalbranchesHospitalBranchIdReactivatePut operation in HospitalBranchesApi.
602
+ * @export
603
+ * @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest
604
+ */
605
+ export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest {
606
+ /**
607
+ *
608
+ * @type {string}
609
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePut
610
+ */
611
+ readonly hospitalBranchId: string
612
+ }
613
+
614
+ /**
615
+ * Request parameters for apiV1HospitalbranchesPost operation in HospitalBranchesApi.
616
+ * @export
617
+ * @interface HospitalBranchesApiApiV1HospitalbranchesPostRequest
618
+ */
619
+ export interface HospitalBranchesApiApiV1HospitalbranchesPostRequest {
620
+ /**
621
+ *
622
+ * @type {CreateHospitalBranchCommand}
623
+ * @memberof HospitalBranchesApiApiV1HospitalbranchesPost
624
+ */
625
+ readonly createHospitalBranchCommand?: CreateHospitalBranchCommand
626
+ }
627
+
628
+ /**
629
+ * HospitalBranchesApi - object-oriented interface
630
+ * @export
631
+ * @class HospitalBranchesApi
632
+ * @extends {BaseAPI}
633
+ */
634
+ export class HospitalBranchesApi extends BaseAPI {
635
+ /**
636
+ *
637
+ * @summary Get hospitalBranches
638
+ * @param {HospitalBranchesApiApiV1HospitalbranchesGetRequest} requestParameters Request parameters.
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ * @memberof HospitalBranchesApi
642
+ */
643
+ public apiV1HospitalbranchesGet(requestParameters: HospitalBranchesApiApiV1HospitalbranchesGetRequest = {}, options?: AxiosRequestConfig) {
644
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesGet(requestParameters.id, requestParameters.hospitalGroupId, requestParameters.hospitalId, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
645
+ }
646
+
647
+ /**
648
+ *
649
+ * @summary Delete hospitalBranch
650
+ * @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest} requestParameters Request parameters.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ * @memberof HospitalBranchesApi
654
+ */
655
+ public apiV1HospitalbranchesHospitalBranchIdDelete(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdDeleteRequest, options?: AxiosRequestConfig) {
656
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdDelete(requestParameters.hospitalBranchId, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
657
+ }
658
+
659
+ /**
660
+ *
661
+ * @summary Get hospitalBranch
662
+ * @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest} requestParameters Request parameters.
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ * @memberof HospitalBranchesApi
666
+ */
667
+ public apiV1HospitalbranchesHospitalBranchIdGet(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequest, options?: AxiosRequestConfig) {
668
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdGet(requestParameters.hospitalBranchId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
669
+ }
670
+
671
+ /**
672
+ *
673
+ * @summary Update hospitalBranch
674
+ * @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest} requestParameters Request parameters.
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ * @memberof HospitalBranchesApi
678
+ */
679
+ public apiV1HospitalbranchesHospitalBranchIdPut(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdPutRequest, options?: AxiosRequestConfig) {
680
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdPut(requestParameters.hospitalBranchId, requestParameters.updateHospitalBranchCommand, options).then((request) => request(this.axios, this.basePath));
681
+ }
682
+
683
+ /**
684
+ *
685
+ * @summary Reactivate hospitalBranch
686
+ * @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest} requestParameters Request parameters.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ * @memberof HospitalBranchesApi
690
+ */
691
+ public apiV1HospitalbranchesHospitalBranchIdReactivatePut(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdReactivatePutRequest, options?: AxiosRequestConfig) {
692
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdReactivatePut(requestParameters.hospitalBranchId, options).then((request) => request(this.axios, this.basePath));
693
+ }
694
+
695
+ /**
696
+ *
697
+ * @summary Create hospitalBranch
698
+ * @param {HospitalBranchesApiApiV1HospitalbranchesPostRequest} requestParameters Request parameters.
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ * @memberof HospitalBranchesApi
702
+ */
703
+ public apiV1HospitalbranchesPost(requestParameters: HospitalBranchesApiApiV1HospitalbranchesPostRequest = {}, options?: AxiosRequestConfig) {
704
+ return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesPost(requestParameters.createHospitalBranchCommand, options).then((request) => request(this.axios, this.basePath));
705
+ }
706
+ }