ch-api-client-typescript2 4.4.4 → 4.4.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.d.ts +376 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +447 -3
- package/package.json +1 -1
- package/src/api.ts +561 -0
package/src/api.ts
CHANGED
|
@@ -3216,6 +3216,22 @@ export interface CreateServiceReviewCommand {
|
|
|
3216
3216
|
*/
|
|
3217
3217
|
'reviewType'?: ReviewType;
|
|
3218
3218
|
}
|
|
3219
|
+
/**
|
|
3220
|
+
*
|
|
3221
|
+
* @export
|
|
3222
|
+
* @enum {string}
|
|
3223
|
+
*/
|
|
3224
|
+
|
|
3225
|
+
export enum DayOfWeek {
|
|
3226
|
+
Sunday = 'Sunday',
|
|
3227
|
+
Monday = 'Monday',
|
|
3228
|
+
Tuesday = 'Tuesday',
|
|
3229
|
+
Wednesday = 'Wednesday',
|
|
3230
|
+
Thursday = 'Thursday',
|
|
3231
|
+
Friday = 'Friday',
|
|
3232
|
+
Saturday = 'Saturday'
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3219
3235
|
/**
|
|
3220
3236
|
*
|
|
3221
3237
|
* @export
|
|
@@ -5617,6 +5633,49 @@ export enum Gender {
|
|
|
5617
5633
|
PreferNotToSay = 'PreferNotToSay'
|
|
5618
5634
|
}
|
|
5619
5635
|
|
|
5636
|
+
/**
|
|
5637
|
+
*
|
|
5638
|
+
* @export
|
|
5639
|
+
* @interface HeaderNavigationItemModel
|
|
5640
|
+
*/
|
|
5641
|
+
export interface HeaderNavigationItemModel {
|
|
5642
|
+
/**
|
|
5643
|
+
*
|
|
5644
|
+
* @type {string}
|
|
5645
|
+
* @memberof HeaderNavigationItemModel
|
|
5646
|
+
*/
|
|
5647
|
+
'id'?: string;
|
|
5648
|
+
/**
|
|
5649
|
+
*
|
|
5650
|
+
* @type {string}
|
|
5651
|
+
* @memberof HeaderNavigationItemModel
|
|
5652
|
+
*/
|
|
5653
|
+
'name'?: string | null;
|
|
5654
|
+
/**
|
|
5655
|
+
*
|
|
5656
|
+
* @type {string}
|
|
5657
|
+
* @memberof HeaderNavigationItemModel
|
|
5658
|
+
*/
|
|
5659
|
+
'url'?: string | null;
|
|
5660
|
+
/**
|
|
5661
|
+
*
|
|
5662
|
+
* @type {number}
|
|
5663
|
+
* @memberof HeaderNavigationItemModel
|
|
5664
|
+
*/
|
|
5665
|
+
'order'?: number;
|
|
5666
|
+
/**
|
|
5667
|
+
*
|
|
5668
|
+
* @type {number}
|
|
5669
|
+
* @memberof HeaderNavigationItemModel
|
|
5670
|
+
*/
|
|
5671
|
+
'level'?: number;
|
|
5672
|
+
/**
|
|
5673
|
+
*
|
|
5674
|
+
* @type {Array<HeaderNavigationItemModel>}
|
|
5675
|
+
* @memberof HeaderNavigationItemModel
|
|
5676
|
+
*/
|
|
5677
|
+
'subItems'?: Array<HeaderNavigationItemModel> | null;
|
|
5678
|
+
}
|
|
5620
5679
|
/**
|
|
5621
5680
|
*
|
|
5622
5681
|
* @export
|
|
@@ -5698,6 +5757,112 @@ export interface HospitalAccreditationsModel {
|
|
|
5698
5757
|
*/
|
|
5699
5758
|
'metaData'?: PagedListMetaData;
|
|
5700
5759
|
}
|
|
5760
|
+
/**
|
|
5761
|
+
*
|
|
5762
|
+
* @export
|
|
5763
|
+
* @interface HospitalConsultationTimetableItemModel
|
|
5764
|
+
*/
|
|
5765
|
+
export interface HospitalConsultationTimetableItemModel {
|
|
5766
|
+
/**
|
|
5767
|
+
*
|
|
5768
|
+
* @type {string}
|
|
5769
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
5770
|
+
*/
|
|
5771
|
+
'id'?: string;
|
|
5772
|
+
/**
|
|
5773
|
+
*
|
|
5774
|
+
* @type {DayOfWeek}
|
|
5775
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
5776
|
+
*/
|
|
5777
|
+
'dayOfWeek'?: DayOfWeek;
|
|
5778
|
+
/**
|
|
5779
|
+
*
|
|
5780
|
+
* @type {string}
|
|
5781
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
5782
|
+
*/
|
|
5783
|
+
'start'?: string | null;
|
|
5784
|
+
/**
|
|
5785
|
+
*
|
|
5786
|
+
* @type {string}
|
|
5787
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
5788
|
+
*/
|
|
5789
|
+
'end'?: string | null;
|
|
5790
|
+
}
|
|
5791
|
+
/**
|
|
5792
|
+
*
|
|
5793
|
+
* @export
|
|
5794
|
+
* @interface HospitalConsultationTimetableOverrideItemModel
|
|
5795
|
+
*/
|
|
5796
|
+
export interface HospitalConsultationTimetableOverrideItemModel {
|
|
5797
|
+
/**
|
|
5798
|
+
*
|
|
5799
|
+
* @type {string}
|
|
5800
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5801
|
+
*/
|
|
5802
|
+
'id'?: string;
|
|
5803
|
+
/**
|
|
5804
|
+
*
|
|
5805
|
+
* @type {Date}
|
|
5806
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5807
|
+
*/
|
|
5808
|
+
'date'?: Date;
|
|
5809
|
+
/**
|
|
5810
|
+
*
|
|
5811
|
+
* @type {string}
|
|
5812
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5813
|
+
*/
|
|
5814
|
+
'start'?: string | null;
|
|
5815
|
+
/**
|
|
5816
|
+
*
|
|
5817
|
+
* @type {string}
|
|
5818
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5819
|
+
*/
|
|
5820
|
+
'end'?: string | null;
|
|
5821
|
+
/**
|
|
5822
|
+
*
|
|
5823
|
+
* @type {boolean}
|
|
5824
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5825
|
+
*/
|
|
5826
|
+
'isUnavailable'?: boolean;
|
|
5827
|
+
}
|
|
5828
|
+
/**
|
|
5829
|
+
*
|
|
5830
|
+
* @export
|
|
5831
|
+
* @interface HospitalConsultationTimetableOverridesModel
|
|
5832
|
+
*/
|
|
5833
|
+
export interface HospitalConsultationTimetableOverridesModel {
|
|
5834
|
+
/**
|
|
5835
|
+
*
|
|
5836
|
+
* @type {Array<HospitalConsultationTimetableOverrideItemModel>}
|
|
5837
|
+
* @memberof HospitalConsultationTimetableOverridesModel
|
|
5838
|
+
*/
|
|
5839
|
+
'items'?: Array<HospitalConsultationTimetableOverrideItemModel> | null;
|
|
5840
|
+
/**
|
|
5841
|
+
*
|
|
5842
|
+
* @type {PagedListMetaData}
|
|
5843
|
+
* @memberof HospitalConsultationTimetableOverridesModel
|
|
5844
|
+
*/
|
|
5845
|
+
'metaData'?: PagedListMetaData;
|
|
5846
|
+
}
|
|
5847
|
+
/**
|
|
5848
|
+
*
|
|
5849
|
+
* @export
|
|
5850
|
+
* @interface HospitalConsultationTimetablesModel
|
|
5851
|
+
*/
|
|
5852
|
+
export interface HospitalConsultationTimetablesModel {
|
|
5853
|
+
/**
|
|
5854
|
+
*
|
|
5855
|
+
* @type {Array<HospitalConsultationTimetableItemModel>}
|
|
5856
|
+
* @memberof HospitalConsultationTimetablesModel
|
|
5857
|
+
*/
|
|
5858
|
+
'items'?: Array<HospitalConsultationTimetableItemModel> | null;
|
|
5859
|
+
/**
|
|
5860
|
+
*
|
|
5861
|
+
* @type {PagedListMetaData}
|
|
5862
|
+
* @memberof HospitalConsultationTimetablesModel
|
|
5863
|
+
*/
|
|
5864
|
+
'metaData'?: PagedListMetaData;
|
|
5865
|
+
}
|
|
5701
5866
|
/**
|
|
5702
5867
|
*
|
|
5703
5868
|
* @export
|
|
@@ -20479,6 +20644,112 @@ export class GroupChannelsApi extends BaseAPI {
|
|
|
20479
20644
|
}
|
|
20480
20645
|
|
|
20481
20646
|
|
|
20647
|
+
/**
|
|
20648
|
+
* HeaderNavigationsApi - axios parameter creator
|
|
20649
|
+
* @export
|
|
20650
|
+
*/
|
|
20651
|
+
export const HeaderNavigationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20652
|
+
return {
|
|
20653
|
+
/**
|
|
20654
|
+
*
|
|
20655
|
+
* @summary Get all HeaderNavigationItems
|
|
20656
|
+
* @param {string} [languageCode]
|
|
20657
|
+
* @param {*} [options] Override http request option.
|
|
20658
|
+
* @throws {RequiredError}
|
|
20659
|
+
*/
|
|
20660
|
+
apiV2HeadernavigationsGet: async (languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20661
|
+
const localVarPath = `/api/v2/headernavigations`;
|
|
20662
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20663
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20664
|
+
let baseOptions;
|
|
20665
|
+
if (configuration) {
|
|
20666
|
+
baseOptions = configuration.baseOptions;
|
|
20667
|
+
}
|
|
20668
|
+
|
|
20669
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20670
|
+
const localVarHeaderParameter = {} as any;
|
|
20671
|
+
const localVarQueryParameter = {} as any;
|
|
20672
|
+
|
|
20673
|
+
if (languageCode !== undefined) {
|
|
20674
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
20675
|
+
}
|
|
20676
|
+
|
|
20677
|
+
|
|
20678
|
+
|
|
20679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20682
|
+
|
|
20683
|
+
return {
|
|
20684
|
+
url: toPathString(localVarUrlObj),
|
|
20685
|
+
options: localVarRequestOptions,
|
|
20686
|
+
};
|
|
20687
|
+
},
|
|
20688
|
+
}
|
|
20689
|
+
};
|
|
20690
|
+
|
|
20691
|
+
/**
|
|
20692
|
+
* HeaderNavigationsApi - functional programming interface
|
|
20693
|
+
* @export
|
|
20694
|
+
*/
|
|
20695
|
+
export const HeaderNavigationsApiFp = function(configuration?: Configuration) {
|
|
20696
|
+
const localVarAxiosParamCreator = HeaderNavigationsApiAxiosParamCreator(configuration)
|
|
20697
|
+
return {
|
|
20698
|
+
/**
|
|
20699
|
+
*
|
|
20700
|
+
* @summary Get all HeaderNavigationItems
|
|
20701
|
+
* @param {string} [languageCode]
|
|
20702
|
+
* @param {*} [options] Override http request option.
|
|
20703
|
+
* @throws {RequiredError}
|
|
20704
|
+
*/
|
|
20705
|
+
async apiV2HeadernavigationsGet(languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HeaderNavigationItemModel>>> {
|
|
20706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HeadernavigationsGet(languageCode, options);
|
|
20707
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20708
|
+
},
|
|
20709
|
+
}
|
|
20710
|
+
};
|
|
20711
|
+
|
|
20712
|
+
/**
|
|
20713
|
+
* HeaderNavigationsApi - factory interface
|
|
20714
|
+
* @export
|
|
20715
|
+
*/
|
|
20716
|
+
export const HeaderNavigationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20717
|
+
const localVarFp = HeaderNavigationsApiFp(configuration)
|
|
20718
|
+
return {
|
|
20719
|
+
/**
|
|
20720
|
+
*
|
|
20721
|
+
* @summary Get all HeaderNavigationItems
|
|
20722
|
+
* @param {string} [languageCode]
|
|
20723
|
+
* @param {*} [options] Override http request option.
|
|
20724
|
+
* @throws {RequiredError}
|
|
20725
|
+
*/
|
|
20726
|
+
apiV2HeadernavigationsGet(languageCode?: string, options?: any): AxiosPromise<Array<HeaderNavigationItemModel>> {
|
|
20727
|
+
return localVarFp.apiV2HeadernavigationsGet(languageCode, options).then((request) => request(axios, basePath));
|
|
20728
|
+
},
|
|
20729
|
+
};
|
|
20730
|
+
};
|
|
20731
|
+
|
|
20732
|
+
/**
|
|
20733
|
+
* HeaderNavigationsApi - object-oriented interface
|
|
20734
|
+
* @export
|
|
20735
|
+
* @class HeaderNavigationsApi
|
|
20736
|
+
* @extends {BaseAPI}
|
|
20737
|
+
*/
|
|
20738
|
+
export class HeaderNavigationsApi extends BaseAPI {
|
|
20739
|
+
/**
|
|
20740
|
+
*
|
|
20741
|
+
* @summary Get all HeaderNavigationItems
|
|
20742
|
+
* @param {string} [languageCode]
|
|
20743
|
+
* @param {*} [options] Override http request option.
|
|
20744
|
+
* @throws {RequiredError}
|
|
20745
|
+
* @memberof HeaderNavigationsApi
|
|
20746
|
+
*/
|
|
20747
|
+
public apiV2HeadernavigationsGet(languageCode?: string, options?: AxiosRequestConfig) {
|
|
20748
|
+
return HeaderNavigationsApiFp(this.configuration).apiV2HeadernavigationsGet(languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
20749
|
+
}
|
|
20750
|
+
}
|
|
20751
|
+
|
|
20752
|
+
|
|
20482
20753
|
/**
|
|
20483
20754
|
* HospitalsApi - axios parameter creator
|
|
20484
20755
|
* @export
|
|
@@ -23906,6 +24177,296 @@ export class HospitalsApi extends BaseAPI {
|
|
|
23906
24177
|
}
|
|
23907
24178
|
|
|
23908
24179
|
|
|
24180
|
+
/**
|
|
24181
|
+
* HospitalsConsultationTimetableOverridesApi - axios parameter creator
|
|
24182
|
+
* @export
|
|
24183
|
+
*/
|
|
24184
|
+
export const HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24185
|
+
return {
|
|
24186
|
+
/**
|
|
24187
|
+
*
|
|
24188
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24189
|
+
* @param {string} hospitalId
|
|
24190
|
+
* @param {boolean} [includesPreviousItems]
|
|
24191
|
+
* @param {Date} [startDate]
|
|
24192
|
+
* @param {Date} [endDate]
|
|
24193
|
+
* @param {number} [page]
|
|
24194
|
+
* @param {number} [limit]
|
|
24195
|
+
* @param {Date} [lastRetrieved]
|
|
24196
|
+
* @param {*} [options] Override http request option.
|
|
24197
|
+
* @throws {RequiredError}
|
|
24198
|
+
*/
|
|
24199
|
+
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet: async (hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24200
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
24201
|
+
assertParamExists('apiV2HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId)
|
|
24202
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/consultationtimetableoverrides`
|
|
24203
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
24204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24205
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24206
|
+
let baseOptions;
|
|
24207
|
+
if (configuration) {
|
|
24208
|
+
baseOptions = configuration.baseOptions;
|
|
24209
|
+
}
|
|
24210
|
+
|
|
24211
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24212
|
+
const localVarHeaderParameter = {} as any;
|
|
24213
|
+
const localVarQueryParameter = {} as any;
|
|
24214
|
+
|
|
24215
|
+
if (includesPreviousItems !== undefined) {
|
|
24216
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
24217
|
+
}
|
|
24218
|
+
|
|
24219
|
+
if (startDate !== undefined) {
|
|
24220
|
+
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
24221
|
+
(startDate as any).toISOString() :
|
|
24222
|
+
startDate;
|
|
24223
|
+
}
|
|
24224
|
+
|
|
24225
|
+
if (endDate !== undefined) {
|
|
24226
|
+
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
24227
|
+
(endDate as any).toISOString() :
|
|
24228
|
+
endDate;
|
|
24229
|
+
}
|
|
24230
|
+
|
|
24231
|
+
if (page !== undefined) {
|
|
24232
|
+
localVarQueryParameter['page'] = page;
|
|
24233
|
+
}
|
|
24234
|
+
|
|
24235
|
+
if (limit !== undefined) {
|
|
24236
|
+
localVarQueryParameter['limit'] = limit;
|
|
24237
|
+
}
|
|
24238
|
+
|
|
24239
|
+
if (lastRetrieved !== undefined) {
|
|
24240
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
24241
|
+
(lastRetrieved as any).toISOString() :
|
|
24242
|
+
lastRetrieved;
|
|
24243
|
+
}
|
|
24244
|
+
|
|
24245
|
+
|
|
24246
|
+
|
|
24247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24249
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24250
|
+
|
|
24251
|
+
return {
|
|
24252
|
+
url: toPathString(localVarUrlObj),
|
|
24253
|
+
options: localVarRequestOptions,
|
|
24254
|
+
};
|
|
24255
|
+
},
|
|
24256
|
+
}
|
|
24257
|
+
};
|
|
24258
|
+
|
|
24259
|
+
/**
|
|
24260
|
+
* HospitalsConsultationTimetableOverridesApi - functional programming interface
|
|
24261
|
+
* @export
|
|
24262
|
+
*/
|
|
24263
|
+
export const HospitalsConsultationTimetableOverridesApiFp = function(configuration?: Configuration) {
|
|
24264
|
+
const localVarAxiosParamCreator = HospitalsConsultationTimetableOverridesApiAxiosParamCreator(configuration)
|
|
24265
|
+
return {
|
|
24266
|
+
/**
|
|
24267
|
+
*
|
|
24268
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24269
|
+
* @param {string} hospitalId
|
|
24270
|
+
* @param {boolean} [includesPreviousItems]
|
|
24271
|
+
* @param {Date} [startDate]
|
|
24272
|
+
* @param {Date} [endDate]
|
|
24273
|
+
* @param {number} [page]
|
|
24274
|
+
* @param {number} [limit]
|
|
24275
|
+
* @param {Date} [lastRetrieved]
|
|
24276
|
+
* @param {*} [options] Override http request option.
|
|
24277
|
+
* @throws {RequiredError}
|
|
24278
|
+
*/
|
|
24279
|
+
async apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverridesModel>> {
|
|
24280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options);
|
|
24281
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24282
|
+
},
|
|
24283
|
+
}
|
|
24284
|
+
};
|
|
24285
|
+
|
|
24286
|
+
/**
|
|
24287
|
+
* HospitalsConsultationTimetableOverridesApi - factory interface
|
|
24288
|
+
* @export
|
|
24289
|
+
*/
|
|
24290
|
+
export const HospitalsConsultationTimetableOverridesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
24291
|
+
const localVarFp = HospitalsConsultationTimetableOverridesApiFp(configuration)
|
|
24292
|
+
return {
|
|
24293
|
+
/**
|
|
24294
|
+
*
|
|
24295
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24296
|
+
* @param {string} hospitalId
|
|
24297
|
+
* @param {boolean} [includesPreviousItems]
|
|
24298
|
+
* @param {Date} [startDate]
|
|
24299
|
+
* @param {Date} [endDate]
|
|
24300
|
+
* @param {number} [page]
|
|
24301
|
+
* @param {number} [limit]
|
|
24302
|
+
* @param {Date} [lastRetrieved]
|
|
24303
|
+
* @param {*} [options] Override http request option.
|
|
24304
|
+
* @throws {RequiredError}
|
|
24305
|
+
*/
|
|
24306
|
+
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetableOverridesModel> {
|
|
24307
|
+
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
24308
|
+
},
|
|
24309
|
+
};
|
|
24310
|
+
};
|
|
24311
|
+
|
|
24312
|
+
/**
|
|
24313
|
+
* HospitalsConsultationTimetableOverridesApi - object-oriented interface
|
|
24314
|
+
* @export
|
|
24315
|
+
* @class HospitalsConsultationTimetableOverridesApi
|
|
24316
|
+
* @extends {BaseAPI}
|
|
24317
|
+
*/
|
|
24318
|
+
export class HospitalsConsultationTimetableOverridesApi extends BaseAPI {
|
|
24319
|
+
/**
|
|
24320
|
+
*
|
|
24321
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24322
|
+
* @param {string} hospitalId
|
|
24323
|
+
* @param {boolean} [includesPreviousItems]
|
|
24324
|
+
* @param {Date} [startDate]
|
|
24325
|
+
* @param {Date} [endDate]
|
|
24326
|
+
* @param {number} [page]
|
|
24327
|
+
* @param {number} [limit]
|
|
24328
|
+
* @param {Date} [lastRetrieved]
|
|
24329
|
+
* @param {*} [options] Override http request option.
|
|
24330
|
+
* @throws {RequiredError}
|
|
24331
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
24332
|
+
*/
|
|
24333
|
+
public apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
24334
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
24335
|
+
}
|
|
24336
|
+
}
|
|
24337
|
+
|
|
24338
|
+
|
|
24339
|
+
/**
|
|
24340
|
+
* HospitalsConsultationTimetablesApi - axios parameter creator
|
|
24341
|
+
* @export
|
|
24342
|
+
*/
|
|
24343
|
+
export const HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24344
|
+
return {
|
|
24345
|
+
/**
|
|
24346
|
+
*
|
|
24347
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
24348
|
+
* @param {string} hospitalId
|
|
24349
|
+
* @param {number} [page]
|
|
24350
|
+
* @param {number} [limit]
|
|
24351
|
+
* @param {Date} [lastRetrieved]
|
|
24352
|
+
* @param {*} [options] Override http request option.
|
|
24353
|
+
* @throws {RequiredError}
|
|
24354
|
+
*/
|
|
24355
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24356
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
24357
|
+
assertParamExists('apiV2HospitalsHospitalIdConsultationtimetablesGet', 'hospitalId', hospitalId)
|
|
24358
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/consultationtimetables`
|
|
24359
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
24360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24361
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24362
|
+
let baseOptions;
|
|
24363
|
+
if (configuration) {
|
|
24364
|
+
baseOptions = configuration.baseOptions;
|
|
24365
|
+
}
|
|
24366
|
+
|
|
24367
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24368
|
+
const localVarHeaderParameter = {} as any;
|
|
24369
|
+
const localVarQueryParameter = {} as any;
|
|
24370
|
+
|
|
24371
|
+
if (page !== undefined) {
|
|
24372
|
+
localVarQueryParameter['page'] = page;
|
|
24373
|
+
}
|
|
24374
|
+
|
|
24375
|
+
if (limit !== undefined) {
|
|
24376
|
+
localVarQueryParameter['limit'] = limit;
|
|
24377
|
+
}
|
|
24378
|
+
|
|
24379
|
+
if (lastRetrieved !== undefined) {
|
|
24380
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
24381
|
+
(lastRetrieved as any).toISOString() :
|
|
24382
|
+
lastRetrieved;
|
|
24383
|
+
}
|
|
24384
|
+
|
|
24385
|
+
|
|
24386
|
+
|
|
24387
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24389
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24390
|
+
|
|
24391
|
+
return {
|
|
24392
|
+
url: toPathString(localVarUrlObj),
|
|
24393
|
+
options: localVarRequestOptions,
|
|
24394
|
+
};
|
|
24395
|
+
},
|
|
24396
|
+
}
|
|
24397
|
+
};
|
|
24398
|
+
|
|
24399
|
+
/**
|
|
24400
|
+
* HospitalsConsultationTimetablesApi - functional programming interface
|
|
24401
|
+
* @export
|
|
24402
|
+
*/
|
|
24403
|
+
export const HospitalsConsultationTimetablesApiFp = function(configuration?: Configuration) {
|
|
24404
|
+
const localVarAxiosParamCreator = HospitalsConsultationTimetablesApiAxiosParamCreator(configuration)
|
|
24405
|
+
return {
|
|
24406
|
+
/**
|
|
24407
|
+
*
|
|
24408
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
24409
|
+
* @param {string} hospitalId
|
|
24410
|
+
* @param {number} [page]
|
|
24411
|
+
* @param {number} [limit]
|
|
24412
|
+
* @param {Date} [lastRetrieved]
|
|
24413
|
+
* @param {*} [options] Override http request option.
|
|
24414
|
+
* @throws {RequiredError}
|
|
24415
|
+
*/
|
|
24416
|
+
async apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetablesModel>> {
|
|
24417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options);
|
|
24418
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24419
|
+
},
|
|
24420
|
+
}
|
|
24421
|
+
};
|
|
24422
|
+
|
|
24423
|
+
/**
|
|
24424
|
+
* HospitalsConsultationTimetablesApi - factory interface
|
|
24425
|
+
* @export
|
|
24426
|
+
*/
|
|
24427
|
+
export const HospitalsConsultationTimetablesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
24428
|
+
const localVarFp = HospitalsConsultationTimetablesApiFp(configuration)
|
|
24429
|
+
return {
|
|
24430
|
+
/**
|
|
24431
|
+
*
|
|
24432
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
24433
|
+
* @param {string} hospitalId
|
|
24434
|
+
* @param {number} [page]
|
|
24435
|
+
* @param {number} [limit]
|
|
24436
|
+
* @param {Date} [lastRetrieved]
|
|
24437
|
+
* @param {*} [options] Override http request option.
|
|
24438
|
+
* @throws {RequiredError}
|
|
24439
|
+
*/
|
|
24440
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetablesModel> {
|
|
24441
|
+
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
24442
|
+
},
|
|
24443
|
+
};
|
|
24444
|
+
};
|
|
24445
|
+
|
|
24446
|
+
/**
|
|
24447
|
+
* HospitalsConsultationTimetablesApi - object-oriented interface
|
|
24448
|
+
* @export
|
|
24449
|
+
* @class HospitalsConsultationTimetablesApi
|
|
24450
|
+
* @extends {BaseAPI}
|
|
24451
|
+
*/
|
|
24452
|
+
export class HospitalsConsultationTimetablesApi extends BaseAPI {
|
|
24453
|
+
/**
|
|
24454
|
+
*
|
|
24455
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
24456
|
+
* @param {string} hospitalId
|
|
24457
|
+
* @param {number} [page]
|
|
24458
|
+
* @param {number} [limit]
|
|
24459
|
+
* @param {Date} [lastRetrieved]
|
|
24460
|
+
* @param {*} [options] Override http request option.
|
|
24461
|
+
* @throws {RequiredError}
|
|
24462
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
24463
|
+
*/
|
|
24464
|
+
public apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
24465
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
24466
|
+
}
|
|
24467
|
+
}
|
|
24468
|
+
|
|
24469
|
+
|
|
23909
24470
|
/**
|
|
23910
24471
|
* ImagesApi - axios parameter creator
|
|
23911
24472
|
* @export
|