ch-admin-api-client-typescript 2.8.6 → 2.8.9
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 +229 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +206 -0
- package/package.json +1 -1
- package/src/api.ts +338 -0
package/lib/api.js
CHANGED
|
@@ -9911,6 +9911,119 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9911
9911
|
});
|
|
9912
9912
|
});
|
|
9913
9913
|
},
|
|
9914
|
+
/**
|
|
9915
|
+
*
|
|
9916
|
+
* @summary Get all deals.
|
|
9917
|
+
* @param {string} [id]
|
|
9918
|
+
* @param {string} [name]
|
|
9919
|
+
* @param {MarketingType} [marketingType]
|
|
9920
|
+
* @param {string} [countryId]
|
|
9921
|
+
* @param {string} [hospitalId]
|
|
9922
|
+
* @param {string} [hospitalName]
|
|
9923
|
+
* @param {string} [specialtyId]
|
|
9924
|
+
* @param {string} [specialtyTypeId]
|
|
9925
|
+
* @param {string} [serviceId]
|
|
9926
|
+
* @param {string} [exceptHospitalId]
|
|
9927
|
+
* @param {string} [exceptDealId]
|
|
9928
|
+
* @param {Array<string>} [ids]
|
|
9929
|
+
* @param {string} [languageCode]
|
|
9930
|
+
* @param {boolean} [showHidden]
|
|
9931
|
+
* @param {boolean} [returnDefaultValue]
|
|
9932
|
+
* @param {number} [page]
|
|
9933
|
+
* @param {number} [limit]
|
|
9934
|
+
* @param {Date} [lastRetrieved]
|
|
9935
|
+
* @param {*} [options] Override http request option.
|
|
9936
|
+
* @throws {RequiredError}
|
|
9937
|
+
*/
|
|
9938
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
9939
|
+
if (options === void 0) { options = {}; }
|
|
9940
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9941
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9942
|
+
return __generator(this, function (_a) {
|
|
9943
|
+
switch (_a.label) {
|
|
9944
|
+
case 0:
|
|
9945
|
+
localVarPath = "/api/v1/deals/simple";
|
|
9946
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9947
|
+
if (configuration) {
|
|
9948
|
+
baseOptions = configuration.baseOptions;
|
|
9949
|
+
}
|
|
9950
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9951
|
+
localVarHeaderParameter = {};
|
|
9952
|
+
localVarQueryParameter = {};
|
|
9953
|
+
// authentication oauth2 required
|
|
9954
|
+
// oauth required
|
|
9955
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
9956
|
+
case 1:
|
|
9957
|
+
// authentication oauth2 required
|
|
9958
|
+
// oauth required
|
|
9959
|
+
_a.sent();
|
|
9960
|
+
if (id !== undefined) {
|
|
9961
|
+
localVarQueryParameter['Id'] = id;
|
|
9962
|
+
}
|
|
9963
|
+
if (name !== undefined) {
|
|
9964
|
+
localVarQueryParameter['Name'] = name;
|
|
9965
|
+
}
|
|
9966
|
+
if (marketingType !== undefined) {
|
|
9967
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
9968
|
+
}
|
|
9969
|
+
if (countryId !== undefined) {
|
|
9970
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
9971
|
+
}
|
|
9972
|
+
if (hospitalId !== undefined) {
|
|
9973
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
9974
|
+
}
|
|
9975
|
+
if (hospitalName !== undefined) {
|
|
9976
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
9977
|
+
}
|
|
9978
|
+
if (specialtyId !== undefined) {
|
|
9979
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
9980
|
+
}
|
|
9981
|
+
if (specialtyTypeId !== undefined) {
|
|
9982
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
9983
|
+
}
|
|
9984
|
+
if (serviceId !== undefined) {
|
|
9985
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
9986
|
+
}
|
|
9987
|
+
if (exceptHospitalId !== undefined) {
|
|
9988
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
9989
|
+
}
|
|
9990
|
+
if (exceptDealId !== undefined) {
|
|
9991
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
9992
|
+
}
|
|
9993
|
+
if (ids) {
|
|
9994
|
+
localVarQueryParameter['Ids'] = ids;
|
|
9995
|
+
}
|
|
9996
|
+
if (languageCode !== undefined) {
|
|
9997
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
9998
|
+
}
|
|
9999
|
+
if (showHidden !== undefined) {
|
|
10000
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
10001
|
+
}
|
|
10002
|
+
if (returnDefaultValue !== undefined) {
|
|
10003
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
10004
|
+
}
|
|
10005
|
+
if (page !== undefined) {
|
|
10006
|
+
localVarQueryParameter['page'] = page;
|
|
10007
|
+
}
|
|
10008
|
+
if (limit !== undefined) {
|
|
10009
|
+
localVarQueryParameter['limit'] = limit;
|
|
10010
|
+
}
|
|
10011
|
+
if (lastRetrieved !== undefined) {
|
|
10012
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10013
|
+
lastRetrieved.toISOString() :
|
|
10014
|
+
lastRetrieved;
|
|
10015
|
+
}
|
|
10016
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10017
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10018
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10019
|
+
return [2 /*return*/, {
|
|
10020
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10021
|
+
options: localVarRequestOptions,
|
|
10022
|
+
}];
|
|
10023
|
+
}
|
|
10024
|
+
});
|
|
10025
|
+
});
|
|
10026
|
+
},
|
|
9914
10027
|
/**
|
|
9915
10028
|
*
|
|
9916
10029
|
* @summary Get deal by slug.
|
|
@@ -10313,6 +10426,43 @@ exports.DealsApiFp = function (configuration) {
|
|
|
10313
10426
|
});
|
|
10314
10427
|
});
|
|
10315
10428
|
},
|
|
10429
|
+
/**
|
|
10430
|
+
*
|
|
10431
|
+
* @summary Get all deals.
|
|
10432
|
+
* @param {string} [id]
|
|
10433
|
+
* @param {string} [name]
|
|
10434
|
+
* @param {MarketingType} [marketingType]
|
|
10435
|
+
* @param {string} [countryId]
|
|
10436
|
+
* @param {string} [hospitalId]
|
|
10437
|
+
* @param {string} [hospitalName]
|
|
10438
|
+
* @param {string} [specialtyId]
|
|
10439
|
+
* @param {string} [specialtyTypeId]
|
|
10440
|
+
* @param {string} [serviceId]
|
|
10441
|
+
* @param {string} [exceptHospitalId]
|
|
10442
|
+
* @param {string} [exceptDealId]
|
|
10443
|
+
* @param {Array<string>} [ids]
|
|
10444
|
+
* @param {string} [languageCode]
|
|
10445
|
+
* @param {boolean} [showHidden]
|
|
10446
|
+
* @param {boolean} [returnDefaultValue]
|
|
10447
|
+
* @param {number} [page]
|
|
10448
|
+
* @param {number} [limit]
|
|
10449
|
+
* @param {Date} [lastRetrieved]
|
|
10450
|
+
* @param {*} [options] Override http request option.
|
|
10451
|
+
* @throws {RequiredError}
|
|
10452
|
+
*/
|
|
10453
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10454
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10455
|
+
var localVarAxiosArgs;
|
|
10456
|
+
return __generator(this, function (_a) {
|
|
10457
|
+
switch (_a.label) {
|
|
10458
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
10459
|
+
case 1:
|
|
10460
|
+
localVarAxiosArgs = _a.sent();
|
|
10461
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10462
|
+
}
|
|
10463
|
+
});
|
|
10464
|
+
});
|
|
10465
|
+
},
|
|
10316
10466
|
/**
|
|
10317
10467
|
*
|
|
10318
10468
|
* @summary Get deal by slug.
|
|
@@ -10536,6 +10686,33 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
10536
10686
|
apiV1DealsPost: function (createDealCommand, options) {
|
|
10537
10687
|
return localVarFp.apiV1DealsPost(createDealCommand, options).then(function (request) { return request(axios, basePath); });
|
|
10538
10688
|
},
|
|
10689
|
+
/**
|
|
10690
|
+
*
|
|
10691
|
+
* @summary Get all deals.
|
|
10692
|
+
* @param {string} [id]
|
|
10693
|
+
* @param {string} [name]
|
|
10694
|
+
* @param {MarketingType} [marketingType]
|
|
10695
|
+
* @param {string} [countryId]
|
|
10696
|
+
* @param {string} [hospitalId]
|
|
10697
|
+
* @param {string} [hospitalName]
|
|
10698
|
+
* @param {string} [specialtyId]
|
|
10699
|
+
* @param {string} [specialtyTypeId]
|
|
10700
|
+
* @param {string} [serviceId]
|
|
10701
|
+
* @param {string} [exceptHospitalId]
|
|
10702
|
+
* @param {string} [exceptDealId]
|
|
10703
|
+
* @param {Array<string>} [ids]
|
|
10704
|
+
* @param {string} [languageCode]
|
|
10705
|
+
* @param {boolean} [showHidden]
|
|
10706
|
+
* @param {boolean} [returnDefaultValue]
|
|
10707
|
+
* @param {number} [page]
|
|
10708
|
+
* @param {number} [limit]
|
|
10709
|
+
* @param {Date} [lastRetrieved]
|
|
10710
|
+
* @param {*} [options] Override http request option.
|
|
10711
|
+
* @throws {RequiredError}
|
|
10712
|
+
*/
|
|
10713
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10714
|
+
return localVarFp.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
10715
|
+
},
|
|
10539
10716
|
/**
|
|
10540
10717
|
*
|
|
10541
10718
|
* @summary Get deal by slug.
|
|
@@ -10783,6 +10960,35 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10783
10960
|
var _this = this;
|
|
10784
10961
|
return exports.DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10785
10962
|
};
|
|
10963
|
+
/**
|
|
10964
|
+
*
|
|
10965
|
+
* @summary Get all deals.
|
|
10966
|
+
* @param {string} [id]
|
|
10967
|
+
* @param {string} [name]
|
|
10968
|
+
* @param {MarketingType} [marketingType]
|
|
10969
|
+
* @param {string} [countryId]
|
|
10970
|
+
* @param {string} [hospitalId]
|
|
10971
|
+
* @param {string} [hospitalName]
|
|
10972
|
+
* @param {string} [specialtyId]
|
|
10973
|
+
* @param {string} [specialtyTypeId]
|
|
10974
|
+
* @param {string} [serviceId]
|
|
10975
|
+
* @param {string} [exceptHospitalId]
|
|
10976
|
+
* @param {string} [exceptDealId]
|
|
10977
|
+
* @param {Array<string>} [ids]
|
|
10978
|
+
* @param {string} [languageCode]
|
|
10979
|
+
* @param {boolean} [showHidden]
|
|
10980
|
+
* @param {boolean} [returnDefaultValue]
|
|
10981
|
+
* @param {number} [page]
|
|
10982
|
+
* @param {number} [limit]
|
|
10983
|
+
* @param {Date} [lastRetrieved]
|
|
10984
|
+
* @param {*} [options] Override http request option.
|
|
10985
|
+
* @throws {RequiredError}
|
|
10986
|
+
* @memberof DealsApi
|
|
10987
|
+
*/
|
|
10988
|
+
DealsApi.prototype.apiV1DealsSimpleGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10989
|
+
var _this = this;
|
|
10990
|
+
return exports.DealsApiFp(this.configuration).apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10991
|
+
};
|
|
10786
10992
|
/**
|
|
10787
10993
|
*
|
|
10788
10994
|
* @summary Get deal by slug.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -4006,6 +4006,12 @@ export interface CreateHospitalServiceCommand {
|
|
|
4006
4006
|
* @memberof CreateHospitalServiceCommand
|
|
4007
4007
|
*/
|
|
4008
4008
|
'photoThumbnail'?: string | null;
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @type {Array<MediaModel>}
|
|
4012
|
+
* @memberof CreateHospitalServiceCommand
|
|
4013
|
+
*/
|
|
4014
|
+
'medias'?: Array<MediaModel> | null;
|
|
4009
4015
|
}
|
|
4010
4016
|
/**
|
|
4011
4017
|
*
|
|
@@ -4467,6 +4473,12 @@ export interface CreateSpecialtyCommand {
|
|
|
4467
4473
|
* @memberof CreateSpecialtyCommand
|
|
4468
4474
|
*/
|
|
4469
4475
|
'specialtyTypeId'?: string;
|
|
4476
|
+
/**
|
|
4477
|
+
*
|
|
4478
|
+
* @type {Array<MediaModel>}
|
|
4479
|
+
* @memberof CreateSpecialtyCommand
|
|
4480
|
+
*/
|
|
4481
|
+
'medias'?: Array<MediaModel> | null;
|
|
4470
4482
|
}
|
|
4471
4483
|
/**
|
|
4472
4484
|
*
|
|
@@ -4743,6 +4755,67 @@ export interface DealItemModel {
|
|
|
4743
4755
|
*/
|
|
4744
4756
|
'auditableEntity'?: AuditableEntity;
|
|
4745
4757
|
}
|
|
4758
|
+
/**
|
|
4759
|
+
*
|
|
4760
|
+
* @export
|
|
4761
|
+
* @interface DealItemSimpleModel
|
|
4762
|
+
*/
|
|
4763
|
+
export interface DealItemSimpleModel {
|
|
4764
|
+
/**
|
|
4765
|
+
*
|
|
4766
|
+
* @type {string}
|
|
4767
|
+
* @memberof DealItemSimpleModel
|
|
4768
|
+
*/
|
|
4769
|
+
'id'?: string;
|
|
4770
|
+
/**
|
|
4771
|
+
*
|
|
4772
|
+
* @type {string}
|
|
4773
|
+
* @memberof DealItemSimpleModel
|
|
4774
|
+
*/
|
|
4775
|
+
'name'?: string | null;
|
|
4776
|
+
/**
|
|
4777
|
+
*
|
|
4778
|
+
* @type {string}
|
|
4779
|
+
* @memberof DealItemSimpleModel
|
|
4780
|
+
*/
|
|
4781
|
+
'normalizedName'?: string | null;
|
|
4782
|
+
/**
|
|
4783
|
+
*
|
|
4784
|
+
* @type {string}
|
|
4785
|
+
* @memberof DealItemSimpleModel
|
|
4786
|
+
*/
|
|
4787
|
+
'slug'?: string | null;
|
|
4788
|
+
/**
|
|
4789
|
+
*
|
|
4790
|
+
* @type {string}
|
|
4791
|
+
* @memberof DealItemSimpleModel
|
|
4792
|
+
*/
|
|
4793
|
+
'hospitalId'?: string;
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @type {string}
|
|
4797
|
+
* @memberof DealItemSimpleModel
|
|
4798
|
+
*/
|
|
4799
|
+
'hospitalName'?: string | null;
|
|
4800
|
+
/**
|
|
4801
|
+
*
|
|
4802
|
+
* @type {Array<LocalizedUrlModel>}
|
|
4803
|
+
* @memberof DealItemSimpleModel
|
|
4804
|
+
*/
|
|
4805
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
4806
|
+
/**
|
|
4807
|
+
*
|
|
4808
|
+
* @type {boolean}
|
|
4809
|
+
* @memberof DealItemSimpleModel
|
|
4810
|
+
*/
|
|
4811
|
+
'confirmed'?: boolean;
|
|
4812
|
+
/**
|
|
4813
|
+
*
|
|
4814
|
+
* @type {AuditableEntity}
|
|
4815
|
+
* @memberof DealItemSimpleModel
|
|
4816
|
+
*/
|
|
4817
|
+
'auditableEntity'?: AuditableEntity;
|
|
4818
|
+
}
|
|
4746
4819
|
/**
|
|
4747
4820
|
*
|
|
4748
4821
|
* @export
|
|
@@ -5165,6 +5238,25 @@ export interface DealsModel {
|
|
|
5165
5238
|
*/
|
|
5166
5239
|
'metaData'?: PagedListMetaData;
|
|
5167
5240
|
}
|
|
5241
|
+
/**
|
|
5242
|
+
*
|
|
5243
|
+
* @export
|
|
5244
|
+
* @interface DealsSimpleModel
|
|
5245
|
+
*/
|
|
5246
|
+
export interface DealsSimpleModel {
|
|
5247
|
+
/**
|
|
5248
|
+
*
|
|
5249
|
+
* @type {Array<DealItemSimpleModel>}
|
|
5250
|
+
* @memberof DealsSimpleModel
|
|
5251
|
+
*/
|
|
5252
|
+
'items'?: Array<DealItemSimpleModel> | null;
|
|
5253
|
+
/**
|
|
5254
|
+
*
|
|
5255
|
+
* @type {PagedListMetaData}
|
|
5256
|
+
* @memberof DealsSimpleModel
|
|
5257
|
+
*/
|
|
5258
|
+
'metaData'?: PagedListMetaData;
|
|
5259
|
+
}
|
|
5168
5260
|
/**
|
|
5169
5261
|
*
|
|
5170
5262
|
* @export
|
|
@@ -7367,6 +7459,12 @@ export interface HospitalServiceItemModel {
|
|
|
7367
7459
|
* @memberof HospitalServiceItemModel
|
|
7368
7460
|
*/
|
|
7369
7461
|
'photoThumbnail'?: string | null;
|
|
7462
|
+
/**
|
|
7463
|
+
*
|
|
7464
|
+
* @type {Array<MediaModel>}
|
|
7465
|
+
* @memberof HospitalServiceItemModel
|
|
7466
|
+
*/
|
|
7467
|
+
'medias'?: Array<MediaModel> | null;
|
|
7370
7468
|
/**
|
|
7371
7469
|
*
|
|
7372
7470
|
* @type {AuditableEntity}
|
|
@@ -7518,6 +7616,12 @@ export interface HospitalServiceModel {
|
|
|
7518
7616
|
* @memberof HospitalServiceModel
|
|
7519
7617
|
*/
|
|
7520
7618
|
'photoThumbnail'?: string | null;
|
|
7619
|
+
/**
|
|
7620
|
+
*
|
|
7621
|
+
* @type {Array<MediaModel>}
|
|
7622
|
+
* @memberof HospitalServiceModel
|
|
7623
|
+
*/
|
|
7624
|
+
'medias'?: Array<MediaModel> | null;
|
|
7521
7625
|
/**
|
|
7522
7626
|
*
|
|
7523
7627
|
* @type {AuditableEntity}
|
|
@@ -10024,6 +10128,12 @@ export interface SpecialtyItemModel {
|
|
|
10024
10128
|
* @memberof SpecialtyItemModel
|
|
10025
10129
|
*/
|
|
10026
10130
|
'auditableEntity'?: AuditableEntity;
|
|
10131
|
+
/**
|
|
10132
|
+
*
|
|
10133
|
+
* @type {Array<MediaModel>}
|
|
10134
|
+
* @memberof SpecialtyItemModel
|
|
10135
|
+
*/
|
|
10136
|
+
'medias'?: Array<MediaModel> | null;
|
|
10027
10137
|
}
|
|
10028
10138
|
/**
|
|
10029
10139
|
*
|
|
@@ -10097,6 +10207,12 @@ export interface SpecialtyModel {
|
|
|
10097
10207
|
* @memberof SpecialtyModel
|
|
10098
10208
|
*/
|
|
10099
10209
|
'auditableEntity'?: AuditableEntity;
|
|
10210
|
+
/**
|
|
10211
|
+
*
|
|
10212
|
+
* @type {Array<MediaModel>}
|
|
10213
|
+
* @memberof SpecialtyModel
|
|
10214
|
+
*/
|
|
10215
|
+
'medias'?: Array<MediaModel> | null;
|
|
10100
10216
|
/**
|
|
10101
10217
|
*
|
|
10102
10218
|
* @type {string}
|
|
@@ -11743,6 +11859,12 @@ export interface UpdateHospitalServiceCommand {
|
|
|
11743
11859
|
* @memberof UpdateHospitalServiceCommand
|
|
11744
11860
|
*/
|
|
11745
11861
|
'photoThumbnail'?: string | null;
|
|
11862
|
+
/**
|
|
11863
|
+
*
|
|
11864
|
+
* @type {Array<MediaModel>}
|
|
11865
|
+
* @memberof UpdateHospitalServiceCommand
|
|
11866
|
+
*/
|
|
11867
|
+
'medias'?: Array<MediaModel> | null;
|
|
11746
11868
|
}
|
|
11747
11869
|
/**
|
|
11748
11870
|
*
|
|
@@ -12290,6 +12412,12 @@ export interface UpdateSpecialtyCommand {
|
|
|
12290
12412
|
* @memberof UpdateSpecialtyCommand
|
|
12291
12413
|
*/
|
|
12292
12414
|
'confirmed'?: boolean;
|
|
12415
|
+
/**
|
|
12416
|
+
*
|
|
12417
|
+
* @type {Array<MediaModel>}
|
|
12418
|
+
* @memberof UpdateSpecialtyCommand
|
|
12419
|
+
*/
|
|
12420
|
+
'medias'?: Array<MediaModel> | null;
|
|
12293
12421
|
}
|
|
12294
12422
|
/**
|
|
12295
12423
|
*
|
|
@@ -21150,6 +21278,132 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
21150
21278
|
options: localVarRequestOptions,
|
|
21151
21279
|
};
|
|
21152
21280
|
},
|
|
21281
|
+
/**
|
|
21282
|
+
*
|
|
21283
|
+
* @summary Get all deals.
|
|
21284
|
+
* @param {string} [id]
|
|
21285
|
+
* @param {string} [name]
|
|
21286
|
+
* @param {MarketingType} [marketingType]
|
|
21287
|
+
* @param {string} [countryId]
|
|
21288
|
+
* @param {string} [hospitalId]
|
|
21289
|
+
* @param {string} [hospitalName]
|
|
21290
|
+
* @param {string} [specialtyId]
|
|
21291
|
+
* @param {string} [specialtyTypeId]
|
|
21292
|
+
* @param {string} [serviceId]
|
|
21293
|
+
* @param {string} [exceptHospitalId]
|
|
21294
|
+
* @param {string} [exceptDealId]
|
|
21295
|
+
* @param {Array<string>} [ids]
|
|
21296
|
+
* @param {string} [languageCode]
|
|
21297
|
+
* @param {boolean} [showHidden]
|
|
21298
|
+
* @param {boolean} [returnDefaultValue]
|
|
21299
|
+
* @param {number} [page]
|
|
21300
|
+
* @param {number} [limit]
|
|
21301
|
+
* @param {Date} [lastRetrieved]
|
|
21302
|
+
* @param {*} [options] Override http request option.
|
|
21303
|
+
* @throws {RequiredError}
|
|
21304
|
+
*/
|
|
21305
|
+
apiV1DealsSimpleGet: 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> => {
|
|
21306
|
+
const localVarPath = `/api/v1/deals/simple`;
|
|
21307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21309
|
+
let baseOptions;
|
|
21310
|
+
if (configuration) {
|
|
21311
|
+
baseOptions = configuration.baseOptions;
|
|
21312
|
+
}
|
|
21313
|
+
|
|
21314
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21315
|
+
const localVarHeaderParameter = {} as any;
|
|
21316
|
+
const localVarQueryParameter = {} as any;
|
|
21317
|
+
|
|
21318
|
+
// authentication oauth2 required
|
|
21319
|
+
// oauth required
|
|
21320
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
21321
|
+
|
|
21322
|
+
if (id !== undefined) {
|
|
21323
|
+
localVarQueryParameter['Id'] = id;
|
|
21324
|
+
}
|
|
21325
|
+
|
|
21326
|
+
if (name !== undefined) {
|
|
21327
|
+
localVarQueryParameter['Name'] = name;
|
|
21328
|
+
}
|
|
21329
|
+
|
|
21330
|
+
if (marketingType !== undefined) {
|
|
21331
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
21332
|
+
}
|
|
21333
|
+
|
|
21334
|
+
if (countryId !== undefined) {
|
|
21335
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
21336
|
+
}
|
|
21337
|
+
|
|
21338
|
+
if (hospitalId !== undefined) {
|
|
21339
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
21340
|
+
}
|
|
21341
|
+
|
|
21342
|
+
if (hospitalName !== undefined) {
|
|
21343
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
21344
|
+
}
|
|
21345
|
+
|
|
21346
|
+
if (specialtyId !== undefined) {
|
|
21347
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
21348
|
+
}
|
|
21349
|
+
|
|
21350
|
+
if (specialtyTypeId !== undefined) {
|
|
21351
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
21352
|
+
}
|
|
21353
|
+
|
|
21354
|
+
if (serviceId !== undefined) {
|
|
21355
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
21356
|
+
}
|
|
21357
|
+
|
|
21358
|
+
if (exceptHospitalId !== undefined) {
|
|
21359
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
21360
|
+
}
|
|
21361
|
+
|
|
21362
|
+
if (exceptDealId !== undefined) {
|
|
21363
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
21364
|
+
}
|
|
21365
|
+
|
|
21366
|
+
if (ids) {
|
|
21367
|
+
localVarQueryParameter['Ids'] = ids;
|
|
21368
|
+
}
|
|
21369
|
+
|
|
21370
|
+
if (languageCode !== undefined) {
|
|
21371
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
21372
|
+
}
|
|
21373
|
+
|
|
21374
|
+
if (showHidden !== undefined) {
|
|
21375
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
21376
|
+
}
|
|
21377
|
+
|
|
21378
|
+
if (returnDefaultValue !== undefined) {
|
|
21379
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
21380
|
+
}
|
|
21381
|
+
|
|
21382
|
+
if (page !== undefined) {
|
|
21383
|
+
localVarQueryParameter['page'] = page;
|
|
21384
|
+
}
|
|
21385
|
+
|
|
21386
|
+
if (limit !== undefined) {
|
|
21387
|
+
localVarQueryParameter['limit'] = limit;
|
|
21388
|
+
}
|
|
21389
|
+
|
|
21390
|
+
if (lastRetrieved !== undefined) {
|
|
21391
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
21392
|
+
(lastRetrieved as any).toISOString() :
|
|
21393
|
+
lastRetrieved;
|
|
21394
|
+
}
|
|
21395
|
+
|
|
21396
|
+
|
|
21397
|
+
|
|
21398
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21400
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21401
|
+
|
|
21402
|
+
return {
|
|
21403
|
+
url: toPathString(localVarUrlObj),
|
|
21404
|
+
options: localVarRequestOptions,
|
|
21405
|
+
};
|
|
21406
|
+
},
|
|
21153
21407
|
/**
|
|
21154
21408
|
*
|
|
21155
21409
|
* @summary Get deal by slug.
|
|
@@ -21415,6 +21669,34 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
21415
21669
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsPost(createDealCommand, options);
|
|
21416
21670
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21417
21671
|
},
|
|
21672
|
+
/**
|
|
21673
|
+
*
|
|
21674
|
+
* @summary Get all deals.
|
|
21675
|
+
* @param {string} [id]
|
|
21676
|
+
* @param {string} [name]
|
|
21677
|
+
* @param {MarketingType} [marketingType]
|
|
21678
|
+
* @param {string} [countryId]
|
|
21679
|
+
* @param {string} [hospitalId]
|
|
21680
|
+
* @param {string} [hospitalName]
|
|
21681
|
+
* @param {string} [specialtyId]
|
|
21682
|
+
* @param {string} [specialtyTypeId]
|
|
21683
|
+
* @param {string} [serviceId]
|
|
21684
|
+
* @param {string} [exceptHospitalId]
|
|
21685
|
+
* @param {string} [exceptDealId]
|
|
21686
|
+
* @param {Array<string>} [ids]
|
|
21687
|
+
* @param {string} [languageCode]
|
|
21688
|
+
* @param {boolean} [showHidden]
|
|
21689
|
+
* @param {boolean} [returnDefaultValue]
|
|
21690
|
+
* @param {number} [page]
|
|
21691
|
+
* @param {number} [limit]
|
|
21692
|
+
* @param {Date} [lastRetrieved]
|
|
21693
|
+
* @param {*} [options] Override http request option.
|
|
21694
|
+
* @throws {RequiredError}
|
|
21695
|
+
*/
|
|
21696
|
+
async apiV1DealsSimpleGet(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>> {
|
|
21697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
21698
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21699
|
+
},
|
|
21418
21700
|
/**
|
|
21419
21701
|
*
|
|
21420
21702
|
* @summary Get deal by slug.
|
|
@@ -21630,6 +21912,33 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
21630
21912
|
apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
21631
21913
|
return localVarFp.apiV1DealsPost(createDealCommand, options).then((request) => request(axios, basePath));
|
|
21632
21914
|
},
|
|
21915
|
+
/**
|
|
21916
|
+
*
|
|
21917
|
+
* @summary Get all deals.
|
|
21918
|
+
* @param {string} [id]
|
|
21919
|
+
* @param {string} [name]
|
|
21920
|
+
* @param {MarketingType} [marketingType]
|
|
21921
|
+
* @param {string} [countryId]
|
|
21922
|
+
* @param {string} [hospitalId]
|
|
21923
|
+
* @param {string} [hospitalName]
|
|
21924
|
+
* @param {string} [specialtyId]
|
|
21925
|
+
* @param {string} [specialtyTypeId]
|
|
21926
|
+
* @param {string} [serviceId]
|
|
21927
|
+
* @param {string} [exceptHospitalId]
|
|
21928
|
+
* @param {string} [exceptDealId]
|
|
21929
|
+
* @param {Array<string>} [ids]
|
|
21930
|
+
* @param {string} [languageCode]
|
|
21931
|
+
* @param {boolean} [showHidden]
|
|
21932
|
+
* @param {boolean} [returnDefaultValue]
|
|
21933
|
+
* @param {number} [page]
|
|
21934
|
+
* @param {number} [limit]
|
|
21935
|
+
* @param {Date} [lastRetrieved]
|
|
21936
|
+
* @param {*} [options] Override http request option.
|
|
21937
|
+
* @throws {RequiredError}
|
|
21938
|
+
*/
|
|
21939
|
+
apiV1DealsSimpleGet(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> {
|
|
21940
|
+
return localVarFp.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21941
|
+
},
|
|
21633
21942
|
/**
|
|
21634
21943
|
*
|
|
21635
21944
|
* @summary Get deal by slug.
|
|
@@ -21874,6 +22183,35 @@ export class DealsApi extends BaseAPI {
|
|
|
21874
22183
|
return DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
21875
22184
|
}
|
|
21876
22185
|
|
|
22186
|
+
/**
|
|
22187
|
+
*
|
|
22188
|
+
* @summary Get all deals.
|
|
22189
|
+
* @param {string} [id]
|
|
22190
|
+
* @param {string} [name]
|
|
22191
|
+
* @param {MarketingType} [marketingType]
|
|
22192
|
+
* @param {string} [countryId]
|
|
22193
|
+
* @param {string} [hospitalId]
|
|
22194
|
+
* @param {string} [hospitalName]
|
|
22195
|
+
* @param {string} [specialtyId]
|
|
22196
|
+
* @param {string} [specialtyTypeId]
|
|
22197
|
+
* @param {string} [serviceId]
|
|
22198
|
+
* @param {string} [exceptHospitalId]
|
|
22199
|
+
* @param {string} [exceptDealId]
|
|
22200
|
+
* @param {Array<string>} [ids]
|
|
22201
|
+
* @param {string} [languageCode]
|
|
22202
|
+
* @param {boolean} [showHidden]
|
|
22203
|
+
* @param {boolean} [returnDefaultValue]
|
|
22204
|
+
* @param {number} [page]
|
|
22205
|
+
* @param {number} [limit]
|
|
22206
|
+
* @param {Date} [lastRetrieved]
|
|
22207
|
+
* @param {*} [options] Override http request option.
|
|
22208
|
+
* @throws {RequiredError}
|
|
22209
|
+
* @memberof DealsApi
|
|
22210
|
+
*/
|
|
22211
|
+
public apiV1DealsSimpleGet(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) {
|
|
22212
|
+
return DealsApiFp(this.configuration).apiV1DealsSimpleGet(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));
|
|
22213
|
+
}
|
|
22214
|
+
|
|
21877
22215
|
/**
|
|
21878
22216
|
*
|
|
21879
22217
|
* @summary Get deal by slug.
|