ch-api-client-typescript2 2.6.2 → 2.6.7
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 +82 -41
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +87 -49
- package/package.json +1 -1
- package/src/api.ts +125 -64
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
|
*
|
|
@@ -5720,7 +5750,10 @@ export enum MediaType {
|
|
|
5720
5750
|
Photo = 'Photo',
|
|
5721
5751
|
Video = 'Video',
|
|
5722
5752
|
Youtube = 'Youtube',
|
|
5723
|
-
Document = 'Document'
|
|
5753
|
+
Document = 'Document',
|
|
5754
|
+
Frontal = 'Frontal',
|
|
5755
|
+
Diagonal = 'Diagonal',
|
|
5756
|
+
Side = 'Side'
|
|
5724
5757
|
}
|
|
5725
5758
|
|
|
5726
5759
|
/**
|
|
@@ -6650,12 +6683,6 @@ export interface ServiceCategoryItemModel {
|
|
|
6650
6683
|
* @memberof ServiceCategoryItemModel
|
|
6651
6684
|
*/
|
|
6652
6685
|
'serviceCount'?: number;
|
|
6653
|
-
/**
|
|
6654
|
-
*
|
|
6655
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6656
|
-
* @memberof ServiceCategoryItemModel
|
|
6657
|
-
*/
|
|
6658
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6659
6686
|
}
|
|
6660
6687
|
/**
|
|
6661
6688
|
*
|
|
@@ -6699,12 +6726,6 @@ export interface ServiceCategoryModel {
|
|
|
6699
6726
|
* @memberof ServiceCategoryModel
|
|
6700
6727
|
*/
|
|
6701
6728
|
'serviceCount'?: number;
|
|
6702
|
-
/**
|
|
6703
|
-
*
|
|
6704
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6705
|
-
* @memberof ServiceCategoryModel
|
|
6706
|
-
*/
|
|
6707
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6708
6729
|
}
|
|
6709
6730
|
/**
|
|
6710
6731
|
*
|
|
@@ -11890,10 +11911,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11890
11911
|
*
|
|
11891
11912
|
* @summary Get deal.
|
|
11892
11913
|
* @param {string} dealId
|
|
11914
|
+
* @param {string} [languageCode]
|
|
11915
|
+
* @param {boolean} [returnDefaultValue]
|
|
11893
11916
|
* @param {*} [options] Override http request option.
|
|
11894
11917
|
* @throws {RequiredError}
|
|
11895
11918
|
*/
|
|
11896
|
-
apiV2DealsDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11919
|
+
apiV2DealsDealIdGet: async (dealId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11897
11920
|
// verify required parameter 'dealId' is not null or undefined
|
|
11898
11921
|
assertParamExists('apiV2DealsDealIdGet', 'dealId', dealId)
|
|
11899
11922
|
const localVarPath = `/api/v2/deals/{dealId}`
|
|
@@ -11909,6 +11932,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11909
11932
|
const localVarHeaderParameter = {} as any;
|
|
11910
11933
|
const localVarQueryParameter = {} as any;
|
|
11911
11934
|
|
|
11935
|
+
if (languageCode !== undefined) {
|
|
11936
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
11937
|
+
}
|
|
11938
|
+
|
|
11939
|
+
if (returnDefaultValue !== undefined) {
|
|
11940
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
11941
|
+
}
|
|
11942
|
+
|
|
11912
11943
|
|
|
11913
11944
|
|
|
11914
11945
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12142,13 +12173,16 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12142
12173
|
* @param {string} [exceptHospitalId]
|
|
12143
12174
|
* @param {string} [exceptDealId]
|
|
12144
12175
|
* @param {Array<string>} [ids]
|
|
12176
|
+
* @param {string} [languageCode]
|
|
12177
|
+
* @param {boolean} [showHidden]
|
|
12178
|
+
* @param {boolean} [returnDefaultValue]
|
|
12145
12179
|
* @param {number} [page]
|
|
12146
12180
|
* @param {number} [limit]
|
|
12147
12181
|
* @param {Date} [lastRetrieved]
|
|
12148
12182
|
* @param {*} [options] Override http request option.
|
|
12149
12183
|
* @throws {RequiredError}
|
|
12150
12184
|
*/
|
|
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> => {
|
|
12185
|
+
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
12186
|
const localVarPath = `/api/v2/deals`;
|
|
12153
12187
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12154
12188
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12205,6 +12239,18 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12205
12239
|
localVarQueryParameter['Ids'] = ids;
|
|
12206
12240
|
}
|
|
12207
12241
|
|
|
12242
|
+
if (languageCode !== undefined) {
|
|
12243
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
12244
|
+
}
|
|
12245
|
+
|
|
12246
|
+
if (showHidden !== undefined) {
|
|
12247
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
if (returnDefaultValue !== undefined) {
|
|
12251
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
12252
|
+
}
|
|
12253
|
+
|
|
12208
12254
|
if (page !== undefined) {
|
|
12209
12255
|
localVarQueryParameter['page'] = page;
|
|
12210
12256
|
}
|
|
@@ -12234,10 +12280,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12234
12280
|
*
|
|
12235
12281
|
* @summary Get deal by slug.
|
|
12236
12282
|
* @param {string} slug
|
|
12283
|
+
* @param {string} [languageCode]
|
|
12284
|
+
* @param {boolean} [returnDefaultValue]
|
|
12237
12285
|
* @param {*} [options] Override http request option.
|
|
12238
12286
|
* @throws {RequiredError}
|
|
12239
12287
|
*/
|
|
12240
|
-
apiV2DealsSlugGet: async (slug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12288
|
+
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12241
12289
|
// verify required parameter 'slug' is not null or undefined
|
|
12242
12290
|
assertParamExists('apiV2DealsSlugGet', 'slug', slug)
|
|
12243
12291
|
const localVarPath = `/api/v2/deals/{slug}`
|
|
@@ -12253,6 +12301,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12253
12301
|
const localVarHeaderParameter = {} as any;
|
|
12254
12302
|
const localVarQueryParameter = {} as any;
|
|
12255
12303
|
|
|
12304
|
+
if (languageCode !== undefined) {
|
|
12305
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
12306
|
+
}
|
|
12307
|
+
|
|
12308
|
+
if (returnDefaultValue !== undefined) {
|
|
12309
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
12310
|
+
}
|
|
12311
|
+
|
|
12256
12312
|
|
|
12257
12313
|
|
|
12258
12314
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12278,11 +12334,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12278
12334
|
*
|
|
12279
12335
|
* @summary Get deal.
|
|
12280
12336
|
* @param {string} dealId
|
|
12337
|
+
* @param {string} [languageCode]
|
|
12338
|
+
* @param {boolean} [returnDefaultValue]
|
|
12281
12339
|
* @param {*} [options] Override http request option.
|
|
12282
12340
|
* @throws {RequiredError}
|
|
12283
12341
|
*/
|
|
12284
|
-
async apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, options);
|
|
12342
|
+
async apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options);
|
|
12286
12344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12287
12345
|
},
|
|
12288
12346
|
/**
|
|
@@ -12357,25 +12415,30 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12357
12415
|
* @param {string} [exceptHospitalId]
|
|
12358
12416
|
* @param {string} [exceptDealId]
|
|
12359
12417
|
* @param {Array<string>} [ids]
|
|
12418
|
+
* @param {string} [languageCode]
|
|
12419
|
+
* @param {boolean} [showHidden]
|
|
12420
|
+
* @param {boolean} [returnDefaultValue]
|
|
12360
12421
|
* @param {number} [page]
|
|
12361
12422
|
* @param {number} [limit]
|
|
12362
12423
|
* @param {Date} [lastRetrieved]
|
|
12363
12424
|
* @param {*} [options] Override http request option.
|
|
12364
12425
|
* @throws {RequiredError}
|
|
12365
12426
|
*/
|
|
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);
|
|
12427
|
+
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>> {
|
|
12428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
12368
12429
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12369
12430
|
},
|
|
12370
12431
|
/**
|
|
12371
12432
|
*
|
|
12372
12433
|
* @summary Get deal by slug.
|
|
12373
12434
|
* @param {string} slug
|
|
12435
|
+
* @param {string} [languageCode]
|
|
12436
|
+
* @param {boolean} [returnDefaultValue]
|
|
12374
12437
|
* @param {*} [options] Override http request option.
|
|
12375
12438
|
* @throws {RequiredError}
|
|
12376
12439
|
*/
|
|
12377
|
-
async apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12378
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, options);
|
|
12440
|
+
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
12379
12442
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12380
12443
|
},
|
|
12381
12444
|
}
|
|
@@ -12392,11 +12455,13 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12392
12455
|
*
|
|
12393
12456
|
* @summary Get deal.
|
|
12394
12457
|
* @param {string} dealId
|
|
12458
|
+
* @param {string} [languageCode]
|
|
12459
|
+
* @param {boolean} [returnDefaultValue]
|
|
12395
12460
|
* @param {*} [options] Override http request option.
|
|
12396
12461
|
* @throws {RequiredError}
|
|
12397
12462
|
*/
|
|
12398
|
-
apiV2DealsDealIdGet(dealId: string, options?: any): AxiosPromise<DealModel> {
|
|
12399
|
-
return localVarFp.apiV2DealsDealIdGet(dealId, options).then((request) => request(axios, basePath));
|
|
12463
|
+
apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
12464
|
+
return localVarFp.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12400
12465
|
},
|
|
12401
12466
|
/**
|
|
12402
12467
|
*
|
|
@@ -12466,24 +12531,29 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12466
12531
|
* @param {string} [exceptHospitalId]
|
|
12467
12532
|
* @param {string} [exceptDealId]
|
|
12468
12533
|
* @param {Array<string>} [ids]
|
|
12534
|
+
* @param {string} [languageCode]
|
|
12535
|
+
* @param {boolean} [showHidden]
|
|
12536
|
+
* @param {boolean} [returnDefaultValue]
|
|
12469
12537
|
* @param {number} [page]
|
|
12470
12538
|
* @param {number} [limit]
|
|
12471
12539
|
* @param {Date} [lastRetrieved]
|
|
12472
12540
|
* @param {*} [options] Override http request option.
|
|
12473
12541
|
* @throws {RequiredError}
|
|
12474
12542
|
*/
|
|
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));
|
|
12543
|
+
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> {
|
|
12544
|
+
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
12545
|
},
|
|
12478
12546
|
/**
|
|
12479
12547
|
*
|
|
12480
12548
|
* @summary Get deal by slug.
|
|
12481
12549
|
* @param {string} slug
|
|
12550
|
+
* @param {string} [languageCode]
|
|
12551
|
+
* @param {boolean} [returnDefaultValue]
|
|
12482
12552
|
* @param {*} [options] Override http request option.
|
|
12483
12553
|
* @throws {RequiredError}
|
|
12484
12554
|
*/
|
|
12485
|
-
apiV2DealsSlugGet(slug: string, options?: any): AxiosPromise<DealModel> {
|
|
12486
|
-
return localVarFp.apiV2DealsSlugGet(slug, options).then((request) => request(axios, basePath));
|
|
12555
|
+
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
12556
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12487
12557
|
},
|
|
12488
12558
|
};
|
|
12489
12559
|
};
|
|
@@ -12499,12 +12569,14 @@ export class DealsApi extends BaseAPI {
|
|
|
12499
12569
|
*
|
|
12500
12570
|
* @summary Get deal.
|
|
12501
12571
|
* @param {string} dealId
|
|
12572
|
+
* @param {string} [languageCode]
|
|
12573
|
+
* @param {boolean} [returnDefaultValue]
|
|
12502
12574
|
* @param {*} [options] Override http request option.
|
|
12503
12575
|
* @throws {RequiredError}
|
|
12504
12576
|
* @memberof DealsApi
|
|
12505
12577
|
*/
|
|
12506
|
-
public apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig) {
|
|
12507
|
-
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
|
|
12578
|
+
public apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
12579
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12508
12580
|
}
|
|
12509
12581
|
|
|
12510
12582
|
/**
|
|
@@ -12583,6 +12655,9 @@ export class DealsApi extends BaseAPI {
|
|
|
12583
12655
|
* @param {string} [exceptHospitalId]
|
|
12584
12656
|
* @param {string} [exceptDealId]
|
|
12585
12657
|
* @param {Array<string>} [ids]
|
|
12658
|
+
* @param {string} [languageCode]
|
|
12659
|
+
* @param {boolean} [showHidden]
|
|
12660
|
+
* @param {boolean} [returnDefaultValue]
|
|
12586
12661
|
* @param {number} [page]
|
|
12587
12662
|
* @param {number} [limit]
|
|
12588
12663
|
* @param {Date} [lastRetrieved]
|
|
@@ -12590,20 +12665,22 @@ export class DealsApi extends BaseAPI {
|
|
|
12590
12665
|
* @throws {RequiredError}
|
|
12591
12666
|
* @memberof DealsApi
|
|
12592
12667
|
*/
|
|
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));
|
|
12668
|
+
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) {
|
|
12669
|
+
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
12670
|
}
|
|
12596
12671
|
|
|
12597
12672
|
/**
|
|
12598
12673
|
*
|
|
12599
12674
|
* @summary Get deal by slug.
|
|
12600
12675
|
* @param {string} slug
|
|
12676
|
+
* @param {string} [languageCode]
|
|
12677
|
+
* @param {boolean} [returnDefaultValue]
|
|
12601
12678
|
* @param {*} [options] Override http request option.
|
|
12602
12679
|
* @throws {RequiredError}
|
|
12603
12680
|
* @memberof DealsApi
|
|
12604
12681
|
*/
|
|
12605
|
-
public apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig) {
|
|
12606
|
-
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, options).then((request) => request(this.axios, this.basePath));
|
|
12682
|
+
public apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
12683
|
+
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12607
12684
|
}
|
|
12608
12685
|
}
|
|
12609
12686
|
|
|
@@ -19755,14 +19832,13 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19755
19832
|
* @param {string} [id]
|
|
19756
19833
|
* @param {string} [name]
|
|
19757
19834
|
* @param {string} [description]
|
|
19758
|
-
* @param {string} [languageCode]
|
|
19759
19835
|
* @param {number} [page]
|
|
19760
19836
|
* @param {number} [limit]
|
|
19761
19837
|
* @param {Date} [lastRetrieved]
|
|
19762
19838
|
* @param {*} [options] Override http request option.
|
|
19763
19839
|
* @throws {RequiredError}
|
|
19764
19840
|
*/
|
|
19765
|
-
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string,
|
|
19841
|
+
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19766
19842
|
const localVarPath = `/api/v2/servicescategories`;
|
|
19767
19843
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19768
19844
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -19787,10 +19863,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19787
19863
|
localVarQueryParameter['Description'] = description;
|
|
19788
19864
|
}
|
|
19789
19865
|
|
|
19790
|
-
if (languageCode !== undefined) {
|
|
19791
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
19792
|
-
}
|
|
19793
|
-
|
|
19794
19866
|
if (page !== undefined) {
|
|
19795
19867
|
localVarQueryParameter['page'] = page;
|
|
19796
19868
|
}
|
|
@@ -19820,11 +19892,10 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19820
19892
|
*
|
|
19821
19893
|
* @summary Get ServiceCategory.
|
|
19822
19894
|
* @param {string} serviceCategoryId
|
|
19823
|
-
* @param {string} [languageCode]
|
|
19824
19895
|
* @param {*} [options] Override http request option.
|
|
19825
19896
|
* @throws {RequiredError}
|
|
19826
19897
|
*/
|
|
19827
|
-
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string,
|
|
19898
|
+
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19828
19899
|
// verify required parameter 'serviceCategoryId' is not null or undefined
|
|
19829
19900
|
assertParamExists('apiV2ServicescategoriesServiceCategoryIdGet', 'serviceCategoryId', serviceCategoryId)
|
|
19830
19901
|
const localVarPath = `/api/v2/servicescategories/{serviceCategoryId}`
|
|
@@ -19840,10 +19911,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19840
19911
|
const localVarHeaderParameter = {} as any;
|
|
19841
19912
|
const localVarQueryParameter = {} as any;
|
|
19842
19913
|
|
|
19843
|
-
if (languageCode !== undefined) {
|
|
19844
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
19845
|
-
}
|
|
19846
|
-
|
|
19847
19914
|
|
|
19848
19915
|
|
|
19849
19916
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19871,27 +19938,25 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
|
|
|
19871
19938
|
* @param {string} [id]
|
|
19872
19939
|
* @param {string} [name]
|
|
19873
19940
|
* @param {string} [description]
|
|
19874
|
-
* @param {string} [languageCode]
|
|
19875
19941
|
* @param {number} [page]
|
|
19876
19942
|
* @param {number} [limit]
|
|
19877
19943
|
* @param {Date} [lastRetrieved]
|
|
19878
19944
|
* @param {*} [options] Override http request option.
|
|
19879
19945
|
* @throws {RequiredError}
|
|
19880
19946
|
*/
|
|
19881
|
-
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19882
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description,
|
|
19947
|
+
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoriesModel>> {
|
|
19948
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options);
|
|
19883
19949
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19884
19950
|
},
|
|
19885
19951
|
/**
|
|
19886
19952
|
*
|
|
19887
19953
|
* @summary Get ServiceCategory.
|
|
19888
19954
|
* @param {string} serviceCategoryId
|
|
19889
|
-
* @param {string} [languageCode]
|
|
19890
19955
|
* @param {*} [options] Override http request option.
|
|
19891
19956
|
* @throws {RequiredError}
|
|
19892
19957
|
*/
|
|
19893
|
-
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19894
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
19958
|
+
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
|
|
19959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options);
|
|
19895
19960
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19896
19961
|
},
|
|
19897
19962
|
}
|
|
@@ -19910,26 +19975,24 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
|
|
|
19910
19975
|
* @param {string} [id]
|
|
19911
19976
|
* @param {string} [name]
|
|
19912
19977
|
* @param {string} [description]
|
|
19913
|
-
* @param {string} [languageCode]
|
|
19914
19978
|
* @param {number} [page]
|
|
19915
19979
|
* @param {number} [limit]
|
|
19916
19980
|
* @param {Date} [lastRetrieved]
|
|
19917
19981
|
* @param {*} [options] Override http request option.
|
|
19918
19982
|
* @throws {RequiredError}
|
|
19919
19983
|
*/
|
|
19920
|
-
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19921
|
-
return localVarFp.apiV2ServicescategoriesGet(id, name, description,
|
|
19984
|
+
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceCategoriesModel> {
|
|
19985
|
+
return localVarFp.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
19922
19986
|
},
|
|
19923
19987
|
/**
|
|
19924
19988
|
*
|
|
19925
19989
|
* @summary Get ServiceCategory.
|
|
19926
19990
|
* @param {string} serviceCategoryId
|
|
19927
|
-
* @param {string} [languageCode]
|
|
19928
19991
|
* @param {*} [options] Override http request option.
|
|
19929
19992
|
* @throws {RequiredError}
|
|
19930
19993
|
*/
|
|
19931
|
-
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19932
|
-
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
19994
|
+
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: any): AxiosPromise<ServiceCategoryModel> {
|
|
19995
|
+
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(axios, basePath));
|
|
19933
19996
|
},
|
|
19934
19997
|
};
|
|
19935
19998
|
};
|
|
@@ -19947,7 +20010,6 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19947
20010
|
* @param {string} [id]
|
|
19948
20011
|
* @param {string} [name]
|
|
19949
20012
|
* @param {string} [description]
|
|
19950
|
-
* @param {string} [languageCode]
|
|
19951
20013
|
* @param {number} [page]
|
|
19952
20014
|
* @param {number} [limit]
|
|
19953
20015
|
* @param {Date} [lastRetrieved]
|
|
@@ -19955,21 +20017,20 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19955
20017
|
* @throws {RequiredError}
|
|
19956
20018
|
* @memberof ServicesCategoriesApi
|
|
19957
20019
|
*/
|
|
19958
|
-
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19959
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description,
|
|
20020
|
+
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20021
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
19960
20022
|
}
|
|
19961
20023
|
|
|
19962
20024
|
/**
|
|
19963
20025
|
*
|
|
19964
20026
|
* @summary Get ServiceCategory.
|
|
19965
20027
|
* @param {string} serviceCategoryId
|
|
19966
|
-
* @param {string} [languageCode]
|
|
19967
20028
|
* @param {*} [options] Override http request option.
|
|
19968
20029
|
* @throws {RequiredError}
|
|
19969
20030
|
* @memberof ServicesCategoriesApi
|
|
19970
20031
|
*/
|
|
19971
|
-
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19972
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
20032
|
+
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig) {
|
|
20033
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(this.axios, this.basePath));
|
|
19973
20034
|
}
|
|
19974
20035
|
}
|
|
19975
20036
|
|