ch-api-client-typescript2 4.6.1 → 4.6.5
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 +67 -77
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +108 -145
- package/package.json +1 -1
- package/src/api.ts +119 -137
package/lib/api.js
CHANGED
|
@@ -79,9 +79,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
81
|
exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.DayOfWeek = exports.ContributionType = exports.ConsultationType = exports.ConsultationTimetableStatus = exports.ConsultationStatus = exports.BookingStatus = void 0;
|
|
82
|
-
exports.
|
|
83
|
-
exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp =
|
|
84
|
-
exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi =
|
|
82
|
+
exports.HospitalsConsultationTimetablesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.ExternalApi = exports.ExternalApiFactory = exports.ExternalApiFp = exports.ExternalApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = void 0;
|
|
83
|
+
exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp = void 0;
|
|
84
|
+
exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = void 0;
|
|
85
85
|
var axios_1 = __importDefault(require("axios"));
|
|
86
86
|
// Some imports not used depending on template conditions
|
|
87
87
|
// @ts-ignore
|
|
@@ -11151,148 +11151,6 @@ var HeaderNavigationsApi = /** @class */ (function (_super) {
|
|
|
11151
11151
|
return HeaderNavigationsApi;
|
|
11152
11152
|
}(base_1.BaseAPI));
|
|
11153
11153
|
exports.HeaderNavigationsApi = HeaderNavigationsApi;
|
|
11154
|
-
/**
|
|
11155
|
-
* HospitalLanguagesApi - axios parameter creator
|
|
11156
|
-
* @export
|
|
11157
|
-
*/
|
|
11158
|
-
var HospitalLanguagesApiAxiosParamCreator = function (configuration) {
|
|
11159
|
-
var _this = this;
|
|
11160
|
-
return {
|
|
11161
|
-
/**
|
|
11162
|
-
*
|
|
11163
|
-
* @summary Get hospitalLanguages
|
|
11164
|
-
* @param {string} hospitalId
|
|
11165
|
-
* @param {number} [page]
|
|
11166
|
-
* @param {number} [limit]
|
|
11167
|
-
* @param {Date} [lastRetrieved]
|
|
11168
|
-
* @param {*} [options] Override http request option.
|
|
11169
|
-
* @throws {RequiredError}
|
|
11170
|
-
*/
|
|
11171
|
-
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
11172
|
-
if (options === void 0) { options = {}; }
|
|
11173
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
11174
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11175
|
-
return __generator(this, function (_a) {
|
|
11176
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
11177
|
-
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
|
|
11178
|
-
localVarPath = "/api/v2/hospitals/{hospitalId}/languages"
|
|
11179
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
11180
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11181
|
-
if (configuration) {
|
|
11182
|
-
baseOptions = configuration.baseOptions;
|
|
11183
|
-
}
|
|
11184
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11185
|
-
localVarHeaderParameter = {};
|
|
11186
|
-
localVarQueryParameter = {};
|
|
11187
|
-
if (page !== undefined) {
|
|
11188
|
-
localVarQueryParameter['page'] = page;
|
|
11189
|
-
}
|
|
11190
|
-
if (limit !== undefined) {
|
|
11191
|
-
localVarQueryParameter['limit'] = limit;
|
|
11192
|
-
}
|
|
11193
|
-
if (lastRetrieved !== undefined) {
|
|
11194
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
11195
|
-
lastRetrieved.toISOString() :
|
|
11196
|
-
lastRetrieved;
|
|
11197
|
-
}
|
|
11198
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11199
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11200
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11201
|
-
return [2 /*return*/, {
|
|
11202
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11203
|
-
options: localVarRequestOptions,
|
|
11204
|
-
}];
|
|
11205
|
-
});
|
|
11206
|
-
});
|
|
11207
|
-
},
|
|
11208
|
-
};
|
|
11209
|
-
};
|
|
11210
|
-
exports.HospitalLanguagesApiAxiosParamCreator = HospitalLanguagesApiAxiosParamCreator;
|
|
11211
|
-
/**
|
|
11212
|
-
* HospitalLanguagesApi - functional programming interface
|
|
11213
|
-
* @export
|
|
11214
|
-
*/
|
|
11215
|
-
var HospitalLanguagesApiFp = function (configuration) {
|
|
11216
|
-
var localVarAxiosParamCreator = (0, exports.HospitalLanguagesApiAxiosParamCreator)(configuration);
|
|
11217
|
-
return {
|
|
11218
|
-
/**
|
|
11219
|
-
*
|
|
11220
|
-
* @summary Get hospitalLanguages
|
|
11221
|
-
* @param {string} hospitalId
|
|
11222
|
-
* @param {number} [page]
|
|
11223
|
-
* @param {number} [limit]
|
|
11224
|
-
* @param {Date} [lastRetrieved]
|
|
11225
|
-
* @param {*} [options] Override http request option.
|
|
11226
|
-
* @throws {RequiredError}
|
|
11227
|
-
*/
|
|
11228
|
-
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
11229
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11230
|
-
var localVarAxiosArgs;
|
|
11231
|
-
return __generator(this, function (_a) {
|
|
11232
|
-
switch (_a.label) {
|
|
11233
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options)];
|
|
11234
|
-
case 1:
|
|
11235
|
-
localVarAxiosArgs = _a.sent();
|
|
11236
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11237
|
-
}
|
|
11238
|
-
});
|
|
11239
|
-
});
|
|
11240
|
-
},
|
|
11241
|
-
};
|
|
11242
|
-
};
|
|
11243
|
-
exports.HospitalLanguagesApiFp = HospitalLanguagesApiFp;
|
|
11244
|
-
/**
|
|
11245
|
-
* HospitalLanguagesApi - factory interface
|
|
11246
|
-
* @export
|
|
11247
|
-
*/
|
|
11248
|
-
var HospitalLanguagesApiFactory = function (configuration, basePath, axios) {
|
|
11249
|
-
var localVarFp = (0, exports.HospitalLanguagesApiFp)(configuration);
|
|
11250
|
-
return {
|
|
11251
|
-
/**
|
|
11252
|
-
*
|
|
11253
|
-
* @summary Get hospitalLanguages
|
|
11254
|
-
* @param {string} hospitalId
|
|
11255
|
-
* @param {number} [page]
|
|
11256
|
-
* @param {number} [limit]
|
|
11257
|
-
* @param {Date} [lastRetrieved]
|
|
11258
|
-
* @param {*} [options] Override http request option.
|
|
11259
|
-
* @throws {RequiredError}
|
|
11260
|
-
*/
|
|
11261
|
-
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
11262
|
-
return localVarFp.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
11263
|
-
},
|
|
11264
|
-
};
|
|
11265
|
-
};
|
|
11266
|
-
exports.HospitalLanguagesApiFactory = HospitalLanguagesApiFactory;
|
|
11267
|
-
/**
|
|
11268
|
-
* HospitalLanguagesApi - object-oriented interface
|
|
11269
|
-
* @export
|
|
11270
|
-
* @class HospitalLanguagesApi
|
|
11271
|
-
* @extends {BaseAPI}
|
|
11272
|
-
*/
|
|
11273
|
-
var HospitalLanguagesApi = /** @class */ (function (_super) {
|
|
11274
|
-
__extends(HospitalLanguagesApi, _super);
|
|
11275
|
-
function HospitalLanguagesApi() {
|
|
11276
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11277
|
-
}
|
|
11278
|
-
/**
|
|
11279
|
-
*
|
|
11280
|
-
* @summary Get hospitalLanguages
|
|
11281
|
-
* @param {string} hospitalId
|
|
11282
|
-
* @param {number} [page]
|
|
11283
|
-
* @param {number} [limit]
|
|
11284
|
-
* @param {Date} [lastRetrieved]
|
|
11285
|
-
* @param {*} [options] Override http request option.
|
|
11286
|
-
* @throws {RequiredError}
|
|
11287
|
-
* @memberof HospitalLanguagesApi
|
|
11288
|
-
*/
|
|
11289
|
-
HospitalLanguagesApi.prototype.apiV2HospitalsHospitalIdLanguagesGet = function (hospitalId, page, limit, lastRetrieved, options) {
|
|
11290
|
-
var _this = this;
|
|
11291
|
-
return (0, exports.HospitalLanguagesApiFp)(this.configuration).apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11292
|
-
};
|
|
11293
|
-
return HospitalLanguagesApi;
|
|
11294
|
-
}(base_1.BaseAPI));
|
|
11295
|
-
exports.HospitalLanguagesApi = HospitalLanguagesApi;
|
|
11296
11154
|
/**
|
|
11297
11155
|
* HospitalsApi - axios parameter creator
|
|
11298
11156
|
* @export
|
|
@@ -12077,6 +11935,57 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
12077
11935
|
});
|
|
12078
11936
|
});
|
|
12079
11937
|
},
|
|
11938
|
+
/**
|
|
11939
|
+
*
|
|
11940
|
+
* @summary Get hospitalLanguages
|
|
11941
|
+
* @param {string} hospitalId
|
|
11942
|
+
* @param {boolean} [showHidden]
|
|
11943
|
+
* @param {number} [page]
|
|
11944
|
+
* @param {number} [limit]
|
|
11945
|
+
* @param {Date} [lastRetrieved]
|
|
11946
|
+
* @param {*} [options] Override http request option.
|
|
11947
|
+
* @throws {RequiredError}
|
|
11948
|
+
*/
|
|
11949
|
+
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
11950
|
+
if (options === void 0) { options = {}; }
|
|
11951
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11952
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11953
|
+
return __generator(this, function (_a) {
|
|
11954
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
11955
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
|
|
11956
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/languages"
|
|
11957
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
11958
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11959
|
+
if (configuration) {
|
|
11960
|
+
baseOptions = configuration.baseOptions;
|
|
11961
|
+
}
|
|
11962
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11963
|
+
localVarHeaderParameter = {};
|
|
11964
|
+
localVarQueryParameter = {};
|
|
11965
|
+
if (showHidden !== undefined) {
|
|
11966
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
11967
|
+
}
|
|
11968
|
+
if (page !== undefined) {
|
|
11969
|
+
localVarQueryParameter['page'] = page;
|
|
11970
|
+
}
|
|
11971
|
+
if (limit !== undefined) {
|
|
11972
|
+
localVarQueryParameter['limit'] = limit;
|
|
11973
|
+
}
|
|
11974
|
+
if (lastRetrieved !== undefined) {
|
|
11975
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
11976
|
+
lastRetrieved.toISOString() :
|
|
11977
|
+
lastRetrieved;
|
|
11978
|
+
}
|
|
11979
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11980
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11981
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11982
|
+
return [2 /*return*/, {
|
|
11983
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11984
|
+
options: localVarRequestOptions,
|
|
11985
|
+
}];
|
|
11986
|
+
});
|
|
11987
|
+
});
|
|
11988
|
+
},
|
|
12080
11989
|
/**
|
|
12081
11990
|
*
|
|
12082
11991
|
* @summary Get all HospitalMedias.
|
|
@@ -13389,6 +13298,30 @@ var HospitalsApiFp = function (configuration) {
|
|
|
13389
13298
|
});
|
|
13390
13299
|
});
|
|
13391
13300
|
},
|
|
13301
|
+
/**
|
|
13302
|
+
*
|
|
13303
|
+
* @summary Get hospitalLanguages
|
|
13304
|
+
* @param {string} hospitalId
|
|
13305
|
+
* @param {boolean} [showHidden]
|
|
13306
|
+
* @param {number} [page]
|
|
13307
|
+
* @param {number} [limit]
|
|
13308
|
+
* @param {Date} [lastRetrieved]
|
|
13309
|
+
* @param {*} [options] Override http request option.
|
|
13310
|
+
* @throws {RequiredError}
|
|
13311
|
+
*/
|
|
13312
|
+
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
13313
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13314
|
+
var localVarAxiosArgs;
|
|
13315
|
+
return __generator(this, function (_a) {
|
|
13316
|
+
switch (_a.label) {
|
|
13317
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options)];
|
|
13318
|
+
case 1:
|
|
13319
|
+
localVarAxiosArgs = _a.sent();
|
|
13320
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
13321
|
+
}
|
|
13322
|
+
});
|
|
13323
|
+
});
|
|
13324
|
+
},
|
|
13392
13325
|
/**
|
|
13393
13326
|
*
|
|
13394
13327
|
* @summary Get all HospitalMedias.
|
|
@@ -14028,6 +13961,20 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
14028
13961
|
apiV2HospitalsHospitalIdLandingsSlugGet: function (slug, hospitalId, languageCode, options) {
|
|
14029
13962
|
return localVarFp.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
14030
13963
|
},
|
|
13964
|
+
/**
|
|
13965
|
+
*
|
|
13966
|
+
* @summary Get hospitalLanguages
|
|
13967
|
+
* @param {string} hospitalId
|
|
13968
|
+
* @param {boolean} [showHidden]
|
|
13969
|
+
* @param {number} [page]
|
|
13970
|
+
* @param {number} [limit]
|
|
13971
|
+
* @param {Date} [lastRetrieved]
|
|
13972
|
+
* @param {*} [options] Override http request option.
|
|
13973
|
+
* @throws {RequiredError}
|
|
13974
|
+
*/
|
|
13975
|
+
apiV2HospitalsHospitalIdLanguagesGet: function (hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
13976
|
+
return localVarFp.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
13977
|
+
},
|
|
14031
13978
|
/**
|
|
14032
13979
|
*
|
|
14033
13980
|
* @summary Get all HospitalMedias.
|
|
@@ -14541,6 +14488,22 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
14541
14488
|
var _this = this;
|
|
14542
14489
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14543
14490
|
};
|
|
14491
|
+
/**
|
|
14492
|
+
*
|
|
14493
|
+
* @summary Get hospitalLanguages
|
|
14494
|
+
* @param {string} hospitalId
|
|
14495
|
+
* @param {boolean} [showHidden]
|
|
14496
|
+
* @param {number} [page]
|
|
14497
|
+
* @param {number} [limit]
|
|
14498
|
+
* @param {Date} [lastRetrieved]
|
|
14499
|
+
* @param {*} [options] Override http request option.
|
|
14500
|
+
* @throws {RequiredError}
|
|
14501
|
+
* @memberof HospitalsApi
|
|
14502
|
+
*/
|
|
14503
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdLanguagesGet = function (hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
14504
|
+
var _this = this;
|
|
14505
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14506
|
+
};
|
|
14544
14507
|
/**
|
|
14545
14508
|
*
|
|
14546
14509
|
* @summary Get all HospitalMedias.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -2776,6 +2776,12 @@ export interface CountryItemModel {
|
|
|
2776
2776
|
* @memberof CountryItemModel
|
|
2777
2777
|
*/
|
|
2778
2778
|
'logo'?: string | null;
|
|
2779
|
+
/**
|
|
2780
|
+
*
|
|
2781
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2782
|
+
* @memberof CountryItemModel
|
|
2783
|
+
*/
|
|
2784
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2779
2785
|
/**
|
|
2780
2786
|
*
|
|
2781
2787
|
* @type {AuditableEntity}
|
|
@@ -2825,6 +2831,12 @@ export interface CountryModel {
|
|
|
2825
2831
|
* @memberof CountryModel
|
|
2826
2832
|
*/
|
|
2827
2833
|
'logo'?: string | null;
|
|
2834
|
+
/**
|
|
2835
|
+
*
|
|
2836
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2837
|
+
* @memberof CountryModel
|
|
2838
|
+
*/
|
|
2839
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2828
2840
|
/**
|
|
2829
2841
|
*
|
|
2830
2842
|
* @type {AuditableEntity}
|
|
@@ -2849,12 +2861,6 @@ export interface CountryModel {
|
|
|
2849
2861
|
* @memberof CountryModel
|
|
2850
2862
|
*/
|
|
2851
2863
|
'content'?: string | null;
|
|
2852
|
-
/**
|
|
2853
|
-
*
|
|
2854
|
-
* @type {Array<LocalizedUrlModel>}
|
|
2855
|
-
* @memberof CountryModel
|
|
2856
|
-
*/
|
|
2857
|
-
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2858
2864
|
/**
|
|
2859
2865
|
*
|
|
2860
2866
|
* @type {string}
|
|
@@ -6247,6 +6253,12 @@ export interface HospitalLanguageItemModel {
|
|
|
6247
6253
|
* @memberof HospitalLanguageItemModel
|
|
6248
6254
|
*/
|
|
6249
6255
|
'order'?: number;
|
|
6256
|
+
/**
|
|
6257
|
+
*
|
|
6258
|
+
* @type {boolean}
|
|
6259
|
+
* @memberof HospitalLanguageItemModel
|
|
6260
|
+
*/
|
|
6261
|
+
'isPrimary'?: boolean;
|
|
6250
6262
|
}
|
|
6251
6263
|
/**
|
|
6252
6264
|
*
|
|
@@ -20845,137 +20857,6 @@ export class HeaderNavigationsApi extends BaseAPI {
|
|
|
20845
20857
|
}
|
|
20846
20858
|
|
|
20847
20859
|
|
|
20848
|
-
/**
|
|
20849
|
-
* HospitalLanguagesApi - axios parameter creator
|
|
20850
|
-
* @export
|
|
20851
|
-
*/
|
|
20852
|
-
export const HospitalLanguagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20853
|
-
return {
|
|
20854
|
-
/**
|
|
20855
|
-
*
|
|
20856
|
-
* @summary Get hospitalLanguages
|
|
20857
|
-
* @param {string} hospitalId
|
|
20858
|
-
* @param {number} [page]
|
|
20859
|
-
* @param {number} [limit]
|
|
20860
|
-
* @param {Date} [lastRetrieved]
|
|
20861
|
-
* @param {*} [options] Override http request option.
|
|
20862
|
-
* @throws {RequiredError}
|
|
20863
|
-
*/
|
|
20864
|
-
apiV2HospitalsHospitalIdLanguagesGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20865
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
20866
|
-
assertParamExists('apiV2HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId)
|
|
20867
|
-
const localVarPath = `/api/v2/hospitals/{hospitalId}/languages`
|
|
20868
|
-
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
20869
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20870
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20871
|
-
let baseOptions;
|
|
20872
|
-
if (configuration) {
|
|
20873
|
-
baseOptions = configuration.baseOptions;
|
|
20874
|
-
}
|
|
20875
|
-
|
|
20876
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20877
|
-
const localVarHeaderParameter = {} as any;
|
|
20878
|
-
const localVarQueryParameter = {} as any;
|
|
20879
|
-
|
|
20880
|
-
if (page !== undefined) {
|
|
20881
|
-
localVarQueryParameter['page'] = page;
|
|
20882
|
-
}
|
|
20883
|
-
|
|
20884
|
-
if (limit !== undefined) {
|
|
20885
|
-
localVarQueryParameter['limit'] = limit;
|
|
20886
|
-
}
|
|
20887
|
-
|
|
20888
|
-
if (lastRetrieved !== undefined) {
|
|
20889
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
20890
|
-
(lastRetrieved as any).toISOString() :
|
|
20891
|
-
lastRetrieved;
|
|
20892
|
-
}
|
|
20893
|
-
|
|
20894
|
-
|
|
20895
|
-
|
|
20896
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20897
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20898
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20899
|
-
|
|
20900
|
-
return {
|
|
20901
|
-
url: toPathString(localVarUrlObj),
|
|
20902
|
-
options: localVarRequestOptions,
|
|
20903
|
-
};
|
|
20904
|
-
},
|
|
20905
|
-
}
|
|
20906
|
-
};
|
|
20907
|
-
|
|
20908
|
-
/**
|
|
20909
|
-
* HospitalLanguagesApi - functional programming interface
|
|
20910
|
-
* @export
|
|
20911
|
-
*/
|
|
20912
|
-
export const HospitalLanguagesApiFp = function(configuration?: Configuration) {
|
|
20913
|
-
const localVarAxiosParamCreator = HospitalLanguagesApiAxiosParamCreator(configuration)
|
|
20914
|
-
return {
|
|
20915
|
-
/**
|
|
20916
|
-
*
|
|
20917
|
-
* @summary Get hospitalLanguages
|
|
20918
|
-
* @param {string} hospitalId
|
|
20919
|
-
* @param {number} [page]
|
|
20920
|
-
* @param {number} [limit]
|
|
20921
|
-
* @param {Date} [lastRetrieved]
|
|
20922
|
-
* @param {*} [options] Override http request option.
|
|
20923
|
-
* @throws {RequiredError}
|
|
20924
|
-
*/
|
|
20925
|
-
async apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
|
|
20926
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options);
|
|
20927
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20928
|
-
},
|
|
20929
|
-
}
|
|
20930
|
-
};
|
|
20931
|
-
|
|
20932
|
-
/**
|
|
20933
|
-
* HospitalLanguagesApi - factory interface
|
|
20934
|
-
* @export
|
|
20935
|
-
*/
|
|
20936
|
-
export const HospitalLanguagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20937
|
-
const localVarFp = HospitalLanguagesApiFp(configuration)
|
|
20938
|
-
return {
|
|
20939
|
-
/**
|
|
20940
|
-
*
|
|
20941
|
-
* @summary Get hospitalLanguages
|
|
20942
|
-
* @param {string} hospitalId
|
|
20943
|
-
* @param {number} [page]
|
|
20944
|
-
* @param {number} [limit]
|
|
20945
|
-
* @param {Date} [lastRetrieved]
|
|
20946
|
-
* @param {*} [options] Override http request option.
|
|
20947
|
-
* @throws {RequiredError}
|
|
20948
|
-
*/
|
|
20949
|
-
apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalLanguagesModel> {
|
|
20950
|
-
return localVarFp.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
20951
|
-
},
|
|
20952
|
-
};
|
|
20953
|
-
};
|
|
20954
|
-
|
|
20955
|
-
/**
|
|
20956
|
-
* HospitalLanguagesApi - object-oriented interface
|
|
20957
|
-
* @export
|
|
20958
|
-
* @class HospitalLanguagesApi
|
|
20959
|
-
* @extends {BaseAPI}
|
|
20960
|
-
*/
|
|
20961
|
-
export class HospitalLanguagesApi extends BaseAPI {
|
|
20962
|
-
/**
|
|
20963
|
-
*
|
|
20964
|
-
* @summary Get hospitalLanguages
|
|
20965
|
-
* @param {string} hospitalId
|
|
20966
|
-
* @param {number} [page]
|
|
20967
|
-
* @param {number} [limit]
|
|
20968
|
-
* @param {Date} [lastRetrieved]
|
|
20969
|
-
* @param {*} [options] Override http request option.
|
|
20970
|
-
* @throws {RequiredError}
|
|
20971
|
-
* @memberof HospitalLanguagesApi
|
|
20972
|
-
*/
|
|
20973
|
-
public apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20974
|
-
return HospitalLanguagesApiFp(this.configuration).apiV2HospitalsHospitalIdLanguagesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
20975
|
-
}
|
|
20976
|
-
}
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
20860
|
/**
|
|
20980
20861
|
* HospitalsApi - axios parameter creator
|
|
20981
20862
|
* @export
|
|
@@ -21824,6 +21705,62 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
21824
21705
|
|
|
21825
21706
|
|
|
21826
21707
|
|
|
21708
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21709
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21710
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21711
|
+
|
|
21712
|
+
return {
|
|
21713
|
+
url: toPathString(localVarUrlObj),
|
|
21714
|
+
options: localVarRequestOptions,
|
|
21715
|
+
};
|
|
21716
|
+
},
|
|
21717
|
+
/**
|
|
21718
|
+
*
|
|
21719
|
+
* @summary Get hospitalLanguages
|
|
21720
|
+
* @param {string} hospitalId
|
|
21721
|
+
* @param {boolean} [showHidden]
|
|
21722
|
+
* @param {number} [page]
|
|
21723
|
+
* @param {number} [limit]
|
|
21724
|
+
* @param {Date} [lastRetrieved]
|
|
21725
|
+
* @param {*} [options] Override http request option.
|
|
21726
|
+
* @throws {RequiredError}
|
|
21727
|
+
*/
|
|
21728
|
+
apiV2HospitalsHospitalIdLanguagesGet: async (hospitalId: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21729
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21730
|
+
assertParamExists('apiV2HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId)
|
|
21731
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/languages`
|
|
21732
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
21733
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21734
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21735
|
+
let baseOptions;
|
|
21736
|
+
if (configuration) {
|
|
21737
|
+
baseOptions = configuration.baseOptions;
|
|
21738
|
+
}
|
|
21739
|
+
|
|
21740
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21741
|
+
const localVarHeaderParameter = {} as any;
|
|
21742
|
+
const localVarQueryParameter = {} as any;
|
|
21743
|
+
|
|
21744
|
+
if (showHidden !== undefined) {
|
|
21745
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
21746
|
+
}
|
|
21747
|
+
|
|
21748
|
+
if (page !== undefined) {
|
|
21749
|
+
localVarQueryParameter['page'] = page;
|
|
21750
|
+
}
|
|
21751
|
+
|
|
21752
|
+
if (limit !== undefined) {
|
|
21753
|
+
localVarQueryParameter['limit'] = limit;
|
|
21754
|
+
}
|
|
21755
|
+
|
|
21756
|
+
if (lastRetrieved !== undefined) {
|
|
21757
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
21758
|
+
(lastRetrieved as any).toISOString() :
|
|
21759
|
+
lastRetrieved;
|
|
21760
|
+
}
|
|
21761
|
+
|
|
21762
|
+
|
|
21763
|
+
|
|
21827
21764
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21828
21765
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21829
21766
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -23109,6 +23046,21 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
23109
23046
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options);
|
|
23110
23047
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
23111
23048
|
},
|
|
23049
|
+
/**
|
|
23050
|
+
*
|
|
23051
|
+
* @summary Get hospitalLanguages
|
|
23052
|
+
* @param {string} hospitalId
|
|
23053
|
+
* @param {boolean} [showHidden]
|
|
23054
|
+
* @param {number} [page]
|
|
23055
|
+
* @param {number} [limit]
|
|
23056
|
+
* @param {Date} [lastRetrieved]
|
|
23057
|
+
* @param {*} [options] Override http request option.
|
|
23058
|
+
* @throws {RequiredError}
|
|
23059
|
+
*/
|
|
23060
|
+
async apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
|
|
23061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options);
|
|
23062
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
23063
|
+
},
|
|
23112
23064
|
/**
|
|
23113
23065
|
*
|
|
23114
23066
|
* @summary Get all HospitalMedias.
|
|
@@ -23604,6 +23556,20 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
23604
23556
|
apiV2HospitalsHospitalIdLandingsSlugGet(slug: string, hospitalId: string, languageCode?: string, options?: any): AxiosPromise<LandingModel> {
|
|
23605
23557
|
return localVarFp.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then((request) => request(axios, basePath));
|
|
23606
23558
|
},
|
|
23559
|
+
/**
|
|
23560
|
+
*
|
|
23561
|
+
* @summary Get hospitalLanguages
|
|
23562
|
+
* @param {string} hospitalId
|
|
23563
|
+
* @param {boolean} [showHidden]
|
|
23564
|
+
* @param {number} [page]
|
|
23565
|
+
* @param {number} [limit]
|
|
23566
|
+
* @param {Date} [lastRetrieved]
|
|
23567
|
+
* @param {*} [options] Override http request option.
|
|
23568
|
+
* @throws {RequiredError}
|
|
23569
|
+
*/
|
|
23570
|
+
apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalLanguagesModel> {
|
|
23571
|
+
return localVarFp.apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
23572
|
+
},
|
|
23607
23573
|
/**
|
|
23608
23574
|
*
|
|
23609
23575
|
* @summary Get all HospitalMedias.
|
|
@@ -24113,6 +24079,22 @@ export class HospitalsApi extends BaseAPI {
|
|
|
24113
24079
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
24114
24080
|
}
|
|
24115
24081
|
|
|
24082
|
+
/**
|
|
24083
|
+
*
|
|
24084
|
+
* @summary Get hospitalLanguages
|
|
24085
|
+
* @param {string} hospitalId
|
|
24086
|
+
* @param {boolean} [showHidden]
|
|
24087
|
+
* @param {number} [page]
|
|
24088
|
+
* @param {number} [limit]
|
|
24089
|
+
* @param {Date} [lastRetrieved]
|
|
24090
|
+
* @param {*} [options] Override http request option.
|
|
24091
|
+
* @throws {RequiredError}
|
|
24092
|
+
* @memberof HospitalsApi
|
|
24093
|
+
*/
|
|
24094
|
+
public apiV2HospitalsHospitalIdLanguagesGet(hospitalId: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
24095
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdLanguagesGet(hospitalId, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
24096
|
+
}
|
|
24097
|
+
|
|
24116
24098
|
/**
|
|
24117
24099
|
*
|
|
24118
24100
|
* @summary Get all HospitalMedias.
|