ch-api-client-typescript2 5.2.4 → 5.2.6
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 +295 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +374 -0
- 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 +497 -0
- 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,6 +75,10 @@ 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
|
|
78
84
|
import { SnsHandleModel } from '../models';
|
|
@@ -768,6 +774,44 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
768
774
|
|
|
769
775
|
|
|
770
776
|
|
|
777
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
778
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
779
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
780
|
+
|
|
781
|
+
return {
|
|
782
|
+
url: toPathString(localVarUrlObj),
|
|
783
|
+
options: localVarRequestOptions,
|
|
784
|
+
};
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @summary Get footerNavigations
|
|
789
|
+
* @param {string} hospitalId
|
|
790
|
+
* @param {string} languageCode
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet: async (hospitalId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
795
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
796
|
+
assertParamExists('apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'hospitalId', hospitalId)
|
|
797
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
798
|
+
assertParamExists('apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'languageCode', languageCode)
|
|
799
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/footernavigations/{languageCode}`
|
|
800
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
801
|
+
.replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
|
|
802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
803
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
804
|
+
let baseOptions;
|
|
805
|
+
if (configuration) {
|
|
806
|
+
baseOptions = configuration.baseOptions;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
810
|
+
const localVarHeaderParameter = {} as any;
|
|
811
|
+
const localVarQueryParameter = {} as any;
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
771
815
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
772
816
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
773
817
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1279,6 +1323,163 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1279
1323
|
|
|
1280
1324
|
|
|
1281
1325
|
|
|
1326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1328
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1329
|
+
|
|
1330
|
+
return {
|
|
1331
|
+
url: toPathString(localVarUrlObj),
|
|
1332
|
+
options: localVarRequestOptions,
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
/**
|
|
1336
|
+
*
|
|
1337
|
+
* @summary Get all policies
|
|
1338
|
+
* @param {string} hospitalId
|
|
1339
|
+
* @param {string} [name]
|
|
1340
|
+
* @param {string} [slug]
|
|
1341
|
+
* @param {string} [languageCode]
|
|
1342
|
+
* @param {number} [page]
|
|
1343
|
+
* @param {number} [limit]
|
|
1344
|
+
* @param {Date} [lastRetrieved]
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
apiV2HospitalsHospitalIdPoliciesGet: async (hospitalId: string, name?: string, slug?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1349
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1350
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesGet', 'hospitalId', hospitalId)
|
|
1351
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies`
|
|
1352
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
1353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1355
|
+
let baseOptions;
|
|
1356
|
+
if (configuration) {
|
|
1357
|
+
baseOptions = configuration.baseOptions;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1361
|
+
const localVarHeaderParameter = {} as any;
|
|
1362
|
+
const localVarQueryParameter = {} as any;
|
|
1363
|
+
|
|
1364
|
+
if (name !== undefined) {
|
|
1365
|
+
localVarQueryParameter['Name'] = name;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
if (slug !== undefined) {
|
|
1369
|
+
localVarQueryParameter['Slug'] = slug;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (languageCode !== undefined) {
|
|
1373
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
if (page !== undefined) {
|
|
1377
|
+
localVarQueryParameter['page'] = page;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
if (limit !== undefined) {
|
|
1381
|
+
localVarQueryParameter['limit'] = limit;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
if (lastRetrieved !== undefined) {
|
|
1385
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
1386
|
+
(lastRetrieved as any).toISOString() :
|
|
1387
|
+
lastRetrieved;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1394
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1395
|
+
|
|
1396
|
+
return {
|
|
1397
|
+
url: toPathString(localVarUrlObj),
|
|
1398
|
+
options: localVarRequestOptions,
|
|
1399
|
+
};
|
|
1400
|
+
},
|
|
1401
|
+
/**
|
|
1402
|
+
*
|
|
1403
|
+
* @summary Get policy
|
|
1404
|
+
* @param {string} hospitalId
|
|
1405
|
+
* @param {string} policyId
|
|
1406
|
+
* @param {string} [languageCode]
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
apiV2HospitalsHospitalIdPoliciesPolicyIdGet: async (hospitalId: string, policyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1411
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1412
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesPolicyIdGet', 'hospitalId', hospitalId)
|
|
1413
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
1414
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesPolicyIdGet', 'policyId', policyId)
|
|
1415
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies/{policyId}`
|
|
1416
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
1417
|
+
.replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
|
|
1418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1420
|
+
let baseOptions;
|
|
1421
|
+
if (configuration) {
|
|
1422
|
+
baseOptions = configuration.baseOptions;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1426
|
+
const localVarHeaderParameter = {} as any;
|
|
1427
|
+
const localVarQueryParameter = {} as any;
|
|
1428
|
+
|
|
1429
|
+
if (languageCode !== undefined) {
|
|
1430
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1437
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1438
|
+
|
|
1439
|
+
return {
|
|
1440
|
+
url: toPathString(localVarUrlObj),
|
|
1441
|
+
options: localVarRequestOptions,
|
|
1442
|
+
};
|
|
1443
|
+
},
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @summary Get policy by slug
|
|
1447
|
+
* @param {string} hospitalId
|
|
1448
|
+
* @param {string} slug
|
|
1449
|
+
* @param {string} [languageCode]
|
|
1450
|
+
* @param {string} [previewSecret]
|
|
1451
|
+
* @param {*} [options] Override http request option.
|
|
1452
|
+
* @throws {RequiredError}
|
|
1453
|
+
*/
|
|
1454
|
+
apiV2HospitalsHospitalIdPoliciesSlugGet: async (hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1455
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1456
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesSlugGet', 'hospitalId', hospitalId)
|
|
1457
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1458
|
+
assertParamExists('apiV2HospitalsHospitalIdPoliciesSlugGet', 'slug', slug)
|
|
1459
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/policies/{slug}`
|
|
1460
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
1461
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1463
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1464
|
+
let baseOptions;
|
|
1465
|
+
if (configuration) {
|
|
1466
|
+
baseOptions = configuration.baseOptions;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1470
|
+
const localVarHeaderParameter = {} as any;
|
|
1471
|
+
const localVarQueryParameter = {} as any;
|
|
1472
|
+
|
|
1473
|
+
if (languageCode !== undefined) {
|
|
1474
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
if (previewSecret !== undefined) {
|
|
1478
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1282
1483
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1283
1484
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1284
1485
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2582,6 +2783,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
2582
2783
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options);
|
|
2583
2784
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2584
2785
|
},
|
|
2786
|
+
/**
|
|
2787
|
+
*
|
|
2788
|
+
* @summary Get footerNavigations
|
|
2789
|
+
* @param {string} hospitalId
|
|
2790
|
+
* @param {string} languageCode
|
|
2791
|
+
* @param {*} [options] Override http request option.
|
|
2792
|
+
* @throws {RequiredError}
|
|
2793
|
+
*/
|
|
2794
|
+
async apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FooterNavigationItemModel>>> {
|
|
2795
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options);
|
|
2796
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2797
|
+
},
|
|
2585
2798
|
/**
|
|
2586
2799
|
*
|
|
2587
2800
|
* @summary Get hospital by id
|
|
@@ -2725,6 +2938,50 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
2725
2938
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options);
|
|
2726
2939
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2727
2940
|
},
|
|
2941
|
+
/**
|
|
2942
|
+
*
|
|
2943
|
+
* @summary Get all policies
|
|
2944
|
+
* @param {string} hospitalId
|
|
2945
|
+
* @param {string} [name]
|
|
2946
|
+
* @param {string} [slug]
|
|
2947
|
+
* @param {string} [languageCode]
|
|
2948
|
+
* @param {number} [page]
|
|
2949
|
+
* @param {number} [limit]
|
|
2950
|
+
* @param {Date} [lastRetrieved]
|
|
2951
|
+
* @param {*} [options] Override http request option.
|
|
2952
|
+
* @throws {RequiredError}
|
|
2953
|
+
*/
|
|
2954
|
+
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>> {
|
|
2955
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, page, limit, lastRetrieved, options);
|
|
2956
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2957
|
+
},
|
|
2958
|
+
/**
|
|
2959
|
+
*
|
|
2960
|
+
* @summary Get policy
|
|
2961
|
+
* @param {string} hospitalId
|
|
2962
|
+
* @param {string} policyId
|
|
2963
|
+
* @param {string} [languageCode]
|
|
2964
|
+
* @param {*} [options] Override http request option.
|
|
2965
|
+
* @throws {RequiredError}
|
|
2966
|
+
*/
|
|
2967
|
+
async apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
|
|
2968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options);
|
|
2969
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2970
|
+
},
|
|
2971
|
+
/**
|
|
2972
|
+
*
|
|
2973
|
+
* @summary Get policy by slug
|
|
2974
|
+
* @param {string} hospitalId
|
|
2975
|
+
* @param {string} slug
|
|
2976
|
+
* @param {string} [languageCode]
|
|
2977
|
+
* @param {string} [previewSecret]
|
|
2978
|
+
* @param {*} [options] Override http request option.
|
|
2979
|
+
* @throws {RequiredError}
|
|
2980
|
+
*/
|
|
2981
|
+
async apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
|
|
2982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId, slug, languageCode, previewSecret, options);
|
|
2983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2984
|
+
},
|
|
2728
2985
|
/**
|
|
2729
2986
|
*
|
|
2730
2987
|
* @summary Get all HospitalSpecialties.
|
|
@@ -3190,6 +3447,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
3190
3447
|
apiV2HospitalsHospitalIdEvaluationsGet(hospitalId: string, id?: string, name?: string, stars?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalEvaluationsModel> {
|
|
3191
3448
|
return localVarFp.apiV2HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
3192
3449
|
},
|
|
3450
|
+
/**
|
|
3451
|
+
*
|
|
3452
|
+
* @summary Get footerNavigations
|
|
3453
|
+
* @param {string} hospitalId
|
|
3454
|
+
* @param {string} languageCode
|
|
3455
|
+
* @param {*} [options] Override http request option.
|
|
3456
|
+
* @throws {RequiredError}
|
|
3457
|
+
*/
|
|
3458
|
+
apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: any): AxiosPromise<Array<FooterNavigationItemModel>> {
|
|
3459
|
+
return localVarFp.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then((request) => request(axios, basePath));
|
|
3460
|
+
},
|
|
3193
3461
|
/**
|
|
3194
3462
|
*
|
|
3195
3463
|
* @summary Get hospital by id
|
|
@@ -3323,6 +3591,47 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
3323
3591
|
apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
3324
3592
|
return localVarFp.apiV2HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options).then((request) => request(axios, basePath));
|
|
3325
3593
|
},
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary Get all policies
|
|
3597
|
+
* @param {string} hospitalId
|
|
3598
|
+
* @param {string} [name]
|
|
3599
|
+
* @param {string} [slug]
|
|
3600
|
+
* @param {string} [languageCode]
|
|
3601
|
+
* @param {number} [page]
|
|
3602
|
+
* @param {number} [limit]
|
|
3603
|
+
* @param {Date} [lastRetrieved]
|
|
3604
|
+
* @param {*} [options] Override http request option.
|
|
3605
|
+
* @throws {RequiredError}
|
|
3606
|
+
*/
|
|
3607
|
+
apiV2HospitalsHospitalIdPoliciesGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PoliciesModel> {
|
|
3608
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
3609
|
+
},
|
|
3610
|
+
/**
|
|
3611
|
+
*
|
|
3612
|
+
* @summary Get policy
|
|
3613
|
+
* @param {string} hospitalId
|
|
3614
|
+
* @param {string} policyId
|
|
3615
|
+
* @param {string} [languageCode]
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: any): AxiosPromise<PolicyModel> {
|
|
3620
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options).then((request) => request(axios, basePath));
|
|
3621
|
+
},
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @summary Get policy by slug
|
|
3625
|
+
* @param {string} hospitalId
|
|
3626
|
+
* @param {string} slug
|
|
3627
|
+
* @param {string} [languageCode]
|
|
3628
|
+
* @param {string} [previewSecret]
|
|
3629
|
+
* @param {*} [options] Override http request option.
|
|
3630
|
+
* @throws {RequiredError}
|
|
3631
|
+
*/
|
|
3632
|
+
apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId: string, slug: string, languageCode?: string, previewSecret?: string, options?: any): AxiosPromise<PolicyModel> {
|
|
3633
|
+
return localVarFp.apiV2HospitalsHospitalIdPoliciesSlugGet(hospitalId, slug, languageCode, previewSecret, options).then((request) => request(axios, basePath));
|
|
3634
|
+
},
|
|
3326
3635
|
/**
|
|
3327
3636
|
*
|
|
3328
3637
|
* @summary Get all HospitalSpecialties.
|
|
@@ -4169,6 +4478,27 @@ export interface HospitalsApiApiV2HospitalsHospitalIdEvaluationsGetRequest {
|
|
|
4169
4478
|
readonly lastRetrieved?: Date
|
|
4170
4479
|
}
|
|
4171
4480
|
|
|
4481
|
+
/**
|
|
4482
|
+
* Request parameters for apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet operation in HospitalsApi.
|
|
4483
|
+
* @export
|
|
4484
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest
|
|
4485
|
+
*/
|
|
4486
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest {
|
|
4487
|
+
/**
|
|
4488
|
+
*
|
|
4489
|
+
* @type {string}
|
|
4490
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet
|
|
4491
|
+
*/
|
|
4492
|
+
readonly hospitalId: string
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
*
|
|
4496
|
+
* @type {string}
|
|
4497
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet
|
|
4498
|
+
*/
|
|
4499
|
+
readonly languageCode: string
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4172
4502
|
/**
|
|
4173
4503
|
* Request parameters for apiV2HospitalsHospitalIdGet operation in HospitalsApi.
|
|
4174
4504
|
* @export
|
|
@@ -4540,6 +4870,125 @@ export interface HospitalsApiApiV2HospitalsHospitalIdMediasMediaIdGetRequest {
|
|
|
4540
4870
|
readonly mediaId: string
|
|
4541
4871
|
}
|
|
4542
4872
|
|
|
4873
|
+
/**
|
|
4874
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesGet operation in HospitalsApi.
|
|
4875
|
+
* @export
|
|
4876
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest
|
|
4877
|
+
*/
|
|
4878
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest {
|
|
4879
|
+
/**
|
|
4880
|
+
*
|
|
4881
|
+
* @type {string}
|
|
4882
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4883
|
+
*/
|
|
4884
|
+
readonly hospitalId: string
|
|
4885
|
+
|
|
4886
|
+
/**
|
|
4887
|
+
*
|
|
4888
|
+
* @type {string}
|
|
4889
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4890
|
+
*/
|
|
4891
|
+
readonly name?: string
|
|
4892
|
+
|
|
4893
|
+
/**
|
|
4894
|
+
*
|
|
4895
|
+
* @type {string}
|
|
4896
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4897
|
+
*/
|
|
4898
|
+
readonly slug?: string
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
*
|
|
4902
|
+
* @type {string}
|
|
4903
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4904
|
+
*/
|
|
4905
|
+
readonly languageCode?: string
|
|
4906
|
+
|
|
4907
|
+
/**
|
|
4908
|
+
*
|
|
4909
|
+
* @type {number}
|
|
4910
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4911
|
+
*/
|
|
4912
|
+
readonly page?: number
|
|
4913
|
+
|
|
4914
|
+
/**
|
|
4915
|
+
*
|
|
4916
|
+
* @type {number}
|
|
4917
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4918
|
+
*/
|
|
4919
|
+
readonly limit?: number
|
|
4920
|
+
|
|
4921
|
+
/**
|
|
4922
|
+
*
|
|
4923
|
+
* @type {Date}
|
|
4924
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesGet
|
|
4925
|
+
*/
|
|
4926
|
+
readonly lastRetrieved?: Date
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesPolicyIdGet operation in HospitalsApi.
|
|
4931
|
+
* @export
|
|
4932
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest
|
|
4933
|
+
*/
|
|
4934
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest {
|
|
4935
|
+
/**
|
|
4936
|
+
*
|
|
4937
|
+
* @type {string}
|
|
4938
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
4939
|
+
*/
|
|
4940
|
+
readonly hospitalId: string
|
|
4941
|
+
|
|
4942
|
+
/**
|
|
4943
|
+
*
|
|
4944
|
+
* @type {string}
|
|
4945
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
4946
|
+
*/
|
|
4947
|
+
readonly policyId: string
|
|
4948
|
+
|
|
4949
|
+
/**
|
|
4950
|
+
*
|
|
4951
|
+
* @type {string}
|
|
4952
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGet
|
|
4953
|
+
*/
|
|
4954
|
+
readonly languageCode?: string
|
|
4955
|
+
}
|
|
4956
|
+
|
|
4957
|
+
/**
|
|
4958
|
+
* Request parameters for apiV2HospitalsHospitalIdPoliciesSlugGet operation in HospitalsApi.
|
|
4959
|
+
* @export
|
|
4960
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest
|
|
4961
|
+
*/
|
|
4962
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest {
|
|
4963
|
+
/**
|
|
4964
|
+
*
|
|
4965
|
+
* @type {string}
|
|
4966
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
4967
|
+
*/
|
|
4968
|
+
readonly hospitalId: string
|
|
4969
|
+
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @type {string}
|
|
4973
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
4974
|
+
*/
|
|
4975
|
+
readonly slug: string
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
*
|
|
4979
|
+
* @type {string}
|
|
4980
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
4981
|
+
*/
|
|
4982
|
+
readonly languageCode?: string
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
*
|
|
4986
|
+
* @type {string}
|
|
4987
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGet
|
|
4988
|
+
*/
|
|
4989
|
+
readonly previewSecret?: string
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4543
4992
|
/**
|
|
4544
4993
|
* Request parameters for apiV2HospitalsHospitalIdSpecialtiesGet operation in HospitalsApi.
|
|
4545
4994
|
* @export
|
|
@@ -5666,6 +6115,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
5666
6115
|
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
6116
|
}
|
|
5668
6117
|
|
|
6118
|
+
/**
|
|
6119
|
+
*
|
|
6120
|
+
* @summary Get footerNavigations
|
|
6121
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest} requestParameters Request parameters.
|
|
6122
|
+
* @param {*} [options] Override http request option.
|
|
6123
|
+
* @throws {RequiredError}
|
|
6124
|
+
* @memberof HospitalsApi
|
|
6125
|
+
*/
|
|
6126
|
+
public apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest, options?: AxiosRequestConfig) {
|
|
6127
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
6128
|
+
}
|
|
6129
|
+
|
|
5669
6130
|
/**
|
|
5670
6131
|
*
|
|
5671
6132
|
* @summary Get hospital by id
|
|
@@ -5786,6 +6247,42 @@ export class HospitalsApi extends BaseAPI {
|
|
|
5786
6247
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdMediasMediaIdGet(requestParameters.hospitalId, requestParameters.mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
5787
6248
|
}
|
|
5788
6249
|
|
|
6250
|
+
/**
|
|
6251
|
+
*
|
|
6252
|
+
* @summary Get all policies
|
|
6253
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest} requestParameters Request parameters.
|
|
6254
|
+
* @param {*} [options] Override http request option.
|
|
6255
|
+
* @throws {RequiredError}
|
|
6256
|
+
* @memberof HospitalsApi
|
|
6257
|
+
*/
|
|
6258
|
+
public apiV2HospitalsHospitalIdPoliciesGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesGetRequest, options?: AxiosRequestConfig) {
|
|
6259
|
+
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));
|
|
6260
|
+
}
|
|
6261
|
+
|
|
6262
|
+
/**
|
|
6263
|
+
*
|
|
6264
|
+
* @summary Get policy
|
|
6265
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest} requestParameters Request parameters.
|
|
6266
|
+
* @param {*} [options] Override http request option.
|
|
6267
|
+
* @throws {RequiredError}
|
|
6268
|
+
* @memberof HospitalsApi
|
|
6269
|
+
*/
|
|
6270
|
+
public apiV2HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesPolicyIdGetRequest, options?: AxiosRequestConfig) {
|
|
6271
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters.hospitalId, requestParameters.policyId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
6272
|
+
}
|
|
6273
|
+
|
|
6274
|
+
/**
|
|
6275
|
+
*
|
|
6276
|
+
* @summary Get policy by slug
|
|
6277
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest} requestParameters Request parameters.
|
|
6278
|
+
* @param {*} [options] Override http request option.
|
|
6279
|
+
* @throws {RequiredError}
|
|
6280
|
+
* @memberof HospitalsApi
|
|
6281
|
+
*/
|
|
6282
|
+
public apiV2HospitalsHospitalIdPoliciesSlugGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdPoliciesSlugGetRequest, options?: AxiosRequestConfig) {
|
|
6283
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdPoliciesSlugGet(requestParameters.hospitalId, requestParameters.slug, requestParameters.languageCode, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
6284
|
+
}
|
|
6285
|
+
|
|
5789
6286
|
/**
|
|
5790
6287
|
*
|
|
5791
6288
|
* @summary Get all HospitalSpecialties.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger UI - Cloud Hospital Api-INT
|
|
5
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2
|
|
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 FooterNavigationItemModel
|
|
21
|
+
*/
|
|
22
|
+
export interface FooterNavigationItemModel {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof FooterNavigationItemModel
|
|
27
|
+
*/
|
|
28
|
+
'id'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof FooterNavigationItemModel
|
|
33
|
+
*/
|
|
34
|
+
'name'?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FooterNavigationItemModel
|
|
39
|
+
*/
|
|
40
|
+
'url'?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof FooterNavigationItemModel
|
|
45
|
+
*/
|
|
46
|
+
'level'?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof FooterNavigationItemModel
|
|
51
|
+
*/
|
|
52
|
+
'order'?: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FooterNavigationItemModel
|
|
57
|
+
*/
|
|
58
|
+
'parentId'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<FooterNavigationItemModel>}
|
|
62
|
+
* @memberof FooterNavigationItemModel
|
|
63
|
+
*/
|
|
64
|
+
'subItems'?: Array<FooterNavigationItemModel> | null;
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -141,6 +141,7 @@ export * from './faq-tag-item-model';
|
|
|
141
141
|
export * from './faq-tag-model';
|
|
142
142
|
export * from './faq-tags-model';
|
|
143
143
|
export * from './faqs-model';
|
|
144
|
+
export * from './footer-navigation-item-model';
|
|
144
145
|
export * from './gender';
|
|
145
146
|
export * from './geography-point';
|
|
146
147
|
export * from './header-navigation-item-model';
|
|
@@ -212,6 +213,9 @@ export * from './plan-item-model';
|
|
|
212
213
|
export * from './plan-model';
|
|
213
214
|
export * from './plans-model';
|
|
214
215
|
export * from './platform';
|
|
216
|
+
export * from './policies-model';
|
|
217
|
+
export * from './policy-item-model';
|
|
218
|
+
export * from './policy-model';
|
|
215
219
|
export * from './problem-details';
|
|
216
220
|
export * from './procedure';
|
|
217
221
|
export * from './recurring-interval';
|