ch-api-client-typescript2 5.2.4 → 5.2.7
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/hospitals-api.d.ts +351 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +460 -0
- package/lib/api/survey-forms-api.d.ts +12 -3
- package/lib/api/survey-forms-api.d.ts.map +1 -1
- package/lib/api/survey-forms-api.js +12 -6
- package/lib/models/footer-navigation-item-model.d.ts +61 -0
- package/lib/models/footer-navigation-item-model.d.ts.map +1 -0
- package/lib/models/footer-navigation-item-model.js +15 -0
- package/lib/models/index.d.ts +4 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +4 -0
- package/lib/models/policies-model.d.ts +33 -0
- package/lib/models/policies-model.d.ts.map +1 -0
- package/lib/models/policies-model.js +15 -0
- package/lib/models/policy-item-model.d.ts +61 -0
- package/lib/models/policy-item-model.d.ts.map +1 -0
- package/lib/models/policy-item-model.js +15 -0
- package/lib/models/policy-model.d.ts +117 -0
- package/lib/models/policy-model.d.ts.map +1 -0
- package/lib/models/policy-model.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +4 -0
- package/src/api/hospitals-api.ts +600 -0
- package/src/api/survey-forms-api.ts +20 -6
- package/src/models/footer-navigation-item-model.ts +66 -0
- package/src/models/index.ts +4 -0
- package/src/models/policies-model.ts +42 -0
- package/src/models/policy-item-model.ts +66 -0
- package/src/models/policy-model.ts +126 -0
package/src/api/hospitals-api.ts
CHANGED
|
@@ -27,6 +27,8 @@ import { ContactScope } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreateLandingFormCommand } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { FooterNavigationItemModel } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { HospitalAccreditationModel } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { HospitalAccreditationsModel } from '../models';
|
|
@@ -73,8 +75,14 @@ import { MediaType } from '../models';
|
|
|
73
75
|
// @ts-ignore
|
|
74
76
|
import { MediasModel } from '../models';
|
|
75
77
|
// @ts-ignore
|
|
78
|
+
import { PoliciesModel } from '../models';
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
import { PolicyModel } from '../models';
|
|
81
|
+
// @ts-ignore
|
|
76
82
|
import { Procedure } from '../models';
|
|
77
83
|
// @ts-ignore
|
|
84
|
+
import { SecureFileModel } from '../models';
|
|
85
|
+
// @ts-ignore
|
|
78
86
|
import { SnsHandleModel } from '../models';
|
|
79
87
|
// @ts-ignore
|
|
80
88
|
import { SnsType } from '../models';
|
|
@@ -768,6 +776,44 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
768
776
|
|
|
769
777
|
|
|
770
778
|
|
|
779
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
780
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
781
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
782
|
+
|
|
783
|
+
return {
|
|
784
|
+
url: toPathString(localVarUrlObj),
|
|
785
|
+
options: localVarRequestOptions,
|
|
786
|
+
};
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @summary Get footerNavigations
|
|
791
|
+
* @param {string} hospitalId
|
|
792
|
+
* @param {string} languageCode
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet: async (hospitalId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
797
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
798
|
+
assertParamExists('apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'hospitalId', hospitalId)
|
|
799
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
800
|
+
assertParamExists('apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'languageCode', languageCode)
|
|
801
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/footernavigations/{languageCode}`
|
|
802
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
803
|
+
.replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
|
|
804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
805
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
806
|
+
let baseOptions;
|
|
807
|
+
if (configuration) {
|
|
808
|
+
baseOptions = configuration.baseOptions;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
812
|
+
const localVarHeaderParameter = {} as any;
|
|
813
|
+
const localVarQueryParameter = {} as any;
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
771
817
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
772
818
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
773
819
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1288,6 +1334,208 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1288
1334
|
options: localVarRequestOptions,
|
|
1289
1335
|
};
|
|
1290
1336
|
},
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @summary Get all policies
|
|
1340
|
+
* @param {string} hospitalId
|
|
1341
|
+
* @param {string} [name]
|
|
1342
|
+
* @param {string} [slug]
|
|
1343
|
+
* @param {string} [languageCode]
|
|
1344
|
+
* @param {number} [page]
|
|
1345
|
+
* @param {number} [limit]
|
|
1346
|
+
* @param {Date} [lastRetrieved]
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
apiV2HospitalsHospitalIdPoliciesGet: async (hospitalId: string, name?: string, slug?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1351
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1352
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesGet', 'hospitalId', hospitalId)
|
|
1353
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies`
|
|
1354
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
1355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1357
|
+
let baseOptions;
|
|
1358
|
+
if (configuration) {
|
|
1359
|
+
baseOptions = configuration.baseOptions;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1363
|
+
const localVarHeaderParameter = {} as any;
|
|
1364
|
+
const localVarQueryParameter = {} as any;
|
|
1365
|
+
|
|
1366
|
+
if (name !== undefined) {
|
|
1367
|
+
localVarQueryParameter['Name'] = name;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
if (slug !== undefined) {
|
|
1371
|
+
localVarQueryParameter['Slug'] = slug;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
if (languageCode !== undefined) {
|
|
1375
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
if (page !== undefined) {
|
|
1379
|
+
localVarQueryParameter['page'] = page;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
if (limit !== undefined) {
|
|
1383
|
+
localVarQueryParameter['limit'] = limit;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
if (lastRetrieved !== undefined) {
|
|
1387
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1388
|
+
(lastRetrieved as any).toISOString() :
|
|
1389
|
+
lastRetrieved;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1397
|
+
|
|
1398
|
+
return {
|
|
1399
|
+
url: toPathString(localVarUrlObj),
|
|
1400
|
+
options: localVarRequestOptions,
|
|
1401
|
+
};
|
|
1402
|
+
},
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @summary Get policy
|
|
1406
|
+
* @param {string} hospitalId
|
|
1407
|
+
* @param {string} policyId
|
|
1408
|
+
* @param {string} [languageCode]
|
|
1409
|
+
* @param {*} [options] Override http request option.
|
|
1410
|
+
* @throws {RequiredError}
|
|
1411
|
+
*/
|
|
1412
|
+
apiV2HospitalsHospitalIdPoliciesPolicyIdGet: async (hospitalId: string, policyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1413
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1414
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesPolicyIdGet', 'hospitalId', hospitalId)
|
|
1415
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
1416
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesPolicyIdGet', 'policyId', policyId)
|
|
1417
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies/{policyId}`
|
|
1418
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
1419
|
+
.replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
|
|
1420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1422
|
+
let baseOptions;
|
|
1423
|
+
if (configuration) {
|
|
1424
|
+
baseOptions = configuration.baseOptions;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1428
|
+
const localVarHeaderParameter = {} as any;
|
|
1429
|
+
const localVarQueryParameter = {} as any;
|
|
1430
|
+
|
|
1431
|
+
if (languageCode !== undefined) {
|
|
1432
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1439
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1440
|
+
|
|
1441
|
+
return {
|
|
1442
|
+
url: toPathString(localVarUrlObj),
|
|
1443
|
+
options: localVarRequestOptions,
|
|
1444
|
+
};
|
|
1445
|
+
},
|
|
1446
|
+
/**
|
|
1447
|
+
*
|
|
1448
|
+
* @summary Get policy by slug
|
|
1449
|
+
* @param {string} hospitalId
|
|
1450
|
+
* @param {string} slug
|
|
1451
|
+
* @param {string} [languageCode]
|
|
1452
|
+
* @param {string} [previewSecret]
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
*/
|
|
1456
|
+
apiV2HospitalsHospitalIdPoliciesSlugGet: async (hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1457
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1458
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesSlugGet', 'hospitalId', hospitalId)
|
|
1459
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1460
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesSlugGet', 'slug', slug)
|
|
1461
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies/{slug}`
|
|
1462
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
1463
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1464
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1465
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1466
|
+
let baseOptions;
|
|
1467
|
+
if (configuration) {
|
|
1468
|
+
baseOptions = configuration.baseOptions;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1472
|
+
const localVarHeaderParameter = {} as any;
|
|
1473
|
+
const localVarQueryParameter = {} as any;
|
|
1474
|
+
|
|
1475
|
+
if (languageCode !== undefined) {
|
|
1476
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
if (previewSecret !== undefined) {
|
|
1480
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1487
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1488
|
+
|
|
1489
|
+
return {
|
|
1490
|
+
url: toPathString(localVarUrlObj),
|
|
1491
|
+
options: localVarRequestOptions,
|
|
1492
|
+
};
|
|
1493
|
+
},
|
|
1494
|
+
/**
|
|
1495
|
+
*
|
|
1496
|
+
* @summary Upload secure file as anonymous
|
|
1497
|
+
* @param {string} hospitalId
|
|
1498
|
+
* @param {Array<File>} [files]
|
|
1499
|
+
* @param {*} [options] Override http request option.
|
|
1500
|
+
* @throws {RequiredError}
|
|
1501
|
+
*/
|
|
1502
|
+
apiV2HospitalsHospitalIdSecurefilesPost: async (hospitalId: string, files?: Array<File>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1503
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1504
|
+
assertParamExists('apiV2HospitalsHospitalIdSecurefilesPost', 'hospitalId', hospitalId)
|
|
1505
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/securefiles`
|
|
1506
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
1507
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1508
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1509
|
+
let baseOptions;
|
|
1510
|
+
if (configuration) {
|
|
1511
|
+
baseOptions = configuration.baseOptions;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1515
|
+
const localVarHeaderParameter = {} as any;
|
|
1516
|
+
const localVarQueryParameter = {} as any;
|
|
1517
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1518
|
+
|
|
1519
|
+
if (files) {
|
|
1520
|
+
files.forEach((element) => {
|
|
1521
|
+
localVarFormParams.append('files', element as any);
|
|
1522
|
+
})
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1528
|
+
|
|
1529
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1530
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1531
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1532
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1533
|
+
|
|
1534
|
+
return {
|
|
1535
|
+
url: toPathString(localVarUrlObj),
|
|
1536
|
+
options: localVarRequestOptions,
|
|
1537
|
+
};
|
|
1538
|
+
},
|
|
1291
1539
|
/**
|
|
1292
1540
|
*
|
|
1293
1541
|
* @summary Get all HospitalSpecialties.
|
|
@@ -2582,6 +2830,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
2582
2830
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options);
|
|
2583
2831
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2584
2832
|
},
|
|
2833
|
+
/**
|
|
2834
|
+
*
|
|
2835
|
+
* @summary Get footerNavigations
|
|
2836
|
+
* @param {string} hospitalId
|
|
2837
|
+
* @param {string} languageCode
|
|
2838
|
+
* @param {*} [options] Override http request option.
|
|
2839
|
+
* @throws {RequiredError}
|
|
2840
|
+
*/
|
|
2841
|
+
async apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FooterNavigationItemModel>>> {
|
|
2842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options);
|
|
2843
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2844
|
+
},
|
|
2585
2845
|
/**
|
|
2586
2846
|
*
|
|
2587
2847
|
* @summary Get hospital by id
|
|
@@ -2725,6 +2985,62 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
2725
2985
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options);
|
|
2726
2986
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2727
2987
|
},
|
|
2988
|
+
/**
|
|
2989
|
+
*
|
|
2990
|
+
* @summary Get all policies
|
|
2991
|
+
* @param {string} hospitalId
|
|
2992
|
+
* @param {string} [name]
|
|
2993
|
+
* @param {string} [slug]
|
|
2994
|
+
* @param {string} [languageCode]
|
|
2995
|
+
* @param {number} [page]
|
|
2996
|
+
* @param {number} [limit]
|
|
2997
|
+
* @param {Date} [lastRetrieved]
|
|
2998
|
+
* @param {*} [options] Override http request option.
|
|
2999
|
+
* @throws {RequiredError}
|
|
3000
|
+
*/
|
|
3001
|
+
async apiV2HospitalsHospitalIdPoliciesGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoliciesModel>> {
|
|
3002
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, page, limit, lastRetrieved, options);
|
|
3003
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3004
|
+
},
|
|
3005
|
+
/**
|
|
3006
|
+
*
|
|
3007
|
+
* @summary Get policy
|
|
3008
|
+
* @param {string} hospitalId
|
|
3009
|
+
* @param {string} policyId
|
|
3010
|
+
* @param {string} [languageCode]
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
async apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
|
|
3015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options);
|
|
3016
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3017
|
+
},
|
|
3018
|
+
/**
|
|
3019
|
+
*
|
|
3020
|
+
* @summary Get policy by slug
|
|
3021
|
+
* @param {string} hospitalId
|
|
3022
|
+
* @param {string} slug
|
|
3023
|
+
* @param {string} [languageCode]
|
|
3024
|
+
* @param {string} [previewSecret]
|
|
3025
|
+
* @param {*} [options] Override http request option.
|
|
3026
|
+
* @throws {RequiredError}
|
|
3027
|
+
*/
|
|
3028
|
+
async apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
|
|
3029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId, slug, languageCode, previewSecret, options);
|
|
3030
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3031
|
+
},
|
|
3032
|
+
/**
|
|
3033
|
+
*
|
|
3034
|
+
* @summary Upload secure file as anonymous
|
|
3035
|
+
* @param {string} hospitalId
|
|
3036
|
+
* @param {Array<File>} [files]
|
|
3037
|
+
* @param {*} [options] Override http request option.
|
|
3038
|
+
* @throws {RequiredError}
|
|
3039
|
+
*/
|
|
3040
|
+
async apiV2HospitalsHospitalIdSecurefilesPost(hospitalId: string, files?: Array<File>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecureFileModel>> {
|
|
3041
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSecurefilesPost(hospitalId, files, options);
|
|
3042
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3043
|
+
},
|
|
2728
3044
|
/**
|
|
2729
3045
|
*
|
|
2730
3046
|
* @summary Get all HospitalSpecialties.
|
|
@@ -3190,6 +3506,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
3190
3506
|
apiV2HospitalsHospitalIdEvaluationsGet(hospitalId: string, id?: string, name?: string, stars?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalEvaluationsModel> {
|
|
3191
3507
|
return localVarFp.apiV2HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
3192
3508
|
},
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @summary Get footerNavigations
|
|
3512
|
+
* @param {string} hospitalId
|
|
3513
|
+
* @param {string} languageCode
|
|
3514
|
+
* @param {*} [options] Override http request option.
|
|
3515
|
+
* @throws {RequiredError}
|
|
3516
|
+
*/
|
|
3517
|
+
apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: any): AxiosPromise<Array<FooterNavigationItemModel>> {
|
|
3518
|
+
return localVarFp.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then((request) => request(axios, basePath));
|
|
3519
|
+
},
|
|
3193
3520
|
/**
|
|
3194
3521
|
*
|
|
3195
3522
|
* @summary Get hospital by id
|
|
@@ -3323,6 +3650,58 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
3323
3650
|
apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
3324
3651
|
return localVarFp.apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options).then((request) => request(axios, basePath));
|
|
3325
3652
|
},
|
|
3653
|
+
/**
|
|
3654
|
+
*
|
|
3655
|
+
* @summary Get all policies
|
|
3656
|
+
* @param {string} hospitalId
|
|
3657
|
+
* @param {string} [name]
|
|
3658
|
+
* @param {string} [slug]
|
|
3659
|
+
* @param {string} [languageCode]
|
|
3660
|
+
* @param {number} [page]
|
|
3661
|
+
* @param {number} [limit]
|
|
3662
|
+
* @param {Date} [lastRetrieved]
|
|
3663
|
+
* @param {*} [options] Override http request option.
|
|
3664
|
+
* @throws {RequiredError}
|
|
3665
|
+
*/
|
|
3666
|
+
apiV2HospitalsHospitalIdPoliciesGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PoliciesModel> {
|
|
3667
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
3668
|
+
},
|
|
3669
|
+
/**
|
|
3670
|
+
*
|
|
3671
|
+
* @summary Get policy
|
|
3672
|
+
* @param {string} hospitalId
|
|
3673
|
+
* @param {string} policyId
|
|
3674
|
+
* @param {string} [languageCode]
|
|
3675
|
+
* @param {*} [options] Override http request option.
|
|
3676
|
+
* @throws {RequiredError}
|
|
3677
|
+
*/
|
|
3678
|
+
apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: any): AxiosPromise<PolicyModel> {
|
|
3679
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options).then((request) => request(axios, basePath));
|
|
3680
|
+
},
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary Get policy by slug
|
|
3684
|
+
* @param {string} hospitalId
|
|
3685
|
+
* @param {string} slug
|
|
3686
|
+
* @param {string} [languageCode]
|
|
3687
|
+
* @param {string} [previewSecret]
|
|
3688
|
+
* @param {*} [options] Override http request option.
|
|
3689
|
+
* @throws {RequiredError}
|
|
3690
|
+
*/
|
|
3691
|
+
apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options?: any): AxiosPromise<PolicyModel> {
|
|
3692
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId, slug, languageCode, previewSecret, options).then((request) => request(axios, basePath));
|
|
3693
|
+
},
|
|
3694
|
+
/**
|
|
3695
|
+
*
|
|
3696
|
+
* @summary Upload secure file as anonymous
|
|
3697
|
+
* @param {string} hospitalId
|
|
3698
|
+
* @param {Array<File>} [files]
|
|
3699
|
+
* @param {*} [options] Override http request option.
|
|
3700
|
+
* @throws {RequiredError}
|
|
3701
|
+
*/
|
|
3702
|
+
apiV2HospitalsHospitalIdSecurefilesPost(hospitalId: string, files?: Array<File>, options?: any): AxiosPromise<SecureFileModel> {
|
|
3703
|
+
return localVarFp.apiV2HospitalsHospitalIdSecurefilesPost(hospitalId, files, options).then((request) => request(axios, basePath));
|
|
3704
|
+
},
|
|
3326
3705
|
/**
|
|
3327
3706
|
*
|
|
3328
3707
|
* @summary Get all HospitalSpecialties.
|
|
@@ -4169,6 +4548,27 @@ export interface HospitalsApiApiV2HospitalsHospitalIdEvaluationsGetRequest {
|
|
|
4169
4548
|
readonly lastRetrieved?: Date
|
|
4170
4549
|
}
|
|
4171
4550
|
|
|
4551
|
+
/**
|
|
4552
|
+
* Request parameters for apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet operation in HospitalsApi.
|
|
4553
|
+
* @export
|
|
4554
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest
|
|
4555
|
+
*/
|
|
4556
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest {
|
|
4557
|
+
/**
|
|
4558
|
+
*
|
|
4559
|
+
* @type {string}
|
|
4560
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet
|
|
4561
|
+
*/
|
|
4562
|
+
readonly hospitalId: string
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
*
|
|
4566
|
+
* @type {string}
|
|
4567
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet
|
|
4568
|
+
*/
|
|
4569
|
+
readonly languageCode: string
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4172
4572
|
/**
|
|
4173
4573
|
* Request parameters for apiV2HospitalsHospitalIdGet operation in HospitalsApi.
|
|
4174
4574
|
* @export
|
|
@@ -4540,6 +4940,146 @@ export interface HospitalsApiApiV2HospitalsHospitalIdMediasMediaIdGetRequest {
|
|
|
4540
4940
|
readonly mediaId: string
|
|
4541
4941
|
}
|
|
4542
4942
|
|
|
4943
|
+
/**
|
|
4944
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesGet operation in HospitalsApi.
|
|
4945
|
+
* @export
|
|
4946
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest
|
|
4947
|
+
*/
|
|
4948
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest {
|
|
4949
|
+
/**
|
|
4950
|
+
*
|
|
4951
|
+
* @type {string}
|
|
4952
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4953
|
+
*/
|
|
4954
|
+
readonly hospitalId: string
|
|
4955
|
+
|
|
4956
|
+
/**
|
|
4957
|
+
*
|
|
4958
|
+
* @type {string}
|
|
4959
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4960
|
+
*/
|
|
4961
|
+
readonly name?: string
|
|
4962
|
+
|
|
4963
|
+
/**
|
|
4964
|
+
*
|
|
4965
|
+
* @type {string}
|
|
4966
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4967
|
+
*/
|
|
4968
|
+
readonly slug?: string
|
|
4969
|
+
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @type {string}
|
|
4973
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4974
|
+
*/
|
|
4975
|
+
readonly languageCode?: string
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
*
|
|
4979
|
+
* @type {number}
|
|
4980
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4981
|
+
*/
|
|
4982
|
+
readonly page?: number
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
*
|
|
4986
|
+
* @type {number}
|
|
4987
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4988
|
+
*/
|
|
4989
|
+
readonly limit?: number
|
|
4990
|
+
|
|
4991
|
+
/**
|
|
4992
|
+
*
|
|
4993
|
+
* @type {Date}
|
|
4994
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4995
|
+
*/
|
|
4996
|
+
readonly lastRetrieved?: Date
|
|
4997
|
+
}
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesPolicyIdGet operation in HospitalsApi.
|
|
5001
|
+
* @export
|
|
5002
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest
|
|
5003
|
+
*/
|
|
5004
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest {
|
|
5005
|
+
/**
|
|
5006
|
+
*
|
|
5007
|
+
* @type {string}
|
|
5008
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
5009
|
+
*/
|
|
5010
|
+
readonly hospitalId: string
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
*
|
|
5014
|
+
* @type {string}
|
|
5015
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
5016
|
+
*/
|
|
5017
|
+
readonly policyId: string
|
|
5018
|
+
|
|
5019
|
+
/**
|
|
5020
|
+
*
|
|
5021
|
+
* @type {string}
|
|
5022
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
5023
|
+
*/
|
|
5024
|
+
readonly languageCode?: string
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
/**
|
|
5028
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesSlugGet operation in HospitalsApi.
|
|
5029
|
+
* @export
|
|
5030
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest
|
|
5031
|
+
*/
|
|
5032
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest {
|
|
5033
|
+
/**
|
|
5034
|
+
*
|
|
5035
|
+
* @type {string}
|
|
5036
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
5037
|
+
*/
|
|
5038
|
+
readonly hospitalId: string
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
*
|
|
5042
|
+
* @type {string}
|
|
5043
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
5044
|
+
*/
|
|
5045
|
+
readonly slug: string
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
*
|
|
5049
|
+
* @type {string}
|
|
5050
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
5051
|
+
*/
|
|
5052
|
+
readonly languageCode?: string
|
|
5053
|
+
|
|
5054
|
+
/**
|
|
5055
|
+
*
|
|
5056
|
+
* @type {string}
|
|
5057
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
5058
|
+
*/
|
|
5059
|
+
readonly previewSecret?: string
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
/**
|
|
5063
|
+
* Request parameters for apiV2HospitalsHospitalIdSecurefilesPost operation in HospitalsApi.
|
|
5064
|
+
* @export
|
|
5065
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdSecurefilesPostRequest
|
|
5066
|
+
*/
|
|
5067
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdSecurefilesPostRequest {
|
|
5068
|
+
/**
|
|
5069
|
+
*
|
|
5070
|
+
* @type {string}
|
|
5071
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSecurefilesPost
|
|
5072
|
+
*/
|
|
5073
|
+
readonly hospitalId: string
|
|
5074
|
+
|
|
5075
|
+
/**
|
|
5076
|
+
*
|
|
5077
|
+
* @type {Array<File>}
|
|
5078
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSecurefilesPost
|
|
5079
|
+
*/
|
|
5080
|
+
readonly files?: Array<File>
|
|
5081
|
+
}
|
|
5082
|
+
|
|
4543
5083
|
/**
|
|
4544
5084
|
* Request parameters for apiV2HospitalsHospitalIdSpecialtiesGet operation in HospitalsApi.
|
|
4545
5085
|
* @export
|
|
@@ -5666,6 +6206,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
5666
6206
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdEvaluationsGet(requestParameters.hospitalId, requestParameters.id, requestParameters.name, requestParameters.stars, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
5667
6207
|
}
|
|
5668
6208
|
|
|
6209
|
+
/**
|
|
6210
|
+
*
|
|
6211
|
+
* @summary Get footerNavigations
|
|
6212
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest} requestParameters Request parameters.
|
|
6213
|
+
* @param {*} [options] Override http request option.
|
|
6214
|
+
* @throws {RequiredError}
|
|
6215
|
+
* @memberof HospitalsApi
|
|
6216
|
+
*/
|
|
6217
|
+
public apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest, options?: AxiosRequestConfig) {
|
|
6218
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
6219
|
+
}
|
|
6220
|
+
|
|
5669
6221
|
/**
|
|
5670
6222
|
*
|
|
5671
6223
|
* @summary Get hospital by id
|
|
@@ -5786,6 +6338,54 @@ export class HospitalsApi extends BaseAPI {
|
|
|
5786
6338
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdMediasMediaIdGet(requestParameters.hospitalId, requestParameters.mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
5787
6339
|
}
|
|
5788
6340
|
|
|
6341
|
+
/**
|
|
6342
|
+
*
|
|
6343
|
+
* @summary Get all policies
|
|
6344
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest} requestParameters Request parameters.
|
|
6345
|
+
* @param {*} [options] Override http request option.
|
|
6346
|
+
* @throws {RequiredError}
|
|
6347
|
+
* @memberof HospitalsApi
|
|
6348
|
+
*/
|
|
6349
|
+
public apiV2HospitalsHospitalIdPoliciesGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest, options?: AxiosRequestConfig) {
|
|
6350
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdPoliciesGet(requestParameters.hospitalId, requestParameters.name, requestParameters.slug, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
/**
|
|
6354
|
+
*
|
|
6355
|
+
* @summary Get policy
|
|
6356
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest} requestParameters Request parameters.
|
|
6357
|
+
* @param {*} [options] Override http request option.
|
|
6358
|
+
* @throws {RequiredError}
|
|
6359
|
+
* @memberof HospitalsApi
|
|
6360
|
+
*/
|
|
6361
|
+
public apiV2HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest, options?: AxiosRequestConfig) {
|
|
6362
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters.hospitalId, requestParameters.policyId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6365
|
+
/**
|
|
6366
|
+
*
|
|
6367
|
+
* @summary Get policy by slug
|
|
6368
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest} requestParameters Request parameters.
|
|
6369
|
+
* @param {*} [options] Override http request option.
|
|
6370
|
+
* @throws {RequiredError}
|
|
6371
|
+
* @memberof HospitalsApi
|
|
6372
|
+
*/
|
|
6373
|
+
public apiV2HospitalsHospitalIdPoliciesSlugGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest, options?: AxiosRequestConfig) {
|
|
6374
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdPoliciesSlugGet(requestParameters.hospitalId, requestParameters.slug, requestParameters.languageCode, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
|
+
/**
|
|
6378
|
+
*
|
|
6379
|
+
* @summary Upload secure file as anonymous
|
|
6380
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdSecurefilesPostRequest} requestParameters Request parameters.
|
|
6381
|
+
* @param {*} [options] Override http request option.
|
|
6382
|
+
* @throws {RequiredError}
|
|
6383
|
+
* @memberof HospitalsApi
|
|
6384
|
+
*/
|
|
6385
|
+
public apiV2HospitalsHospitalIdSecurefilesPost(requestParameters: HospitalsApiApiV2HospitalsHospitalIdSecurefilesPostRequest, options?: AxiosRequestConfig) {
|
|
6386
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSecurefilesPost(requestParameters.hospitalId, requestParameters.files, options).then((request) => request(this.axios, this.basePath));
|
|
6387
|
+
}
|
|
6388
|
+
|
|
5789
6389
|
/**
|
|
5790
6390
|
*
|
|
5791
6391
|
* @summary Get all HospitalSpecialties.
|