ch-api-client-typescript2 2.6.5 → 2.6.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 +78 -40
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +84 -49
- package/package.json +1 -1
- package/src/api.ts +121 -63
package/src/api.ts
CHANGED
|
@@ -2643,6 +2643,18 @@ export interface DealItemModel {
|
|
|
2643
2643
|
* @memberof DealItemModel
|
|
2644
2644
|
*/
|
|
2645
2645
|
'dealServices'?: Array<DealServiceItemModel> | null;
|
|
2646
|
+
/**
|
|
2647
|
+
*
|
|
2648
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2649
|
+
* @memberof DealItemModel
|
|
2650
|
+
*/
|
|
2651
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2652
|
+
/**
|
|
2653
|
+
*
|
|
2654
|
+
* @type {boolean}
|
|
2655
|
+
* @memberof DealItemModel
|
|
2656
|
+
*/
|
|
2657
|
+
'confirmed'?: boolean;
|
|
2646
2658
|
/**
|
|
2647
2659
|
*
|
|
2648
2660
|
* @type {AuditableEntity}
|
|
@@ -2734,12 +2746,30 @@ export interface DealModel {
|
|
|
2734
2746
|
* @memberof DealModel
|
|
2735
2747
|
*/
|
|
2736
2748
|
'dealServices'?: Array<DealServiceItemModel> | null;
|
|
2749
|
+
/**
|
|
2750
|
+
*
|
|
2751
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2752
|
+
* @memberof DealModel
|
|
2753
|
+
*/
|
|
2754
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2755
|
+
/**
|
|
2756
|
+
*
|
|
2757
|
+
* @type {boolean}
|
|
2758
|
+
* @memberof DealModel
|
|
2759
|
+
*/
|
|
2760
|
+
'confirmed'?: boolean;
|
|
2737
2761
|
/**
|
|
2738
2762
|
*
|
|
2739
2763
|
* @type {AuditableEntity}
|
|
2740
2764
|
* @memberof DealModel
|
|
2741
2765
|
*/
|
|
2742
2766
|
'auditableEntity'?: AuditableEntity;
|
|
2767
|
+
/**
|
|
2768
|
+
*
|
|
2769
|
+
* @type {string}
|
|
2770
|
+
* @memberof DealModel
|
|
2771
|
+
*/
|
|
2772
|
+
'languageCode'?: string | null;
|
|
2743
2773
|
}
|
|
2744
2774
|
/**
|
|
2745
2775
|
*
|
|
@@ -6650,12 +6680,6 @@ export interface ServiceCategoryItemModel {
|
|
|
6650
6680
|
* @memberof ServiceCategoryItemModel
|
|
6651
6681
|
*/
|
|
6652
6682
|
'serviceCount'?: number;
|
|
6653
|
-
/**
|
|
6654
|
-
*
|
|
6655
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6656
|
-
* @memberof ServiceCategoryItemModel
|
|
6657
|
-
*/
|
|
6658
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6659
6683
|
}
|
|
6660
6684
|
/**
|
|
6661
6685
|
*
|
|
@@ -6699,12 +6723,6 @@ export interface ServiceCategoryModel {
|
|
|
6699
6723
|
* @memberof ServiceCategoryModel
|
|
6700
6724
|
*/
|
|
6701
6725
|
'serviceCount'?: number;
|
|
6702
|
-
/**
|
|
6703
|
-
*
|
|
6704
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6705
|
-
* @memberof ServiceCategoryModel
|
|
6706
|
-
*/
|
|
6707
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6708
6726
|
}
|
|
6709
6727
|
/**
|
|
6710
6728
|
*
|
|
@@ -11890,10 +11908,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11890
11908
|
*
|
|
11891
11909
|
* @summary Get deal.
|
|
11892
11910
|
* @param {string} dealId
|
|
11911
|
+
* @param {string} [languageCode]
|
|
11912
|
+
* @param {boolean} [returnDefaultValue]
|
|
11893
11913
|
* @param {*} [options] Override http request option.
|
|
11894
11914
|
* @throws {RequiredError}
|
|
11895
11915
|
*/
|
|
11896
|
-
apiV2DealsDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11916
|
+
apiV2DealsDealIdGet: async (dealId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11897
11917
|
// verify required parameter 'dealId' is not null or undefined
|
|
11898
11918
|
assertParamExists('apiV2DealsDealIdGet', 'dealId', dealId)
|
|
11899
11919
|
const localVarPath = `/api/v2/deals/{dealId}`
|
|
@@ -11909,6 +11929,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11909
11929
|
const localVarHeaderParameter = {} as any;
|
|
11910
11930
|
const localVarQueryParameter = {} as any;
|
|
11911
11931
|
|
|
11932
|
+
if (languageCode !== undefined) {
|
|
11933
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
11934
|
+
}
|
|
11935
|
+
|
|
11936
|
+
if (returnDefaultValue !== undefined) {
|
|
11937
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
11938
|
+
}
|
|
11939
|
+
|
|
11912
11940
|
|
|
11913
11941
|
|
|
11914
11942
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12142,13 +12170,16 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12142
12170
|
* @param {string} [exceptHospitalId]
|
|
12143
12171
|
* @param {string} [exceptDealId]
|
|
12144
12172
|
* @param {Array<string>} [ids]
|
|
12173
|
+
* @param {string} [languageCode]
|
|
12174
|
+
* @param {boolean} [showHidden]
|
|
12175
|
+
* @param {boolean} [returnDefaultValue]
|
|
12145
12176
|
* @param {number} [page]
|
|
12146
12177
|
* @param {number} [limit]
|
|
12147
12178
|
* @param {Date} [lastRetrieved]
|
|
12148
12179
|
* @param {*} [options] Override http request option.
|
|
12149
12180
|
* @throws {RequiredError}
|
|
12150
12181
|
*/
|
|
12151
|
-
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12182
|
+
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12152
12183
|
const localVarPath = `/api/v2/deals`;
|
|
12153
12184
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12154
12185
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12205,6 +12236,18 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12205
12236
|
localVarQueryParameter['Ids'] = ids;
|
|
12206
12237
|
}
|
|
12207
12238
|
|
|
12239
|
+
if (languageCode !== undefined) {
|
|
12240
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
12241
|
+
}
|
|
12242
|
+
|
|
12243
|
+
if (showHidden !== undefined) {
|
|
12244
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
12245
|
+
}
|
|
12246
|
+
|
|
12247
|
+
if (returnDefaultValue !== undefined) {
|
|
12248
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
12249
|
+
}
|
|
12250
|
+
|
|
12208
12251
|
if (page !== undefined) {
|
|
12209
12252
|
localVarQueryParameter['page'] = page;
|
|
12210
12253
|
}
|
|
@@ -12234,10 +12277,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12234
12277
|
*
|
|
12235
12278
|
* @summary Get deal by slug.
|
|
12236
12279
|
* @param {string} slug
|
|
12280
|
+
* @param {string} [languageCode]
|
|
12281
|
+
* @param {boolean} [returnDefaultValue]
|
|
12237
12282
|
* @param {*} [options] Override http request option.
|
|
12238
12283
|
* @throws {RequiredError}
|
|
12239
12284
|
*/
|
|
12240
|
-
apiV2DealsSlugGet: async (slug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12285
|
+
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12241
12286
|
// verify required parameter 'slug' is not null or undefined
|
|
12242
12287
|
assertParamExists('apiV2DealsSlugGet', 'slug', slug)
|
|
12243
12288
|
const localVarPath = `/api/v2/deals/{slug}`
|
|
@@ -12253,6 +12298,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12253
12298
|
const localVarHeaderParameter = {} as any;
|
|
12254
12299
|
const localVarQueryParameter = {} as any;
|
|
12255
12300
|
|
|
12301
|
+
if (languageCode !== undefined) {
|
|
12302
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
12303
|
+
}
|
|
12304
|
+
|
|
12305
|
+
if (returnDefaultValue !== undefined) {
|
|
12306
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
12307
|
+
}
|
|
12308
|
+
|
|
12256
12309
|
|
|
12257
12310
|
|
|
12258
12311
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12278,11 +12331,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12278
12331
|
*
|
|
12279
12332
|
* @summary Get deal.
|
|
12280
12333
|
* @param {string} dealId
|
|
12334
|
+
* @param {string} [languageCode]
|
|
12335
|
+
* @param {boolean} [returnDefaultValue]
|
|
12281
12336
|
* @param {*} [options] Override http request option.
|
|
12282
12337
|
* @throws {RequiredError}
|
|
12283
12338
|
*/
|
|
12284
|
-
async apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, options);
|
|
12339
|
+
async apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options);
|
|
12286
12341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12287
12342
|
},
|
|
12288
12343
|
/**
|
|
@@ -12357,25 +12412,30 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12357
12412
|
* @param {string} [exceptHospitalId]
|
|
12358
12413
|
* @param {string} [exceptDealId]
|
|
12359
12414
|
* @param {Array<string>} [ids]
|
|
12415
|
+
* @param {string} [languageCode]
|
|
12416
|
+
* @param {boolean} [showHidden]
|
|
12417
|
+
* @param {boolean} [returnDefaultValue]
|
|
12360
12418
|
* @param {number} [page]
|
|
12361
12419
|
* @param {number} [limit]
|
|
12362
12420
|
* @param {Date} [lastRetrieved]
|
|
12363
12421
|
* @param {*} [options] Override http request option.
|
|
12364
12422
|
* @throws {RequiredError}
|
|
12365
12423
|
*/
|
|
12366
|
-
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
12367
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options);
|
|
12424
|
+
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: 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>> {
|
|
12425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
12368
12426
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12369
12427
|
},
|
|
12370
12428
|
/**
|
|
12371
12429
|
*
|
|
12372
12430
|
* @summary Get deal by slug.
|
|
12373
12431
|
* @param {string} slug
|
|
12432
|
+
* @param {string} [languageCode]
|
|
12433
|
+
* @param {boolean} [returnDefaultValue]
|
|
12374
12434
|
* @param {*} [options] Override http request option.
|
|
12375
12435
|
* @throws {RequiredError}
|
|
12376
12436
|
*/
|
|
12377
|
-
async apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12378
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, options);
|
|
12437
|
+
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12438
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
12379
12439
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12380
12440
|
},
|
|
12381
12441
|
}
|
|
@@ -12392,11 +12452,13 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12392
12452
|
*
|
|
12393
12453
|
* @summary Get deal.
|
|
12394
12454
|
* @param {string} dealId
|
|
12455
|
+
* @param {string} [languageCode]
|
|
12456
|
+
* @param {boolean} [returnDefaultValue]
|
|
12395
12457
|
* @param {*} [options] Override http request option.
|
|
12396
12458
|
* @throws {RequiredError}
|
|
12397
12459
|
*/
|
|
12398
|
-
apiV2DealsDealIdGet(dealId: string, options?: any): AxiosPromise<DealModel> {
|
|
12399
|
-
return localVarFp.apiV2DealsDealIdGet(dealId, options).then((request) => request(axios, basePath));
|
|
12460
|
+
apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
12461
|
+
return localVarFp.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12400
12462
|
},
|
|
12401
12463
|
/**
|
|
12402
12464
|
*
|
|
@@ -12466,24 +12528,29 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12466
12528
|
* @param {string} [exceptHospitalId]
|
|
12467
12529
|
* @param {string} [exceptDealId]
|
|
12468
12530
|
* @param {Array<string>} [ids]
|
|
12531
|
+
* @param {string} [languageCode]
|
|
12532
|
+
* @param {boolean} [showHidden]
|
|
12533
|
+
* @param {boolean} [returnDefaultValue]
|
|
12469
12534
|
* @param {number} [page]
|
|
12470
12535
|
* @param {number} [limit]
|
|
12471
12536
|
* @param {Date} [lastRetrieved]
|
|
12472
12537
|
* @param {*} [options] Override http request option.
|
|
12473
12538
|
* @throws {RequiredError}
|
|
12474
12539
|
*/
|
|
12475
|
-
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
12476
|
-
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
12540
|
+
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
12541
|
+
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
12477
12542
|
},
|
|
12478
12543
|
/**
|
|
12479
12544
|
*
|
|
12480
12545
|
* @summary Get deal by slug.
|
|
12481
12546
|
* @param {string} slug
|
|
12547
|
+
* @param {string} [languageCode]
|
|
12548
|
+
* @param {boolean} [returnDefaultValue]
|
|
12482
12549
|
* @param {*} [options] Override http request option.
|
|
12483
12550
|
* @throws {RequiredError}
|
|
12484
12551
|
*/
|
|
12485
|
-
apiV2DealsSlugGet(slug: string, options?: any): AxiosPromise<DealModel> {
|
|
12486
|
-
return localVarFp.apiV2DealsSlugGet(slug, options).then((request) => request(axios, basePath));
|
|
12552
|
+
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
12553
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12487
12554
|
},
|
|
12488
12555
|
};
|
|
12489
12556
|
};
|
|
@@ -12499,12 +12566,14 @@ export class DealsApi extends BaseAPI {
|
|
|
12499
12566
|
*
|
|
12500
12567
|
* @summary Get deal.
|
|
12501
12568
|
* @param {string} dealId
|
|
12569
|
+
* @param {string} [languageCode]
|
|
12570
|
+
* @param {boolean} [returnDefaultValue]
|
|
12502
12571
|
* @param {*} [options] Override http request option.
|
|
12503
12572
|
* @throws {RequiredError}
|
|
12504
12573
|
* @memberof DealsApi
|
|
12505
12574
|
*/
|
|
12506
|
-
public apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig) {
|
|
12507
|
-
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
|
|
12575
|
+
public apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
12576
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12508
12577
|
}
|
|
12509
12578
|
|
|
12510
12579
|
/**
|
|
@@ -12583,6 +12652,9 @@ export class DealsApi extends BaseAPI {
|
|
|
12583
12652
|
* @param {string} [exceptHospitalId]
|
|
12584
12653
|
* @param {string} [exceptDealId]
|
|
12585
12654
|
* @param {Array<string>} [ids]
|
|
12655
|
+
* @param {string} [languageCode]
|
|
12656
|
+
* @param {boolean} [showHidden]
|
|
12657
|
+
* @param {boolean} [returnDefaultValue]
|
|
12586
12658
|
* @param {number} [page]
|
|
12587
12659
|
* @param {number} [limit]
|
|
12588
12660
|
* @param {Date} [lastRetrieved]
|
|
@@ -12590,20 +12662,22 @@ export class DealsApi extends BaseAPI {
|
|
|
12590
12662
|
* @throws {RequiredError}
|
|
12591
12663
|
* @memberof DealsApi
|
|
12592
12664
|
*/
|
|
12593
|
-
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
12594
|
-
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
12665
|
+
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
12666
|
+
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
12595
12667
|
}
|
|
12596
12668
|
|
|
12597
12669
|
/**
|
|
12598
12670
|
*
|
|
12599
12671
|
* @summary Get deal by slug.
|
|
12600
12672
|
* @param {string} slug
|
|
12673
|
+
* @param {string} [languageCode]
|
|
12674
|
+
* @param {boolean} [returnDefaultValue]
|
|
12601
12675
|
* @param {*} [options] Override http request option.
|
|
12602
12676
|
* @throws {RequiredError}
|
|
12603
12677
|
* @memberof DealsApi
|
|
12604
12678
|
*/
|
|
12605
|
-
public apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig) {
|
|
12606
|
-
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, options).then((request) => request(this.axios, this.basePath));
|
|
12679
|
+
public apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
12680
|
+
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12607
12681
|
}
|
|
12608
12682
|
}
|
|
12609
12683
|
|
|
@@ -19755,14 +19829,13 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19755
19829
|
* @param {string} [id]
|
|
19756
19830
|
* @param {string} [name]
|
|
19757
19831
|
* @param {string} [description]
|
|
19758
|
-
* @param {string} [languageCode]
|
|
19759
19832
|
* @param {number} [page]
|
|
19760
19833
|
* @param {number} [limit]
|
|
19761
19834
|
* @param {Date} [lastRetrieved]
|
|
19762
19835
|
* @param {*} [options] Override http request option.
|
|
19763
19836
|
* @throws {RequiredError}
|
|
19764
19837
|
*/
|
|
19765
|
-
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string,
|
|
19838
|
+
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19766
19839
|
const localVarPath = `/api/v2/servicescategories`;
|
|
19767
19840
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19768
19841
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -19787,10 +19860,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19787
19860
|
localVarQueryParameter['Description'] = description;
|
|
19788
19861
|
}
|
|
19789
19862
|
|
|
19790
|
-
if (languageCode !== undefined) {
|
|
19791
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
19792
|
-
}
|
|
19793
|
-
|
|
19794
19863
|
if (page !== undefined) {
|
|
19795
19864
|
localVarQueryParameter['page'] = page;
|
|
19796
19865
|
}
|
|
@@ -19820,11 +19889,10 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19820
19889
|
*
|
|
19821
19890
|
* @summary Get ServiceCategory.
|
|
19822
19891
|
* @param {string} serviceCategoryId
|
|
19823
|
-
* @param {string} [languageCode]
|
|
19824
19892
|
* @param {*} [options] Override http request option.
|
|
19825
19893
|
* @throws {RequiredError}
|
|
19826
19894
|
*/
|
|
19827
|
-
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string,
|
|
19895
|
+
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19828
19896
|
// verify required parameter 'serviceCategoryId' is not null or undefined
|
|
19829
19897
|
assertParamExists('apiV2ServicescategoriesServiceCategoryIdGet', 'serviceCategoryId', serviceCategoryId)
|
|
19830
19898
|
const localVarPath = `/api/v2/servicescategories/{serviceCategoryId}`
|
|
@@ -19840,10 +19908,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19840
19908
|
const localVarHeaderParameter = {} as any;
|
|
19841
19909
|
const localVarQueryParameter = {} as any;
|
|
19842
19910
|
|
|
19843
|
-
if (languageCode !== undefined) {
|
|
19844
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
19845
|
-
}
|
|
19846
|
-
|
|
19847
19911
|
|
|
19848
19912
|
|
|
19849
19913
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19871,27 +19935,25 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
|
|
|
19871
19935
|
* @param {string} [id]
|
|
19872
19936
|
* @param {string} [name]
|
|
19873
19937
|
* @param {string} [description]
|
|
19874
|
-
* @param {string} [languageCode]
|
|
19875
19938
|
* @param {number} [page]
|
|
19876
19939
|
* @param {number} [limit]
|
|
19877
19940
|
* @param {Date} [lastRetrieved]
|
|
19878
19941
|
* @param {*} [options] Override http request option.
|
|
19879
19942
|
* @throws {RequiredError}
|
|
19880
19943
|
*/
|
|
19881
|
-
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19882
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description,
|
|
19944
|
+
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoriesModel>> {
|
|
19945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options);
|
|
19883
19946
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19884
19947
|
},
|
|
19885
19948
|
/**
|
|
19886
19949
|
*
|
|
19887
19950
|
* @summary Get ServiceCategory.
|
|
19888
19951
|
* @param {string} serviceCategoryId
|
|
19889
|
-
* @param {string} [languageCode]
|
|
19890
19952
|
* @param {*} [options] Override http request option.
|
|
19891
19953
|
* @throws {RequiredError}
|
|
19892
19954
|
*/
|
|
19893
|
-
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19894
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
19955
|
+
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
|
|
19956
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options);
|
|
19895
19957
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19896
19958
|
},
|
|
19897
19959
|
}
|
|
@@ -19910,26 +19972,24 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
|
|
|
19910
19972
|
* @param {string} [id]
|
|
19911
19973
|
* @param {string} [name]
|
|
19912
19974
|
* @param {string} [description]
|
|
19913
|
-
* @param {string} [languageCode]
|
|
19914
19975
|
* @param {number} [page]
|
|
19915
19976
|
* @param {number} [limit]
|
|
19916
19977
|
* @param {Date} [lastRetrieved]
|
|
19917
19978
|
* @param {*} [options] Override http request option.
|
|
19918
19979
|
* @throws {RequiredError}
|
|
19919
19980
|
*/
|
|
19920
|
-
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19921
|
-
return localVarFp.apiV2ServicescategoriesGet(id, name, description,
|
|
19981
|
+
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceCategoriesModel> {
|
|
19982
|
+
return localVarFp.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
19922
19983
|
},
|
|
19923
19984
|
/**
|
|
19924
19985
|
*
|
|
19925
19986
|
* @summary Get ServiceCategory.
|
|
19926
19987
|
* @param {string} serviceCategoryId
|
|
19927
|
-
* @param {string} [languageCode]
|
|
19928
19988
|
* @param {*} [options] Override http request option.
|
|
19929
19989
|
* @throws {RequiredError}
|
|
19930
19990
|
*/
|
|
19931
|
-
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19932
|
-
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
19991
|
+
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: any): AxiosPromise<ServiceCategoryModel> {
|
|
19992
|
+
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(axios, basePath));
|
|
19933
19993
|
},
|
|
19934
19994
|
};
|
|
19935
19995
|
};
|
|
@@ -19947,7 +20007,6 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19947
20007
|
* @param {string} [id]
|
|
19948
20008
|
* @param {string} [name]
|
|
19949
20009
|
* @param {string} [description]
|
|
19950
|
-
* @param {string} [languageCode]
|
|
19951
20010
|
* @param {number} [page]
|
|
19952
20011
|
* @param {number} [limit]
|
|
19953
20012
|
* @param {Date} [lastRetrieved]
|
|
@@ -19955,21 +20014,20 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19955
20014
|
* @throws {RequiredError}
|
|
19956
20015
|
* @memberof ServicesCategoriesApi
|
|
19957
20016
|
*/
|
|
19958
|
-
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19959
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description,
|
|
20017
|
+
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20018
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
19960
20019
|
}
|
|
19961
20020
|
|
|
19962
20021
|
/**
|
|
19963
20022
|
*
|
|
19964
20023
|
* @summary Get ServiceCategory.
|
|
19965
20024
|
* @param {string} serviceCategoryId
|
|
19966
|
-
* @param {string} [languageCode]
|
|
19967
20025
|
* @param {*} [options] Override http request option.
|
|
19968
20026
|
* @throws {RequiredError}
|
|
19969
20027
|
* @memberof ServicesCategoriesApi
|
|
19970
20028
|
*/
|
|
19971
|
-
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19972
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
20029
|
+
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig) {
|
|
20030
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(this.axios, this.basePath));
|
|
19973
20031
|
}
|
|
19974
20032
|
}
|
|
19975
20033
|
|