ch-admin-api-client-typescript 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +131 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +194 -0
- package/package.json +1 -1
- package/src/api.ts +234 -0
package/lib/api.js
CHANGED
|
@@ -16321,6 +16321,113 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
16321
16321
|
});
|
|
16322
16322
|
});
|
|
16323
16323
|
},
|
|
16324
|
+
/**
|
|
16325
|
+
*
|
|
16326
|
+
* @summary Get all Hospitals.
|
|
16327
|
+
* @param {string} [hospitalId]
|
|
16328
|
+
* @param {string} [name]
|
|
16329
|
+
* @param {string} [description]
|
|
16330
|
+
* @param {string} [countryId]
|
|
16331
|
+
* @param {Date} [created]
|
|
16332
|
+
* @param {MarketingType} [marketingType]
|
|
16333
|
+
* @param {string} [specialtyTypeId]
|
|
16334
|
+
* @param {string} [specialtyId]
|
|
16335
|
+
* @param {string} [serviceId]
|
|
16336
|
+
* @param {string} [exceptHospitalId]
|
|
16337
|
+
* @param {boolean} [showHidden]
|
|
16338
|
+
* @param {string} [languageCode]
|
|
16339
|
+
* @param {Array<string>} [ids]
|
|
16340
|
+
* @param {number} [page]
|
|
16341
|
+
* @param {number} [limit]
|
|
16342
|
+
* @param {Date} [lastRetrieved]
|
|
16343
|
+
* @param {*} [options] Override http request option.
|
|
16344
|
+
* @throws {RequiredError}
|
|
16345
|
+
*/
|
|
16346
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
16347
|
+
if (options === void 0) { options = {}; }
|
|
16348
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16349
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16350
|
+
return __generator(this, function (_a) {
|
|
16351
|
+
switch (_a.label) {
|
|
16352
|
+
case 0:
|
|
16353
|
+
localVarPath = "/api/v1/hospitals/simple";
|
|
16354
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16355
|
+
if (configuration) {
|
|
16356
|
+
baseOptions = configuration.baseOptions;
|
|
16357
|
+
}
|
|
16358
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16359
|
+
localVarHeaderParameter = {};
|
|
16360
|
+
localVarQueryParameter = {};
|
|
16361
|
+
// authentication oauth2 required
|
|
16362
|
+
// oauth required
|
|
16363
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16364
|
+
case 1:
|
|
16365
|
+
// authentication oauth2 required
|
|
16366
|
+
// oauth required
|
|
16367
|
+
_a.sent();
|
|
16368
|
+
if (hospitalId !== undefined) {
|
|
16369
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
16370
|
+
}
|
|
16371
|
+
if (name !== undefined) {
|
|
16372
|
+
localVarQueryParameter['Name'] = name;
|
|
16373
|
+
}
|
|
16374
|
+
if (description !== undefined) {
|
|
16375
|
+
localVarQueryParameter['Description'] = description;
|
|
16376
|
+
}
|
|
16377
|
+
if (countryId !== undefined) {
|
|
16378
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
16379
|
+
}
|
|
16380
|
+
if (created !== undefined) {
|
|
16381
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
16382
|
+
created.toISOString() :
|
|
16383
|
+
created;
|
|
16384
|
+
}
|
|
16385
|
+
if (marketingType !== undefined) {
|
|
16386
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
16387
|
+
}
|
|
16388
|
+
if (specialtyTypeId !== undefined) {
|
|
16389
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
16390
|
+
}
|
|
16391
|
+
if (specialtyId !== undefined) {
|
|
16392
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
16393
|
+
}
|
|
16394
|
+
if (serviceId !== undefined) {
|
|
16395
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
16396
|
+
}
|
|
16397
|
+
if (exceptHospitalId !== undefined) {
|
|
16398
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
16399
|
+
}
|
|
16400
|
+
if (showHidden !== undefined) {
|
|
16401
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
16402
|
+
}
|
|
16403
|
+
if (languageCode !== undefined) {
|
|
16404
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
16405
|
+
}
|
|
16406
|
+
if (ids) {
|
|
16407
|
+
localVarQueryParameter['Ids'] = ids;
|
|
16408
|
+
}
|
|
16409
|
+
if (page !== undefined) {
|
|
16410
|
+
localVarQueryParameter['page'] = page;
|
|
16411
|
+
}
|
|
16412
|
+
if (limit !== undefined) {
|
|
16413
|
+
localVarQueryParameter['limit'] = limit;
|
|
16414
|
+
}
|
|
16415
|
+
if (lastRetrieved !== undefined) {
|
|
16416
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16417
|
+
lastRetrieved.toISOString() :
|
|
16418
|
+
lastRetrieved;
|
|
16419
|
+
}
|
|
16420
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16421
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16422
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16423
|
+
return [2 /*return*/, {
|
|
16424
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16425
|
+
options: localVarRequestOptions,
|
|
16426
|
+
}];
|
|
16427
|
+
}
|
|
16428
|
+
});
|
|
16429
|
+
});
|
|
16430
|
+
},
|
|
16324
16431
|
/**
|
|
16325
16432
|
*
|
|
16326
16433
|
* @summary Get Hospital by slug.
|
|
@@ -17373,6 +17480,41 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
17373
17480
|
});
|
|
17374
17481
|
});
|
|
17375
17482
|
},
|
|
17483
|
+
/**
|
|
17484
|
+
*
|
|
17485
|
+
* @summary Get all Hospitals.
|
|
17486
|
+
* @param {string} [hospitalId]
|
|
17487
|
+
* @param {string} [name]
|
|
17488
|
+
* @param {string} [description]
|
|
17489
|
+
* @param {string} [countryId]
|
|
17490
|
+
* @param {Date} [created]
|
|
17491
|
+
* @param {MarketingType} [marketingType]
|
|
17492
|
+
* @param {string} [specialtyTypeId]
|
|
17493
|
+
* @param {string} [specialtyId]
|
|
17494
|
+
* @param {string} [serviceId]
|
|
17495
|
+
* @param {string} [exceptHospitalId]
|
|
17496
|
+
* @param {boolean} [showHidden]
|
|
17497
|
+
* @param {string} [languageCode]
|
|
17498
|
+
* @param {Array<string>} [ids]
|
|
17499
|
+
* @param {number} [page]
|
|
17500
|
+
* @param {number} [limit]
|
|
17501
|
+
* @param {Date} [lastRetrieved]
|
|
17502
|
+
* @param {*} [options] Override http request option.
|
|
17503
|
+
* @throws {RequiredError}
|
|
17504
|
+
*/
|
|
17505
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
17506
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17507
|
+
var localVarAxiosArgs;
|
|
17508
|
+
return __generator(this, function (_a) {
|
|
17509
|
+
switch (_a.label) {
|
|
17510
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options)];
|
|
17511
|
+
case 1:
|
|
17512
|
+
localVarAxiosArgs = _a.sent();
|
|
17513
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17514
|
+
}
|
|
17515
|
+
});
|
|
17516
|
+
});
|
|
17517
|
+
},
|
|
17376
17518
|
/**
|
|
17377
17519
|
*
|
|
17378
17520
|
* @summary Get Hospital by slug.
|
|
@@ -17969,6 +18111,31 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
17969
18111
|
apiV1HospitalsPost: function (createHospitalCommand, options) {
|
|
17970
18112
|
return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17971
18113
|
},
|
|
18114
|
+
/**
|
|
18115
|
+
*
|
|
18116
|
+
* @summary Get all Hospitals.
|
|
18117
|
+
* @param {string} [hospitalId]
|
|
18118
|
+
* @param {string} [name]
|
|
18119
|
+
* @param {string} [description]
|
|
18120
|
+
* @param {string} [countryId]
|
|
18121
|
+
* @param {Date} [created]
|
|
18122
|
+
* @param {MarketingType} [marketingType]
|
|
18123
|
+
* @param {string} [specialtyTypeId]
|
|
18124
|
+
* @param {string} [specialtyId]
|
|
18125
|
+
* @param {string} [serviceId]
|
|
18126
|
+
* @param {string} [exceptHospitalId]
|
|
18127
|
+
* @param {boolean} [showHidden]
|
|
18128
|
+
* @param {string} [languageCode]
|
|
18129
|
+
* @param {Array<string>} [ids]
|
|
18130
|
+
* @param {number} [page]
|
|
18131
|
+
* @param {number} [limit]
|
|
18132
|
+
* @param {Date} [lastRetrieved]
|
|
18133
|
+
* @param {*} [options] Override http request option.
|
|
18134
|
+
* @throws {RequiredError}
|
|
18135
|
+
*/
|
|
18136
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18137
|
+
return localVarFp.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18138
|
+
},
|
|
17972
18139
|
/**
|
|
17973
18140
|
*
|
|
17974
18141
|
* @summary Get Hospital by slug.
|
|
@@ -18645,6 +18812,33 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
18645
18812
|
var _this = this;
|
|
18646
18813
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18647
18814
|
};
|
|
18815
|
+
/**
|
|
18816
|
+
*
|
|
18817
|
+
* @summary Get all Hospitals.
|
|
18818
|
+
* @param {string} [hospitalId]
|
|
18819
|
+
* @param {string} [name]
|
|
18820
|
+
* @param {string} [description]
|
|
18821
|
+
* @param {string} [countryId]
|
|
18822
|
+
* @param {Date} [created]
|
|
18823
|
+
* @param {MarketingType} [marketingType]
|
|
18824
|
+
* @param {string} [specialtyTypeId]
|
|
18825
|
+
* @param {string} [specialtyId]
|
|
18826
|
+
* @param {string} [serviceId]
|
|
18827
|
+
* @param {string} [exceptHospitalId]
|
|
18828
|
+
* @param {boolean} [showHidden]
|
|
18829
|
+
* @param {string} [languageCode]
|
|
18830
|
+
* @param {Array<string>} [ids]
|
|
18831
|
+
* @param {number} [page]
|
|
18832
|
+
* @param {number} [limit]
|
|
18833
|
+
* @param {Date} [lastRetrieved]
|
|
18834
|
+
* @param {*} [options] Override http request option.
|
|
18835
|
+
* @throws {RequiredError}
|
|
18836
|
+
* @memberof HospitalsApi
|
|
18837
|
+
*/
|
|
18838
|
+
HospitalsApi.prototype.apiV1HospitalsSimpleGet = function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18839
|
+
var _this = this;
|
|
18840
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18841
|
+
};
|
|
18648
18842
|
/**
|
|
18649
18843
|
*
|
|
18650
18844
|
* @summary Get Hospital by slug.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -8977,6 +8977,25 @@ export interface HospitalServicesModel {
|
|
|
8977
8977
|
*/
|
|
8978
8978
|
'metaData'?: PagedListMetaData;
|
|
8979
8979
|
}
|
|
8980
|
+
/**
|
|
8981
|
+
*
|
|
8982
|
+
* @export
|
|
8983
|
+
* @interface HospitalSimpleItemModel
|
|
8984
|
+
*/
|
|
8985
|
+
export interface HospitalSimpleItemModel {
|
|
8986
|
+
/**
|
|
8987
|
+
*
|
|
8988
|
+
* @type {string}
|
|
8989
|
+
* @memberof HospitalSimpleItemModel
|
|
8990
|
+
*/
|
|
8991
|
+
'id'?: string;
|
|
8992
|
+
/**
|
|
8993
|
+
*
|
|
8994
|
+
* @type {string}
|
|
8995
|
+
* @memberof HospitalSimpleItemModel
|
|
8996
|
+
*/
|
|
8997
|
+
'name'?: string | null;
|
|
8998
|
+
}
|
|
8980
8999
|
/**
|
|
8981
9000
|
*
|
|
8982
9001
|
* @export
|
|
@@ -9180,6 +9199,25 @@ export interface HospitalsModel {
|
|
|
9180
9199
|
*/
|
|
9181
9200
|
'metaData'?: PagedListMetaData;
|
|
9182
9201
|
}
|
|
9202
|
+
/**
|
|
9203
|
+
*
|
|
9204
|
+
* @export
|
|
9205
|
+
* @interface HospitalsSimpleModel
|
|
9206
|
+
*/
|
|
9207
|
+
export interface HospitalsSimpleModel {
|
|
9208
|
+
/**
|
|
9209
|
+
*
|
|
9210
|
+
* @type {Array<HospitalSimpleItemModel>}
|
|
9211
|
+
* @memberof HospitalsSimpleModel
|
|
9212
|
+
*/
|
|
9213
|
+
'items'?: Array<HospitalSimpleItemModel> | null;
|
|
9214
|
+
/**
|
|
9215
|
+
*
|
|
9216
|
+
* @type {PagedListMetaData}
|
|
9217
|
+
* @memberof HospitalsSimpleModel
|
|
9218
|
+
*/
|
|
9219
|
+
'metaData'?: PagedListMetaData;
|
|
9220
|
+
}
|
|
9183
9221
|
/**
|
|
9184
9222
|
*
|
|
9185
9223
|
* @export
|
|
@@ -28819,6 +28857,124 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
28819
28857
|
options: localVarRequestOptions,
|
|
28820
28858
|
};
|
|
28821
28859
|
},
|
|
28860
|
+
/**
|
|
28861
|
+
*
|
|
28862
|
+
* @summary Get all Hospitals.
|
|
28863
|
+
* @param {string} [hospitalId]
|
|
28864
|
+
* @param {string} [name]
|
|
28865
|
+
* @param {string} [description]
|
|
28866
|
+
* @param {string} [countryId]
|
|
28867
|
+
* @param {Date} [created]
|
|
28868
|
+
* @param {MarketingType} [marketingType]
|
|
28869
|
+
* @param {string} [specialtyTypeId]
|
|
28870
|
+
* @param {string} [specialtyId]
|
|
28871
|
+
* @param {string} [serviceId]
|
|
28872
|
+
* @param {string} [exceptHospitalId]
|
|
28873
|
+
* @param {boolean} [showHidden]
|
|
28874
|
+
* @param {string} [languageCode]
|
|
28875
|
+
* @param {Array<string>} [ids]
|
|
28876
|
+
* @param {number} [page]
|
|
28877
|
+
* @param {number} [limit]
|
|
28878
|
+
* @param {Date} [lastRetrieved]
|
|
28879
|
+
* @param {*} [options] Override http request option.
|
|
28880
|
+
* @throws {RequiredError}
|
|
28881
|
+
*/
|
|
28882
|
+
apiV1HospitalsSimpleGet: async (hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28883
|
+
const localVarPath = `/api/v1/hospitals/simple`;
|
|
28884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28885
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28886
|
+
let baseOptions;
|
|
28887
|
+
if (configuration) {
|
|
28888
|
+
baseOptions = configuration.baseOptions;
|
|
28889
|
+
}
|
|
28890
|
+
|
|
28891
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28892
|
+
const localVarHeaderParameter = {} as any;
|
|
28893
|
+
const localVarQueryParameter = {} as any;
|
|
28894
|
+
|
|
28895
|
+
// authentication oauth2 required
|
|
28896
|
+
// oauth required
|
|
28897
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28898
|
+
|
|
28899
|
+
if (hospitalId !== undefined) {
|
|
28900
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
28901
|
+
}
|
|
28902
|
+
|
|
28903
|
+
if (name !== undefined) {
|
|
28904
|
+
localVarQueryParameter['Name'] = name;
|
|
28905
|
+
}
|
|
28906
|
+
|
|
28907
|
+
if (description !== undefined) {
|
|
28908
|
+
localVarQueryParameter['Description'] = description;
|
|
28909
|
+
}
|
|
28910
|
+
|
|
28911
|
+
if (countryId !== undefined) {
|
|
28912
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
28913
|
+
}
|
|
28914
|
+
|
|
28915
|
+
if (created !== undefined) {
|
|
28916
|
+
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
28917
|
+
(created as any).toISOString() :
|
|
28918
|
+
created;
|
|
28919
|
+
}
|
|
28920
|
+
|
|
28921
|
+
if (marketingType !== undefined) {
|
|
28922
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
28923
|
+
}
|
|
28924
|
+
|
|
28925
|
+
if (specialtyTypeId !== undefined) {
|
|
28926
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
28927
|
+
}
|
|
28928
|
+
|
|
28929
|
+
if (specialtyId !== undefined) {
|
|
28930
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
28931
|
+
}
|
|
28932
|
+
|
|
28933
|
+
if (serviceId !== undefined) {
|
|
28934
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
28935
|
+
}
|
|
28936
|
+
|
|
28937
|
+
if (exceptHospitalId !== undefined) {
|
|
28938
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
28939
|
+
}
|
|
28940
|
+
|
|
28941
|
+
if (showHidden !== undefined) {
|
|
28942
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
28943
|
+
}
|
|
28944
|
+
|
|
28945
|
+
if (languageCode !== undefined) {
|
|
28946
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
28947
|
+
}
|
|
28948
|
+
|
|
28949
|
+
if (ids) {
|
|
28950
|
+
localVarQueryParameter['Ids'] = ids;
|
|
28951
|
+
}
|
|
28952
|
+
|
|
28953
|
+
if (page !== undefined) {
|
|
28954
|
+
localVarQueryParameter['page'] = page;
|
|
28955
|
+
}
|
|
28956
|
+
|
|
28957
|
+
if (limit !== undefined) {
|
|
28958
|
+
localVarQueryParameter['limit'] = limit;
|
|
28959
|
+
}
|
|
28960
|
+
|
|
28961
|
+
if (lastRetrieved !== undefined) {
|
|
28962
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
28963
|
+
(lastRetrieved as any).toISOString() :
|
|
28964
|
+
lastRetrieved;
|
|
28965
|
+
}
|
|
28966
|
+
|
|
28967
|
+
|
|
28968
|
+
|
|
28969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28971
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28972
|
+
|
|
28973
|
+
return {
|
|
28974
|
+
url: toPathString(localVarUrlObj),
|
|
28975
|
+
options: localVarRequestOptions,
|
|
28976
|
+
};
|
|
28977
|
+
},
|
|
28822
28978
|
/**
|
|
28823
28979
|
*
|
|
28824
28980
|
* @summary Get Hospital by slug.
|
|
@@ -29481,6 +29637,32 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
29481
29637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsPost(createHospitalCommand, options);
|
|
29482
29638
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29483
29639
|
},
|
|
29640
|
+
/**
|
|
29641
|
+
*
|
|
29642
|
+
* @summary Get all Hospitals.
|
|
29643
|
+
* @param {string} [hospitalId]
|
|
29644
|
+
* @param {string} [name]
|
|
29645
|
+
* @param {string} [description]
|
|
29646
|
+
* @param {string} [countryId]
|
|
29647
|
+
* @param {Date} [created]
|
|
29648
|
+
* @param {MarketingType} [marketingType]
|
|
29649
|
+
* @param {string} [specialtyTypeId]
|
|
29650
|
+
* @param {string} [specialtyId]
|
|
29651
|
+
* @param {string} [serviceId]
|
|
29652
|
+
* @param {string} [exceptHospitalId]
|
|
29653
|
+
* @param {boolean} [showHidden]
|
|
29654
|
+
* @param {string} [languageCode]
|
|
29655
|
+
* @param {Array<string>} [ids]
|
|
29656
|
+
* @param {number} [page]
|
|
29657
|
+
* @param {number} [limit]
|
|
29658
|
+
* @param {Date} [lastRetrieved]
|
|
29659
|
+
* @param {*} [options] Override http request option.
|
|
29660
|
+
* @throws {RequiredError}
|
|
29661
|
+
*/
|
|
29662
|
+
async apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalsSimpleModel>> {
|
|
29663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options);
|
|
29664
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29665
|
+
},
|
|
29484
29666
|
/**
|
|
29485
29667
|
*
|
|
29486
29668
|
* @summary Get Hospital by slug.
|
|
@@ -30069,6 +30251,31 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
30069
30251
|
apiV1HospitalsPost(createHospitalCommand?: CreateHospitalCommand, options?: any): AxiosPromise<HospitalModel> {
|
|
30070
30252
|
return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then((request) => request(axios, basePath));
|
|
30071
30253
|
},
|
|
30254
|
+
/**
|
|
30255
|
+
*
|
|
30256
|
+
* @summary Get all Hospitals.
|
|
30257
|
+
* @param {string} [hospitalId]
|
|
30258
|
+
* @param {string} [name]
|
|
30259
|
+
* @param {string} [description]
|
|
30260
|
+
* @param {string} [countryId]
|
|
30261
|
+
* @param {Date} [created]
|
|
30262
|
+
* @param {MarketingType} [marketingType]
|
|
30263
|
+
* @param {string} [specialtyTypeId]
|
|
30264
|
+
* @param {string} [specialtyId]
|
|
30265
|
+
* @param {string} [serviceId]
|
|
30266
|
+
* @param {string} [exceptHospitalId]
|
|
30267
|
+
* @param {boolean} [showHidden]
|
|
30268
|
+
* @param {string} [languageCode]
|
|
30269
|
+
* @param {Array<string>} [ids]
|
|
30270
|
+
* @param {number} [page]
|
|
30271
|
+
* @param {number} [limit]
|
|
30272
|
+
* @param {Date} [lastRetrieved]
|
|
30273
|
+
* @param {*} [options] Override http request option.
|
|
30274
|
+
* @throws {RequiredError}
|
|
30275
|
+
*/
|
|
30276
|
+
apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalsSimpleModel> {
|
|
30277
|
+
return localVarFp.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
30278
|
+
},
|
|
30072
30279
|
/**
|
|
30073
30280
|
*
|
|
30074
30281
|
* @summary Get Hospital by slug.
|
|
@@ -30742,6 +30949,33 @@ export class HospitalsApi extends BaseAPI {
|
|
|
30742
30949
|
return HospitalsApiFp(this.configuration).apiV1HospitalsPost(createHospitalCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30743
30950
|
}
|
|
30744
30951
|
|
|
30952
|
+
/**
|
|
30953
|
+
*
|
|
30954
|
+
* @summary Get all Hospitals.
|
|
30955
|
+
* @param {string} [hospitalId]
|
|
30956
|
+
* @param {string} [name]
|
|
30957
|
+
* @param {string} [description]
|
|
30958
|
+
* @param {string} [countryId]
|
|
30959
|
+
* @param {Date} [created]
|
|
30960
|
+
* @param {MarketingType} [marketingType]
|
|
30961
|
+
* @param {string} [specialtyTypeId]
|
|
30962
|
+
* @param {string} [specialtyId]
|
|
30963
|
+
* @param {string} [serviceId]
|
|
30964
|
+
* @param {string} [exceptHospitalId]
|
|
30965
|
+
* @param {boolean} [showHidden]
|
|
30966
|
+
* @param {string} [languageCode]
|
|
30967
|
+
* @param {Array<string>} [ids]
|
|
30968
|
+
* @param {number} [page]
|
|
30969
|
+
* @param {number} [limit]
|
|
30970
|
+
* @param {Date} [lastRetrieved]
|
|
30971
|
+
* @param {*} [options] Override http request option.
|
|
30972
|
+
* @throws {RequiredError}
|
|
30973
|
+
* @memberof HospitalsApi
|
|
30974
|
+
*/
|
|
30975
|
+
public apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
30976
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
30977
|
+
}
|
|
30978
|
+
|
|
30745
30979
|
/**
|
|
30746
30980
|
*
|
|
30747
30981
|
* @summary Get Hospital by slug.
|