ch-api-client-typescript2 4.4.9 → 4.5.0
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 +136 -196
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +62 -218
- package/package.json +1 -1
- package/src/api.ts +148 -284
package/src/api.ts
CHANGED
|
@@ -2288,6 +2288,116 @@ export enum ConsultationStatus {
|
|
|
2288
2288
|
Refunded = 'Refunded'
|
|
2289
2289
|
}
|
|
2290
2290
|
|
|
2291
|
+
/**
|
|
2292
|
+
*
|
|
2293
|
+
* @export
|
|
2294
|
+
* @interface ConsultationTimetableDateModel
|
|
2295
|
+
*/
|
|
2296
|
+
export interface ConsultationTimetableDateModel {
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @type {Date}
|
|
2300
|
+
* @memberof ConsultationTimetableDateModel
|
|
2301
|
+
*/
|
|
2302
|
+
'date'?: Date;
|
|
2303
|
+
/**
|
|
2304
|
+
*
|
|
2305
|
+
* @type {DayOfWeek}
|
|
2306
|
+
* @memberof ConsultationTimetableDateModel
|
|
2307
|
+
*/
|
|
2308
|
+
'dayOfWeek'?: DayOfWeek;
|
|
2309
|
+
/**
|
|
2310
|
+
*
|
|
2311
|
+
* @type {ConsultationTimetableStatus}
|
|
2312
|
+
* @memberof ConsultationTimetableDateModel
|
|
2313
|
+
*/
|
|
2314
|
+
'status'?: ConsultationTimetableStatus;
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
* @type {boolean}
|
|
2318
|
+
* @memberof ConsultationTimetableDateModel
|
|
2319
|
+
*/
|
|
2320
|
+
'isAvailable'?: boolean;
|
|
2321
|
+
/**
|
|
2322
|
+
*
|
|
2323
|
+
* @type {Array<ConsultationTimetableTimeSlotModel>}
|
|
2324
|
+
* @memberof ConsultationTimetableDateModel
|
|
2325
|
+
*/
|
|
2326
|
+
'slots'?: Array<ConsultationTimetableTimeSlotModel> | null;
|
|
2327
|
+
/**
|
|
2328
|
+
*
|
|
2329
|
+
* @type {boolean}
|
|
2330
|
+
* @memberof ConsultationTimetableDateModel
|
|
2331
|
+
*/
|
|
2332
|
+
'hasTimeSlotItems'?: boolean;
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
*
|
|
2336
|
+
* @export
|
|
2337
|
+
* @interface ConsultationTimetableModel
|
|
2338
|
+
*/
|
|
2339
|
+
export interface ConsultationTimetableModel {
|
|
2340
|
+
/**
|
|
2341
|
+
*
|
|
2342
|
+
* @type {string}
|
|
2343
|
+
* @memberof ConsultationTimetableModel
|
|
2344
|
+
*/
|
|
2345
|
+
'hospitalTimeZone'?: string | null;
|
|
2346
|
+
/**
|
|
2347
|
+
*
|
|
2348
|
+
* @type {Date}
|
|
2349
|
+
* @memberof ConsultationTimetableModel
|
|
2350
|
+
*/
|
|
2351
|
+
'today'?: Date;
|
|
2352
|
+
/**
|
|
2353
|
+
*
|
|
2354
|
+
* @type {Array<ConsultationTimetableDateModel>}
|
|
2355
|
+
* @memberof ConsultationTimetableModel
|
|
2356
|
+
*/
|
|
2357
|
+
'days'?: Array<ConsultationTimetableDateModel> | null;
|
|
2358
|
+
}
|
|
2359
|
+
/**
|
|
2360
|
+
*
|
|
2361
|
+
* @export
|
|
2362
|
+
* @enum {string}
|
|
2363
|
+
*/
|
|
2364
|
+
|
|
2365
|
+
export enum ConsultationTimetableStatus {
|
|
2366
|
+
Available = 'Available',
|
|
2367
|
+
Unavailable = 'Unavailable'
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @export
|
|
2373
|
+
* @interface ConsultationTimetableTimeSlotModel
|
|
2374
|
+
*/
|
|
2375
|
+
export interface ConsultationTimetableTimeSlotModel {
|
|
2376
|
+
/**
|
|
2377
|
+
*
|
|
2378
|
+
* @type {Date}
|
|
2379
|
+
* @memberof ConsultationTimetableTimeSlotModel
|
|
2380
|
+
*/
|
|
2381
|
+
'startTime'?: Date;
|
|
2382
|
+
/**
|
|
2383
|
+
*
|
|
2384
|
+
* @type {Date}
|
|
2385
|
+
* @memberof ConsultationTimetableTimeSlotModel
|
|
2386
|
+
*/
|
|
2387
|
+
'endTime'?: Date;
|
|
2388
|
+
/**
|
|
2389
|
+
*
|
|
2390
|
+
* @type {ConsultationTimetableStatus}
|
|
2391
|
+
* @memberof ConsultationTimetableTimeSlotModel
|
|
2392
|
+
*/
|
|
2393
|
+
'status'?: ConsultationTimetableStatus;
|
|
2394
|
+
/**
|
|
2395
|
+
*
|
|
2396
|
+
* @type {boolean}
|
|
2397
|
+
* @memberof ConsultationTimetableTimeSlotModel
|
|
2398
|
+
*/
|
|
2399
|
+
'isAvailable'?: boolean;
|
|
2400
|
+
}
|
|
2291
2401
|
/**
|
|
2292
2402
|
*
|
|
2293
2403
|
* @export
|
|
@@ -5766,114 +5876,27 @@ export interface HospitalAccreditationsModel {
|
|
|
5766
5876
|
/**
|
|
5767
5877
|
*
|
|
5768
5878
|
* @export
|
|
5769
|
-
* @interface
|
|
5879
|
+
* @interface HospitalConsultationOptionModel
|
|
5770
5880
|
*/
|
|
5771
|
-
export interface
|
|
5772
|
-
/**
|
|
5773
|
-
*
|
|
5774
|
-
* @type {string}
|
|
5775
|
-
* @memberof HospitalConsultationTimetableItemModel
|
|
5776
|
-
*/
|
|
5777
|
-
'id'?: string;
|
|
5778
|
-
/**
|
|
5779
|
-
*
|
|
5780
|
-
* @type {DayOfWeek}
|
|
5781
|
-
* @memberof HospitalConsultationTimetableItemModel
|
|
5782
|
-
*/
|
|
5783
|
-
'dayOfWeek'?: DayOfWeek;
|
|
5784
|
-
/**
|
|
5785
|
-
*
|
|
5786
|
-
* @type {string}
|
|
5787
|
-
* @memberof HospitalConsultationTimetableItemModel
|
|
5788
|
-
*/
|
|
5789
|
-
'start'?: string | null;
|
|
5790
|
-
/**
|
|
5791
|
-
*
|
|
5792
|
-
* @type {string}
|
|
5793
|
-
* @memberof HospitalConsultationTimetableItemModel
|
|
5794
|
-
*/
|
|
5795
|
-
'end'?: string | null;
|
|
5796
|
-
}
|
|
5797
|
-
/**
|
|
5798
|
-
*
|
|
5799
|
-
* @export
|
|
5800
|
-
* @interface HospitalConsultationTimetableOverrideItemModel
|
|
5801
|
-
*/
|
|
5802
|
-
export interface HospitalConsultationTimetableOverrideItemModel {
|
|
5803
|
-
/**
|
|
5804
|
-
*
|
|
5805
|
-
* @type {string}
|
|
5806
|
-
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5807
|
-
*/
|
|
5808
|
-
'id'?: string;
|
|
5809
|
-
/**
|
|
5810
|
-
*
|
|
5811
|
-
* @type {Date}
|
|
5812
|
-
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5813
|
-
*/
|
|
5814
|
-
'date'?: Date;
|
|
5815
|
-
/**
|
|
5816
|
-
*
|
|
5817
|
-
* @type {DayOfWeek}
|
|
5818
|
-
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5819
|
-
*/
|
|
5820
|
-
'dayOfWeek'?: DayOfWeek;
|
|
5821
|
-
/**
|
|
5822
|
-
*
|
|
5823
|
-
* @type {string}
|
|
5824
|
-
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5825
|
-
*/
|
|
5826
|
-
'start'?: string | null;
|
|
5827
|
-
/**
|
|
5828
|
-
*
|
|
5829
|
-
* @type {string}
|
|
5830
|
-
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
5831
|
-
*/
|
|
5832
|
-
'end'?: string | null;
|
|
5881
|
+
export interface HospitalConsultationOptionModel {
|
|
5833
5882
|
/**
|
|
5834
5883
|
*
|
|
5835
5884
|
* @type {boolean}
|
|
5836
|
-
* @memberof
|
|
5885
|
+
* @memberof HospitalConsultationOptionModel
|
|
5837
5886
|
*/
|
|
5838
|
-
'
|
|
5839
|
-
}
|
|
5840
|
-
/**
|
|
5841
|
-
*
|
|
5842
|
-
* @export
|
|
5843
|
-
* @interface HospitalConsultationTimetableOverridesModel
|
|
5844
|
-
*/
|
|
5845
|
-
export interface HospitalConsultationTimetableOverridesModel {
|
|
5887
|
+
'useTimetable'?: boolean;
|
|
5846
5888
|
/**
|
|
5847
5889
|
*
|
|
5848
|
-
* @type {
|
|
5849
|
-
* @memberof
|
|
5850
|
-
*/
|
|
5851
|
-
'items'?: Array<HospitalConsultationTimetableOverrideItemModel> | null;
|
|
5852
|
-
/**
|
|
5853
|
-
*
|
|
5854
|
-
* @type {PagedListMetaData}
|
|
5855
|
-
* @memberof HospitalConsultationTimetableOverridesModel
|
|
5856
|
-
*/
|
|
5857
|
-
'metaData'?: PagedListMetaData;
|
|
5858
|
-
}
|
|
5859
|
-
/**
|
|
5860
|
-
*
|
|
5861
|
-
* @export
|
|
5862
|
-
* @interface HospitalConsultationTimetablesModel
|
|
5863
|
-
*/
|
|
5864
|
-
export interface HospitalConsultationTimetablesModel {
|
|
5865
|
-
/**
|
|
5866
|
-
*
|
|
5867
|
-
* @type {Array<HospitalConsultationTimetableItemModel>}
|
|
5868
|
-
* @memberof HospitalConsultationTimetablesModel
|
|
5890
|
+
* @type {number}
|
|
5891
|
+
* @memberof HospitalConsultationOptionModel
|
|
5869
5892
|
*/
|
|
5870
|
-
'
|
|
5893
|
+
'beforeEventBufferMinutes'?: number | null;
|
|
5871
5894
|
/**
|
|
5872
5895
|
*
|
|
5873
|
-
* @type {
|
|
5874
|
-
* @memberof
|
|
5896
|
+
* @type {number}
|
|
5897
|
+
* @memberof HospitalConsultationOptionModel
|
|
5875
5898
|
*/
|
|
5876
|
-
'
|
|
5899
|
+
'afterEventBufferMinutes'?: number | null;
|
|
5877
5900
|
}
|
|
5878
5901
|
/**
|
|
5879
5902
|
*
|
|
@@ -6399,6 +6422,12 @@ export interface HospitalModel {
|
|
|
6399
6422
|
* @memberof HospitalModel
|
|
6400
6423
|
*/
|
|
6401
6424
|
'awards'?: Array<AwardModel> | null;
|
|
6425
|
+
/**
|
|
6426
|
+
*
|
|
6427
|
+
* @type {HospitalConsultationOptionModel}
|
|
6428
|
+
* @memberof HospitalModel
|
|
6429
|
+
*/
|
|
6430
|
+
'consultationOption'?: HospitalConsultationOptionModel;
|
|
6402
6431
|
}
|
|
6403
6432
|
/**
|
|
6404
6433
|
*
|
|
@@ -24188,165 +24217,6 @@ export class HospitalsApi extends BaseAPI {
|
|
|
24188
24217
|
}
|
|
24189
24218
|
|
|
24190
24219
|
|
|
24191
|
-
/**
|
|
24192
|
-
* HospitalsConsultationTimetableOverridesApi - axios parameter creator
|
|
24193
|
-
* @export
|
|
24194
|
-
*/
|
|
24195
|
-
export const HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24196
|
-
return {
|
|
24197
|
-
/**
|
|
24198
|
-
*
|
|
24199
|
-
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24200
|
-
* @param {string} hospitalId
|
|
24201
|
-
* @param {boolean} [includesPreviousItems]
|
|
24202
|
-
* @param {Date} [startDate]
|
|
24203
|
-
* @param {Date} [endDate]
|
|
24204
|
-
* @param {number} [page]
|
|
24205
|
-
* @param {number} [limit]
|
|
24206
|
-
* @param {Date} [lastRetrieved]
|
|
24207
|
-
* @param {*} [options] Override http request option.
|
|
24208
|
-
* @throws {RequiredError}
|
|
24209
|
-
*/
|
|
24210
|
-
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet: async (hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24211
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
24212
|
-
assertParamExists('apiV2HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId)
|
|
24213
|
-
const localVarPath = `/api/v2/hospitals/{hospitalId}/consultationtimetableoverrides`
|
|
24214
|
-
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
24215
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24216
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24217
|
-
let baseOptions;
|
|
24218
|
-
if (configuration) {
|
|
24219
|
-
baseOptions = configuration.baseOptions;
|
|
24220
|
-
}
|
|
24221
|
-
|
|
24222
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24223
|
-
const localVarHeaderParameter = {} as any;
|
|
24224
|
-
const localVarQueryParameter = {} as any;
|
|
24225
|
-
|
|
24226
|
-
if (includesPreviousItems !== undefined) {
|
|
24227
|
-
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
24228
|
-
}
|
|
24229
|
-
|
|
24230
|
-
if (startDate !== undefined) {
|
|
24231
|
-
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
24232
|
-
(startDate as any).toISOString() :
|
|
24233
|
-
startDate;
|
|
24234
|
-
}
|
|
24235
|
-
|
|
24236
|
-
if (endDate !== undefined) {
|
|
24237
|
-
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
24238
|
-
(endDate as any).toISOString() :
|
|
24239
|
-
endDate;
|
|
24240
|
-
}
|
|
24241
|
-
|
|
24242
|
-
if (page !== undefined) {
|
|
24243
|
-
localVarQueryParameter['page'] = page;
|
|
24244
|
-
}
|
|
24245
|
-
|
|
24246
|
-
if (limit !== undefined) {
|
|
24247
|
-
localVarQueryParameter['limit'] = limit;
|
|
24248
|
-
}
|
|
24249
|
-
|
|
24250
|
-
if (lastRetrieved !== undefined) {
|
|
24251
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
24252
|
-
(lastRetrieved as any).toISOString() :
|
|
24253
|
-
lastRetrieved;
|
|
24254
|
-
}
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24259
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24260
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24261
|
-
|
|
24262
|
-
return {
|
|
24263
|
-
url: toPathString(localVarUrlObj),
|
|
24264
|
-
options: localVarRequestOptions,
|
|
24265
|
-
};
|
|
24266
|
-
},
|
|
24267
|
-
}
|
|
24268
|
-
};
|
|
24269
|
-
|
|
24270
|
-
/**
|
|
24271
|
-
* HospitalsConsultationTimetableOverridesApi - functional programming interface
|
|
24272
|
-
* @export
|
|
24273
|
-
*/
|
|
24274
|
-
export const HospitalsConsultationTimetableOverridesApiFp = function(configuration?: Configuration) {
|
|
24275
|
-
const localVarAxiosParamCreator = HospitalsConsultationTimetableOverridesApiAxiosParamCreator(configuration)
|
|
24276
|
-
return {
|
|
24277
|
-
/**
|
|
24278
|
-
*
|
|
24279
|
-
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24280
|
-
* @param {string} hospitalId
|
|
24281
|
-
* @param {boolean} [includesPreviousItems]
|
|
24282
|
-
* @param {Date} [startDate]
|
|
24283
|
-
* @param {Date} [endDate]
|
|
24284
|
-
* @param {number} [page]
|
|
24285
|
-
* @param {number} [limit]
|
|
24286
|
-
* @param {Date} [lastRetrieved]
|
|
24287
|
-
* @param {*} [options] Override http request option.
|
|
24288
|
-
* @throws {RequiredError}
|
|
24289
|
-
*/
|
|
24290
|
-
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>> {
|
|
24291
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options);
|
|
24292
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24293
|
-
},
|
|
24294
|
-
}
|
|
24295
|
-
};
|
|
24296
|
-
|
|
24297
|
-
/**
|
|
24298
|
-
* HospitalsConsultationTimetableOverridesApi - factory interface
|
|
24299
|
-
* @export
|
|
24300
|
-
*/
|
|
24301
|
-
export const HospitalsConsultationTimetableOverridesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
24302
|
-
const localVarFp = HospitalsConsultationTimetableOverridesApiFp(configuration)
|
|
24303
|
-
return {
|
|
24304
|
-
/**
|
|
24305
|
-
*
|
|
24306
|
-
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24307
|
-
* @param {string} hospitalId
|
|
24308
|
-
* @param {boolean} [includesPreviousItems]
|
|
24309
|
-
* @param {Date} [startDate]
|
|
24310
|
-
* @param {Date} [endDate]
|
|
24311
|
-
* @param {number} [page]
|
|
24312
|
-
* @param {number} [limit]
|
|
24313
|
-
* @param {Date} [lastRetrieved]
|
|
24314
|
-
* @param {*} [options] Override http request option.
|
|
24315
|
-
* @throws {RequiredError}
|
|
24316
|
-
*/
|
|
24317
|
-
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetableOverridesModel> {
|
|
24318
|
-
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
24319
|
-
},
|
|
24320
|
-
};
|
|
24321
|
-
};
|
|
24322
|
-
|
|
24323
|
-
/**
|
|
24324
|
-
* HospitalsConsultationTimetableOverridesApi - object-oriented interface
|
|
24325
|
-
* @export
|
|
24326
|
-
* @class HospitalsConsultationTimetableOverridesApi
|
|
24327
|
-
* @extends {BaseAPI}
|
|
24328
|
-
*/
|
|
24329
|
-
export class HospitalsConsultationTimetableOverridesApi extends BaseAPI {
|
|
24330
|
-
/**
|
|
24331
|
-
*
|
|
24332
|
-
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
24333
|
-
* @param {string} hospitalId
|
|
24334
|
-
* @param {boolean} [includesPreviousItems]
|
|
24335
|
-
* @param {Date} [startDate]
|
|
24336
|
-
* @param {Date} [endDate]
|
|
24337
|
-
* @param {number} [page]
|
|
24338
|
-
* @param {number} [limit]
|
|
24339
|
-
* @param {Date} [lastRetrieved]
|
|
24340
|
-
* @param {*} [options] Override http request option.
|
|
24341
|
-
* @throws {RequiredError}
|
|
24342
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
24343
|
-
*/
|
|
24344
|
-
public apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
24345
|
-
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
24346
|
-
}
|
|
24347
|
-
}
|
|
24348
|
-
|
|
24349
|
-
|
|
24350
24220
|
/**
|
|
24351
24221
|
* HospitalsConsultationTimetablesApi - axios parameter creator
|
|
24352
24222
|
* @export
|
|
@@ -24357,13 +24227,12 @@ export const HospitalsConsultationTimetablesApiAxiosParamCreator = function (con
|
|
|
24357
24227
|
*
|
|
24358
24228
|
* @summary Get hospital consultation timetables by hospitalId
|
|
24359
24229
|
* @param {string} hospitalId
|
|
24360
|
-
* @param {number} [
|
|
24361
|
-
* @param {number} [
|
|
24362
|
-
* @param {Date} [lastRetrieved]
|
|
24230
|
+
* @param {number} [year]
|
|
24231
|
+
* @param {number} [month]
|
|
24363
24232
|
* @param {*} [options] Override http request option.
|
|
24364
24233
|
* @throws {RequiredError}
|
|
24365
24234
|
*/
|
|
24366
|
-
apiV2HospitalsHospitalIdConsultationtimetablesGet: async (hospitalId: string,
|
|
24235
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet: async (hospitalId: string, year?: number, month?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24367
24236
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
24368
24237
|
assertParamExists('apiV2HospitalsHospitalIdConsultationtimetablesGet', 'hospitalId', hospitalId)
|
|
24369
24238
|
const localVarPath = `/api/v2/hospitals/{hospitalId}/consultationtimetables`
|
|
@@ -24379,18 +24248,16 @@ export const HospitalsConsultationTimetablesApiAxiosParamCreator = function (con
|
|
|
24379
24248
|
const localVarHeaderParameter = {} as any;
|
|
24380
24249
|
const localVarQueryParameter = {} as any;
|
|
24381
24250
|
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24251
|
+
// authentication oauth2 required
|
|
24252
|
+
// oauth required
|
|
24253
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
24385
24254
|
|
|
24386
|
-
if (
|
|
24387
|
-
localVarQueryParameter['
|
|
24255
|
+
if (year !== undefined) {
|
|
24256
|
+
localVarQueryParameter['Year'] = year;
|
|
24388
24257
|
}
|
|
24389
24258
|
|
|
24390
|
-
if (
|
|
24391
|
-
localVarQueryParameter['
|
|
24392
|
-
(lastRetrieved as any).toISOString() :
|
|
24393
|
-
lastRetrieved;
|
|
24259
|
+
if (month !== undefined) {
|
|
24260
|
+
localVarQueryParameter['Month'] = month;
|
|
24394
24261
|
}
|
|
24395
24262
|
|
|
24396
24263
|
|
|
@@ -24418,14 +24285,13 @@ export const HospitalsConsultationTimetablesApiFp = function(configuration?: Con
|
|
|
24418
24285
|
*
|
|
24419
24286
|
* @summary Get hospital consultation timetables by hospitalId
|
|
24420
24287
|
* @param {string} hospitalId
|
|
24421
|
-
* @param {number} [
|
|
24422
|
-
* @param {number} [
|
|
24423
|
-
* @param {Date} [lastRetrieved]
|
|
24288
|
+
* @param {number} [year]
|
|
24289
|
+
* @param {number} [month]
|
|
24424
24290
|
* @param {*} [options] Override http request option.
|
|
24425
24291
|
* @throws {RequiredError}
|
|
24426
24292
|
*/
|
|
24427
|
-
async apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string,
|
|
24428
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId,
|
|
24293
|
+
async apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, year?: number, month?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationTimetableModel>> {
|
|
24294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, year, month, options);
|
|
24429
24295
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24430
24296
|
},
|
|
24431
24297
|
}
|
|
@@ -24442,14 +24308,13 @@ export const HospitalsConsultationTimetablesApiFactory = function (configuration
|
|
|
24442
24308
|
*
|
|
24443
24309
|
* @summary Get hospital consultation timetables by hospitalId
|
|
24444
24310
|
* @param {string} hospitalId
|
|
24445
|
-
* @param {number} [
|
|
24446
|
-
* @param {number} [
|
|
24447
|
-
* @param {Date} [lastRetrieved]
|
|
24311
|
+
* @param {number} [year]
|
|
24312
|
+
* @param {number} [month]
|
|
24448
24313
|
* @param {*} [options] Override http request option.
|
|
24449
24314
|
* @throws {RequiredError}
|
|
24450
24315
|
*/
|
|
24451
|
-
apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string,
|
|
24452
|
-
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId,
|
|
24316
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, year?: number, month?: number, options?: any): AxiosPromise<ConsultationTimetableModel> {
|
|
24317
|
+
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, year, month, options).then((request) => request(axios, basePath));
|
|
24453
24318
|
},
|
|
24454
24319
|
};
|
|
24455
24320
|
};
|
|
@@ -24465,15 +24330,14 @@ export class HospitalsConsultationTimetablesApi extends BaseAPI {
|
|
|
24465
24330
|
*
|
|
24466
24331
|
* @summary Get hospital consultation timetables by hospitalId
|
|
24467
24332
|
* @param {string} hospitalId
|
|
24468
|
-
* @param {number} [
|
|
24469
|
-
* @param {number} [
|
|
24470
|
-
* @param {Date} [lastRetrieved]
|
|
24333
|
+
* @param {number} [year]
|
|
24334
|
+
* @param {number} [month]
|
|
24471
24335
|
* @param {*} [options] Override http request option.
|
|
24472
24336
|
* @throws {RequiredError}
|
|
24473
24337
|
* @memberof HospitalsConsultationTimetablesApi
|
|
24474
24338
|
*/
|
|
24475
|
-
public apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string,
|
|
24476
|
-
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId,
|
|
24339
|
+
public apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, year?: number, month?: number, options?: AxiosRequestConfig) {
|
|
24340
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, year, month, options).then((request) => request(this.axios, this.basePath));
|
|
24477
24341
|
}
|
|
24478
24342
|
}
|
|
24479
24343
|
|