ch-admin-api-client-typescript 2.9.3 → 2.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +708 -8
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +702 -8
- package/package.json +1 -1
- package/src/api.ts +1118 -92
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = 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.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = 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.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = 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.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = 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.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = 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.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -312,6 +312,693 @@ var UserLocationType;
|
|
|
312
312
|
UserLocationType["LivesIn"] = "LivesIn";
|
|
313
313
|
UserLocationType["BirthPlace"] = "BirthPlace";
|
|
314
314
|
})(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
|
|
315
|
+
/**
|
|
316
|
+
* AboutUsApi - axios parameter creator
|
|
317
|
+
* @export
|
|
318
|
+
*/
|
|
319
|
+
exports.AboutUsApiAxiosParamCreator = function (configuration) {
|
|
320
|
+
var _this = this;
|
|
321
|
+
return {
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @summary Delete AboutUs.
|
|
325
|
+
* @param {string} aboutUsId
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
apiV1AboutusAboutUsIdDelete: function (aboutUsId, options) {
|
|
330
|
+
if (options === void 0) { options = {}; }
|
|
331
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
332
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
|
+
return __generator(this, function (_a) {
|
|
334
|
+
switch (_a.label) {
|
|
335
|
+
case 0:
|
|
336
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
337
|
+
common_1.assertParamExists('apiV1AboutusAboutUsIdDelete', 'aboutUsId', aboutUsId);
|
|
338
|
+
localVarPath = "/api/v1/aboutus/{aboutUsId}"
|
|
339
|
+
.replace("{" + "aboutUsId" + "}", encodeURIComponent(String(aboutUsId)));
|
|
340
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
}
|
|
344
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
345
|
+
localVarHeaderParameter = {};
|
|
346
|
+
localVarQueryParameter = {};
|
|
347
|
+
// authentication oauth2 required
|
|
348
|
+
// oauth required
|
|
349
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
350
|
+
case 1:
|
|
351
|
+
// authentication oauth2 required
|
|
352
|
+
// oauth required
|
|
353
|
+
_a.sent();
|
|
354
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return [2 /*return*/, {
|
|
358
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
}];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @summary Get AboutUs.
|
|
368
|
+
* @param {string} aboutUsId
|
|
369
|
+
* @param {string} [languageCode]
|
|
370
|
+
* @param {boolean} [returnDefaultValue]
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
apiV1AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
375
|
+
if (options === void 0) { options = {}; }
|
|
376
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
378
|
+
return __generator(this, function (_a) {
|
|
379
|
+
switch (_a.label) {
|
|
380
|
+
case 0:
|
|
381
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
382
|
+
common_1.assertParamExists('apiV1AboutusAboutUsIdGet', 'aboutUsId', aboutUsId);
|
|
383
|
+
localVarPath = "/api/v1/aboutus/{aboutUsId}"
|
|
384
|
+
.replace("{" + "aboutUsId" + "}", encodeURIComponent(String(aboutUsId)));
|
|
385
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
390
|
+
localVarHeaderParameter = {};
|
|
391
|
+
localVarQueryParameter = {};
|
|
392
|
+
// authentication oauth2 required
|
|
393
|
+
// oauth required
|
|
394
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
395
|
+
case 1:
|
|
396
|
+
// authentication oauth2 required
|
|
397
|
+
// oauth required
|
|
398
|
+
_a.sent();
|
|
399
|
+
if (languageCode !== undefined) {
|
|
400
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
401
|
+
}
|
|
402
|
+
if (returnDefaultValue !== undefined) {
|
|
403
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
404
|
+
}
|
|
405
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
return [2 /*return*/, {
|
|
409
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
410
|
+
options: localVarRequestOptions,
|
|
411
|
+
}];
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary Update AboutUs.
|
|
419
|
+
* @param {string} aboutUsId
|
|
420
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
apiV1AboutusAboutUsIdPut: function (aboutUsId, updateAboutUsPageCommand, options) {
|
|
425
|
+
if (options === void 0) { options = {}; }
|
|
426
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
427
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
428
|
+
return __generator(this, function (_a) {
|
|
429
|
+
switch (_a.label) {
|
|
430
|
+
case 0:
|
|
431
|
+
// verify required parameter 'aboutUsId' is not null or undefined
|
|
432
|
+
common_1.assertParamExists('apiV1AboutusAboutUsIdPut', 'aboutUsId', aboutUsId);
|
|
433
|
+
localVarPath = "/api/v1/aboutus/{aboutUsId}"
|
|
434
|
+
.replace("{" + "aboutUsId" + "}", encodeURIComponent(String(aboutUsId)));
|
|
435
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
|
+
if (configuration) {
|
|
437
|
+
baseOptions = configuration.baseOptions;
|
|
438
|
+
}
|
|
439
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
440
|
+
localVarHeaderParameter = {};
|
|
441
|
+
localVarQueryParameter = {};
|
|
442
|
+
// authentication oauth2 required
|
|
443
|
+
// oauth required
|
|
444
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
445
|
+
case 1:
|
|
446
|
+
// authentication oauth2 required
|
|
447
|
+
// oauth required
|
|
448
|
+
_a.sent();
|
|
449
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
450
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
451
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
452
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
453
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateAboutUsPageCommand, localVarRequestOptions, configuration);
|
|
454
|
+
return [2 /*return*/, {
|
|
455
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
456
|
+
options: localVarRequestOptions,
|
|
457
|
+
}];
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @summary Get all AboutUsList.
|
|
465
|
+
* @param {string} [hospitalId]
|
|
466
|
+
* @param {string} [hospitalName]
|
|
467
|
+
* @param {string} [hospitalSlug]
|
|
468
|
+
* @param {string} [overviewTitle]
|
|
469
|
+
* @param {string} [normalizedOverviewTitle]
|
|
470
|
+
* @param {string} [overview]
|
|
471
|
+
* @param {string} [content]
|
|
472
|
+
* @param {string} [customStyle]
|
|
473
|
+
* @param {string} [background]
|
|
474
|
+
* @param {string} [backgroundThumbnail]
|
|
475
|
+
* @param {string} [languageCode]
|
|
476
|
+
* @param {boolean} [returnDefaultValue]
|
|
477
|
+
* @param {boolean} [confirmed]
|
|
478
|
+
* @param {number} [page]
|
|
479
|
+
* @param {number} [limit]
|
|
480
|
+
* @param {Date} [lastRetrieved]
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
apiV1AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
485
|
+
if (options === void 0) { options = {}; }
|
|
486
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
487
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
488
|
+
return __generator(this, function (_a) {
|
|
489
|
+
switch (_a.label) {
|
|
490
|
+
case 0:
|
|
491
|
+
localVarPath = "/api/v1/aboutus";
|
|
492
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
493
|
+
if (configuration) {
|
|
494
|
+
baseOptions = configuration.baseOptions;
|
|
495
|
+
}
|
|
496
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
497
|
+
localVarHeaderParameter = {};
|
|
498
|
+
localVarQueryParameter = {};
|
|
499
|
+
// authentication oauth2 required
|
|
500
|
+
// oauth required
|
|
501
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
502
|
+
case 1:
|
|
503
|
+
// authentication oauth2 required
|
|
504
|
+
// oauth required
|
|
505
|
+
_a.sent();
|
|
506
|
+
if (hospitalId !== undefined) {
|
|
507
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
508
|
+
}
|
|
509
|
+
if (hospitalName !== undefined) {
|
|
510
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
511
|
+
}
|
|
512
|
+
if (hospitalSlug !== undefined) {
|
|
513
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
514
|
+
}
|
|
515
|
+
if (overviewTitle !== undefined) {
|
|
516
|
+
localVarQueryParameter['OverviewTitle'] = overviewTitle;
|
|
517
|
+
}
|
|
518
|
+
if (normalizedOverviewTitle !== undefined) {
|
|
519
|
+
localVarQueryParameter['NormalizedOverviewTitle'] = normalizedOverviewTitle;
|
|
520
|
+
}
|
|
521
|
+
if (overview !== undefined) {
|
|
522
|
+
localVarQueryParameter['Overview'] = overview;
|
|
523
|
+
}
|
|
524
|
+
if (content !== undefined) {
|
|
525
|
+
localVarQueryParameter['Content'] = content;
|
|
526
|
+
}
|
|
527
|
+
if (customStyle !== undefined) {
|
|
528
|
+
localVarQueryParameter['CustomStyle'] = customStyle;
|
|
529
|
+
}
|
|
530
|
+
if (background !== undefined) {
|
|
531
|
+
localVarQueryParameter['Background'] = background;
|
|
532
|
+
}
|
|
533
|
+
if (backgroundThumbnail !== undefined) {
|
|
534
|
+
localVarQueryParameter['BackgroundThumbnail'] = backgroundThumbnail;
|
|
535
|
+
}
|
|
536
|
+
if (languageCode !== undefined) {
|
|
537
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
538
|
+
}
|
|
539
|
+
if (returnDefaultValue !== undefined) {
|
|
540
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
541
|
+
}
|
|
542
|
+
if (confirmed !== undefined) {
|
|
543
|
+
localVarQueryParameter['Confirmed'] = confirmed;
|
|
544
|
+
}
|
|
545
|
+
if (page !== undefined) {
|
|
546
|
+
localVarQueryParameter['page'] = page;
|
|
547
|
+
}
|
|
548
|
+
if (limit !== undefined) {
|
|
549
|
+
localVarQueryParameter['limit'] = limit;
|
|
550
|
+
}
|
|
551
|
+
if (lastRetrieved !== undefined) {
|
|
552
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
553
|
+
lastRetrieved.toISOString() :
|
|
554
|
+
lastRetrieved;
|
|
555
|
+
}
|
|
556
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
559
|
+
return [2 /*return*/, {
|
|
560
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
561
|
+
options: localVarRequestOptions,
|
|
562
|
+
}];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @summary Create AboutUs.
|
|
570
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
apiV1AboutusPost: function (createAboutUsPageCommand, options) {
|
|
575
|
+
if (options === void 0) { options = {}; }
|
|
576
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
577
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
578
|
+
return __generator(this, function (_a) {
|
|
579
|
+
switch (_a.label) {
|
|
580
|
+
case 0:
|
|
581
|
+
localVarPath = "/api/v1/aboutus";
|
|
582
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
583
|
+
if (configuration) {
|
|
584
|
+
baseOptions = configuration.baseOptions;
|
|
585
|
+
}
|
|
586
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
587
|
+
localVarHeaderParameter = {};
|
|
588
|
+
localVarQueryParameter = {};
|
|
589
|
+
// authentication oauth2 required
|
|
590
|
+
// oauth required
|
|
591
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
592
|
+
case 1:
|
|
593
|
+
// authentication oauth2 required
|
|
594
|
+
// oauth required
|
|
595
|
+
_a.sent();
|
|
596
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
597
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
598
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
599
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
600
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createAboutUsPageCommand, localVarRequestOptions, configuration);
|
|
601
|
+
return [2 /*return*/, {
|
|
602
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
603
|
+
options: localVarRequestOptions,
|
|
604
|
+
}];
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @param {string} slug
|
|
612
|
+
* @param {string} [languageCode]
|
|
613
|
+
* @param {boolean} [returnDefaultValue]
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
apiV1AboutusSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
618
|
+
if (options === void 0) { options = {}; }
|
|
619
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
620
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
621
|
+
return __generator(this, function (_a) {
|
|
622
|
+
switch (_a.label) {
|
|
623
|
+
case 0:
|
|
624
|
+
// verify required parameter 'slug' is not null or undefined
|
|
625
|
+
common_1.assertParamExists('apiV1AboutusSlugGet', 'slug', slug);
|
|
626
|
+
localVarPath = "/api/v1/aboutus/{slug}"
|
|
627
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
628
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
629
|
+
if (configuration) {
|
|
630
|
+
baseOptions = configuration.baseOptions;
|
|
631
|
+
}
|
|
632
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
633
|
+
localVarHeaderParameter = {};
|
|
634
|
+
localVarQueryParameter = {};
|
|
635
|
+
// authentication oauth2 required
|
|
636
|
+
// oauth required
|
|
637
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
638
|
+
case 1:
|
|
639
|
+
// authentication oauth2 required
|
|
640
|
+
// oauth required
|
|
641
|
+
_a.sent();
|
|
642
|
+
if (languageCode !== undefined) {
|
|
643
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
644
|
+
}
|
|
645
|
+
if (returnDefaultValue !== undefined) {
|
|
646
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
647
|
+
}
|
|
648
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
649
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
650
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
651
|
+
return [2 /*return*/, {
|
|
652
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
653
|
+
options: localVarRequestOptions,
|
|
654
|
+
}];
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
},
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* AboutUsApi - functional programming interface
|
|
663
|
+
* @export
|
|
664
|
+
*/
|
|
665
|
+
exports.AboutUsApiFp = function (configuration) {
|
|
666
|
+
var localVarAxiosParamCreator = exports.AboutUsApiAxiosParamCreator(configuration);
|
|
667
|
+
return {
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @summary Delete AboutUs.
|
|
671
|
+
* @param {string} aboutUsId
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
apiV1AboutusAboutUsIdDelete: function (aboutUsId, options) {
|
|
676
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
677
|
+
var localVarAxiosArgs;
|
|
678
|
+
return __generator(this, function (_a) {
|
|
679
|
+
switch (_a.label) {
|
|
680
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusAboutUsIdDelete(aboutUsId, options)];
|
|
681
|
+
case 1:
|
|
682
|
+
localVarAxiosArgs = _a.sent();
|
|
683
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @summary Get AboutUs.
|
|
691
|
+
* @param {string} aboutUsId
|
|
692
|
+
* @param {string} [languageCode]
|
|
693
|
+
* @param {boolean} [returnDefaultValue]
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
apiV1AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
698
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
699
|
+
var localVarAxiosArgs;
|
|
700
|
+
return __generator(this, function (_a) {
|
|
701
|
+
switch (_a.label) {
|
|
702
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options)];
|
|
703
|
+
case 1:
|
|
704
|
+
localVarAxiosArgs = _a.sent();
|
|
705
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary Update AboutUs.
|
|
713
|
+
* @param {string} aboutUsId
|
|
714
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
apiV1AboutusAboutUsIdPut: function (aboutUsId, updateAboutUsPageCommand, options) {
|
|
719
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
+
var localVarAxiosArgs;
|
|
721
|
+
return __generator(this, function (_a) {
|
|
722
|
+
switch (_a.label) {
|
|
723
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options)];
|
|
724
|
+
case 1:
|
|
725
|
+
localVarAxiosArgs = _a.sent();
|
|
726
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
});
|
|
730
|
+
},
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @summary Get all AboutUsList.
|
|
734
|
+
* @param {string} [hospitalId]
|
|
735
|
+
* @param {string} [hospitalName]
|
|
736
|
+
* @param {string} [hospitalSlug]
|
|
737
|
+
* @param {string} [overviewTitle]
|
|
738
|
+
* @param {string} [normalizedOverviewTitle]
|
|
739
|
+
* @param {string} [overview]
|
|
740
|
+
* @param {string} [content]
|
|
741
|
+
* @param {string} [customStyle]
|
|
742
|
+
* @param {string} [background]
|
|
743
|
+
* @param {string} [backgroundThumbnail]
|
|
744
|
+
* @param {string} [languageCode]
|
|
745
|
+
* @param {boolean} [returnDefaultValue]
|
|
746
|
+
* @param {boolean} [confirmed]
|
|
747
|
+
* @param {number} [page]
|
|
748
|
+
* @param {number} [limit]
|
|
749
|
+
* @param {Date} [lastRetrieved]
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
apiV1AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
754
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
755
|
+
var localVarAxiosArgs;
|
|
756
|
+
return __generator(this, function (_a) {
|
|
757
|
+
switch (_a.label) {
|
|
758
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options)];
|
|
759
|
+
case 1:
|
|
760
|
+
localVarAxiosArgs = _a.sent();
|
|
761
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @summary Create AboutUs.
|
|
769
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
apiV1AboutusPost: function (createAboutUsPageCommand, options) {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
775
|
+
var localVarAxiosArgs;
|
|
776
|
+
return __generator(this, function (_a) {
|
|
777
|
+
switch (_a.label) {
|
|
778
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusPost(createAboutUsPageCommand, options)];
|
|
779
|
+
case 1:
|
|
780
|
+
localVarAxiosArgs = _a.sent();
|
|
781
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @param {string} slug
|
|
789
|
+
* @param {string} [languageCode]
|
|
790
|
+
* @param {boolean} [returnDefaultValue]
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
apiV1AboutusSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
795
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
796
|
+
var localVarAxiosArgs;
|
|
797
|
+
return __generator(this, function (_a) {
|
|
798
|
+
switch (_a.label) {
|
|
799
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options)];
|
|
800
|
+
case 1:
|
|
801
|
+
localVarAxiosArgs = _a.sent();
|
|
802
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
});
|
|
806
|
+
},
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* AboutUsApi - factory interface
|
|
811
|
+
* @export
|
|
812
|
+
*/
|
|
813
|
+
exports.AboutUsApiFactory = function (configuration, basePath, axios) {
|
|
814
|
+
var localVarFp = exports.AboutUsApiFp(configuration);
|
|
815
|
+
return {
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @summary Delete AboutUs.
|
|
819
|
+
* @param {string} aboutUsId
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
apiV1AboutusAboutUsIdDelete: function (aboutUsId, options) {
|
|
824
|
+
return localVarFp.apiV1AboutusAboutUsIdDelete(aboutUsId, options).then(function (request) { return request(axios, basePath); });
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @summary Get AboutUs.
|
|
829
|
+
* @param {string} aboutUsId
|
|
830
|
+
* @param {string} [languageCode]
|
|
831
|
+
* @param {boolean} [returnDefaultValue]
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
apiV1AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
836
|
+
return localVarFp.apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
837
|
+
},
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @summary Update AboutUs.
|
|
841
|
+
* @param {string} aboutUsId
|
|
842
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
*/
|
|
846
|
+
apiV1AboutusAboutUsIdPut: function (aboutUsId, updateAboutUsPageCommand, options) {
|
|
847
|
+
return localVarFp.apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options).then(function (request) { return request(axios, basePath); });
|
|
848
|
+
},
|
|
849
|
+
/**
|
|
850
|
+
*
|
|
851
|
+
* @summary Get all AboutUsList.
|
|
852
|
+
* @param {string} [hospitalId]
|
|
853
|
+
* @param {string} [hospitalName]
|
|
854
|
+
* @param {string} [hospitalSlug]
|
|
855
|
+
* @param {string} [overviewTitle]
|
|
856
|
+
* @param {string} [normalizedOverviewTitle]
|
|
857
|
+
* @param {string} [overview]
|
|
858
|
+
* @param {string} [content]
|
|
859
|
+
* @param {string} [customStyle]
|
|
860
|
+
* @param {string} [background]
|
|
861
|
+
* @param {string} [backgroundThumbnail]
|
|
862
|
+
* @param {string} [languageCode]
|
|
863
|
+
* @param {boolean} [returnDefaultValue]
|
|
864
|
+
* @param {boolean} [confirmed]
|
|
865
|
+
* @param {number} [page]
|
|
866
|
+
* @param {number} [limit]
|
|
867
|
+
* @param {Date} [lastRetrieved]
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
*/
|
|
871
|
+
apiV1AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
872
|
+
return localVarFp.apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
873
|
+
},
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @summary Create AboutUs.
|
|
877
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
apiV1AboutusPost: function (createAboutUsPageCommand, options) {
|
|
882
|
+
return localVarFp.apiV1AboutusPost(createAboutUsPageCommand, options).then(function (request) { return request(axios, basePath); });
|
|
883
|
+
},
|
|
884
|
+
/**
|
|
885
|
+
*
|
|
886
|
+
* @param {string} slug
|
|
887
|
+
* @param {string} [languageCode]
|
|
888
|
+
* @param {boolean} [returnDefaultValue]
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
*/
|
|
892
|
+
apiV1AboutusSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
893
|
+
return localVarFp.apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
894
|
+
},
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* AboutUsApi - object-oriented interface
|
|
899
|
+
* @export
|
|
900
|
+
* @class AboutUsApi
|
|
901
|
+
* @extends {BaseAPI}
|
|
902
|
+
*/
|
|
903
|
+
var AboutUsApi = /** @class */ (function (_super) {
|
|
904
|
+
__extends(AboutUsApi, _super);
|
|
905
|
+
function AboutUsApi() {
|
|
906
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary Delete AboutUs.
|
|
911
|
+
* @param {string} aboutUsId
|
|
912
|
+
* @param {*} [options] Override http request option.
|
|
913
|
+
* @throws {RequiredError}
|
|
914
|
+
* @memberof AboutUsApi
|
|
915
|
+
*/
|
|
916
|
+
AboutUsApi.prototype.apiV1AboutusAboutUsIdDelete = function (aboutUsId, options) {
|
|
917
|
+
var _this = this;
|
|
918
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdDelete(aboutUsId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
*
|
|
922
|
+
* @summary Get AboutUs.
|
|
923
|
+
* @param {string} aboutUsId
|
|
924
|
+
* @param {string} [languageCode]
|
|
925
|
+
* @param {boolean} [returnDefaultValue]
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof AboutUsApi
|
|
929
|
+
*/
|
|
930
|
+
AboutUsApi.prototype.apiV1AboutusAboutUsIdGet = function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
931
|
+
var _this = this;
|
|
932
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
933
|
+
};
|
|
934
|
+
/**
|
|
935
|
+
*
|
|
936
|
+
* @summary Update AboutUs.
|
|
937
|
+
* @param {string} aboutUsId
|
|
938
|
+
* @param {UpdateAboutUsPageCommand} [updateAboutUsPageCommand]
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
* @memberof AboutUsApi
|
|
942
|
+
*/
|
|
943
|
+
AboutUsApi.prototype.apiV1AboutusAboutUsIdPut = function (aboutUsId, updateAboutUsPageCommand, options) {
|
|
944
|
+
var _this = this;
|
|
945
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusAboutUsIdPut(aboutUsId, updateAboutUsPageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @summary Get all AboutUsList.
|
|
950
|
+
* @param {string} [hospitalId]
|
|
951
|
+
* @param {string} [hospitalName]
|
|
952
|
+
* @param {string} [hospitalSlug]
|
|
953
|
+
* @param {string} [overviewTitle]
|
|
954
|
+
* @param {string} [normalizedOverviewTitle]
|
|
955
|
+
* @param {string} [overview]
|
|
956
|
+
* @param {string} [content]
|
|
957
|
+
* @param {string} [customStyle]
|
|
958
|
+
* @param {string} [background]
|
|
959
|
+
* @param {string} [backgroundThumbnail]
|
|
960
|
+
* @param {string} [languageCode]
|
|
961
|
+
* @param {boolean} [returnDefaultValue]
|
|
962
|
+
* @param {boolean} [confirmed]
|
|
963
|
+
* @param {number} [page]
|
|
964
|
+
* @param {number} [limit]
|
|
965
|
+
* @param {Date} [lastRetrieved]
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
* @memberof AboutUsApi
|
|
969
|
+
*/
|
|
970
|
+
AboutUsApi.prototype.apiV1AboutusGet = function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
971
|
+
var _this = this;
|
|
972
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @summary Create AboutUs.
|
|
977
|
+
* @param {CreateAboutUsPageCommand} [createAboutUsPageCommand]
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
* @memberof AboutUsApi
|
|
981
|
+
*/
|
|
982
|
+
AboutUsApi.prototype.apiV1AboutusPost = function (createAboutUsPageCommand, options) {
|
|
983
|
+
var _this = this;
|
|
984
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusPost(createAboutUsPageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @param {string} slug
|
|
989
|
+
* @param {string} [languageCode]
|
|
990
|
+
* @param {boolean} [returnDefaultValue]
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
* @memberof AboutUsApi
|
|
994
|
+
*/
|
|
995
|
+
AboutUsApi.prototype.apiV1AboutusSlugGet = function (slug, languageCode, returnDefaultValue, options) {
|
|
996
|
+
var _this = this;
|
|
997
|
+
return exports.AboutUsApiFp(this.configuration).apiV1AboutusSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
998
|
+
};
|
|
999
|
+
return AboutUsApi;
|
|
1000
|
+
}(base_1.BaseAPI));
|
|
1001
|
+
exports.AboutUsApi = AboutUsApi;
|
|
315
1002
|
/**
|
|
316
1003
|
* AccreditationsApi - axios parameter creator
|
|
317
1004
|
* @export
|
|
@@ -1962,6 +2649,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1962
2649
|
* @param {string} [hospitalName]
|
|
1963
2650
|
* @param {string} [countryId]
|
|
1964
2651
|
* @param {string} [tag]
|
|
2652
|
+
* @param {string} [exceptArticleId]
|
|
1965
2653
|
* @param {string} [exceptHospitalId]
|
|
1966
2654
|
* @param {string} [contributorId]
|
|
1967
2655
|
* @param {string} [languageCode]
|
|
@@ -1973,7 +2661,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1973
2661
|
* @param {*} [options] Override http request option.
|
|
1974
2662
|
* @throws {RequiredError}
|
|
1975
2663
|
*/
|
|
1976
|
-
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
2664
|
+
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1977
2665
|
if (options === void 0) { options = {}; }
|
|
1978
2666
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1979
2667
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2028,6 +2716,9 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
2028
2716
|
if (tag !== undefined) {
|
|
2029
2717
|
localVarQueryParameter['Tag'] = tag;
|
|
2030
2718
|
}
|
|
2719
|
+
if (exceptArticleId !== undefined) {
|
|
2720
|
+
localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
|
|
2721
|
+
}
|
|
2031
2722
|
if (exceptHospitalId !== undefined) {
|
|
2032
2723
|
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
2033
2724
|
}
|
|
@@ -2665,6 +3356,7 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2665
3356
|
* @param {string} [hospitalName]
|
|
2666
3357
|
* @param {string} [countryId]
|
|
2667
3358
|
* @param {string} [tag]
|
|
3359
|
+
* @param {string} [exceptArticleId]
|
|
2668
3360
|
* @param {string} [exceptHospitalId]
|
|
2669
3361
|
* @param {string} [contributorId]
|
|
2670
3362
|
* @param {string} [languageCode]
|
|
@@ -2676,12 +3368,12 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
2676
3368
|
* @param {*} [options] Override http request option.
|
|
2677
3369
|
* @throws {RequiredError}
|
|
2678
3370
|
*/
|
|
2679
|
-
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
3371
|
+
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
2680
3372
|
return __awaiter(this, void 0, void 0, function () {
|
|
2681
3373
|
var localVarAxiosArgs;
|
|
2682
3374
|
return __generator(this, function (_a) {
|
|
2683
3375
|
switch (_a.label) {
|
|
2684
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
3376
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
2685
3377
|
case 1:
|
|
2686
3378
|
localVarAxiosArgs = _a.sent();
|
|
2687
3379
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3018,6 +3710,7 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3018
3710
|
* @param {string} [hospitalName]
|
|
3019
3711
|
* @param {string} [countryId]
|
|
3020
3712
|
* @param {string} [tag]
|
|
3713
|
+
* @param {string} [exceptArticleId]
|
|
3021
3714
|
* @param {string} [exceptHospitalId]
|
|
3022
3715
|
* @param {string} [contributorId]
|
|
3023
3716
|
* @param {string} [languageCode]
|
|
@@ -3029,8 +3722,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3029
3722
|
* @param {*} [options] Override http request option.
|
|
3030
3723
|
* @throws {RequiredError}
|
|
3031
3724
|
*/
|
|
3032
|
-
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
3033
|
-
return localVarFp.apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3725
|
+
apiV1ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
3726
|
+
return localVarFp.apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3034
3727
|
},
|
|
3035
3728
|
/**
|
|
3036
3729
|
*
|
|
@@ -3389,6 +4082,7 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3389
4082
|
* @param {string} [hospitalName]
|
|
3390
4083
|
* @param {string} [countryId]
|
|
3391
4084
|
* @param {string} [tag]
|
|
4085
|
+
* @param {string} [exceptArticleId]
|
|
3392
4086
|
* @param {string} [exceptHospitalId]
|
|
3393
4087
|
* @param {string} [contributorId]
|
|
3394
4088
|
* @param {string} [languageCode]
|
|
@@ -3401,9 +4095,9 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
3401
4095
|
* @throws {RequiredError}
|
|
3402
4096
|
* @memberof ArticlesApi
|
|
3403
4097
|
*/
|
|
3404
|
-
ArticlesApi.prototype.apiV1ArticlesGet = function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
4098
|
+
ArticlesApi.prototype.apiV1ArticlesGet = function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
3405
4099
|
var _this = this;
|
|
3406
|
-
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4100
|
+
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3407
4101
|
};
|
|
3408
4102
|
/**
|
|
3409
4103
|
*
|