ch-api-client-typescript2 3.1.2 → 3.1.5
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.d.ts +231 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +364 -0
- package/package.json +1 -1
- package/src/api.ts +413 -0
package/src/api.ts
CHANGED
|
@@ -8964,6 +8964,25 @@ export interface SpecialtiesModel {
|
|
|
8964
8964
|
*/
|
|
8965
8965
|
'metaData'?: PagedListMetaData;
|
|
8966
8966
|
}
|
|
8967
|
+
/**
|
|
8968
|
+
*
|
|
8969
|
+
* @export
|
|
8970
|
+
* @interface SpecialtiesSimpleModel
|
|
8971
|
+
*/
|
|
8972
|
+
export interface SpecialtiesSimpleModel {
|
|
8973
|
+
/**
|
|
8974
|
+
*
|
|
8975
|
+
* @type {Array<SpecialtyItemSimpleModel>}
|
|
8976
|
+
* @memberof SpecialtiesSimpleModel
|
|
8977
|
+
*/
|
|
8978
|
+
'items'?: Array<SpecialtyItemSimpleModel> | null;
|
|
8979
|
+
/**
|
|
8980
|
+
*
|
|
8981
|
+
* @type {PagedListMetaData}
|
|
8982
|
+
* @memberof SpecialtiesSimpleModel
|
|
8983
|
+
*/
|
|
8984
|
+
'metaData'?: PagedListMetaData;
|
|
8985
|
+
}
|
|
8967
8986
|
/**
|
|
8968
8987
|
*
|
|
8969
8988
|
* @export
|
|
@@ -9055,6 +9074,43 @@ export interface SpecialtyItemModel {
|
|
|
9055
9074
|
*/
|
|
9056
9075
|
'medias'?: Array<MediaModel> | null;
|
|
9057
9076
|
}
|
|
9077
|
+
/**
|
|
9078
|
+
*
|
|
9079
|
+
* @export
|
|
9080
|
+
* @interface SpecialtyItemSimpleModel
|
|
9081
|
+
*/
|
|
9082
|
+
export interface SpecialtyItemSimpleModel {
|
|
9083
|
+
/**
|
|
9084
|
+
*
|
|
9085
|
+
* @type {string}
|
|
9086
|
+
* @memberof SpecialtyItemSimpleModel
|
|
9087
|
+
*/
|
|
9088
|
+
'id'?: string;
|
|
9089
|
+
/**
|
|
9090
|
+
*
|
|
9091
|
+
* @type {string}
|
|
9092
|
+
* @memberof SpecialtyItemSimpleModel
|
|
9093
|
+
*/
|
|
9094
|
+
'name'?: string | null;
|
|
9095
|
+
/**
|
|
9096
|
+
*
|
|
9097
|
+
* @type {string}
|
|
9098
|
+
* @memberof SpecialtyItemSimpleModel
|
|
9099
|
+
*/
|
|
9100
|
+
'slug'?: string | null;
|
|
9101
|
+
/**
|
|
9102
|
+
*
|
|
9103
|
+
* @type {string}
|
|
9104
|
+
* @memberof SpecialtyItemSimpleModel
|
|
9105
|
+
*/
|
|
9106
|
+
'specialtyTypeId'?: string;
|
|
9107
|
+
/**
|
|
9108
|
+
*
|
|
9109
|
+
* @type {boolean}
|
|
9110
|
+
* @memberof SpecialtyItemSimpleModel
|
|
9111
|
+
*/
|
|
9112
|
+
'confirmed'?: boolean;
|
|
9113
|
+
}
|
|
9058
9114
|
/**
|
|
9059
9115
|
*
|
|
9060
9116
|
* @export
|
|
@@ -19809,6 +19865,113 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19809
19865
|
|
|
19810
19866
|
|
|
19811
19867
|
|
|
19868
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19869
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19870
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19871
|
+
|
|
19872
|
+
return {
|
|
19873
|
+
url: toPathString(localVarUrlObj),
|
|
19874
|
+
options: localVarRequestOptions,
|
|
19875
|
+
};
|
|
19876
|
+
},
|
|
19877
|
+
/**
|
|
19878
|
+
*
|
|
19879
|
+
* @summary Get all HospitalServiceMedias.
|
|
19880
|
+
* @param {string} hospitalId
|
|
19881
|
+
* @param {string} hospitalSpecialtyId
|
|
19882
|
+
* @param {string} [id]
|
|
19883
|
+
* @param {MediaType} [mediaType]
|
|
19884
|
+
* @param {number} [page]
|
|
19885
|
+
* @param {number} [limit]
|
|
19886
|
+
* @param {Date} [lastRetrieved]
|
|
19887
|
+
* @param {*} [options] Override http request option.
|
|
19888
|
+
* @throws {RequiredError}
|
|
19889
|
+
*/
|
|
19890
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: async (hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19891
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19892
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId)
|
|
19893
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
19894
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
|
|
19895
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
|
|
19896
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
19897
|
+
.replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
|
|
19898
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19899
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19900
|
+
let baseOptions;
|
|
19901
|
+
if (configuration) {
|
|
19902
|
+
baseOptions = configuration.baseOptions;
|
|
19903
|
+
}
|
|
19904
|
+
|
|
19905
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19906
|
+
const localVarHeaderParameter = {} as any;
|
|
19907
|
+
const localVarQueryParameter = {} as any;
|
|
19908
|
+
|
|
19909
|
+
if (id !== undefined) {
|
|
19910
|
+
localVarQueryParameter['Id'] = id;
|
|
19911
|
+
}
|
|
19912
|
+
|
|
19913
|
+
if (mediaType !== undefined) {
|
|
19914
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
19915
|
+
}
|
|
19916
|
+
|
|
19917
|
+
if (page !== undefined) {
|
|
19918
|
+
localVarQueryParameter['page'] = page;
|
|
19919
|
+
}
|
|
19920
|
+
|
|
19921
|
+
if (limit !== undefined) {
|
|
19922
|
+
localVarQueryParameter['limit'] = limit;
|
|
19923
|
+
}
|
|
19924
|
+
|
|
19925
|
+
if (lastRetrieved !== undefined) {
|
|
19926
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
19927
|
+
(lastRetrieved as any).toISOString() :
|
|
19928
|
+
lastRetrieved;
|
|
19929
|
+
}
|
|
19930
|
+
|
|
19931
|
+
|
|
19932
|
+
|
|
19933
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19935
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19936
|
+
|
|
19937
|
+
return {
|
|
19938
|
+
url: toPathString(localVarUrlObj),
|
|
19939
|
+
options: localVarRequestOptions,
|
|
19940
|
+
};
|
|
19941
|
+
},
|
|
19942
|
+
/**
|
|
19943
|
+
*
|
|
19944
|
+
* @summary Get HospitalServiceMedia.
|
|
19945
|
+
* @param {string} hospitalId
|
|
19946
|
+
* @param {string} hospitalSpecialtyId
|
|
19947
|
+
* @param {string} mediaId
|
|
19948
|
+
* @param {*} [options] Override http request option.
|
|
19949
|
+
* @throws {RequiredError}
|
|
19950
|
+
*/
|
|
19951
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19952
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19953
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId)
|
|
19954
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
19955
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
|
|
19956
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
19957
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
19958
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
|
|
19959
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
19960
|
+
.replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
|
|
19961
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
19962
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19963
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19964
|
+
let baseOptions;
|
|
19965
|
+
if (configuration) {
|
|
19966
|
+
baseOptions = configuration.baseOptions;
|
|
19967
|
+
}
|
|
19968
|
+
|
|
19969
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19970
|
+
const localVarHeaderParameter = {} as any;
|
|
19971
|
+
const localVarQueryParameter = {} as any;
|
|
19972
|
+
|
|
19973
|
+
|
|
19974
|
+
|
|
19812
19975
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19813
19976
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19814
19977
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20802,6 +20965,36 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
20802
20965
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options);
|
|
20803
20966
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20804
20967
|
},
|
|
20968
|
+
/**
|
|
20969
|
+
*
|
|
20970
|
+
* @summary Get all HospitalServiceMedias.
|
|
20971
|
+
* @param {string} hospitalId
|
|
20972
|
+
* @param {string} hospitalSpecialtyId
|
|
20973
|
+
* @param {string} [id]
|
|
20974
|
+
* @param {MediaType} [mediaType]
|
|
20975
|
+
* @param {number} [page]
|
|
20976
|
+
* @param {number} [limit]
|
|
20977
|
+
* @param {Date} [lastRetrieved]
|
|
20978
|
+
* @param {*} [options] Override http request option.
|
|
20979
|
+
* @throws {RequiredError}
|
|
20980
|
+
*/
|
|
20981
|
+
async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
20982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options);
|
|
20983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20984
|
+
},
|
|
20985
|
+
/**
|
|
20986
|
+
*
|
|
20987
|
+
* @summary Get HospitalServiceMedia.
|
|
20988
|
+
* @param {string} hospitalId
|
|
20989
|
+
* @param {string} hospitalSpecialtyId
|
|
20990
|
+
* @param {string} mediaId
|
|
20991
|
+
* @param {*} [options] Override http request option.
|
|
20992
|
+
* @throws {RequiredError}
|
|
20993
|
+
*/
|
|
20994
|
+
async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
20995
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options);
|
|
20996
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20997
|
+
},
|
|
20805
20998
|
/**
|
|
20806
20999
|
*
|
|
20807
21000
|
* @summary Get all HospitalSpecialties.
|
|
@@ -21224,6 +21417,34 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
21224
21417
|
apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
|
|
21225
21418
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21226
21419
|
},
|
|
21420
|
+
/**
|
|
21421
|
+
*
|
|
21422
|
+
* @summary Get all HospitalServiceMedias.
|
|
21423
|
+
* @param {string} hospitalId
|
|
21424
|
+
* @param {string} hospitalSpecialtyId
|
|
21425
|
+
* @param {string} [id]
|
|
21426
|
+
* @param {MediaType} [mediaType]
|
|
21427
|
+
* @param {number} [page]
|
|
21428
|
+
* @param {number} [limit]
|
|
21429
|
+
* @param {Date} [lastRetrieved]
|
|
21430
|
+
* @param {*} [options] Override http request option.
|
|
21431
|
+
* @throws {RequiredError}
|
|
21432
|
+
*/
|
|
21433
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
21434
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21435
|
+
},
|
|
21436
|
+
/**
|
|
21437
|
+
*
|
|
21438
|
+
* @summary Get HospitalServiceMedia.
|
|
21439
|
+
* @param {string} hospitalId
|
|
21440
|
+
* @param {string} hospitalSpecialtyId
|
|
21441
|
+
* @param {string} mediaId
|
|
21442
|
+
* @param {*} [options] Override http request option.
|
|
21443
|
+
* @throws {RequiredError}
|
|
21444
|
+
*/
|
|
21445
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
21446
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
|
|
21447
|
+
},
|
|
21227
21448
|
/**
|
|
21228
21449
|
*
|
|
21229
21450
|
* @summary Get all HospitalSpecialties.
|
|
@@ -21666,6 +21887,38 @@ export class HospitalsApi extends BaseAPI {
|
|
|
21666
21887
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21667
21888
|
}
|
|
21668
21889
|
|
|
21890
|
+
/**
|
|
21891
|
+
*
|
|
21892
|
+
* @summary Get all HospitalServiceMedias.
|
|
21893
|
+
* @param {string} hospitalId
|
|
21894
|
+
* @param {string} hospitalSpecialtyId
|
|
21895
|
+
* @param {string} [id]
|
|
21896
|
+
* @param {MediaType} [mediaType]
|
|
21897
|
+
* @param {number} [page]
|
|
21898
|
+
* @param {number} [limit]
|
|
21899
|
+
* @param {Date} [lastRetrieved]
|
|
21900
|
+
* @param {*} [options] Override http request option.
|
|
21901
|
+
* @throws {RequiredError}
|
|
21902
|
+
* @memberof HospitalsApi
|
|
21903
|
+
*/
|
|
21904
|
+
public apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
21905
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21906
|
+
}
|
|
21907
|
+
|
|
21908
|
+
/**
|
|
21909
|
+
*
|
|
21910
|
+
* @summary Get HospitalServiceMedia.
|
|
21911
|
+
* @param {string} hospitalId
|
|
21912
|
+
* @param {string} hospitalSpecialtyId
|
|
21913
|
+
* @param {string} mediaId
|
|
21914
|
+
* @param {*} [options] Override http request option.
|
|
21915
|
+
* @throws {RequiredError}
|
|
21916
|
+
* @memberof HospitalsApi
|
|
21917
|
+
*/
|
|
21918
|
+
public apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
21919
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
21920
|
+
}
|
|
21921
|
+
|
|
21669
21922
|
/**
|
|
21670
21923
|
*
|
|
21671
21924
|
* @summary Get all HospitalSpecialties.
|
|
@@ -26456,6 +26709,100 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26456
26709
|
|
|
26457
26710
|
|
|
26458
26711
|
|
|
26712
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26713
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26714
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26715
|
+
|
|
26716
|
+
return {
|
|
26717
|
+
url: toPathString(localVarUrlObj),
|
|
26718
|
+
options: localVarRequestOptions,
|
|
26719
|
+
};
|
|
26720
|
+
},
|
|
26721
|
+
/**
|
|
26722
|
+
*
|
|
26723
|
+
* @summary Get all Specialties Simple.
|
|
26724
|
+
* @param {string} [id]
|
|
26725
|
+
* @param {string} [name]
|
|
26726
|
+
* @param {string} [description]
|
|
26727
|
+
* @param {string} [specialtyTypeId]
|
|
26728
|
+
* @param {string} [hospitalId]
|
|
26729
|
+
* @param {Date} [created]
|
|
26730
|
+
* @param {string} [languageCode]
|
|
26731
|
+
* @param {Array<string>} [ids]
|
|
26732
|
+
* @param {boolean} [returnDefaultValue]
|
|
26733
|
+
* @param {number} [page]
|
|
26734
|
+
* @param {number} [limit]
|
|
26735
|
+
* @param {Date} [lastRetrieved]
|
|
26736
|
+
* @param {*} [options] Override http request option.
|
|
26737
|
+
* @throws {RequiredError}
|
|
26738
|
+
*/
|
|
26739
|
+
apiV2SpecialtiesSimpleGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26740
|
+
const localVarPath = `/api/v2/specialties/simple`;
|
|
26741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26742
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26743
|
+
let baseOptions;
|
|
26744
|
+
if (configuration) {
|
|
26745
|
+
baseOptions = configuration.baseOptions;
|
|
26746
|
+
}
|
|
26747
|
+
|
|
26748
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26749
|
+
const localVarHeaderParameter = {} as any;
|
|
26750
|
+
const localVarQueryParameter = {} as any;
|
|
26751
|
+
|
|
26752
|
+
if (id !== undefined) {
|
|
26753
|
+
localVarQueryParameter['Id'] = id;
|
|
26754
|
+
}
|
|
26755
|
+
|
|
26756
|
+
if (name !== undefined) {
|
|
26757
|
+
localVarQueryParameter['Name'] = name;
|
|
26758
|
+
}
|
|
26759
|
+
|
|
26760
|
+
if (description !== undefined) {
|
|
26761
|
+
localVarQueryParameter['Description'] = description;
|
|
26762
|
+
}
|
|
26763
|
+
|
|
26764
|
+
if (specialtyTypeId !== undefined) {
|
|
26765
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
26766
|
+
}
|
|
26767
|
+
|
|
26768
|
+
if (hospitalId !== undefined) {
|
|
26769
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
26770
|
+
}
|
|
26771
|
+
|
|
26772
|
+
if (created !== undefined) {
|
|
26773
|
+
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
26774
|
+
(created as any).toISOString() :
|
|
26775
|
+
created;
|
|
26776
|
+
}
|
|
26777
|
+
|
|
26778
|
+
if (languageCode !== undefined) {
|
|
26779
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
26780
|
+
}
|
|
26781
|
+
|
|
26782
|
+
if (ids) {
|
|
26783
|
+
localVarQueryParameter['Ids'] = ids;
|
|
26784
|
+
}
|
|
26785
|
+
|
|
26786
|
+
if (returnDefaultValue !== undefined) {
|
|
26787
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
26788
|
+
}
|
|
26789
|
+
|
|
26790
|
+
if (page !== undefined) {
|
|
26791
|
+
localVarQueryParameter['page'] = page;
|
|
26792
|
+
}
|
|
26793
|
+
|
|
26794
|
+
if (limit !== undefined) {
|
|
26795
|
+
localVarQueryParameter['limit'] = limit;
|
|
26796
|
+
}
|
|
26797
|
+
|
|
26798
|
+
if (lastRetrieved !== undefined) {
|
|
26799
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
26800
|
+
(lastRetrieved as any).toISOString() :
|
|
26801
|
+
lastRetrieved;
|
|
26802
|
+
}
|
|
26803
|
+
|
|
26804
|
+
|
|
26805
|
+
|
|
26459
26806
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26460
26807
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26461
26808
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26682,6 +27029,28 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
|
|
|
26682
27029
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
26683
27030
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26684
27031
|
},
|
|
27032
|
+
/**
|
|
27033
|
+
*
|
|
27034
|
+
* @summary Get all Specialties Simple.
|
|
27035
|
+
* @param {string} [id]
|
|
27036
|
+
* @param {string} [name]
|
|
27037
|
+
* @param {string} [description]
|
|
27038
|
+
* @param {string} [specialtyTypeId]
|
|
27039
|
+
* @param {string} [hospitalId]
|
|
27040
|
+
* @param {Date} [created]
|
|
27041
|
+
* @param {string} [languageCode]
|
|
27042
|
+
* @param {Array<string>} [ids]
|
|
27043
|
+
* @param {boolean} [returnDefaultValue]
|
|
27044
|
+
* @param {number} [page]
|
|
27045
|
+
* @param {number} [limit]
|
|
27046
|
+
* @param {Date} [lastRetrieved]
|
|
27047
|
+
* @param {*} [options] Override http request option.
|
|
27048
|
+
* @throws {RequiredError}
|
|
27049
|
+
*/
|
|
27050
|
+
async apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesSimpleModel>> {
|
|
27051
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
27052
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
27053
|
+
},
|
|
26685
27054
|
/**
|
|
26686
27055
|
*
|
|
26687
27056
|
* @param {string} slug
|
|
@@ -26765,6 +27134,27 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
|
|
|
26765
27134
|
apiV2SpecialtiesGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesModel> {
|
|
26766
27135
|
return localVarFp.apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
26767
27136
|
},
|
|
27137
|
+
/**
|
|
27138
|
+
*
|
|
27139
|
+
* @summary Get all Specialties Simple.
|
|
27140
|
+
* @param {string} [id]
|
|
27141
|
+
* @param {string} [name]
|
|
27142
|
+
* @param {string} [description]
|
|
27143
|
+
* @param {string} [specialtyTypeId]
|
|
27144
|
+
* @param {string} [hospitalId]
|
|
27145
|
+
* @param {Date} [created]
|
|
27146
|
+
* @param {string} [languageCode]
|
|
27147
|
+
* @param {Array<string>} [ids]
|
|
27148
|
+
* @param {boolean} [returnDefaultValue]
|
|
27149
|
+
* @param {number} [page]
|
|
27150
|
+
* @param {number} [limit]
|
|
27151
|
+
* @param {Date} [lastRetrieved]
|
|
27152
|
+
* @param {*} [options] Override http request option.
|
|
27153
|
+
* @throws {RequiredError}
|
|
27154
|
+
*/
|
|
27155
|
+
apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesSimpleModel> {
|
|
27156
|
+
return localVarFp.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
27157
|
+
},
|
|
26768
27158
|
/**
|
|
26769
27159
|
*
|
|
26770
27160
|
* @param {string} slug
|
|
@@ -26846,6 +27236,29 @@ export class SpecialtiesApi extends BaseAPI {
|
|
|
26846
27236
|
return SpecialtiesApiFp(this.configuration).apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
26847
27237
|
}
|
|
26848
27238
|
|
|
27239
|
+
/**
|
|
27240
|
+
*
|
|
27241
|
+
* @summary Get all Specialties Simple.
|
|
27242
|
+
* @param {string} [id]
|
|
27243
|
+
* @param {string} [name]
|
|
27244
|
+
* @param {string} [description]
|
|
27245
|
+
* @param {string} [specialtyTypeId]
|
|
27246
|
+
* @param {string} [hospitalId]
|
|
27247
|
+
* @param {Date} [created]
|
|
27248
|
+
* @param {string} [languageCode]
|
|
27249
|
+
* @param {Array<string>} [ids]
|
|
27250
|
+
* @param {boolean} [returnDefaultValue]
|
|
27251
|
+
* @param {number} [page]
|
|
27252
|
+
* @param {number} [limit]
|
|
27253
|
+
* @param {Date} [lastRetrieved]
|
|
27254
|
+
* @param {*} [options] Override http request option.
|
|
27255
|
+
* @throws {RequiredError}
|
|
27256
|
+
* @memberof SpecialtiesApi
|
|
27257
|
+
*/
|
|
27258
|
+
public apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
27259
|
+
return SpecialtiesApiFp(this.configuration).apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
27260
|
+
}
|
|
27261
|
+
|
|
26849
27262
|
/**
|
|
26850
27263
|
*
|
|
26851
27264
|
* @param {string} slug
|