ch-admin-api-client-typescript 5.19.4 → 5.19.10
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 +185 -0
- package/lib/api/hospital-branches-api.d.ts.map +1 -1
- package/lib/api/hospital-branches-api.js +283 -0
- package/lib/models/add-hospital-into-branch-command.d.ts +31 -0
- package/lib/models/add-hospital-into-branch-command.d.ts.map +1 -0
- package/lib/models/add-hospital-into-branch-command.js +15 -0
- package/lib/models/appointment-model.d.ts +7 -0
- package/lib/models/appointment-model.d.ts.map +1 -1
- package/lib/models/charge-status.d.ts +23 -0
- package/lib/models/charge-status.d.ts.map +1 -0
- package/lib/models/charge-status.js +26 -0
- package/lib/models/create-hospital-branch-command.d.ts +0 -6
- package/lib/models/create-hospital-branch-command.d.ts.map +1 -1
- package/lib/models/hospital-branch-item-mapping-model.d.ts +38 -0
- package/lib/models/hospital-branch-item-mapping-model.d.ts.map +1 -0
- package/lib/models/hospital-branch-item-mapping-model.js +15 -0
- package/lib/models/hospital-branch-item-model.d.ts +0 -12
- package/lib/models/hospital-branch-item-model.d.ts.map +1 -1
- package/lib/models/hospital-branch-model.d.ts +6 -11
- package/lib/models/hospital-branch-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +7 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -0
- package/lib/models/payment-model.d.ts +72 -0
- package/lib/models/payment-model.d.ts.map +1 -0
- package/lib/models/payment-model.js +15 -0
- package/lib/models/payment-status.d.ts +24 -0
- package/lib/models/payment-status.d.ts.map +1 -0
- package/lib/models/payment-status.js +27 -0
- package/lib/models/refund-status.d.ts +23 -0
- package/lib/models/refund-status.d.ts.map +1 -0
- package/lib/models/refund-status.js +26 -0
- package/lib/models/update-hospital-branch-item-command.d.ts +31 -0
- package/lib/models/update-hospital-branch-item-command.d.ts.map +1 -0
- package/lib/models/update-hospital-branch-item-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +7 -0
- package/src/api/hospital-branches-api.ts +324 -0
- package/src/models/add-hospital-into-branch-command.ts +36 -0
- package/src/models/appointment-model.ts +9 -0
- package/src/models/charge-status.ts +32 -0
- package/src/models/create-hospital-branch-command.ts +0 -6
- package/src/models/hospital-branch-item-mapping-model.ts +45 -0
- package/src/models/hospital-branch-item-model.ts +0 -12
- package/src/models/hospital-branch-model.ts +8 -11
- package/src/models/index.ts +7 -0
- package/src/models/payment-model.ts +87 -0
- package/src/models/payment-status.ts +33 -0
- package/src/models/refund-status.ts +32 -0
- package/src/models/update-hospital-branch-item-command.ts +36 -0
|
@@ -66,6 +66,7 @@ models/account-settings-result.ts
|
|
|
66
66
|
models/accreditation-item-model.ts
|
|
67
67
|
models/accreditation-model.ts
|
|
68
68
|
models/accreditations-model.ts
|
|
69
|
+
models/add-hospital-into-branch-command.ts
|
|
69
70
|
models/admin-message-model.ts
|
|
70
71
|
models/app-version-item-model.ts
|
|
71
72
|
models/app-version-model.ts
|
|
@@ -130,6 +131,7 @@ models/chadmin-item-model.ts
|
|
|
130
131
|
models/chadmin-model.ts
|
|
131
132
|
models/chadmins-model.ts
|
|
132
133
|
models/change-email-command.ts
|
|
134
|
+
models/charge-status.ts
|
|
133
135
|
models/chat-user-model.ts
|
|
134
136
|
models/chat-users-model.ts
|
|
135
137
|
models/check-notifications-command.ts
|
|
@@ -286,6 +288,7 @@ models/header-navigation-item-model.ts
|
|
|
286
288
|
models/hospital-accreditation-item-model.ts
|
|
287
289
|
models/hospital-accreditation-model.ts
|
|
288
290
|
models/hospital-accreditations-model.ts
|
|
291
|
+
models/hospital-branch-item-mapping-model.ts
|
|
289
292
|
models/hospital-branch-item-model.ts
|
|
290
293
|
models/hospital-branch-model.ts
|
|
291
294
|
models/hospital-branches-model.ts
|
|
@@ -374,6 +377,8 @@ models/patient-item-model.ts
|
|
|
374
377
|
models/patient-model.ts
|
|
375
378
|
models/patients-model.ts
|
|
376
379
|
models/payment-method.ts
|
|
380
|
+
models/payment-model.ts
|
|
381
|
+
models/payment-status.ts
|
|
377
382
|
models/period-units.ts
|
|
378
383
|
models/plan-hospital-item-model.ts
|
|
379
384
|
models/plan-hospital-model.ts
|
|
@@ -390,6 +395,7 @@ models/problem-details.ts
|
|
|
390
395
|
models/procedure.ts
|
|
391
396
|
models/recurring-interval.ts
|
|
392
397
|
models/refund-policy.ts
|
|
398
|
+
models/refund-status.ts
|
|
393
399
|
models/reject-appointment-command.ts
|
|
394
400
|
models/reject-reason.ts
|
|
395
401
|
models/retrieve-sub-accounts-embedded.ts
|
|
@@ -527,6 +533,7 @@ models/update-faq-command.ts
|
|
|
527
533
|
models/update-grade-command.ts
|
|
528
534
|
models/update-hospital-bank-account-info-command.ts
|
|
529
535
|
models/update-hospital-branch-command.ts
|
|
536
|
+
models/update-hospital-branch-item-command.ts
|
|
530
537
|
models/update-hospital-command.ts
|
|
531
538
|
models/update-hospital-contact-command.ts
|
|
532
539
|
models/update-hospital-equipment-command.ts
|
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { AddHospitalIntoBranchCommand } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreateHospitalBranchCommand } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { HospitalBranchModel } from '../models';
|
|
@@ -30,6 +32,8 @@ import { HospitalBranchesModel } from '../models';
|
|
|
30
32
|
import { ProblemDetails } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { UpdateHospitalBranchCommand } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateHospitalBranchItemCommand } from '../models';
|
|
33
37
|
/**
|
|
34
38
|
* HospitalBranchesApi - axios parameter creator
|
|
35
39
|
* @export
|
|
@@ -193,6 +197,140 @@ export const HospitalBranchesApiAxiosParamCreator = function (configuration?: Co
|
|
|
193
197
|
options: localVarRequestOptions,
|
|
194
198
|
};
|
|
195
199
|
},
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary Remove hospital from HospitalBranch
|
|
203
|
+
* @param {string} hospitalBranchId
|
|
204
|
+
* @param {string} hospitalId
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete: async (hospitalBranchId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
209
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
210
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete', 'hospitalBranchId', hospitalBranchId)
|
|
211
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
212
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
|
|
213
|
+
const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}/hospitals/{hospitalId}`
|
|
214
|
+
.replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)))
|
|
215
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
218
|
+
let baseOptions;
|
|
219
|
+
if (configuration) {
|
|
220
|
+
baseOptions = configuration.baseOptions;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
224
|
+
const localVarHeaderParameter = {} as any;
|
|
225
|
+
const localVarQueryParameter = {} as any;
|
|
226
|
+
|
|
227
|
+
// authentication oauth2 required
|
|
228
|
+
// oauth required
|
|
229
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
url: toPathString(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @summary Add hospital into HospitalBranch
|
|
245
|
+
* @param {string} hospitalBranchId
|
|
246
|
+
* @param {string} hospitalId
|
|
247
|
+
* @param {AddHospitalIntoBranchCommand} [addHospitalIntoBranchCommand]
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost: async (hospitalBranchId: string, hospitalId: string, addHospitalIntoBranchCommand?: AddHospitalIntoBranchCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
252
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
253
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost', 'hospitalBranchId', hospitalBranchId)
|
|
254
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
255
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost', 'hospitalId', hospitalId)
|
|
256
|
+
const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}/hospitals/{hospitalId}`
|
|
257
|
+
.replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)))
|
|
258
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
267
|
+
const localVarHeaderParameter = {} as any;
|
|
268
|
+
const localVarQueryParameter = {} as any;
|
|
269
|
+
|
|
270
|
+
// authentication oauth2 required
|
|
271
|
+
// oauth required
|
|
272
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
277
|
+
|
|
278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
281
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addHospitalIntoBranchCommand, localVarRequestOptions, configuration)
|
|
282
|
+
|
|
283
|
+
return {
|
|
284
|
+
url: toPathString(localVarUrlObj),
|
|
285
|
+
options: localVarRequestOptions,
|
|
286
|
+
};
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Update hospitalBranchItem
|
|
291
|
+
* @param {string} hospitalBranchId
|
|
292
|
+
* @param {string} hospitalId
|
|
293
|
+
* @param {UpdateHospitalBranchItemCommand} [updateHospitalBranchItemCommand]
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut: async (hospitalBranchId: string, hospitalId: string, updateHospitalBranchItemCommand?: UpdateHospitalBranchItemCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
298
|
+
// verify required parameter 'hospitalBranchId' is not null or undefined
|
|
299
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut', 'hospitalBranchId', hospitalBranchId)
|
|
300
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
301
|
+
assertParamExists('apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut', 'hospitalId', hospitalId)
|
|
302
|
+
const localVarPath = `/api/v1/hospitalbranches/{hospitalBranchId}/hospitals/{hospitalId}`
|
|
303
|
+
.replace(`{${"hospitalBranchId"}}`, encodeURIComponent(String(hospitalBranchId)))
|
|
304
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
306
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
307
|
+
let baseOptions;
|
|
308
|
+
if (configuration) {
|
|
309
|
+
baseOptions = configuration.baseOptions;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
313
|
+
const localVarHeaderParameter = {} as any;
|
|
314
|
+
const localVarQueryParameter = {} as any;
|
|
315
|
+
|
|
316
|
+
// authentication oauth2 required
|
|
317
|
+
// oauth required
|
|
318
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
323
|
+
|
|
324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalBranchItemCommand, localVarRequestOptions, configuration)
|
|
328
|
+
|
|
329
|
+
return {
|
|
330
|
+
url: toPathString(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions,
|
|
332
|
+
};
|
|
333
|
+
},
|
|
196
334
|
/**
|
|
197
335
|
*
|
|
198
336
|
* @summary Update hospitalBranch
|
|
@@ -362,6 +500,44 @@ export const HospitalBranchesApiFp = function(configuration?: Configuration) {
|
|
|
362
500
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options);
|
|
363
501
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
502
|
},
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Remove hospital from HospitalBranch
|
|
506
|
+
* @param {string} hospitalBranchId
|
|
507
|
+
* @param {string} hospitalId
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
async apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(hospitalBranchId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(hospitalBranchId, hospitalId, options);
|
|
513
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
514
|
+
},
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @summary Add hospital into HospitalBranch
|
|
518
|
+
* @param {string} hospitalBranchId
|
|
519
|
+
* @param {string} hospitalId
|
|
520
|
+
* @param {AddHospitalIntoBranchCommand} [addHospitalIntoBranchCommand]
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
async apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(hospitalBranchId: string, hospitalId: string, addHospitalIntoBranchCommand?: AddHospitalIntoBranchCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchModel>> {
|
|
525
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(hospitalBranchId, hospitalId, addHospitalIntoBranchCommand, options);
|
|
526
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @summary Update hospitalBranchItem
|
|
531
|
+
* @param {string} hospitalBranchId
|
|
532
|
+
* @param {string} hospitalId
|
|
533
|
+
* @param {UpdateHospitalBranchItemCommand} [updateHospitalBranchItemCommand]
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
async apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(hospitalBranchId: string, hospitalId: string, updateHospitalBranchItemCommand?: UpdateHospitalBranchItemCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalBranchModel>> {
|
|
538
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(hospitalBranchId, hospitalId, updateHospitalBranchItemCommand, options);
|
|
539
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
540
|
+
},
|
|
365
541
|
/**
|
|
366
542
|
*
|
|
367
543
|
* @summary Update hospitalBranch
|
|
@@ -444,6 +620,41 @@ export const HospitalBranchesApiFactory = function (configuration?: Configuratio
|
|
|
444
620
|
apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId: string, languageCode?: string, options?: any): AxiosPromise<HospitalBranchModel> {
|
|
445
621
|
return localVarFp.apiV1HospitalbranchesHospitalBranchIdGet(hospitalBranchId, languageCode, options).then((request) => request(axios, basePath));
|
|
446
622
|
},
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @summary Remove hospital from HospitalBranch
|
|
626
|
+
* @param {string} hospitalBranchId
|
|
627
|
+
* @param {string} hospitalId
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(hospitalBranchId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
|
|
632
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(hospitalBranchId, hospitalId, options).then((request) => request(axios, basePath));
|
|
633
|
+
},
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @summary Add hospital into HospitalBranch
|
|
637
|
+
* @param {string} hospitalBranchId
|
|
638
|
+
* @param {string} hospitalId
|
|
639
|
+
* @param {AddHospitalIntoBranchCommand} [addHospitalIntoBranchCommand]
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(hospitalBranchId: string, hospitalId: string, addHospitalIntoBranchCommand?: AddHospitalIntoBranchCommand, options?: any): AxiosPromise<HospitalBranchModel> {
|
|
644
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(hospitalBranchId, hospitalId, addHospitalIntoBranchCommand, options).then((request) => request(axios, basePath));
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @summary Update hospitalBranchItem
|
|
649
|
+
* @param {string} hospitalBranchId
|
|
650
|
+
* @param {string} hospitalId
|
|
651
|
+
* @param {UpdateHospitalBranchItemCommand} [updateHospitalBranchItemCommand]
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(hospitalBranchId: string, hospitalId: string, updateHospitalBranchItemCommand?: UpdateHospitalBranchItemCommand, options?: any): AxiosPromise<HospitalBranchModel> {
|
|
656
|
+
return localVarFp.apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(hospitalBranchId, hospitalId, updateHospitalBranchItemCommand, options).then((request) => request(axios, basePath));
|
|
657
|
+
},
|
|
447
658
|
/**
|
|
448
659
|
*
|
|
449
660
|
* @summary Update hospitalBranch
|
|
@@ -576,6 +787,83 @@ export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdGetRequ
|
|
|
576
787
|
readonly languageCode?: string
|
|
577
788
|
}
|
|
578
789
|
|
|
790
|
+
/**
|
|
791
|
+
* Request parameters for apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete operation in HospitalBranchesApi.
|
|
792
|
+
* @export
|
|
793
|
+
* @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDeleteRequest
|
|
794
|
+
*/
|
|
795
|
+
export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDeleteRequest {
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete
|
|
800
|
+
*/
|
|
801
|
+
readonly hospitalBranchId: string
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete
|
|
807
|
+
*/
|
|
808
|
+
readonly hospitalId: string
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Request parameters for apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost operation in HospitalBranchesApi.
|
|
813
|
+
* @export
|
|
814
|
+
* @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPostRequest
|
|
815
|
+
*/
|
|
816
|
+
export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPostRequest {
|
|
817
|
+
/**
|
|
818
|
+
*
|
|
819
|
+
* @type {string}
|
|
820
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost
|
|
821
|
+
*/
|
|
822
|
+
readonly hospitalBranchId: string
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost
|
|
828
|
+
*/
|
|
829
|
+
readonly hospitalId: string
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @type {AddHospitalIntoBranchCommand}
|
|
834
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost
|
|
835
|
+
*/
|
|
836
|
+
readonly addHospitalIntoBranchCommand?: AddHospitalIntoBranchCommand
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Request parameters for apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut operation in HospitalBranchesApi.
|
|
841
|
+
* @export
|
|
842
|
+
* @interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPutRequest
|
|
843
|
+
*/
|
|
844
|
+
export interface HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPutRequest {
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @type {string}
|
|
848
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut
|
|
849
|
+
*/
|
|
850
|
+
readonly hospitalBranchId: string
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @type {string}
|
|
855
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut
|
|
856
|
+
*/
|
|
857
|
+
readonly hospitalId: string
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
*
|
|
861
|
+
* @type {UpdateHospitalBranchItemCommand}
|
|
862
|
+
* @memberof HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut
|
|
863
|
+
*/
|
|
864
|
+
readonly updateHospitalBranchItemCommand?: UpdateHospitalBranchItemCommand
|
|
865
|
+
}
|
|
866
|
+
|
|
579
867
|
/**
|
|
580
868
|
* Request parameters for apiV1HospitalbranchesHospitalBranchIdPut operation in HospitalBranchesApi.
|
|
581
869
|
* @export
|
|
@@ -668,6 +956,42 @@ export class HospitalBranchesApi extends BaseAPI {
|
|
|
668
956
|
return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdGet(requestParameters.hospitalBranchId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
669
957
|
}
|
|
670
958
|
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @summary Remove hospital from HospitalBranch
|
|
962
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDeleteRequest} requestParameters Request parameters.
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
* @memberof HospitalBranchesApi
|
|
966
|
+
*/
|
|
967
|
+
public apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
968
|
+
return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdDelete(requestParameters.hospitalBranchId, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
*
|
|
973
|
+
* @summary Add hospital into HospitalBranch
|
|
974
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPostRequest} requestParameters Request parameters.
|
|
975
|
+
* @param {*} [options] Override http request option.
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
* @memberof HospitalBranchesApi
|
|
978
|
+
*/
|
|
979
|
+
public apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPostRequest, options?: AxiosRequestConfig) {
|
|
980
|
+
return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPost(requestParameters.hospitalBranchId, requestParameters.hospitalId, requestParameters.addHospitalIntoBranchCommand, options).then((request) => request(this.axios, this.basePath));
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* @summary Update hospitalBranchItem
|
|
986
|
+
* @param {HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPutRequest} requestParameters Request parameters.
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
* @memberof HospitalBranchesApi
|
|
990
|
+
*/
|
|
991
|
+
public apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(requestParameters: HospitalBranchesApiApiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPutRequest, options?: AxiosRequestConfig) {
|
|
992
|
+
return HospitalBranchesApiFp(this.configuration).apiV1HospitalbranchesHospitalBranchIdHospitalsHospitalIdPut(requestParameters.hospitalBranchId, requestParameters.hospitalId, requestParameters.updateHospitalBranchItemCommand, options).then((request) => request(this.axios, this.basePath));
|
|
993
|
+
}
|
|
994
|
+
|
|
671
995
|
/**
|
|
672
996
|
*
|
|
673
997
|
* @summary Update hospitalBranch
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AddHospitalIntoBranchCommand
|
|
21
|
+
*/
|
|
22
|
+
export interface AddHospitalIntoBranchCommand {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AddHospitalIntoBranchCommand
|
|
27
|
+
*/
|
|
28
|
+
'languageCode'?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof AddHospitalIntoBranchCommand
|
|
33
|
+
*/
|
|
34
|
+
'order'?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -33,6 +33,9 @@ import { Gender } from './gender';
|
|
|
33
33
|
import { MediaModel } from './media-model';
|
|
34
34
|
// May contain unused imports in some cases
|
|
35
35
|
// @ts-ignore
|
|
36
|
+
import { PaymentModel } from './payment-model';
|
|
37
|
+
// May contain unused imports in some cases
|
|
38
|
+
// @ts-ignore
|
|
36
39
|
import { RejectReason } from './reject-reason';
|
|
37
40
|
|
|
38
41
|
/**
|
|
@@ -317,5 +320,11 @@ export interface AppointmentModel {
|
|
|
317
320
|
* @memberof AppointmentModel
|
|
318
321
|
*/
|
|
319
322
|
'medias'?: Array<MediaModel> | null;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @type {PaymentModel}
|
|
326
|
+
* @memberof AppointmentModel
|
|
327
|
+
*/
|
|
328
|
+
'payment'?: PaymentModel;
|
|
320
329
|
}
|
|
321
330
|
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const ChargeStatus = {
|
|
24
|
+
Pending: 'Pending',
|
|
25
|
+
Succeeded: 'Succeeded',
|
|
26
|
+
Failed: 'Failed'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type ChargeStatus = typeof ChargeStatus[keyof typeof ChargeStatus];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -26,12 +26,6 @@ export interface CreateHospitalBranchCommand {
|
|
|
26
26
|
* @memberof CreateHospitalBranchCommand
|
|
27
27
|
*/
|
|
28
28
|
'hospitalGroupId'?: string;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof CreateHospitalBranchCommand
|
|
33
|
-
*/
|
|
34
|
-
'hospitalId'?: string;
|
|
35
29
|
/**
|
|
36
30
|
*
|
|
37
31
|
* @type {string}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { HospitalSimpleItemModel } from './hospital-simple-item-model';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface HospitalBranchItemMappingModel
|
|
24
|
+
*/
|
|
25
|
+
export interface HospitalBranchItemMappingModel {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof HospitalBranchItemMappingModel
|
|
30
|
+
*/
|
|
31
|
+
'id'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof HospitalBranchItemMappingModel
|
|
36
|
+
*/
|
|
37
|
+
'hospitalId'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {HospitalSimpleItemModel}
|
|
41
|
+
* @memberof HospitalBranchItemMappingModel
|
|
42
|
+
*/
|
|
43
|
+
'hospital'?: HospitalSimpleItemModel;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -41,12 +41,6 @@ export interface HospitalBranchItemModel {
|
|
|
41
41
|
* @memberof HospitalBranchItemModel
|
|
42
42
|
*/
|
|
43
43
|
'hospitalGroupId'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof HospitalBranchItemModel
|
|
48
|
-
*/
|
|
49
|
-
'hospitalId'?: string;
|
|
50
44
|
/**
|
|
51
45
|
*
|
|
52
46
|
* @type {number}
|
|
@@ -77,11 +71,5 @@ export interface HospitalBranchItemModel {
|
|
|
77
71
|
* @memberof HospitalBranchItemModel
|
|
78
72
|
*/
|
|
79
73
|
'hospitalGroupName'?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof HospitalBranchItemModel
|
|
84
|
-
*/
|
|
85
|
-
'hospitalName'?: string | null;
|
|
86
74
|
}
|
|
87
75
|
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { AuditableEntityModel } from './auditable-entity-model';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { HospitalBranchItemMappingModel } from './hospital-branch-item-mapping-model';
|
|
19
22
|
|
|
20
23
|
/**
|
|
21
24
|
*
|
|
@@ -41,12 +44,6 @@ export interface HospitalBranchModel {
|
|
|
41
44
|
* @memberof HospitalBranchModel
|
|
42
45
|
*/
|
|
43
46
|
'hospitalGroupId'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof HospitalBranchModel
|
|
48
|
-
*/
|
|
49
|
-
'hospitalId'?: string;
|
|
50
47
|
/**
|
|
51
48
|
*
|
|
52
49
|
* @type {number}
|
|
@@ -82,24 +79,24 @@ export interface HospitalBranchModel {
|
|
|
82
79
|
* @type {string}
|
|
83
80
|
* @memberof HospitalBranchModel
|
|
84
81
|
*/
|
|
85
|
-
'
|
|
82
|
+
'description'?: string | null;
|
|
86
83
|
/**
|
|
87
84
|
*
|
|
88
85
|
* @type {string}
|
|
89
86
|
* @memberof HospitalBranchModel
|
|
90
87
|
*/
|
|
91
|
-
'
|
|
88
|
+
'overview'?: string | null;
|
|
92
89
|
/**
|
|
93
90
|
*
|
|
94
91
|
* @type {string}
|
|
95
92
|
* @memberof HospitalBranchModel
|
|
96
93
|
*/
|
|
97
|
-
'
|
|
94
|
+
'content'?: string | null;
|
|
98
95
|
/**
|
|
99
96
|
*
|
|
100
|
-
* @type {
|
|
97
|
+
* @type {Array<HospitalBranchItemMappingModel>}
|
|
101
98
|
* @memberof HospitalBranchModel
|
|
102
99
|
*/
|
|
103
|
-
'
|
|
100
|
+
'hospitals'?: Array<HospitalBranchItemMappingModel> | null;
|
|
104
101
|
}
|
|
105
102
|
|