ch-api-client-typescript2 3.1.0 → 3.1.1
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 +171 -8
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +215 -14
- package/package.json +1 -1
- package/src/api.ts +274 -14
package/src/api.ts
CHANGED
|
@@ -4456,6 +4456,75 @@ export interface DoctorItemSimpleModel {
|
|
|
4456
4456
|
*/
|
|
4457
4457
|
'confirmed'?: boolean;
|
|
4458
4458
|
}
|
|
4459
|
+
/**
|
|
4460
|
+
*
|
|
4461
|
+
* @export
|
|
4462
|
+
* @interface DoctorLanguageItemModel
|
|
4463
|
+
*/
|
|
4464
|
+
export interface DoctorLanguageItemModel {
|
|
4465
|
+
/**
|
|
4466
|
+
*
|
|
4467
|
+
* @type {string}
|
|
4468
|
+
* @memberof DoctorLanguageItemModel
|
|
4469
|
+
*/
|
|
4470
|
+
'id'?: string;
|
|
4471
|
+
/**
|
|
4472
|
+
*
|
|
4473
|
+
* @type {string}
|
|
4474
|
+
* @memberof DoctorLanguageItemModel
|
|
4475
|
+
*/
|
|
4476
|
+
'language'?: string | null;
|
|
4477
|
+
/**
|
|
4478
|
+
*
|
|
4479
|
+
* @type {string}
|
|
4480
|
+
* @memberof DoctorLanguageItemModel
|
|
4481
|
+
*/
|
|
4482
|
+
'userId'?: string;
|
|
4483
|
+
}
|
|
4484
|
+
/**
|
|
4485
|
+
*
|
|
4486
|
+
* @export
|
|
4487
|
+
* @interface DoctorLanguageModel
|
|
4488
|
+
*/
|
|
4489
|
+
export interface DoctorLanguageModel {
|
|
4490
|
+
/**
|
|
4491
|
+
*
|
|
4492
|
+
* @type {string}
|
|
4493
|
+
* @memberof DoctorLanguageModel
|
|
4494
|
+
*/
|
|
4495
|
+
'id'?: string;
|
|
4496
|
+
/**
|
|
4497
|
+
*
|
|
4498
|
+
* @type {string}
|
|
4499
|
+
* @memberof DoctorLanguageModel
|
|
4500
|
+
*/
|
|
4501
|
+
'language'?: string | null;
|
|
4502
|
+
/**
|
|
4503
|
+
*
|
|
4504
|
+
* @type {string}
|
|
4505
|
+
* @memberof DoctorLanguageModel
|
|
4506
|
+
*/
|
|
4507
|
+
'userId'?: string;
|
|
4508
|
+
}
|
|
4509
|
+
/**
|
|
4510
|
+
*
|
|
4511
|
+
* @export
|
|
4512
|
+
* @interface DoctorLanguagesModel
|
|
4513
|
+
*/
|
|
4514
|
+
export interface DoctorLanguagesModel {
|
|
4515
|
+
/**
|
|
4516
|
+
*
|
|
4517
|
+
* @type {Array<DoctorLanguageItemModel>}
|
|
4518
|
+
* @memberof DoctorLanguagesModel
|
|
4519
|
+
*/
|
|
4520
|
+
'items'?: Array<DoctorLanguageItemModel> | null;
|
|
4521
|
+
/**
|
|
4522
|
+
*
|
|
4523
|
+
* @type {PagedListMetaData}
|
|
4524
|
+
* @memberof DoctorLanguagesModel
|
|
4525
|
+
*/
|
|
4526
|
+
'metaData'?: PagedListMetaData;
|
|
4527
|
+
}
|
|
4459
4528
|
/**
|
|
4460
4529
|
*
|
|
4461
4530
|
* @export
|
|
@@ -14937,6 +15006,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14937
15006
|
* @param {string} [exceptHospitalId]
|
|
14938
15007
|
* @param {string} [exceptDealId]
|
|
14939
15008
|
* @param {Array<string>} [ids]
|
|
15009
|
+
* @param {number} [serviceDuration]
|
|
14940
15010
|
* @param {string} [languageCode]
|
|
14941
15011
|
* @param {boolean} [showHidden]
|
|
14942
15012
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -14946,7 +15016,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14946
15016
|
* @param {*} [options] Override http request option.
|
|
14947
15017
|
* @throws {RequiredError}
|
|
14948
15018
|
*/
|
|
14949
|
-
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15019
|
+
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14950
15020
|
const localVarPath = `/api/v2/deals`;
|
|
14951
15021
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14952
15022
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15007,6 +15077,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15007
15077
|
localVarQueryParameter['Ids'] = ids;
|
|
15008
15078
|
}
|
|
15009
15079
|
|
|
15080
|
+
if (serviceDuration !== undefined) {
|
|
15081
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
15082
|
+
}
|
|
15083
|
+
|
|
15010
15084
|
if (languageCode !== undefined) {
|
|
15011
15085
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
15012
15086
|
}
|
|
@@ -15059,6 +15133,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15059
15133
|
* @param {string} [exceptHospitalId]
|
|
15060
15134
|
* @param {string} [exceptDealId]
|
|
15061
15135
|
* @param {Array<string>} [ids]
|
|
15136
|
+
* @param {number} [serviceDuration]
|
|
15062
15137
|
* @param {string} [languageCode]
|
|
15063
15138
|
* @param {boolean} [showHidden]
|
|
15064
15139
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15068,7 +15143,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15068
15143
|
* @param {*} [options] Override http request option.
|
|
15069
15144
|
* @throws {RequiredError}
|
|
15070
15145
|
*/
|
|
15071
|
-
apiV2DealsSimpleGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15146
|
+
apiV2DealsSimpleGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15072
15147
|
const localVarPath = `/api/v2/deals/simple`;
|
|
15073
15148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15074
15149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15129,6 +15204,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15129
15204
|
localVarQueryParameter['Ids'] = ids;
|
|
15130
15205
|
}
|
|
15131
15206
|
|
|
15207
|
+
if (serviceDuration !== undefined) {
|
|
15208
|
+
localVarQueryParameter['ServiceDuration'] = serviceDuration;
|
|
15209
|
+
}
|
|
15210
|
+
|
|
15132
15211
|
if (languageCode !== undefined) {
|
|
15133
15212
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
15134
15213
|
}
|
|
@@ -15306,6 +15385,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
15306
15385
|
* @param {string} [exceptHospitalId]
|
|
15307
15386
|
* @param {string} [exceptDealId]
|
|
15308
15387
|
* @param {Array<string>} [ids]
|
|
15388
|
+
* @param {number} [serviceDuration]
|
|
15309
15389
|
* @param {string} [languageCode]
|
|
15310
15390
|
* @param {boolean} [showHidden]
|
|
15311
15391
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15315,8 +15395,8 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
15315
15395
|
* @param {*} [options] Override http request option.
|
|
15316
15396
|
* @throws {RequiredError}
|
|
15317
15397
|
*/
|
|
15318
|
-
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
15319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
15398
|
+
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
15399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
15320
15400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15321
15401
|
},
|
|
15322
15402
|
/**
|
|
@@ -15334,6 +15414,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
15334
15414
|
* @param {string} [exceptHospitalId]
|
|
15335
15415
|
* @param {string} [exceptDealId]
|
|
15336
15416
|
* @param {Array<string>} [ids]
|
|
15417
|
+
* @param {number} [serviceDuration]
|
|
15337
15418
|
* @param {string} [languageCode]
|
|
15338
15419
|
* @param {boolean} [showHidden]
|
|
15339
15420
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15343,8 +15424,8 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
15343
15424
|
* @param {*} [options] Override http request option.
|
|
15344
15425
|
* @throws {RequiredError}
|
|
15345
15426
|
*/
|
|
15346
|
-
async apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsSimpleModel>> {
|
|
15347
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
15427
|
+
async apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsSimpleModel>> {
|
|
15428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
15348
15429
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15349
15430
|
},
|
|
15350
15431
|
/**
|
|
@@ -15451,6 +15532,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15451
15532
|
* @param {string} [exceptHospitalId]
|
|
15452
15533
|
* @param {string} [exceptDealId]
|
|
15453
15534
|
* @param {Array<string>} [ids]
|
|
15535
|
+
* @param {number} [serviceDuration]
|
|
15454
15536
|
* @param {string} [languageCode]
|
|
15455
15537
|
* @param {boolean} [showHidden]
|
|
15456
15538
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15460,8 +15542,8 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15460
15542
|
* @param {*} [options] Override http request option.
|
|
15461
15543
|
* @throws {RequiredError}
|
|
15462
15544
|
*/
|
|
15463
|
-
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
15464
|
-
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15545
|
+
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
15546
|
+
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15465
15547
|
},
|
|
15466
15548
|
/**
|
|
15467
15549
|
*
|
|
@@ -15478,6 +15560,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15478
15560
|
* @param {string} [exceptHospitalId]
|
|
15479
15561
|
* @param {string} [exceptDealId]
|
|
15480
15562
|
* @param {Array<string>} [ids]
|
|
15563
|
+
* @param {number} [serviceDuration]
|
|
15481
15564
|
* @param {string} [languageCode]
|
|
15482
15565
|
* @param {boolean} [showHidden]
|
|
15483
15566
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15487,8 +15570,8 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15487
15570
|
* @param {*} [options] Override http request option.
|
|
15488
15571
|
* @throws {RequiredError}
|
|
15489
15572
|
*/
|
|
15490
|
-
apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsSimpleModel> {
|
|
15491
|
-
return localVarFp.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15573
|
+
apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsSimpleModel> {
|
|
15574
|
+
return localVarFp.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15492
15575
|
},
|
|
15493
15576
|
/**
|
|
15494
15577
|
*
|
|
@@ -15603,6 +15686,7 @@ export class DealsApi extends BaseAPI {
|
|
|
15603
15686
|
* @param {string} [exceptHospitalId]
|
|
15604
15687
|
* @param {string} [exceptDealId]
|
|
15605
15688
|
* @param {Array<string>} [ids]
|
|
15689
|
+
* @param {number} [serviceDuration]
|
|
15606
15690
|
* @param {string} [languageCode]
|
|
15607
15691
|
* @param {boolean} [showHidden]
|
|
15608
15692
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15613,8 +15697,8 @@ export class DealsApi extends BaseAPI {
|
|
|
15613
15697
|
* @throws {RequiredError}
|
|
15614
15698
|
* @memberof DealsApi
|
|
15615
15699
|
*/
|
|
15616
|
-
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15617
|
-
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15700
|
+
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15701
|
+
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15618
15702
|
}
|
|
15619
15703
|
|
|
15620
15704
|
/**
|
|
@@ -15632,6 +15716,7 @@ export class DealsApi extends BaseAPI {
|
|
|
15632
15716
|
* @param {string} [exceptHospitalId]
|
|
15633
15717
|
* @param {string} [exceptDealId]
|
|
15634
15718
|
* @param {Array<string>} [ids]
|
|
15719
|
+
* @param {number} [serviceDuration]
|
|
15635
15720
|
* @param {string} [languageCode]
|
|
15636
15721
|
* @param {boolean} [showHidden]
|
|
15637
15722
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -15642,8 +15727,8 @@ export class DealsApi extends BaseAPI {
|
|
|
15642
15727
|
* @throws {RequiredError}
|
|
15643
15728
|
* @memberof DealsApi
|
|
15644
15729
|
*/
|
|
15645
|
-
public apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15646
|
-
return DealsApiFp(this.configuration).apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15730
|
+
public apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, serviceDuration?: number, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15731
|
+
return DealsApiFp(this.configuration).apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, serviceDuration, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15647
15732
|
}
|
|
15648
15733
|
|
|
15649
15734
|
/**
|
|
@@ -16030,6 +16115,100 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
16030
16115
|
|
|
16031
16116
|
|
|
16032
16117
|
|
|
16118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16120
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16121
|
+
|
|
16122
|
+
return {
|
|
16123
|
+
url: toPathString(localVarUrlObj),
|
|
16124
|
+
options: localVarRequestOptions,
|
|
16125
|
+
};
|
|
16126
|
+
},
|
|
16127
|
+
/**
|
|
16128
|
+
*
|
|
16129
|
+
* @summary Get all DoctorEducations.
|
|
16130
|
+
* @param {string} doctorId
|
|
16131
|
+
* @param {string} [language]
|
|
16132
|
+
* @param {number} [page]
|
|
16133
|
+
* @param {number} [limit]
|
|
16134
|
+
* @param {Date} [lastRetrieved]
|
|
16135
|
+
* @param {*} [options] Override http request option.
|
|
16136
|
+
* @throws {RequiredError}
|
|
16137
|
+
*/
|
|
16138
|
+
apiV2DoctorsDoctorIdLanguagesGet: async (doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16139
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
16140
|
+
assertParamExists('apiV2DoctorsDoctorIdLanguagesGet', 'doctorId', doctorId)
|
|
16141
|
+
const localVarPath = `/api/v2/doctors/{doctorId}/languages`
|
|
16142
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
|
|
16143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16144
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16145
|
+
let baseOptions;
|
|
16146
|
+
if (configuration) {
|
|
16147
|
+
baseOptions = configuration.baseOptions;
|
|
16148
|
+
}
|
|
16149
|
+
|
|
16150
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16151
|
+
const localVarHeaderParameter = {} as any;
|
|
16152
|
+
const localVarQueryParameter = {} as any;
|
|
16153
|
+
|
|
16154
|
+
if (language !== undefined) {
|
|
16155
|
+
localVarQueryParameter['Language'] = language;
|
|
16156
|
+
}
|
|
16157
|
+
|
|
16158
|
+
if (page !== undefined) {
|
|
16159
|
+
localVarQueryParameter['page'] = page;
|
|
16160
|
+
}
|
|
16161
|
+
|
|
16162
|
+
if (limit !== undefined) {
|
|
16163
|
+
localVarQueryParameter['limit'] = limit;
|
|
16164
|
+
}
|
|
16165
|
+
|
|
16166
|
+
if (lastRetrieved !== undefined) {
|
|
16167
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
16168
|
+
(lastRetrieved as any).toISOString() :
|
|
16169
|
+
lastRetrieved;
|
|
16170
|
+
}
|
|
16171
|
+
|
|
16172
|
+
|
|
16173
|
+
|
|
16174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16176
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16177
|
+
|
|
16178
|
+
return {
|
|
16179
|
+
url: toPathString(localVarUrlObj),
|
|
16180
|
+
options: localVarRequestOptions,
|
|
16181
|
+
};
|
|
16182
|
+
},
|
|
16183
|
+
/**
|
|
16184
|
+
*
|
|
16185
|
+
* @summary Get DoctorEducation.
|
|
16186
|
+
* @param {string} doctorId
|
|
16187
|
+
* @param {string} languageId
|
|
16188
|
+
* @param {*} [options] Override http request option.
|
|
16189
|
+
* @throws {RequiredError}
|
|
16190
|
+
*/
|
|
16191
|
+
apiV2DoctorsDoctorIdLanguagesLanguageIdGet: async (doctorId: string, languageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16192
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
16193
|
+
assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageIdGet', 'doctorId', doctorId)
|
|
16194
|
+
// verify required parameter 'languageId' is not null or undefined
|
|
16195
|
+
assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageIdGet', 'languageId', languageId)
|
|
16196
|
+
const localVarPath = `/api/v2/doctors/{doctorId}/languages/{languageId}`
|
|
16197
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
|
|
16198
|
+
.replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
|
|
16199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16201
|
+
let baseOptions;
|
|
16202
|
+
if (configuration) {
|
|
16203
|
+
baseOptions = configuration.baseOptions;
|
|
16204
|
+
}
|
|
16205
|
+
|
|
16206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16207
|
+
const localVarHeaderParameter = {} as any;
|
|
16208
|
+
const localVarQueryParameter = {} as any;
|
|
16209
|
+
|
|
16210
|
+
|
|
16211
|
+
|
|
16033
16212
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16034
16213
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16035
16214
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -16732,6 +16911,33 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
16732
16911
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdGet(doctorId, languageCode, returnDefaultValue, options);
|
|
16733
16912
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16734
16913
|
},
|
|
16914
|
+
/**
|
|
16915
|
+
*
|
|
16916
|
+
* @summary Get all DoctorEducations.
|
|
16917
|
+
* @param {string} doctorId
|
|
16918
|
+
* @param {string} [language]
|
|
16919
|
+
* @param {number} [page]
|
|
16920
|
+
* @param {number} [limit]
|
|
16921
|
+
* @param {Date} [lastRetrieved]
|
|
16922
|
+
* @param {*} [options] Override http request option.
|
|
16923
|
+
* @throws {RequiredError}
|
|
16924
|
+
*/
|
|
16925
|
+
async apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguagesModel>> {
|
|
16926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options);
|
|
16927
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16928
|
+
},
|
|
16929
|
+
/**
|
|
16930
|
+
*
|
|
16931
|
+
* @summary Get DoctorEducation.
|
|
16932
|
+
* @param {string} doctorId
|
|
16933
|
+
* @param {string} languageId
|
|
16934
|
+
* @param {*} [options] Override http request option.
|
|
16935
|
+
* @throws {RequiredError}
|
|
16936
|
+
*/
|
|
16937
|
+
async apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguageModel>> {
|
|
16938
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options);
|
|
16939
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16940
|
+
},
|
|
16735
16941
|
/**
|
|
16736
16942
|
*
|
|
16737
16943
|
* @summary Get all DoctorMedias.
|
|
@@ -16986,6 +17192,31 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
16986
17192
|
apiV2DoctorsDoctorIdGet(doctorId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DoctorModel> {
|
|
16987
17193
|
return localVarFp.apiV2DoctorsDoctorIdGet(doctorId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
16988
17194
|
},
|
|
17195
|
+
/**
|
|
17196
|
+
*
|
|
17197
|
+
* @summary Get all DoctorEducations.
|
|
17198
|
+
* @param {string} doctorId
|
|
17199
|
+
* @param {string} [language]
|
|
17200
|
+
* @param {number} [page]
|
|
17201
|
+
* @param {number} [limit]
|
|
17202
|
+
* @param {Date} [lastRetrieved]
|
|
17203
|
+
* @param {*} [options] Override http request option.
|
|
17204
|
+
* @throws {RequiredError}
|
|
17205
|
+
*/
|
|
17206
|
+
apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorLanguagesModel> {
|
|
17207
|
+
return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
17208
|
+
},
|
|
17209
|
+
/**
|
|
17210
|
+
*
|
|
17211
|
+
* @summary Get DoctorEducation.
|
|
17212
|
+
* @param {string} doctorId
|
|
17213
|
+
* @param {string} languageId
|
|
17214
|
+
* @param {*} [options] Override http request option.
|
|
17215
|
+
* @throws {RequiredError}
|
|
17216
|
+
*/
|
|
17217
|
+
apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: any): AxiosPromise<DoctorLanguageModel> {
|
|
17218
|
+
return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options).then((request) => request(axios, basePath));
|
|
17219
|
+
},
|
|
16989
17220
|
/**
|
|
16990
17221
|
*
|
|
16991
17222
|
* @summary Get all DoctorMedias.
|
|
@@ -17245,6 +17476,35 @@ export class DoctorsApi extends BaseAPI {
|
|
|
17245
17476
|
return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdGet(doctorId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
17246
17477
|
}
|
|
17247
17478
|
|
|
17479
|
+
/**
|
|
17480
|
+
*
|
|
17481
|
+
* @summary Get all DoctorEducations.
|
|
17482
|
+
* @param {string} doctorId
|
|
17483
|
+
* @param {string} [language]
|
|
17484
|
+
* @param {number} [page]
|
|
17485
|
+
* @param {number} [limit]
|
|
17486
|
+
* @param {Date} [lastRetrieved]
|
|
17487
|
+
* @param {*} [options] Override http request option.
|
|
17488
|
+
* @throws {RequiredError}
|
|
17489
|
+
* @memberof DoctorsApi
|
|
17490
|
+
*/
|
|
17491
|
+
public apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
17492
|
+
return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
17493
|
+
}
|
|
17494
|
+
|
|
17495
|
+
/**
|
|
17496
|
+
*
|
|
17497
|
+
* @summary Get DoctorEducation.
|
|
17498
|
+
* @param {string} doctorId
|
|
17499
|
+
* @param {string} languageId
|
|
17500
|
+
* @param {*} [options] Override http request option.
|
|
17501
|
+
* @throws {RequiredError}
|
|
17502
|
+
* @memberof DoctorsApi
|
|
17503
|
+
*/
|
|
17504
|
+
public apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: AxiosRequestConfig) {
|
|
17505
|
+
return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options).then((request) => request(this.axios, this.basePath));
|
|
17506
|
+
}
|
|
17507
|
+
|
|
17248
17508
|
/**
|
|
17249
17509
|
*
|
|
17250
17510
|
* @summary Get all DoctorMedias.
|